]> git.ipfire.org Git - thirdparty/gcc.git/blob - libsanitizer/configure
gcc/
[thirdparty/gcc.git] / libsanitizer / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Report bugs to <libsanitizer>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 fi
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
565
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 USING_MAC_INTERPOSE_FALSE
608 USING_MAC_INTERPOSE_TRUE
609 link_liblsan
610 link_libubsan
611 link_libtsan
612 link_libasan
613 LSAN_SUPPORTED_FALSE
614 LSAN_SUPPORTED_TRUE
615 TSAN_SUPPORTED_FALSE
616 TSAN_SUPPORTED_TRUE
617 enable_static
618 enable_shared
619 CXXCPP
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 RANLIB
627 AR
628 OBJDUMP
629 LN_S
630 NM
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 EGREP
636 GREP
637 SED
638 LIBTOOL
639 am__fastdepCCAS_FALSE
640 am__fastdepCCAS_TRUE
641 CCASDEPMODE
642 CCASFLAGS
643 CCAS
644 am__fastdepCXX_FALSE
645 am__fastdepCXX_TRUE
646 CXXDEPMODE
647 ac_ct_CXX
648 CXXFLAGS
649 CXX
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 toolexeclibdir
667 toolexecdir
668 MAINT
669 MAINTAINER_MODE_FALSE
670 MAINTAINER_MODE_TRUE
671 multi_basedir
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 LIBSTDCXX_RAW_CXX_LDFLAGS
696 LIBSTDCXX_RAW_CXX_CXXFLAGS
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_version_specific_runtime_libs
752 enable_multilib
753 enable_maintainer_mode
754 enable_dependency_tracking
755 enable_shared
756 enable_static
757 with_pic
758 enable_fast_install
759 with_gnu_ld
760 enable_libtool_lock
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CXX
771 CXXFLAGS
772 CCC
773 CCAS
774 CCASFLAGS
775 CPP
776 CXXCPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information."
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of package-unused version-unused:";;
1390 esac
1391 cat <<\_ACEOF
1392
1393 Optional Features:
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1398 --enable-multilib build many library versions (default)
1399 --enable-maintainer-mode enable make rules and dependencies not useful
1400 (and sometimes confusing) to the casual installer
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408
1409 Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-pic try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1415
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CXX C++ compiler command
1425 CXXFLAGS C++ compiler flags
1426 CCAS assembler compiler command (defaults to CC)
1427 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1428 CPP C preprocessor
1429 CXXCPP C++ preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to <libsanitizer>.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1446
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *)
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1462
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1492 fi
1493
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 package-unused configure version-unused
1498 generated by GNU Autoconf 2.64
1499
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1505 fi
1506
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1510
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1515 {
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1541
1542 ac_retval=1
1543 fi
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1546
1547 } # ac_fn_c_try_compile
1548
1549 # ac_fn_cxx_try_compile LINENO
1550 # ----------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_cxx_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_cxx_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581 fi
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1584
1585 } # ac_fn_cxx_try_compile
1586
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 return $ac_retval
1630
1631 } # ac_fn_c_try_link
1632
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 eval "$3=yes"
1652 else
1653 eval "$3=no"
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 fi
1657 eval ac_res=\$$3
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661
1662 } # ac_fn_c_check_header_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } >/dev/null && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 return $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736 fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1759
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1764
1765 #ifdef __STDC__
1766 # include <limits.h>
1767 #else
1768 # include <assert.h>
1769 #endif
1770
1771 #undef $2
1772
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1776 #ifdef __cplusplus
1777 extern "C"
1778 #endif
1779 char $2 ();
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1784 choke me
1785 #endif
1786
1787 int
1788 main ()
1789 {
1790 return $2 ();
1791 ;
1792 return 0;
1793 }
1794 _ACEOF
1795 if ac_fn_c_try_link "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808 } # ac_fn_c_check_func
1809
1810 # ac_fn_cxx_try_cpp LINENO
1811 # ------------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_cpp ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } >/dev/null && {
1832 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 }; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 return $ac_retval
1844
1845 } # ac_fn_cxx_try_cpp
1846
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 $as_test_x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 return $ac_retval
1890
1891 } # ac_fn_cxx_try_link
1892
1893 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1894 # --------------------------------------------
1895 # Tries to find the compile-time value of EXPR in a program that includes
1896 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1897 # computed
1898 ac_fn_c_compute_int ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if test "$cross_compiling" = yes; then
1902 # Depending upon the size, compute the lo and hi bounds.
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main ()
1908 {
1909 static int test_array [1 - 2 * !(($2) >= 0)];
1910 test_array [0] = 0
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_lo=0 ac_mid=0
1918 while :; do
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main ()
1924 {
1925 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926 test_array [0] = 0
1927
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_hi=$ac_mid; break
1934 else
1935 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1936 if test $ac_lo -le $ac_mid; then
1937 ac_lo= ac_hi=
1938 break
1939 fi
1940 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 done
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) < 0)];
1952 test_array [0] = 0
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_hi=-1 ac_mid=-1
1960 while :; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main ()
1966 {
1967 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1968 test_array [0] = 0
1969
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 ac_lo=$ac_mid; break
1976 else
1977 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1978 if test $ac_mid -le $ac_hi; then
1979 ac_lo= ac_hi=
1980 break
1981 fi
1982 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 done
1986 else
1987 ac_lo= ac_hi=
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 # Binary search between lo and hi bounds.
1993 while test "x$ac_lo" != "x$ac_hi"; do
1994 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 int
1999 main ()
2000 {
2001 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2002 test_array [0] = 0
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_hi=$ac_mid
2010 else
2011 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 done
2015 case $ac_lo in #((
2016 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2017 '') ac_retval=1 ;;
2018 esac
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 static long int longval () { return $2; }
2024 static unsigned long int ulongval () { return $2; }
2025 #include <stdio.h>
2026 #include <stdlib.h>
2027 int
2028 main ()
2029 {
2030
2031 FILE *f = fopen ("conftest.val", "w");
2032 if (! f)
2033 return 1;
2034 if (($2) < 0)
2035 {
2036 long int i = longval ();
2037 if (i != ($2))
2038 return 1;
2039 fprintf (f, "%ld", i);
2040 }
2041 else
2042 {
2043 unsigned long int i = ulongval ();
2044 if (i != ($2))
2045 return 1;
2046 fprintf (f, "%lu", i);
2047 }
2048 /* Do not output a trailing newline, as this causes \r\n confusion
2049 on some platforms. */
2050 return ferror (f) || fclose (f) != 0;
2051
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_run "$LINENO"; then :
2057 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2058 else
2059 ac_retval=1
2060 fi
2061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2062 conftest.$ac_objext conftest.beam conftest.$ac_ext
2063 rm -f conftest.val
2064
2065 fi
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2068
2069 } # ac_fn_c_compute_int
2070 cat >config.log <<_ACEOF
2071 This file contains any messages produced by compilers while
2072 running configure, to aid debugging if configure makes a mistake.
2073
2074 It was created by package-unused $as_me version-unused, which was
2075 generated by GNU Autoconf 2.64. Invocation command line was
2076
2077 $ $0 $@
2078
2079 _ACEOF
2080 exec 5>>config.log
2081 {
2082 cat <<_ASUNAME
2083 ## --------- ##
2084 ## Platform. ##
2085 ## --------- ##
2086
2087 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2092
2093 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2095
2096 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2097 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2098 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2099 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2100 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2101 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2102 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2103
2104 _ASUNAME
2105
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 $as_echo "PATH: $as_dir"
2112 done
2113 IFS=$as_save_IFS
2114
2115 } >&5
2116
2117 cat >&5 <<_ACEOF
2118
2119
2120 ## ----------- ##
2121 ## Core tests. ##
2122 ## ----------- ##
2123
2124 _ACEOF
2125
2126
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2132 ac_configure_args=
2133 ac_configure_args0=
2134 ac_configure_args1=
2135 ac_must_keep_next=false
2136 for ac_pass in 1 2
2137 do
2138 for ac_arg
2139 do
2140 case $ac_arg in
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2144 continue ;;
2145 *\'*)
2146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 esac
2148 case $ac_pass in
2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2150 2)
2151 as_fn_append ac_configure_args1 " '$ac_arg'"
2152 if test $ac_must_keep_next = true; then
2153 ac_must_keep_next=false # Got value, back to normal.
2154 else
2155 case $ac_arg in
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162 esac
2163 ;;
2164 -* ) ac_must_keep_next=true ;;
2165 esac
2166 fi
2167 as_fn_append ac_configure_args " '$ac_arg'"
2168 ;;
2169 esac
2170 done
2171 done
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2174
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log. We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181 # Save into config.log some information that might help in debugging.
2182 {
2183 echo
2184
2185 cat <<\_ASBOX
2186 ## ---------------- ##
2187 ## Cache variables. ##
2188 ## ---------------- ##
2189 _ASBOX
2190 echo
2191 # The following way of writing the cache mishandles newlines in values,
2192 (
2193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in #(
2196 *${as_nl}*)
2197 case $ac_var in #(
2198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200 esac
2201 case $ac_var in #(
2202 _ | IFS | as_nl) ;; #(
2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2204 *) { eval $ac_var=; unset $ac_var;} ;;
2205 esac ;;
2206 esac
2207 done
2208 (set) 2>&1 |
2209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2210 *${as_nl}ac_space=\ *)
2211 sed -n \
2212 "s/'\''/'\''\\\\'\'''\''/g;
2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 ;; #(
2215 *)
2216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2217 ;;
2218 esac |
2219 sort
2220 )
2221 echo
2222
2223 cat <<\_ASBOX
2224 ## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##
2227 _ASBOX
2228 echo
2229 for ac_var in $ac_subst_vars
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238
2239 if test -n "$ac_subst_files"; then
2240 cat <<\_ASBOX
2241 ## ------------------- ##
2242 ## File substitutions. ##
2243 ## ------------------- ##
2244 _ASBOX
2245 echo
2246 for ac_var in $ac_subst_files
2247 do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2255 fi
2256
2257 if test -s confdefs.h; then
2258 cat <<\_ASBOX
2259 ## ----------- ##
2260 ## confdefs.h. ##
2261 ## ----------- ##
2262 _ASBOX
2263 echo
2264 cat confdefs.h
2265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2270 } >&5
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273 exit $exit_status
2274 ' 0
2275 for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2279
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2282
2283 $as_echo "/* confdefs.h */" > confdefs.h
2284
2285 # Predefined preprocessor variables.
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2310
2311
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317 ac_site_file1=$CONFIG_SITE
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2321 else
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2324 fi
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2326 do
2327 test "x$ac_site_file" = xNONE && continue
2328 if test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2332 . "$ac_site_file"
2333 fi
2334 done
2335
2336 if test -r "$cache_file"; then
2337 # Some versions of bash will fail to source /dev/null (special
2338 # files actually), so we avoid doing that.
2339 if test -f "$cache_file"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2341 $as_echo "$as_me: loading cache $cache_file" >&6;}
2342 case $cache_file in
2343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2344 *) . "./$cache_file";;
2345 esac
2346 fi
2347 else
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2349 $as_echo "$as_me: creating cache $cache_file" >&6;}
2350 >$cache_file
2351 fi
2352
2353 # Check that the precious variables saved in the cache have kept the same
2354 # value.
2355 ac_cache_corrupted=false
2356 for ac_var in $ac_precious_vars; do
2357 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2358 eval ac_new_set=\$ac_env_${ac_var}_set
2359 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2360 eval ac_new_val=\$ac_env_${ac_var}_value
2361 case $ac_old_set,$ac_new_set in
2362 set,)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,set)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,);;
2371 *)
2372 if test "x$ac_old_val" != "x$ac_new_val"; then
2373 # differences in whitespace do not lead to failure.
2374 ac_old_val_w=`echo x $ac_old_val`
2375 ac_new_val_w=`echo x $ac_new_val`
2376 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2378 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2379 ac_cache_corrupted=:
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2382 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2383 eval $ac_var=\$ac_old_val
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2386 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2388 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2389 fi;;
2390 esac
2391 # Pass precious variables to config.status.
2392 if test "$ac_new_set" = set; then
2393 case $ac_new_val in
2394 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 *) ac_arg=$ac_var=$ac_new_val ;;
2396 esac
2397 case " $ac_configure_args " in
2398 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2399 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2400 esac
2401 fi
2402 done
2403 if $ac_cache_corrupted; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2407 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2408 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2409 fi
2410 ## -------------------- ##
2411 ## Main body of script. ##
2412 ## -------------------- ##
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421
2422
2423
2424
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2427 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2428 # Check whether --enable-version-specific-runtime-libs was given.
2429 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2430 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2431 yes) version_specific_libs=yes ;;
2432 no) version_specific_libs=no ;;
2433 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2434 esac
2435 else
2436 version_specific_libs=no
2437 fi
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2440 $as_echo "$version_specific_libs" >&6; }
2441
2442 # Do not delete or change the following two lines. For why, see
2443 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2444 ac_aux_dir=
2445 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2446 for ac_t in install-sh install.sh shtool; do
2447 if test -f "$ac_dir/$ac_t"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/$ac_t -c"
2450 break 2
2451 fi
2452 done
2453 done
2454 if test -z "$ac_aux_dir"; then
2455 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2456 fi
2457
2458 # These three variables are undocumented and unsupported,
2459 # and are intended to be withdrawn in a future Autoconf release.
2460 # They can cause serious problems if a builder's source tree is in a directory
2461 # whose full name contains unusual characters.
2462 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2463 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2464 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2465
2466
2467 # Make sure we can run config.sub.
2468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2469 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2470
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2472 $as_echo_n "checking build system type... " >&6; }
2473 if test "${ac_cv_build+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 ac_build_alias=$build_alias
2477 test "x$ac_build_alias" = x &&
2478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2479 test "x$ac_build_alias" = x &&
2480 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2483
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2486 $as_echo "$ac_cv_build" >&6; }
2487 case $ac_cv_build in
2488 *-*-*) ;;
2489 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2490 esac
2491 build=$ac_cv_build
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_build
2494 shift
2495 build_cpu=$1
2496 build_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 build_os=$*
2501 IFS=$ac_save_IFS
2502 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2503
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2506 $as_echo_n "checking host system type... " >&6; }
2507 if test "${ac_cv_host+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test "x$host_alias" = x; then
2511 ac_cv_host=$ac_cv_build
2512 else
2513 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2514 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2515 fi
2516
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2519 $as_echo "$ac_cv_host" >&6; }
2520 case $ac_cv_host in
2521 *-*-*) ;;
2522 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2523 esac
2524 host=$ac_cv_host
2525 ac_save_IFS=$IFS; IFS='-'
2526 set x $ac_cv_host
2527 shift
2528 host_cpu=$1
2529 host_vendor=$2
2530 shift; shift
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2533 host_os=$*
2534 IFS=$ac_save_IFS
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2539 $as_echo_n "checking target system type... " >&6; }
2540 if test "${ac_cv_target+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test "x$target_alias" = x; then
2544 ac_cv_target=$ac_cv_host
2545 else
2546 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2547 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2548 fi
2549
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2552 $as_echo "$ac_cv_target" >&6; }
2553 case $ac_cv_target in
2554 *-*-*) ;;
2555 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2556 esac
2557 target=$ac_cv_target
2558 ac_save_IFS=$IFS; IFS='-'
2559 set x $ac_cv_target
2560 shift
2561 target_cpu=$1
2562 target_vendor=$2
2563 shift; shift
2564 # Remember, the first character of IFS is used to create $*,
2565 # except with old shells:
2566 target_os=$*
2567 IFS=$ac_save_IFS
2568 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2569
2570
2571 # The aliases save the names the user supplied, while $host etc.
2572 # will get canonicalized.
2573 test -n "$target_alias" &&
2574 test "$program_prefix$program_suffix$program_transform_name" = \
2575 NONENONEs,x,x, &&
2576 program_prefix=${target_alias}-
2577
2578 target_alias=${target_alias-$host_alias}
2579
2580 case ${build_alias} in
2581 "") build_noncanonical=${build} ;;
2582 *) build_noncanonical=${build_alias} ;;
2583 esac
2584
2585 case ${host_alias} in
2586 "") host_noncanonical=${build_noncanonical} ;;
2587 *) host_noncanonical=${host_alias} ;;
2588 esac
2589
2590 case ${target_alias} in
2591 "") target_noncanonical=${host_noncanonical} ;;
2592 *) target_noncanonical=${target_alias} ;;
2593 esac
2594
2595
2596
2597
2598
2599 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2600 -I\$(top_builddir)/../libstdc++-v3/include \
2601 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2602 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2603 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2604 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2605
2606
2607
2608
2609 am__api_version='1.11'
2610
2611 # Find a good install program. We prefer a C program (faster),
2612 # so one script is as good as another. But avoid the broken or
2613 # incompatible versions:
2614 # SysV /etc/install, /usr/sbin/install
2615 # SunOS /usr/etc/install
2616 # IRIX /sbin/install
2617 # AIX /bin/install
2618 # AmigaOS /C/install, which installs bootblocks on floppy discs
2619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622 # OS/2's system install, which has a completely different semantic
2623 # ./install, which can be erroneously created by make from ./install.sh.
2624 # Reject install programs that cannot install multiple files.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2627 if test -z "$INSTALL"; then
2628 if test "${ac_cv_path_install+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 # Account for people who put trailing slashes in PATH elements.
2637 case $as_dir/ in #((
2638 ./ | .// | /[cC]/* | \
2639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641 /usr/ucb/* ) ;;
2642 *)
2643 # OSF1 and SCO ODT 3.0 have their own names for install.
2644 # Don't use installbsd from OSF since it installs stuff as root
2645 # by default.
2646 for ac_prog in ginstall scoinst install; do
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2649 if test $ac_prog = install &&
2650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # AIX install. It has an incompatible calling convention.
2652 :
2653 elif test $ac_prog = install &&
2654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655 # program-specific install script used by HP pwplus--don't use.
2656 :
2657 else
2658 rm -rf conftest.one conftest.two conftest.dir
2659 echo one > conftest.one
2660 echo two > conftest.two
2661 mkdir conftest.dir
2662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663 test -s conftest.one && test -s conftest.two &&
2664 test -s conftest.dir/conftest.one &&
2665 test -s conftest.dir/conftest.two
2666 then
2667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668 break 3
2669 fi
2670 fi
2671 fi
2672 done
2673 done
2674 ;;
2675 esac
2676
2677 done
2678 IFS=$as_save_IFS
2679
2680 rm -rf conftest.one conftest.two conftest.dir
2681
2682 fi
2683 if test "${ac_cv_path_install+set}" = set; then
2684 INSTALL=$ac_cv_path_install
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for INSTALL within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 INSTALL=$ac_install_sh
2691 fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 $as_echo "$INSTALL" >&6; }
2695
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 $as_echo_n "checking whether build environment is sane... " >&6; }
2706 # Just in case
2707 sleep 1
2708 echo timestamp > conftest.file
2709 # Reject unsafe characters in $srcdir or the absolute working directory
2710 # name. Accept space and tab only in the latter.
2711 am_lf='
2712 '
2713 case `pwd` in
2714 *[\\\"\#\$\&\'\`$am_lf]*)
2715 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2716 esac
2717 case $srcdir in
2718 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2719 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2720 esac
2721
2722 # Do `set' in a subshell so we don't clobber the current shell's
2723 # arguments. Must try -L first in case configure is actually a
2724 # symlink; some systems play weird games with the mod time of symlinks
2725 # (eg FreeBSD returns the mod time of the symlink's containing
2726 # directory).
2727 if (
2728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729 if test "$*" = "X"; then
2730 # -L didn't work.
2731 set X `ls -t "$srcdir/configure" conftest.file`
2732 fi
2733 rm -f conftest.file
2734 if test "$*" != "X $srcdir/configure conftest.file" \
2735 && test "$*" != "X conftest.file $srcdir/configure"; then
2736
2737 # If neither matched, then we have a broken ls. This can happen
2738 # if, for instance, CONFIG_SHELL is bash and it inherits a
2739 # broken ls alias from the environment. This has actually
2740 # happened. Such a system could not be considered "sane".
2741 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2743 fi
2744
2745 test "$2" = conftest.file
2746 )
2747 then
2748 # Ok.
2749 :
2750 else
2751 as_fn_error "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 test "$program_prefix" != NONE &&
2757 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758 # Use a double $ so make ignores it.
2759 test "$program_suffix" != NONE &&
2760 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761 # Double any \ or $.
2762 # By default was `s,x,x', remove it if useless.
2763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765
2766 # expand $ac_aux_dir to an absolute path
2767 am_aux_dir=`cd $ac_aux_dir && pwd`
2768
2769 if test x"${MISSING+set}" != xset; then
2770 case $am_aux_dir in
2771 *\ * | *\ *)
2772 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773 *)
2774 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775 esac
2776 fi
2777 # Use eval to expand $SHELL
2778 if eval "$MISSING --run true"; then
2779 am_missing_run="$MISSING --run "
2780 else
2781 am_missing_run=
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2783 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2784 fi
2785
2786 if test x"${install_sh}" != xset; then
2787 case $am_aux_dir in
2788 *\ * | *\ *)
2789 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790 *)
2791 install_sh="\${SHELL} $am_aux_dir/install-sh"
2792 esac
2793 fi
2794
2795 # Installed binaries are usually stripped using `strip' when the user
2796 # run `make install-strip'. However `strip' might not be the right
2797 # tool to use in cross-compilation environments, therefore Automake
2798 # will honor the `STRIP' environment variable to overrule this program.
2799 if test "$cross_compiling" != no; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_STRIP+set}" = set; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$STRIP"; then
2809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 STRIP=$ac_cv_prog_STRIP
2829 if test -n "$STRIP"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831 $as_echo "$STRIP" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_STRIP"; then
2840 ac_ct_STRIP=$STRIP
2841 # Extract the first word of "strip", so it can be a program name with args.
2842 set dummy strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$ac_ct_STRIP"; then
2849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_STRIP="strip"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869 if test -n "$ac_ct_STRIP"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871 $as_echo "$ac_ct_STRIP" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877 if test "x$ac_ct_STRIP" = x; then
2878 STRIP=":"
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886 STRIP=$ac_ct_STRIP
2887 fi
2888 else
2889 STRIP="$ac_cv_prog_STRIP"
2890 fi
2891
2892 fi
2893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898 if test "${ac_cv_path_mkdir+set}" = set; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_prog in mkdir gmkdir; do
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2909 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910 'mkdir (GNU coreutils) '* | \
2911 'mkdir (coreutils) '* | \
2912 'mkdir (fileutils) '4.1*)
2913 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2914 break 3;;
2915 esac
2916 done
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922
2923 if test "${ac_cv_path_mkdir+set}" = set; then
2924 MKDIR_P="$ac_cv_path_mkdir -p"
2925 else
2926 # As a last resort, use the slow shell script. Don't cache a
2927 # value for MKDIR_P within a source directory, because that will
2928 # break other packages using the cache if that directory is
2929 # removed, or if the value is a relative name.
2930 test -d ./--version && rmdir ./--version
2931 MKDIR_P="$ac_install_sh -d"
2932 fi
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 $as_echo "$MKDIR_P" >&6; }
2936
2937 mkdir_p="$MKDIR_P"
2938 case $mkdir_p in
2939 [\\/$]* | ?:[\\/]*) ;;
2940 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2941 esac
2942
2943 for ac_prog in gawk mawk nawk awk
2944 do
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_AWK+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$AWK"; then
2953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_AWK="$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 AWK=$ac_cv_prog_AWK
2973 if test -n "$AWK"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975 $as_echo "$AWK" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 test -n "$AWK" && break
2983 done
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2987 set x ${MAKE-make}
2988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 cat >conftest.make <<\_ACEOF
2993 SHELL = /bin/sh
2994 all:
2995 @echo '@@@%%%=$(MAKE)=@@@%%%'
2996 _ACEOF
2997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999 *@@@%%%=?*=@@@%%%*)
3000 eval ac_cv_prog_make_${ac_make}_set=yes;;
3001 *)
3002 eval ac_cv_prog_make_${ac_make}_set=no;;
3003 esac
3004 rm -f conftest.make
3005 fi
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009 SET_MAKE=
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 SET_MAKE="MAKE=${MAKE-make}"
3014 fi
3015
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019 am__leading_dot=.
3020 else
3021 am__leading_dot=_
3022 fi
3023 rmdir .tst 2>/dev/null
3024
3025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033 fi
3034
3035 # test whether we have cygpath
3036 if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042 fi
3043
3044
3045 # Define the identity of the package.
3046 PACKAGE='package-unused'
3047 VERSION='version-unused'
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE "$PACKAGE"
3052 _ACEOF
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define VERSION "$VERSION"
3057 _ACEOF
3058
3059 # Some tools Automake needs.
3060
3061 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075 # We need awk for the "check" target. The system "awk" is bad on
3076 # some platforms.
3077 # Always define AMTAR for backward compatibility.
3078
3079 AMTAR=${AMTAR-"${am_missing_run}tar"}
3080
3081 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3082
3083
3084
3085
3086
3087 # Default to --enable-multilib
3088 # Check whether --enable-multilib was given.
3089 if test "${enable_multilib+set}" = set; then :
3090 enableval=$enable_multilib; case "$enableval" in
3091 yes) multilib=yes ;;
3092 no) multilib=no ;;
3093 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3094 esac
3095 else
3096 multilib=yes
3097 fi
3098
3099
3100 # We may get other options which we leave undocumented:
3101 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3102 # See config-ml.in if you want the gory details.
3103
3104 if test "$srcdir" = "."; then
3105 if test "$with_target_subdir" != "."; then
3106 multi_basedir="$srcdir/$with_multisrctop../.."
3107 else
3108 multi_basedir="$srcdir/$with_multisrctop.."
3109 fi
3110 else
3111 multi_basedir="$srcdir/.."
3112 fi
3113
3114
3115 # Even if the default multilib is not a cross compilation,
3116 # it may be that some of the other multilibs are.
3117 if test $cross_compiling = no && test $multilib = yes \
3118 && test "x${with_multisubdir}" != x ; then
3119 cross_compiling=maybe
3120 fi
3121
3122 ac_config_commands="$ac_config_commands default-1"
3123
3124
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3126 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3127 # Check whether --enable-maintainer-mode was given.
3128 if test "${enable_maintainer_mode+set}" = set; then :
3129 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3130 else
3131 USE_MAINTAINER_MODE=no
3132 fi
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3135 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3136 if test $USE_MAINTAINER_MODE = yes; then
3137 MAINTAINER_MODE_TRUE=
3138 MAINTAINER_MODE_FALSE='#'
3139 else
3140 MAINTAINER_MODE_TRUE='#'
3141 MAINTAINER_MODE_FALSE=
3142 fi
3143
3144 MAINT=$MAINTAINER_MODE_TRUE
3145
3146
3147
3148 # Calculate toolexeclibdir
3149 # Also toolexecdir, though it's only used in toolexeclibdir
3150 case ${version_specific_libs} in
3151 yes)
3152 # Need the gcc compiler version to know where to install libraries
3153 # and header files if --enable-version-specific-runtime-libs option
3154 # is selected.
3155 toolexecdir='$(libdir)/gcc/$(target_alias)'
3156 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3157 ;;
3158 no)
3159 if test -n "$with_cross_host" &&
3160 test x"$with_cross_host" != x"no"; then
3161 # Install a library built with a cross compiler in tooldir, not libdir.
3162 toolexecdir='$(exec_prefix)/$(target_alias)'
3163 toolexeclibdir='$(toolexecdir)/lib'
3164 else
3165 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3166 toolexeclibdir='$(libdir)'
3167 fi
3168 multi_os_directory=`$CC -print-multi-os-directory`
3169 case $multi_os_directory in
3170 .) ;; # Avoid trailing /.
3171 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3172 esac
3173 ;;
3174 esac
3175
3176
3177
3178 # Checks for programs.
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 fi
3223 if test -z "$ac_cv_prog_CC"; then
3224 ac_ct_CC=$CC
3225 # Extract the first word of "gcc", so it can be a program name with args.
3226 set dummy gcc; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_ac_ct_CC="gcc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255 $as_echo "$ac_ct_CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3271 fi
3272 else
3273 CC="$ac_cv_prog_CC"
3274 fi
3275
3276 if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}cc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if test "${ac_cv_prog_CC+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_CC="${ac_tool_prefix}cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 fi
3317 if test -z "$CC"; then
3318 # Extract the first word of "cc", so it can be a program name with args.
3319 set dummy cc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_CC+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 ac_prog_rejected=no
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3337 ac_prog_rejected=yes
3338 continue
3339 fi
3340 ac_cv_prog_CC="cc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 if test $ac_prog_rejected = yes; then
3349 # We found a bogon in the path, so make sure we never use it.
3350 set dummy $ac_cv_prog_CC
3351 shift
3352 if test $# != 0; then
3353 # We chose a different compiler from the bogus one.
3354 # However, it has the same basename, so the bogon will be chosen
3355 # first if we set CC to just the basename; use the full file name.
3356 shift
3357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358 fi
3359 fi
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 for ac_prog in cl.exe
3376 do
3377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 test -n "$CC" && break
3415 done
3416 fi
3417 if test -z "$CC"; then
3418 ac_ct_CC=$CC
3419 for ac_prog in cl.exe
3420 do
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_ac_ct_CC="$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458 test -n "$ac_ct_CC" && break
3459 done
3460
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3471 fi
3472 fi
3473
3474 fi
3475
3476
3477 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error "no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." "$LINENO" 5; }
3481
3482 # Provide some information about the compiler.
3483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 set X $ac_compile
3485 ac_compiler=$2
3486 for ac_option in --version -v -V -qversion; do
3487 { { ac_try="$ac_compiler $ac_option >&5"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495 ac_status=$?
3496 if test -s conftest.err; then
3497 sed '10a\
3498 ... rest of stderr output deleted ...
3499 10q' conftest.err >conftest.er1
3500 cat conftest.er1 >&5
3501 rm -f conftest.er1 conftest.err
3502 fi
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 done
3506
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3522 # of exeext.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3524 $as_echo_n "checking for C compiler default output file name... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530 ac_rmfiles=
3531 for ac_file in $ac_files
3532 do
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 esac
3537 done
3538 rm -f $ac_rmfiles
3539
3540 if { { ac_try="$ac_link_default"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link_default") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3555 # Autoconf.
3556 for ac_file in $ac_files ''
3557 do
3558 test -f "$ac_file" || continue
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561 ;;
3562 [ab].out )
3563 # We found the default executable, but exeext='' is most
3564 # certainly right.
3565 break;;
3566 *.* )
3567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568 then :; else
3569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570 fi
3571 # We set ac_cv_exeext here because the later test for it is not
3572 # safe: cross compilers may not add the suffix if given an `-o'
3573 # argument, so we may need to know it at that point already.
3574 # Even if this section looks crufty: it has the advantage of
3575 # actually working.
3576 break;;
3577 * )
3578 break;;
3579 esac
3580 done
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583 else
3584 ac_file=''
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587 $as_echo "$ac_file" >&6; }
3588 if test -z "$ac_file"; then :
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { as_fn_set_status 77
3595 as_fn_error "C compiler cannot create executables
3596 See \`config.log' for more details." "$LINENO" 5; }; }
3597 fi
3598 ac_exeext=$ac_cv_exeext
3599
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 # If not cross compiling, check that we can run a simple program.
3605 if test "$cross_compiling" != yes; then
3606 if { ac_try='./$ac_file'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3617 cross_compiling=no
3618 else
3619 if test "$cross_compiling" = maybe; then
3620 cross_compiling=yes
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details." "$LINENO" 5; }
3627 fi
3628 fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3632
3633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 # Check that the compiler produces executables we can run. If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3658 # `rm'.
3659 for ac_file in conftest.exe conftest conftest.*; do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 break;;
3665 * ) break;;
3666 esac
3667 done
3668 else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details." "$LINENO" 5; }
3673 fi
3674 rm -f conftest$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3677
3678 rm -f conftest.$ac_ext
3679 EXEEXT=$ac_cv_exeext
3680 ac_exeext=$EXEEXT
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if test "${ac_cv_objext+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3706 ac_status=$?
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714 break;;
3715 esac
3716 done
3717 else
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744 choke me
3745 #endif
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_compiler_gnu=yes
3753 else
3754 ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763 GCC=yes
3764 else
3765 GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if test "${ac_cv_prog_cc_g+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3776 ac_cv_prog_cc_g=no
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main ()
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791 else
3792 CFLAGS=""
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3836 CFLAGS="-g -O2"
3837 else
3838 CFLAGS="-g"
3839 fi
3840 else
3841 if test "$GCC" = yes; then
3842 CFLAGS="-O2"
3843 else
3844 CFLAGS=
3845 fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864 char **p;
3865 int i;
3866 {
3867 return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871 char *s;
3872 va_list v;
3873 va_start (v,p);
3874 s = g (p, va_arg (v,int));
3875 va_end (v);
3876 return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_c89=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext
3915 test "x$ac_cv_prog_cc_c89" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919
3920 fi
3921 # AC_CACHE_VAL
3922 case "x$ac_cv_prog_cc_c89" in
3923 x)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3926 xno)
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3929 *)
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3933 esac
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935
3936 fi
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 DEPDIR="${am__leading_dot}deps"
3944
3945 ac_config_commands="$ac_config_commands depfiles"
3946
3947
3948 am_make=${MAKE-make}
3949 cat > confinc << 'END'
3950 am__doit:
3951 @echo this is the am__doit target
3952 .PHONY: am__doit
3953 END
3954 # If we don't find an include directive, just comment out the code.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3956 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3957 am__include="#"
3958 am__quote=
3959 _am_result=none
3960 # First try GNU make style include.
3961 echo "include confinc" > confmf
3962 # Ignore all kinds of additional output from `make'.
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3965 am__include=include
3966 am__quote=
3967 _am_result=GNU
3968 ;;
3969 esac
3970 # Now try BSD make style include.
3971 if test "$am__include" = "#"; then
3972 echo '.include "confinc"' > confmf
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3975 am__include=.include
3976 am__quote="\""
3977 _am_result=BSD
3978 ;;
3979 esac
3980 fi
3981
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3984 $as_echo "$_am_result" >&6; }
3985 rm -f confinc confmf
3986
3987 # Check whether --enable-dependency-tracking was given.
3988 if test "${enable_dependency_tracking+set}" = set; then :
3989 enableval=$enable_dependency_tracking;
3990 fi
3991
3992 if test "x$enable_dependency_tracking" != xno; then
3993 am_depcomp="$ac_aux_dir/depcomp"
3994 AMDEPBACKSLASH='\'
3995 fi
3996 if test "x$enable_dependency_tracking" != xno; then
3997 AMDEP_TRUE=
3998 AMDEP_FALSE='#'
3999 else
4000 AMDEP_TRUE='#'
4001 AMDEP_FALSE=
4002 fi
4003
4004
4005
4006 depcc="$CC" am_compiler_list=
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4009 $as_echo_n "checking dependency style of $depcc... " >&6; }
4010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014 # We make a subdir and do the tests there. Otherwise we can end up
4015 # making bogus files that we don't know about and never remove. For
4016 # instance it was reported that on HP-UX the gcc test will end up
4017 # making a dummy file named `D' -- because `-MD' means `put the output
4018 # in D'.
4019 mkdir conftest.dir
4020 # Copy depcomp to subdir because otherwise we won't find it if we're
4021 # using a relative directory.
4022 cp "$am_depcomp" conftest.dir
4023 cd conftest.dir
4024 # We will build objects and dependencies in a subdirectory because
4025 # it helps to detect inapplicable dependency modes. For instance
4026 # both Tru64's cc and ICC support -MD to output dependencies as a
4027 # side effect of compilation, but ICC will put the dependencies in
4028 # the current directory while Tru64 will put them in the object
4029 # directory.
4030 mkdir sub
4031
4032 am_cv_CC_dependencies_compiler_type=none
4033 if test "$am_compiler_list" = ""; then
4034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4035 fi
4036 am__universal=false
4037 case " $depcc " in #(
4038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4039 esac
4040
4041 for depmode in $am_compiler_list; do
4042 # Setup a source with many dependencies, because some compilers
4043 # like to wrap large dependency lists on column 80 (with \), and
4044 # we should not choose a depcomp mode which is confused by this.
4045 #
4046 # We need to recreate these files for each test, as the compiler may
4047 # overwrite some of them when testing with obscure command lines.
4048 # This happens at least with the AIX C compiler.
4049 : > sub/conftest.c
4050 for i in 1 2 3 4 5 6; do
4051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4053 # Solaris 8's {/usr,}/bin/sh.
4054 touch sub/conftst$i.h
4055 done
4056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4057
4058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4059 # mode. It turns out that the SunPro C++ compiler does not properly
4060 # handle `-M -o', and we need to detect this. Also, some Intel
4061 # versions had trouble with output in subdirs
4062 am__obj=sub/conftest.${OBJEXT-o}
4063 am__minus_obj="-o $am__obj"
4064 case $depmode in
4065 gcc)
4066 # This depmode causes a compiler race in universal mode.
4067 test "$am__universal" = false || continue
4068 ;;
4069 nosideeffect)
4070 # after this tag, mechanisms are not by side-effect, so they'll
4071 # only be used when explicitly requested
4072 if test "x$enable_dependency_tracking" = xyes; then
4073 continue
4074 else
4075 break
4076 fi
4077 ;;
4078 msvisualcpp | msvcmsys)
4079 # This compiler won't grok `-c -o', but also, the minuso test has
4080 # not run yet. These depmodes are late enough in the game, and
4081 # so weak that their functioning should not be impacted.
4082 am__obj=conftest.${OBJEXT-o}
4083 am__minus_obj=
4084 ;;
4085 none) break ;;
4086 esac
4087 if depmode=$depmode \
4088 source=sub/conftest.c object=$am__obj \
4089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091 >/dev/null 2>conftest.err &&
4092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096 # icc doesn't choke on unknown options, it will just issue warnings
4097 # or remarks (even with -Werror). So we grep stderr for any message
4098 # that says an option was ignored or not supported.
4099 # When given -MP, icc 7.0 and 7.1 complain thusly:
4100 # icc: Command line warning: ignoring option '-M'; no argument required
4101 # The diagnosis changed in icc 8.0:
4102 # icc: Command line remark: option '-MP' not supported
4103 if (grep 'ignoring option' conftest.err ||
4104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105 am_cv_CC_dependencies_compiler_type=$depmode
4106 break
4107 fi
4108 fi
4109 done
4110
4111 cd ..
4112 rm -rf conftest.dir
4113 else
4114 am_cv_CC_dependencies_compiler_type=none
4115 fi
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4121
4122 if
4123 test "x$enable_dependency_tracking" != xno \
4124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4125 am__fastdepCC_TRUE=
4126 am__fastdepCC_FALSE='#'
4127 else
4128 am__fastdepCC_TRUE='#'
4129 am__fastdepCC_FALSE=
4130 fi
4131
4132
4133 ac_ext=cpp
4134 ac_cpp='$CXXCPP $CPPFLAGS'
4135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4138 if test -z "$CXX"; then
4139 if test -n "$CCC"; then
4140 CXX=$CCC
4141 else
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4144 do
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CXX+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$CXX"; then
4153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 CXX=$ac_cv_prog_CXX
4173 if test -n "$CXX"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4175 $as_echo "$CXX" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 test -n "$CXX" && break
4183 done
4184 fi
4185 if test -z "$CXX"; then
4186 ac_ct_CXX=$CXX
4187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4188 do
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$ac_ct_CXX"; then
4197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CXX="$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4217 if test -n "$ac_ct_CXX"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4219 $as_echo "$ac_ct_CXX" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 test -n "$ac_ct_CXX" && break
4227 done
4228
4229 if test "x$ac_ct_CXX" = x; then
4230 CXX="g++"
4231 else
4232 case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4237 esac
4238 CXX=$ac_ct_CXX
4239 fi
4240 fi
4241
4242 fi
4243 fi
4244 # Provide some information about the compiler.
4245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4246 set X $ac_compile
4247 ac_compiler=$2
4248 for ac_option in --version -v -V -qversion; do
4249 { { ac_try="$ac_compiler $ac_option >&5"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4257 ac_status=$?
4258 if test -s conftest.err; then
4259 sed '10a\
4260 ... rest of stderr output deleted ...
4261 10q' conftest.err >conftest.er1
4262 cat conftest.er1 >&5
4263 rm -f conftest.er1 conftest.err
4264 fi
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }
4267 done
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4271 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276
4277 int
4278 main ()
4279 {
4280 #ifndef __GNUC__
4281 choke me
4282 #endif
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4289 ac_compiler_gnu=yes
4290 else
4291 ac_compiler_gnu=no
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4298 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4300 GXX=yes
4301 else
4302 GXX=
4303 fi
4304 ac_test_CXXFLAGS=${CXXFLAGS+set}
4305 ac_save_CXXFLAGS=$CXXFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4307 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4308 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4312 ac_cxx_werror_flag=yes
4313 ac_cv_prog_cxx_g=no
4314 CXXFLAGS="-g"
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317
4318 int
4319 main ()
4320 {
4321
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327 ac_cv_prog_cxx_g=yes
4328 else
4329 CXXFLAGS=""
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_cxx_try_compile "$LINENO"; then :
4342
4343 else
4344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4345 CXXFLAGS="-g"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348
4349 int
4350 main ()
4351 {
4352
4353 ;
4354 return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_cv_prog_cxx_g=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370 CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372 if test "$GXX" = yes; then
4373 CXXFLAGS="-g -O2"
4374 else
4375 CXXFLAGS="-g"
4376 fi
4377 else
4378 if test "$GXX" = yes; then
4379 CXXFLAGS="-O2"
4380 else
4381 CXXFLAGS=
4382 fi
4383 fi
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 depcc="$CXX" am_compiler_list=
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4393 $as_echo_n "checking dependency style of $depcc... " >&6; }
4394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4398 # We make a subdir and do the tests there. Otherwise we can end up
4399 # making bogus files that we don't know about and never remove. For
4400 # instance it was reported that on HP-UX the gcc test will end up
4401 # making a dummy file named `D' -- because `-MD' means `put the output
4402 # in D'.
4403 mkdir conftest.dir
4404 # Copy depcomp to subdir because otherwise we won't find it if we're
4405 # using a relative directory.
4406 cp "$am_depcomp" conftest.dir
4407 cd conftest.dir
4408 # We will build objects and dependencies in a subdirectory because
4409 # it helps to detect inapplicable dependency modes. For instance
4410 # both Tru64's cc and ICC support -MD to output dependencies as a
4411 # side effect of compilation, but ICC will put the dependencies in
4412 # the current directory while Tru64 will put them in the object
4413 # directory.
4414 mkdir sub
4415
4416 am_cv_CXX_dependencies_compiler_type=none
4417 if test "$am_compiler_list" = ""; then
4418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4419 fi
4420 am__universal=false
4421 case " $depcc " in #(
4422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4423 esac
4424
4425 for depmode in $am_compiler_list; do
4426 # Setup a source with many dependencies, because some compilers
4427 # like to wrap large dependency lists on column 80 (with \), and
4428 # we should not choose a depcomp mode which is confused by this.
4429 #
4430 # We need to recreate these files for each test, as the compiler may
4431 # overwrite some of them when testing with obscure command lines.
4432 # This happens at least with the AIX C compiler.
4433 : > sub/conftest.c
4434 for i in 1 2 3 4 5 6; do
4435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4437 # Solaris 8's {/usr,}/bin/sh.
4438 touch sub/conftst$i.h
4439 done
4440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4441
4442 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443 # mode. It turns out that the SunPro C++ compiler does not properly
4444 # handle `-M -o', and we need to detect this. Also, some Intel
4445 # versions had trouble with output in subdirs
4446 am__obj=sub/conftest.${OBJEXT-o}
4447 am__minus_obj="-o $am__obj"
4448 case $depmode in
4449 gcc)
4450 # This depmode causes a compiler race in universal mode.
4451 test "$am__universal" = false || continue
4452 ;;
4453 nosideeffect)
4454 # after this tag, mechanisms are not by side-effect, so they'll
4455 # only be used when explicitly requested
4456 if test "x$enable_dependency_tracking" = xyes; then
4457 continue
4458 else
4459 break
4460 fi
4461 ;;
4462 msvisualcpp | msvcmsys)
4463 # This compiler won't grok `-c -o', but also, the minuso test has
4464 # not run yet. These depmodes are late enough in the game, and
4465 # so weak that their functioning should not be impacted.
4466 am__obj=conftest.${OBJEXT-o}
4467 am__minus_obj=
4468 ;;
4469 none) break ;;
4470 esac
4471 if depmode=$depmode \
4472 source=sub/conftest.c object=$am__obj \
4473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4475 >/dev/null 2>conftest.err &&
4476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4480 # icc doesn't choke on unknown options, it will just issue warnings
4481 # or remarks (even with -Werror). So we grep stderr for any message
4482 # that says an option was ignored or not supported.
4483 # When given -MP, icc 7.0 and 7.1 complain thusly:
4484 # icc: Command line warning: ignoring option '-M'; no argument required
4485 # The diagnosis changed in icc 8.0:
4486 # icc: Command line remark: option '-MP' not supported
4487 if (grep 'ignoring option' conftest.err ||
4488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4489 am_cv_CXX_dependencies_compiler_type=$depmode
4490 break
4491 fi
4492 fi
4493 done
4494
4495 cd ..
4496 rm -rf conftest.dir
4497 else
4498 am_cv_CXX_dependencies_compiler_type=none
4499 fi
4500
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4503 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4504 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4505
4506 if
4507 test "x$enable_dependency_tracking" != xno \
4508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4509 am__fastdepCXX_TRUE=
4510 am__fastdepCXX_FALSE='#'
4511 else
4512 am__fastdepCXX_TRUE='#'
4513 am__fastdepCXX_FALSE=
4514 fi
4515
4516
4517 # By default we simply use the C compiler to build assembly code.
4518
4519 test "${CCAS+set}" = set || CCAS=$CC
4520 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4521
4522
4523
4524 depcc="$CCAS" am_compiler_list=
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 $as_echo_n "checking dependency style of $depcc... " >&6; }
4528 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532 # We make a subdir and do the tests there. Otherwise we can end up
4533 # making bogus files that we don't know about and never remove. For
4534 # instance it was reported that on HP-UX the gcc test will end up
4535 # making a dummy file named `D' -- because `-MD' means `put the output
4536 # in D'.
4537 mkdir conftest.dir
4538 # Copy depcomp to subdir because otherwise we won't find it if we're
4539 # using a relative directory.
4540 cp "$am_depcomp" conftest.dir
4541 cd conftest.dir
4542 # We will build objects and dependencies in a subdirectory because
4543 # it helps to detect inapplicable dependency modes. For instance
4544 # both Tru64's cc and ICC support -MD to output dependencies as a
4545 # side effect of compilation, but ICC will put the dependencies in
4546 # the current directory while Tru64 will put them in the object
4547 # directory.
4548 mkdir sub
4549
4550 am_cv_CCAS_dependencies_compiler_type=none
4551 if test "$am_compiler_list" = ""; then
4552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 fi
4554 am__universal=false
4555
4556
4557 for depmode in $am_compiler_list; do
4558 # Setup a source with many dependencies, because some compilers
4559 # like to wrap large dependency lists on column 80 (with \), and
4560 # we should not choose a depcomp mode which is confused by this.
4561 #
4562 # We need to recreate these files for each test, as the compiler may
4563 # overwrite some of them when testing with obscure command lines.
4564 # This happens at least with the AIX C compiler.
4565 : > sub/conftest.c
4566 for i in 1 2 3 4 5 6; do
4567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4569 # Solaris 8's {/usr,}/bin/sh.
4570 touch sub/conftst$i.h
4571 done
4572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4573
4574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4575 # mode. It turns out that the SunPro C++ compiler does not properly
4576 # handle `-M -o', and we need to detect this. Also, some Intel
4577 # versions had trouble with output in subdirs
4578 am__obj=sub/conftest.${OBJEXT-o}
4579 am__minus_obj="-o $am__obj"
4580 case $depmode in
4581 gcc)
4582 # This depmode causes a compiler race in universal mode.
4583 test "$am__universal" = false || continue
4584 ;;
4585 nosideeffect)
4586 # after this tag, mechanisms are not by side-effect, so they'll
4587 # only be used when explicitly requested
4588 if test "x$enable_dependency_tracking" = xyes; then
4589 continue
4590 else
4591 break
4592 fi
4593 ;;
4594 msvisualcpp | msvcmsys)
4595 # This compiler won't grok `-c -o', but also, the minuso test has
4596 # not run yet. These depmodes are late enough in the game, and
4597 # so weak that their functioning should not be impacted.
4598 am__obj=conftest.${OBJEXT-o}
4599 am__minus_obj=
4600 ;;
4601 none) break ;;
4602 esac
4603 if depmode=$depmode \
4604 source=sub/conftest.c object=$am__obj \
4605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4607 >/dev/null 2>conftest.err &&
4608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4612 # icc doesn't choke on unknown options, it will just issue warnings
4613 # or remarks (even with -Werror). So we grep stderr for any message
4614 # that says an option was ignored or not supported.
4615 # When given -MP, icc 7.0 and 7.1 complain thusly:
4616 # icc: Command line warning: ignoring option '-M'; no argument required
4617 # The diagnosis changed in icc 8.0:
4618 # icc: Command line remark: option '-MP' not supported
4619 if (grep 'ignoring option' conftest.err ||
4620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4621 am_cv_CCAS_dependencies_compiler_type=$depmode
4622 break
4623 fi
4624 fi
4625 done
4626
4627 cd ..
4628 rm -rf conftest.dir
4629 else
4630 am_cv_CCAS_dependencies_compiler_type=none
4631 fi
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4635 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4636 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4637
4638 if
4639 test "x$enable_dependency_tracking" != xno \
4640 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4641 am__fastdepCCAS_TRUE=
4642 am__fastdepCCAS_FALSE='#'
4643 else
4644 am__fastdepCCAS_TRUE='#'
4645 am__fastdepCCAS_FALSE=
4646 fi
4647
4648
4649
4650 enable_dlopen=yes
4651
4652
4653
4654 case `pwd` in
4655 *\ * | *\ *)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4657 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4658 esac
4659
4660
4661
4662 macro_version='2.2.7a'
4663 macro_revision='1.3134'
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677 ltmain="$ac_aux_dir/ltmain.sh"
4678
4679 # Backslashify metacharacters that are still active within
4680 # double-quoted strings.
4681 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4682
4683 # Same as above, but do not quote variable references.
4684 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4685
4686 # Sed substitution to delay expansion of an escaped shell variable in a
4687 # double_quote_subst'ed string.
4688 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4689
4690 # Sed substitution to delay expansion of an escaped single quote.
4691 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4692
4693 # Sed substitution to avoid accidental globbing in evaled expressions
4694 no_glob_subst='s/\*/\\\*/g'
4695
4696 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4697 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4698 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4701 $as_echo_n "checking how to print strings... " >&6; }
4702 # Test print first, because it will be a builtin if present.
4703 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4704 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4705 ECHO='print -r --'
4706 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4707 ECHO='printf %s\n'
4708 else
4709 # Use this function as a fallback that always works.
4710 func_fallback_echo ()
4711 {
4712 eval 'cat <<_LTECHO_EOF
4713 $1
4714 _LTECHO_EOF'
4715 }
4716 ECHO='func_fallback_echo'
4717 fi
4718
4719 # func_echo_all arg...
4720 # Invoke $ECHO with all args, space-separated.
4721 func_echo_all ()
4722 {
4723 $ECHO ""
4724 }
4725
4726 case "$ECHO" in
4727 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4728 $as_echo "printf" >&6; } ;;
4729 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4730 $as_echo "print -r" >&6; } ;;
4731 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4732 $as_echo "cat" >&6; } ;;
4733 esac
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4749 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4750 if test "${ac_cv_path_SED+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4754 for ac_i in 1 2 3 4 5 6 7; do
4755 ac_script="$ac_script$as_nl$ac_script"
4756 done
4757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4758 { ac_script=; unset ac_script;}
4759 if test -z "$SED"; then
4760 ac_path_SED_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in sed gsed; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4771 # Check for GNU ac_path_SED and select it if it is found.
4772 # Check for GNU $ac_path_SED
4773 case `"$ac_path_SED" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4776 *)
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo '' >> "conftest.nl"
4785 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_SED_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_SED="$ac_path_SED"
4791 ac_path_SED_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4798
4799 $ac_path_SED_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_SED"; then
4805 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4806 fi
4807 else
4808 ac_cv_path_SED=$SED
4809 fi
4810
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4813 $as_echo "$ac_cv_path_SED" >&6; }
4814 SED="$ac_cv_path_SED"
4815 rm -f conftest.sed
4816
4817 test -z "$SED" && SED=sed
4818 Xsed="$SED -e 1s/^X//"
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4832 if test "${ac_cv_path_GREP+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -z "$GREP"; then
4836 ac_path_GREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in grep ggrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4847 # Check for GNU ac_path_GREP and select it if it is found.
4848 # Check for GNU $ac_path_GREP
4849 case `"$ac_path_GREP" --version 2>&1` in
4850 *GNU*)
4851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852 *)
4853 ac_count=0
4854 $as_echo_n 0123456789 >"conftest.in"
4855 while :
4856 do
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'GREP' >> "conftest.nl"
4861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_GREP="$ac_path_GREP"
4867 ac_path_GREP_max=$ac_count
4868 fi
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4871 done
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 esac
4874
4875 $ac_path_GREP_found && break 3
4876 done
4877 done
4878 done
4879 IFS=$as_save_IFS
4880 if test -z "$ac_cv_path_GREP"; then
4881 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 fi
4883 else
4884 ac_cv_path_GREP=$GREP
4885 fi
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889 $as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894 $as_echo_n "checking for egrep... " >&6; }
4895 if test "${ac_cv_path_EGREP+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899 then ac_cv_path_EGREP="$GREP -E"
4900 else
4901 if test -z "$EGREP"; then
4902 ac_path_EGREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_prog in egrep; do
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4912 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4913 # Check for GNU ac_path_EGREP and select it if it is found.
4914 # Check for GNU $ac_path_EGREP
4915 case `"$ac_path_EGREP" --version 2>&1` in
4916 *GNU*)
4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918 *)
4919 ac_count=0
4920 $as_echo_n 0123456789 >"conftest.in"
4921 while :
4922 do
4923 cat "conftest.in" "conftest.in" >"conftest.tmp"
4924 mv "conftest.tmp" "conftest.in"
4925 cp "conftest.in" "conftest.nl"
4926 $as_echo 'EGREP' >> "conftest.nl"
4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929 as_fn_arith $ac_count + 1 && ac_count=$as_val
4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931 # Best one so far, save it but keep looking for a better one
4932 ac_cv_path_EGREP="$ac_path_EGREP"
4933 ac_path_EGREP_max=$ac_count
4934 fi
4935 # 10*(2^10) chars as input seems more than enough
4936 test $ac_count -gt 10 && break
4937 done
4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 esac
4940
4941 $ac_path_EGREP_found && break 3
4942 done
4943 done
4944 done
4945 IFS=$as_save_IFS
4946 if test -z "$ac_cv_path_EGREP"; then
4947 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4948 fi
4949 else
4950 ac_cv_path_EGREP=$EGREP
4951 fi
4952
4953 fi
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956 $as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4961 $as_echo_n "checking for fgrep... " >&6; }
4962 if test "${ac_cv_path_FGREP+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4966 then ac_cv_path_FGREP="$GREP -F"
4967 else
4968 if test -z "$FGREP"; then
4969 ac_path_FGREP_found=false
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4973 do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_prog in fgrep; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4979 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4980 # Check for GNU ac_path_FGREP and select it if it is found.
4981 # Check for GNU $ac_path_FGREP
4982 case `"$ac_path_FGREP" --version 2>&1` in
4983 *GNU*)
4984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4985 *)
4986 ac_count=0
4987 $as_echo_n 0123456789 >"conftest.in"
4988 while :
4989 do
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
4993 $as_echo 'FGREP' >> "conftest.nl"
4994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
4997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4998 # Best one so far, save it but keep looking for a better one
4999 ac_cv_path_FGREP="$ac_path_FGREP"
5000 ac_path_FGREP_max=$ac_count
5001 fi
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5004 done
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 esac
5007
5008 $ac_path_FGREP_found && break 3
5009 done
5010 done
5011 done
5012 IFS=$as_save_IFS
5013 if test -z "$ac_cv_path_FGREP"; then
5014 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5015 fi
5016 else
5017 ac_cv_path_FGREP=$FGREP
5018 fi
5019
5020 fi
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5023 $as_echo "$ac_cv_path_FGREP" >&6; }
5024 FGREP="$ac_cv_path_FGREP"
5025
5026
5027 test -z "$GREP" && GREP=grep
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 # Check whether --with-gnu-ld was given.
5048 if test "${with_gnu_ld+set}" = set; then :
5049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5050 else
5051 with_gnu_ld=no
5052 fi
5053
5054 ac_prog=ld
5055 if test "$GCC" = yes; then
5056 # Check if gcc -print-prog-name=ld gives a path.
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5058 $as_echo_n "checking for ld used by $CC... " >&6; }
5059 case $host in
5060 *-*-mingw*)
5061 # gcc leaves a trailing carriage return which upsets mingw
5062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5063 *)
5064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5065 esac
5066 case $ac_prog in
5067 # Accept absolute paths.
5068 [\\/]* | ?:[\\/]*)
5069 re_direlt='/[^/][^/]*/\.\./'
5070 # Canonicalize the pathname of ld
5071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5074 done
5075 test -z "$LD" && LD="$ac_prog"
5076 ;;
5077 "")
5078 # If it fails, then pretend we aren't using GCC.
5079 ac_prog=ld
5080 ;;
5081 *)
5082 # If it is relative, then search for the first ld in PATH.
5083 with_gnu_ld=unknown
5084 ;;
5085 esac
5086 elif test "$with_gnu_ld" = yes; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5088 $as_echo_n "checking for GNU ld... " >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5091 $as_echo_n "checking for non-GNU ld... " >&6; }
5092 fi
5093 if test "${lt_cv_path_LD+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -z "$LD"; then
5097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5098 for ac_dir in $PATH; do
5099 IFS="$lt_save_ifs"
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5102 lt_cv_path_LD="$ac_dir/$ac_prog"
5103 # Check to see if the program is GNU ld. I'd rather use --version,
5104 # but apparently some variants of GNU ld only accept -v.
5105 # Break only if it was the GNU/non-GNU ld that we prefer.
5106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5107 *GNU* | *'with BFD'*)
5108 test "$with_gnu_ld" != no && break
5109 ;;
5110 *)
5111 test "$with_gnu_ld" != yes && break
5112 ;;
5113 esac
5114 fi
5115 done
5116 IFS="$lt_save_ifs"
5117 else
5118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5119 fi
5120 fi
5121
5122 LD="$lt_cv_path_LD"
5123 if test -n "$LD"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5125 $as_echo "$LD" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5132 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5133 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5137 case `$LD -v 2>&1 </dev/null` in
5138 *GNU* | *'with BFD'*)
5139 lt_cv_prog_gnu_ld=yes
5140 ;;
5141 *)
5142 lt_cv_prog_gnu_ld=no
5143 ;;
5144 esac
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5147 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5148 with_gnu_ld=$lt_cv_prog_gnu_ld
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5159 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5160 if test "${lt_cv_path_NM+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$NM"; then
5164 # Let the user override the test.
5165 lt_cv_path_NM="$NM"
5166 else
5167 lt_nm_to_check="${ac_tool_prefix}nm"
5168 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5169 lt_nm_to_check="$lt_nm_to_check nm"
5170 fi
5171 for lt_tmp_nm in $lt_nm_to_check; do
5172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5173 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5174 IFS="$lt_save_ifs"
5175 test -z "$ac_dir" && ac_dir=.
5176 tmp_nm="$ac_dir/$lt_tmp_nm"
5177 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5178 # Check to see if the nm accepts a BSD-compat flag.
5179 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5180 # nm: unknown option "B" ignored
5181 # Tru64's nm complains that /dev/null is an invalid object file
5182 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5183 */dev/null* | *'Invalid file or object type'*)
5184 lt_cv_path_NM="$tmp_nm -B"
5185 break
5186 ;;
5187 *)
5188 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5189 */dev/null*)
5190 lt_cv_path_NM="$tmp_nm -p"
5191 break
5192 ;;
5193 *)
5194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5195 continue # so that we can try to find one that supports BSD flags
5196 ;;
5197 esac
5198 ;;
5199 esac
5200 fi
5201 done
5202 IFS="$lt_save_ifs"
5203 done
5204 : ${lt_cv_path_NM=no}
5205 fi
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5208 $as_echo "$lt_cv_path_NM" >&6; }
5209 if test "$lt_cv_path_NM" != "no"; then
5210 NM="$lt_cv_path_NM"
5211 else
5212 # Didn't find any BSD compatible name lister, look for dumpbin.
5213 if test -n "$DUMPBIN"; then :
5214 # Let the user override the test.
5215 else
5216 if test -n "$ac_tool_prefix"; then
5217 for ac_prog in dumpbin "link -dump"
5218 do
5219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$DUMPBIN"; then
5227 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 DUMPBIN=$ac_cv_prog_DUMPBIN
5247 if test -n "$DUMPBIN"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5249 $as_echo "$DUMPBIN" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256 test -n "$DUMPBIN" && break
5257 done
5258 fi
5259 if test -z "$DUMPBIN"; then
5260 ac_ct_DUMPBIN=$DUMPBIN
5261 for ac_prog in dumpbin "link -dump"
5262 do
5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$ac_ct_DUMPBIN"; then
5271 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5291 if test -n "$ac_ct_DUMPBIN"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5293 $as_echo "$ac_ct_DUMPBIN" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 test -n "$ac_ct_DUMPBIN" && break
5301 done
5302
5303 if test "x$ac_ct_DUMPBIN" = x; then
5304 DUMPBIN=":"
5305 else
5306 case $cross_compiling:$ac_tool_warned in
5307 yes:)
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310 ac_tool_warned=yes ;;
5311 esac
5312 DUMPBIN=$ac_ct_DUMPBIN
5313 fi
5314 fi
5315
5316 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5317 *COFF*)
5318 DUMPBIN="$DUMPBIN -symbols"
5319 ;;
5320 *)
5321 DUMPBIN=:
5322 ;;
5323 esac
5324 fi
5325
5326 if test "$DUMPBIN" != ":"; then
5327 NM="$DUMPBIN"
5328 fi
5329 fi
5330 test -z "$NM" && NM=nm
5331
5332
5333
5334
5335
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5338 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5339 if test "${lt_cv_nm_interface+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 lt_cv_nm_interface="BSD nm"
5343 echo "int some_variable = 0;" > conftest.$ac_ext
5344 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5345 (eval "$ac_compile" 2>conftest.err)
5346 cat conftest.err >&5
5347 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5348 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5349 cat conftest.err >&5
5350 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5351 cat conftest.out >&5
5352 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5353 lt_cv_nm_interface="MS dumpbin"
5354 fi
5355 rm -f conftest*
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5358 $as_echo "$lt_cv_nm_interface" >&6; }
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5361 $as_echo_n "checking whether ln -s works... " >&6; }
5362 LN_S=$as_ln_s
5363 if test "$LN_S" = "ln -s"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5368 $as_echo "no, using $LN_S" >&6; }
5369 fi
5370
5371 # find the maximum length of command line arguments
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5373 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 i=0
5378 teststring="ABCD"
5379
5380 case $build_os in
5381 msdosdjgpp*)
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5387 ;;
5388
5389 gnu*)
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len=-1;
5394 ;;
5395
5396 cygwin* | mingw* | cegcc*)
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 mint*)
5408 # On MiNT this can take a long time and run out of memory.
5409 lt_cv_sys_max_cmd_len=8192;
5410 ;;
5411
5412 amigaos*)
5413 # On AmigaOS with pdksh, this test takes hours, literally.
5414 # So we just punt and use a minimum line length of 8192.
5415 lt_cv_sys_max_cmd_len=8192;
5416 ;;
5417
5418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5419 # This has been around since 386BSD, at least. Likely further.
5420 if test -x /sbin/sysctl; then
5421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5422 elif test -x /usr/sbin/sysctl; then
5423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5424 else
5425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5426 fi
5427 # And add a safety zone
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430 ;;
5431
5432 interix*)
5433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5434 lt_cv_sys_max_cmd_len=196608
5435 ;;
5436
5437 osf*)
5438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5440 # nice to cause kernel panics so lets avoid the loop below.
5441 # First set a reasonable default.
5442 lt_cv_sys_max_cmd_len=16384
5443 #
5444 if test -x /sbin/sysconfig; then
5445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5447 esac
5448 fi
5449 ;;
5450 sco3.2v5*)
5451 lt_cv_sys_max_cmd_len=102400
5452 ;;
5453 sysv5* | sco5v6* | sysv4.2uw2*)
5454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5455 if test -n "$kargmax"; then
5456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5457 else
5458 lt_cv_sys_max_cmd_len=32768
5459 fi
5460 ;;
5461 *)
5462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5463 if test -n "$lt_cv_sys_max_cmd_len"; then
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466 else
5467 # Make teststring a little bigger before we do anything with it.
5468 # a 1K string should be a reasonable start.
5469 for i in 1 2 3 4 5 6 7 8 ; do
5470 teststring=$teststring$teststring
5471 done
5472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5473 # If test is not a shell built-in, we'll probably end up computing a
5474 # maximum length that is only half of the actual maximum length, but
5475 # we can't tell.
5476 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5477 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5478 test $i != 17 # 1/2 MB should be enough
5479 do
5480 i=`expr $i + 1`
5481 teststring=$teststring$teststring
5482 done
5483 # Only check the string length outside the loop.
5484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5485 teststring=
5486 # Add a significant safety factor because C++ compilers can tack on
5487 # massive amounts of additional arguments before passing them to the
5488 # linker. It appears as though 1/2 is a usable value.
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490 fi
5491 ;;
5492 esac
5493
5494 fi
5495
5496 if test -n $lt_cv_sys_max_cmd_len ; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5501 $as_echo "none" >&6; }
5502 fi
5503 max_cmd_len=$lt_cv_sys_max_cmd_len
5504
5505
5506
5507
5508
5509
5510 : ${CP="cp -f"}
5511 : ${MV="mv -f"}
5512 : ${RM="rm -f"}
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5515 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5516 # Try some XSI features
5517 xsi_shell=no
5518 ( _lt_dummy="a/b/c"
5519 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5520 = c,a/b,, \
5521 && eval 'test $(( 1 + 1 )) -eq 2 \
5522 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5523 && xsi_shell=yes
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5525 $as_echo "$xsi_shell" >&6; }
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5529 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5530 lt_shell_append=no
5531 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5532 >/dev/null 2>&1 \
5533 && lt_shell_append=yes
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5535 $as_echo "$lt_shell_append" >&6; }
5536
5537
5538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5539 lt_unset=unset
5540 else
5541 lt_unset=false
5542 fi
5543
5544
5545
5546
5547
5548 # test EBCDIC or ASCII
5549 case `echo X|tr X '\101'` in
5550 A) # ASCII based system
5551 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5552 lt_SP2NL='tr \040 \012'
5553 lt_NL2SP='tr \015\012 \040\040'
5554 ;;
5555 *) # EBCDIC based system
5556 lt_SP2NL='tr \100 \n'
5557 lt_NL2SP='tr \r\n \100\100'
5558 ;;
5559 esac
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5570 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5571 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_ld_reload_flag='-r'
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5577 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5578 reload_flag=$lt_cv_ld_reload_flag
5579 case $reload_flag in
5580 "" | " "*) ;;
5581 *) reload_flag=" $reload_flag" ;;
5582 esac
5583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5584 case $host_os in
5585 darwin*)
5586 if test "$GCC" = yes; then
5587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5588 else
5589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5590 fi
5591 ;;
5592 esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5604 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$OBJDUMP"; then
5611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 OBJDUMP=$ac_cv_prog_OBJDUMP
5631 if test -n "$OBJDUMP"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5633 $as_echo "$OBJDUMP" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 fi
5641 if test -z "$ac_cv_prog_OBJDUMP"; then
5642 ac_ct_OBJDUMP=$OBJDUMP
5643 # Extract the first word of "objdump", so it can be a program name with args.
5644 set dummy objdump; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$ac_ct_OBJDUMP"; then
5651 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5671 if test -n "$ac_ct_OBJDUMP"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5673 $as_echo "$ac_ct_OBJDUMP" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679 if test "x$ac_ct_OBJDUMP" = x; then
5680 OBJDUMP="false"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683 yes:)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 OBJDUMP=$ac_ct_OBJDUMP
5689 fi
5690 else
5691 OBJDUMP="$ac_cv_prog_OBJDUMP"
5692 fi
5693
5694 test -z "$OBJDUMP" && OBJDUMP=objdump
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5705 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5706 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 lt_cv_file_magic_cmd='$MAGIC_CMD'
5710 lt_cv_file_magic_test_file=
5711 lt_cv_deplibs_check_method='unknown'
5712 # Need to set the preceding variable on all platforms that support
5713 # interlibrary dependencies.
5714 # 'none' -- dependencies not supported.
5715 # `unknown' -- same as none, but documents that we really don't know.
5716 # 'pass_all' -- all dependencies passed with no checks.
5717 # 'test_compile' -- check by making test program.
5718 # 'file_magic [[regex]]' -- check by looking for files in library path
5719 # which responds to the $file_magic_cmd with a given extended regex.
5720 # If you have `file' or equivalent on your system and you're not sure
5721 # whether `pass_all' will *always* work, you probably want this one.
5722
5723 case $host_os in
5724 aix[4-9]*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728 beos*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 bsdi[45]*)
5733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5734 lt_cv_file_magic_cmd='/usr/bin/file -L'
5735 lt_cv_file_magic_test_file=/shlib/libc.so
5736 ;;
5737
5738 cygwin*)
5739 # func_win32_libid is a shell function defined in ltmain.sh
5740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5741 lt_cv_file_magic_cmd='func_win32_libid'
5742 ;;
5743
5744 mingw* | pw32*)
5745 # Base MSYS/MinGW do not provide the 'file' command needed by
5746 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5747 # unless we find 'file', for example because we are cross-compiling.
5748 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5749 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5751 lt_cv_file_magic_cmd='func_win32_libid'
5752 else
5753 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5754 lt_cv_file_magic_cmd='$OBJDUMP -f'
5755 fi
5756 ;;
5757
5758 cegcc*)
5759 # use the weaker test based on 'objdump'. See mingw*.
5760 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5761 lt_cv_file_magic_cmd='$OBJDUMP -f'
5762 ;;
5763
5764 darwin* | rhapsody*)
5765 lt_cv_deplibs_check_method=pass_all
5766 ;;
5767
5768 freebsd* | dragonfly*)
5769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5770 case $host_cpu in
5771 i*86 )
5772 # Not sure whether the presence of OpenBSD here was a mistake.
5773 # Let's accept both of them until this is cleared up.
5774 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5777 ;;
5778 esac
5779 else
5780 lt_cv_deplibs_check_method=pass_all
5781 fi
5782 ;;
5783
5784 gnu*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 haiku*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 hpux10.20* | hpux11*)
5793 lt_cv_file_magic_cmd=/usr/bin/file
5794 case $host_cpu in
5795 ia64*)
5796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5798 ;;
5799 hppa*64*)
5800 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]'
5801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5802 ;;
5803 *)
5804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5805 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5806 ;;
5807 esac
5808 ;;
5809
5810 interix[3-9]*)
5811 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5813 ;;
5814
5815 irix5* | irix6* | nonstopux*)
5816 case $LD in
5817 *-32|*"-32 ") libmagic=32-bit;;
5818 *-n32|*"-n32 ") libmagic=N32;;
5819 *-64|*"-64 ") libmagic=64-bit;;
5820 *) libmagic=never-match;;
5821 esac
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 # This must be Linux ELF.
5826 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830 netbsd*)
5831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5833 else
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5835 fi
5836 ;;
5837
5838 newos6*)
5839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5840 lt_cv_file_magic_cmd=/usr/bin/file
5841 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5842 ;;
5843
5844 *nto* | *qnx*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848 openbsd*)
5849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5851 else
5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5853 fi
5854 ;;
5855
5856 osf3* | osf4* | osf5*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860 rdos*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864 solaris*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871
5872 sysv4 | sysv4.3*)
5873 case $host_vendor in
5874 motorola)
5875 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]'
5876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5877 ;;
5878 ncr)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881 sequent)
5882 lt_cv_file_magic_cmd='/bin/file'
5883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5884 ;;
5885 sni)
5886 lt_cv_file_magic_cmd='/bin/file'
5887 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5888 lt_cv_file_magic_test_file=/lib/libc.so
5889 ;;
5890 siemens)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893 pc)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896 esac
5897 ;;
5898
5899 tpf*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902 esac
5903
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5906 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5907 file_magic_cmd=$lt_cv_file_magic_cmd
5908 deplibs_check_method=$lt_cv_deplibs_check_method
5909 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 if test -n "$ac_tool_prefix"; then
5923 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5924 set dummy ${ac_tool_prefix}ar; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_AR+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$AR"; then
5931 ac_cv_prog_AR="$AR" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_AR="${ac_tool_prefix}ar"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 AR=$ac_cv_prog_AR
5951 if test -n "$AR"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5953 $as_echo "$AR" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960 fi
5961 if test -z "$ac_cv_prog_AR"; then
5962 ac_ct_AR=$AR
5963 # Extract the first word of "ar", so it can be a program name with args.
5964 set dummy ar; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if test -n "$ac_ct_AR"; then
5971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_prog_ac_ct_AR="ar"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5991 if test -n "$ac_ct_AR"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5993 $as_echo "$ac_ct_AR" >&6; }
5994 else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999 if test "x$ac_ct_AR" = x; then
6000 AR="false"
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003 yes:)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006 ac_tool_warned=yes ;;
6007 esac
6008 AR=$ac_ct_AR
6009 fi
6010 else
6011 AR="$ac_cv_prog_AR"
6012 fi
6013
6014 test -z "$AR" && AR=ar
6015 test -z "$AR_FLAGS" && AR_FLAGS=cru
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}strip; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_STRIP+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$STRIP"; then
6036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 STRIP=$ac_cv_prog_STRIP
6056 if test -n "$STRIP"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6058 $as_echo "$STRIP" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 fi
6066 if test -z "$ac_cv_prog_STRIP"; then
6067 ac_ct_STRIP=$STRIP
6068 # Extract the first word of "strip", so it can be a program name with args.
6069 set dummy strip; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_STRIP"; then
6076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_ac_ct_STRIP="strip"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6096 if test -n "$ac_ct_STRIP"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6098 $as_echo "$ac_ct_STRIP" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104 if test "x$ac_ct_STRIP" = x; then
6105 STRIP=":"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 STRIP=$ac_ct_STRIP
6114 fi
6115 else
6116 STRIP="$ac_cv_prog_STRIP"
6117 fi
6118
6119 test -z "$STRIP" && STRIP=:
6120
6121
6122
6123
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_RANLIB" = x; then
6204 RANLIB=":"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 RANLIB=$ac_ct_RANLIB
6213 fi
6214 else
6215 RANLIB="$ac_cv_prog_RANLIB"
6216 fi
6217
6218 test -z "$RANLIB" && RANLIB=:
6219
6220
6221
6222
6223
6224
6225 # Determine commands to create old-style static archives.
6226 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6227 old_postinstall_cmds='chmod 644 $oldlib'
6228 old_postuninstall_cmds=
6229
6230 if test -n "$RANLIB"; then
6231 case $host_os in
6232 openbsd*)
6233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6234 ;;
6235 *)
6236 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6237 ;;
6238 esac
6239 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6240 fi
6241
6242 case $host_os in
6243 darwin*)
6244 lock_old_archive_extraction=yes ;;
6245 *)
6246 lock_old_archive_extraction=no ;;
6247 esac
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 # If no C compiler was specified, use CC.
6288 LTCC=${LTCC-"$CC"}
6289
6290 # If no C compiler flags were specified, use CFLAGS.
6291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6292
6293 # Allow CC to be a program name with arguments.
6294 compiler=$CC
6295
6296
6297 # Check for command to grab the raw symbol name followed by C symbol from nm.
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6299 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6300 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303
6304 # These are sane defaults that work on at least a few old systems.
6305 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6306
6307 # Character class describing NM global symbol codes.
6308 symcode='[BCDEGRST]'
6309
6310 # Regexp to match symbols that can be accessed directly from C.
6311 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6312
6313 # Define system-specific variables.
6314 case $host_os in
6315 aix*)
6316 symcode='[BCDT]'
6317 ;;
6318 cygwin* | mingw* | pw32* | cegcc*)
6319 symcode='[ABCDGISTW]'
6320 ;;
6321 hpux*)
6322 if test "$host_cpu" = ia64; then
6323 symcode='[ABCDEGRST]'
6324 fi
6325 ;;
6326 irix* | nonstopux*)
6327 symcode='[BCDEGRST]'
6328 ;;
6329 osf*)
6330 symcode='[BCDEGQRST]'
6331 ;;
6332 solaris*)
6333 symcode='[BDRT]'
6334 ;;
6335 sco3.2v5*)
6336 symcode='[DT]'
6337 ;;
6338 sysv4.2uw2*)
6339 symcode='[DT]'
6340 ;;
6341 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342 symcode='[ABDT]'
6343 ;;
6344 sysv4)
6345 symcode='[DFNSTU]'
6346 ;;
6347 esac
6348
6349 # If we're using GNU nm, then use its standard symbol codes.
6350 case `$NM -V 2>&1` in
6351 *GNU* | *'with BFD'*)
6352 symcode='[ABCDGIRSTW]' ;;
6353 esac
6354
6355 # Transform an extracted symbol line into a proper C declaration.
6356 # Some systems (esp. on ia64) link data and code symbols differently,
6357 # so use this general approach.
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359
6360 # Transform an extracted symbol line into symbol name and symbol address
6361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6362 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'"
6363
6364 # Handle CRLF in mingw tool chain
6365 opt_cr=
6366 case $build_os in
6367 mingw*)
6368 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6369 ;;
6370 esac
6371
6372 # Try without a prefix underscore, then with it.
6373 for ac_symprfx in "" "_"; do
6374
6375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6376 symxfrm="\\1 $ac_symprfx\\2 \\2"
6377
6378 # Write the raw and C identifiers.
6379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6380 # Fake it for dumpbin and say T for any non-static function
6381 # and D for any global variable.
6382 # Also find C++ and __fastcall symbols from MSVC++,
6383 # which start with @ or ?.
6384 lt_cv_sys_global_symbol_pipe="$AWK '"\
6385 " {last_section=section; section=\$ 3};"\
6386 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6387 " \$ 0!~/External *\|/{next};"\
6388 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6389 " {if(hide[section]) next};"\
6390 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6391 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6392 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6393 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6394 " ' prfx=^$ac_symprfx"
6395 else
6396 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6397 fi
6398
6399 # Check to see that the pipe works correctly.
6400 pipe_works=no
6401
6402 rm -f conftest*
6403 cat > conftest.$ac_ext <<_LT_EOF
6404 #ifdef __cplusplus
6405 extern "C" {
6406 #endif
6407 char nm_test_var;
6408 void nm_test_func(void);
6409 void nm_test_func(void){}
6410 #ifdef __cplusplus
6411 }
6412 #endif
6413 int main(){nm_test_var='a';nm_test_func();return(0);}
6414 _LT_EOF
6415
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 # Now try to grab the symbols.
6422 nlist=conftest.nm
6423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6424 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6425 ac_status=$?
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; } && test -s "$nlist"; then
6428 # Try sorting and uniquifying the output.
6429 if sort "$nlist" | uniq > "$nlist"T; then
6430 mv -f "$nlist"T "$nlist"
6431 else
6432 rm -f "$nlist"T
6433 fi
6434
6435 # Make sure that we snagged all the symbols we need.
6436 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6437 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6438 cat <<_LT_EOF > conftest.$ac_ext
6439 #ifdef __cplusplus
6440 extern "C" {
6441 #endif
6442
6443 _LT_EOF
6444 # Now generate the symbol file.
6445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6446
6447 cat <<_LT_EOF >> conftest.$ac_ext
6448
6449 /* The mapping between symbol names and symbols. */
6450 const struct {
6451 const char *name;
6452 void *address;
6453 }
6454 lt__PROGRAM__LTX_preloaded_symbols[] =
6455 {
6456 { "@PROGRAM@", (void *) 0 },
6457 _LT_EOF
6458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6459 cat <<\_LT_EOF >> conftest.$ac_ext
6460 {0, (void *) 0}
6461 };
6462
6463 /* This works around a problem in FreeBSD linker */
6464 #ifdef FREEBSD_WORKAROUND
6465 static const void *lt_preloaded_setup() {
6466 return lt__PROGRAM__LTX_preloaded_symbols;
6467 }
6468 #endif
6469
6470 #ifdef __cplusplus
6471 }
6472 #endif
6473 _LT_EOF
6474 # Now try linking the two files.
6475 mv conftest.$ac_objext conftstm.$ac_objext
6476 lt_save_LIBS="$LIBS"
6477 lt_save_CFLAGS="$CFLAGS"
6478 LIBS="conftstm.$ac_objext"
6479 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6485 pipe_works=yes
6486 fi
6487 LIBS="$lt_save_LIBS"
6488 CFLAGS="$lt_save_CFLAGS"
6489 else
6490 echo "cannot find nm_test_func in $nlist" >&5
6491 fi
6492 else
6493 echo "cannot find nm_test_var in $nlist" >&5
6494 fi
6495 else
6496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6497 fi
6498 else
6499 echo "$progname: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 fi
6502 rm -rf conftest* conftst*
6503
6504 # Do not use the global_symbol_pipe unless it works.
6505 if test "$pipe_works" = yes; then
6506 break
6507 else
6508 lt_cv_sys_global_symbol_pipe=
6509 fi
6510 done
6511
6512 fi
6513
6514 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6515 lt_cv_sys_global_symbol_to_cdecl=
6516 fi
6517 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6519 $as_echo "failed" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6522 $as_echo "ok" >&6; }
6523 fi
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 # Check whether --enable-libtool-lock was given.
6548 if test "${enable_libtool_lock+set}" = set; then :
6549 enableval=$enable_libtool_lock;
6550 fi
6551
6552 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6553
6554 # Some flags need to be propagated to the compiler or linker for good
6555 # libtool support.
6556 case $host in
6557 ia64-*-hpux*)
6558 # Find out which ABI we are using.
6559 echo 'int i;' > conftest.$ac_ext
6560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6561 (eval $ac_compile) 2>&5
6562 ac_status=$?
6563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564 test $ac_status = 0; }; then
6565 case `/usr/bin/file conftest.$ac_objext` in
6566 *ELF-32*)
6567 HPUX_IA64_MODE="32"
6568 ;;
6569 *ELF-64*)
6570 HPUX_IA64_MODE="64"
6571 ;;
6572 esac
6573 fi
6574 rm -rf conftest*
6575 ;;
6576 *-*-irix6*)
6577 # Find out which ABI we are using.
6578 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 if test "$lt_cv_prog_gnu_ld" = yes; then
6585 case `/usr/bin/file conftest.$ac_objext` in
6586 *32-bit*)
6587 LD="${LD-ld} -melf32bsmip"
6588 ;;
6589 *N32*)
6590 LD="${LD-ld} -melf32bmipn32"
6591 ;;
6592 *64-bit*)
6593 LD="${LD-ld} -melf64bmip"
6594 ;;
6595 esac
6596 else
6597 case `/usr/bin/file conftest.$ac_objext` in
6598 *32-bit*)
6599 LD="${LD-ld} -32"
6600 ;;
6601 *N32*)
6602 LD="${LD-ld} -n32"
6603 ;;
6604 *64-bit*)
6605 LD="${LD-ld} -64"
6606 ;;
6607 esac
6608 fi
6609 fi
6610 rm -rf conftest*
6611 ;;
6612
6613 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6614 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6615 # Find out which ABI we are using.
6616 echo 'int i;' > conftest.$ac_ext
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }; then
6622 case `/usr/bin/file conftest.o` in
6623 *32-bit*)
6624 case $host in
6625 x86_64-*kfreebsd*-gnu)
6626 LD="${LD-ld} -m elf_i386_fbsd"
6627 ;;
6628 x86_64-*linux*)
6629 case `/usr/bin/file conftest.o` in
6630 *x86-64*)
6631 LD="${LD-ld} -m elf32_x86_64"
6632 ;;
6633 *)
6634 LD="${LD-ld} -m elf_i386"
6635 ;;
6636 esac
6637 ;;
6638 powerpc64le-*linux*)
6639 LD="${LD-ld} -m elf32lppclinux"
6640 ;;
6641 powerpc64-*linux*)
6642 LD="${LD-ld} -m elf32ppclinux"
6643 ;;
6644 s390x-*linux*)
6645 LD="${LD-ld} -m elf_s390"
6646 ;;
6647 sparc64-*linux*)
6648 LD="${LD-ld} -m elf32_sparc"
6649 ;;
6650 esac
6651 ;;
6652 *64-bit*)
6653 case $host in
6654 x86_64-*kfreebsd*-gnu)
6655 LD="${LD-ld} -m elf_x86_64_fbsd"
6656 ;;
6657 x86_64-*linux*)
6658 LD="${LD-ld} -m elf_x86_64"
6659 ;;
6660 powerpcle-*linux*)
6661 LD="${LD-ld} -m elf64lppc"
6662 ;;
6663 powerpc-*linux*)
6664 LD="${LD-ld} -m elf64ppc"
6665 ;;
6666 s390*-*linux*|s390*-*tpf*)
6667 LD="${LD-ld} -m elf64_s390"
6668 ;;
6669 sparc*-*linux*)
6670 LD="${LD-ld} -m elf64_sparc"
6671 ;;
6672 esac
6673 ;;
6674 esac
6675 fi
6676 rm -rf conftest*
6677 ;;
6678
6679 *-*-sco3.2v5*)
6680 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6681 SAVE_CFLAGS="$CFLAGS"
6682 CFLAGS="$CFLAGS -belf"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6684 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6685 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_ext=c
6689 ac_cpp='$CPP $CPPFLAGS'
6690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696
6697 int
6698 main ()
6699 {
6700
6701 ;
6702 return 0;
6703 }
6704 _ACEOF
6705 if ac_fn_c_try_link "$LINENO"; then :
6706 lt_cv_cc_needs_belf=yes
6707 else
6708 lt_cv_cc_needs_belf=no
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext \
6711 conftest$ac_exeext conftest.$ac_ext
6712 ac_ext=c
6713 ac_cpp='$CPP $CPPFLAGS'
6714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6717
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6720 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6721 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6722 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6723 CFLAGS="$SAVE_CFLAGS"
6724 fi
6725 ;;
6726 sparc*-*solaris*)
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.o` in
6735 *64-bit*)
6736 case $lt_cv_prog_gnu_ld in
6737 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6738 *)
6739 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6740 LD="${LD-ld} -64"
6741 fi
6742 ;;
6743 esac
6744 ;;
6745 esac
6746 fi
6747 rm -rf conftest*
6748 ;;
6749 esac
6750
6751 need_locks="$enable_libtool_lock"
6752
6753
6754 case $host_os in
6755 rhapsody* | darwin*)
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$DSYMUTIL"; then
6765 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6785 if test -n "$DSYMUTIL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6787 $as_echo "$DSYMUTIL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_DSYMUTIL"; then
6796 ac_ct_DSYMUTIL=$DSYMUTIL
6797 # Extract the first word of "dsymutil", so it can be a program name with args.
6798 set dummy dsymutil; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$ac_ct_DSYMUTIL"; then
6805 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6825 if test -n "$ac_ct_DSYMUTIL"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6827 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833 if test "x$ac_ct_DSYMUTIL" = x; then
6834 DSYMUTIL=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 DSYMUTIL=$ac_ct_DSYMUTIL
6843 fi
6844 else
6845 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6846 fi
6847
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$NMEDIT"; then
6857 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 NMEDIT=$ac_cv_prog_NMEDIT
6877 if test -n "$NMEDIT"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6879 $as_echo "$NMEDIT" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886 fi
6887 if test -z "$ac_cv_prog_NMEDIT"; then
6888 ac_ct_NMEDIT=$NMEDIT
6889 # Extract the first word of "nmedit", so it can be a program name with args.
6890 set dummy nmedit; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$ac_ct_NMEDIT"; then
6897 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6917 if test -n "$ac_ct_NMEDIT"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6919 $as_echo "$ac_ct_NMEDIT" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925 if test "x$ac_ct_NMEDIT" = x; then
6926 NMEDIT=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 NMEDIT=$ac_ct_NMEDIT
6935 fi
6936 else
6937 NMEDIT="$ac_cv_prog_NMEDIT"
6938 fi
6939
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_LIPO+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$LIPO"; then
6949 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 LIPO=$ac_cv_prog_LIPO
6969 if test -n "$LIPO"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6971 $as_echo "$LIPO" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977
6978 fi
6979 if test -z "$ac_cv_prog_LIPO"; then
6980 ac_ct_LIPO=$LIPO
6981 # Extract the first word of "lipo", so it can be a program name with args.
6982 set dummy lipo; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_LIPO"; then
6989 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_ac_ct_LIPO="lipo"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7009 if test -n "$ac_ct_LIPO"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7011 $as_echo "$ac_ct_LIPO" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017 if test "x$ac_ct_LIPO" = x; then
7018 LIPO=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 LIPO=$ac_ct_LIPO
7027 fi
7028 else
7029 LIPO="$ac_cv_prog_LIPO"
7030 fi
7031
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}otool; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$OTOOL"; then
7041 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 OTOOL=$ac_cv_prog_OTOOL
7061 if test -n "$OTOOL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7063 $as_echo "$OTOOL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_OTOOL"; then
7072 ac_ct_OTOOL=$OTOOL
7073 # Extract the first word of "otool", so it can be a program name with args.
7074 set dummy otool; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$ac_ct_OTOOL"; then
7081 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_OTOOL="otool"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7101 if test -n "$ac_ct_OTOOL"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7103 $as_echo "$ac_ct_OTOOL" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109 if test "x$ac_ct_OTOOL" = x; then
7110 OTOOL=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 OTOOL=$ac_ct_OTOOL
7119 fi
7120 else
7121 OTOOL="$ac_cv_prog_OTOOL"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$OTOOL64"; then
7133 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 OTOOL64=$ac_cv_prog_OTOOL64
7153 if test -n "$OTOOL64"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7155 $as_echo "$OTOOL64" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_OTOOL64"; then
7164 ac_ct_OTOOL64=$OTOOL64
7165 # Extract the first word of "otool64", so it can be a program name with args.
7166 set dummy otool64; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$ac_ct_OTOOL64"; then
7173 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_OTOOL64="otool64"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7193 if test -n "$ac_ct_OTOOL64"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7195 $as_echo "$ac_ct_OTOOL64" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201 if test "x$ac_ct_OTOOL64" = x; then
7202 OTOOL64=":"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210 OTOOL64=$ac_ct_OTOOL64
7211 fi
7212 else
7213 OTOOL64="$ac_cv_prog_OTOOL64"
7214 fi
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7243 $as_echo_n "checking for -single_module linker flag... " >&6; }
7244 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 lt_cv_apple_cc_single_mod=no
7248 if test -z "${LT_MULTI_MODULE}"; then
7249 # By default we will add the -single_module flag. You can override
7250 # by either setting the environment variable LT_MULTI_MODULE
7251 # non-empty at configure time, or by adding -multi_module to the
7252 # link flags.
7253 rm -rf libconftest.dylib*
7254 echo "int foo(void){return 1;}" > conftest.c
7255 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7256 -dynamiclib -Wl,-single_module conftest.c" >&5
7257 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7258 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7259 _lt_result=$?
7260 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7261 lt_cv_apple_cc_single_mod=yes
7262 else
7263 cat conftest.err >&5
7264 fi
7265 rm -rf libconftest.dylib*
7266 rm -f conftest.*
7267 fi
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7270 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7272 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7273 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 lt_cv_ld_exported_symbols_list=no
7277 save_LDFLAGS=$LDFLAGS
7278 echo "_main" > conftest.sym
7279 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282
7283 int
7284 main ()
7285 {
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_link "$LINENO"; then :
7292 lt_cv_ld_exported_symbols_list=yes
7293 else
7294 lt_cv_ld_exported_symbols_list=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 LDFLAGS="$save_LDFLAGS"
7299
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7302 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7304 $as_echo_n "checking for -force_load linker flag... " >&6; }
7305 if test "${lt_cv_ld_force_load+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 lt_cv_ld_force_load=no
7309 cat > conftest.c << _LT_EOF
7310 int forced_loaded() { return 2;}
7311 _LT_EOF
7312 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7314 echo "$AR cru libconftest.a conftest.o" >&5
7315 $AR cru libconftest.a conftest.o 2>&5
7316 cat > conftest.c << _LT_EOF
7317 int main() { return 0;}
7318 _LT_EOF
7319 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7320 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7321 _lt_result=$?
7322 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7323 lt_cv_ld_force_load=yes
7324 else
7325 cat conftest.err >&5
7326 fi
7327 rm -f conftest.err libconftest.a conftest conftest.c
7328 rm -rf conftest.dSYM
7329
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7332 $as_echo "$lt_cv_ld_force_load" >&6; }
7333 case $host_os in
7334 rhapsody* | darwin1.[012])
7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7336 darwin1.*)
7337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7338 darwin*) # darwin 5.x on
7339 # if running on 10.5 or later, the deployment target defaults
7340 # to the OS version, if on x86, and 10.4, the deployment
7341 # target defaults to 10.4. Don't you love it?
7342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7343 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7345 10.[012]*)
7346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7347 10.*)
7348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7349 esac
7350 ;;
7351 esac
7352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7353 _lt_dar_single_mod='$single_module'
7354 fi
7355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7357 else
7358 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7359 fi
7360 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7361 _lt_dsymutil='~$DSYMUTIL $lib || :'
7362 else
7363 _lt_dsymutil=
7364 fi
7365 ;;
7366 esac
7367
7368 ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7374 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7375 # On Suns, sometimes $CPP names a directory.
7376 if test -n "$CPP" && test -d "$CPP"; then
7377 CPP=
7378 fi
7379 if test -z "$CPP"; then
7380 if test "${ac_cv_prog_CPP+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 # Double quotes because CPP needs to be expanded
7384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7385 do
7386 ac_preproc_ok=false
7387 for ac_c_preproc_warn_flag in '' yes
7388 do
7389 # Use a header file that comes with gcc, so configuring glibc
7390 # with a fresh cross-compiler works.
7391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7392 # <limits.h> exists even on freestanding compilers.
7393 # On the NeXT, cc -E runs the code through the compiler's parser,
7394 # not just through cpp. "Syntax error" is here to catch this case.
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #ifdef __STDC__
7398 # include <limits.h>
7399 #else
7400 # include <assert.h>
7401 #endif
7402 Syntax error
7403 _ACEOF
7404 if ac_fn_c_try_cpp "$LINENO"; then :
7405
7406 else
7407 # Broken: fails on valid input.
7408 continue
7409 fi
7410 rm -f conftest.err conftest.$ac_ext
7411
7412 # OK, works on sane cases. Now check whether nonexistent headers
7413 # can be detected and how.
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #include <ac_nonexistent.h>
7417 _ACEOF
7418 if ac_fn_c_try_cpp "$LINENO"; then :
7419 # Broken: success on invalid input.
7420 continue
7421 else
7422 # Passes both tests.
7423 ac_preproc_ok=:
7424 break
7425 fi
7426 rm -f conftest.err conftest.$ac_ext
7427
7428 done
7429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7430 rm -f conftest.err conftest.$ac_ext
7431 if $ac_preproc_ok; then :
7432 break
7433 fi
7434
7435 done
7436 ac_cv_prog_CPP=$CPP
7437
7438 fi
7439 CPP=$ac_cv_prog_CPP
7440 else
7441 ac_cv_prog_CPP=$CPP
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7444 $as_echo "$CPP" >&6; }
7445 ac_preproc_ok=false
7446 for ac_c_preproc_warn_flag in '' yes
7447 do
7448 # Use a header file that comes with gcc, so configuring glibc
7449 # with a fresh cross-compiler works.
7450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7451 # <limits.h> exists even on freestanding compilers.
7452 # On the NeXT, cc -E runs the code through the compiler's parser,
7453 # not just through cpp. "Syntax error" is here to catch this case.
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 #ifdef __STDC__
7457 # include <limits.h>
7458 #else
7459 # include <assert.h>
7460 #endif
7461 Syntax error
7462 _ACEOF
7463 if ac_fn_c_try_cpp "$LINENO"; then :
7464
7465 else
7466 # Broken: fails on valid input.
7467 continue
7468 fi
7469 rm -f conftest.err conftest.$ac_ext
7470
7471 # OK, works on sane cases. Now check whether nonexistent headers
7472 # can be detected and how.
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 #include <ac_nonexistent.h>
7476 _ACEOF
7477 if ac_fn_c_try_cpp "$LINENO"; then :
7478 # Broken: success on invalid input.
7479 continue
7480 else
7481 # Passes both tests.
7482 ac_preproc_ok=:
7483 break
7484 fi
7485 rm -f conftest.err conftest.$ac_ext
7486
7487 done
7488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7489 rm -f conftest.err conftest.$ac_ext
7490 if $ac_preproc_ok; then :
7491
7492 else
7493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7495 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7496 See \`config.log' for more details." "$LINENO" 5; }
7497 fi
7498
7499 ac_ext=c
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7507 $as_echo_n "checking for ANSI C header files... " >&6; }
7508 if test "${ac_cv_header_stdc+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 #include <stdlib.h>
7514 #include <stdarg.h>
7515 #include <string.h>
7516 #include <float.h>
7517
7518 int
7519 main ()
7520 {
7521
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 ac_cv_header_stdc=yes
7528 else
7529 ac_cv_header_stdc=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532
7533 if test $ac_cv_header_stdc = yes; then
7534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <string.h>
7538
7539 _ACEOF
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541 $EGREP "memchr" >/dev/null 2>&1; then :
7542
7543 else
7544 ac_cv_header_stdc=no
7545 fi
7546 rm -f conftest*
7547
7548 fi
7549
7550 if test $ac_cv_header_stdc = yes; then
7551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 #include <stdlib.h>
7555
7556 _ACEOF
7557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7558 $EGREP "free" >/dev/null 2>&1; then :
7559
7560 else
7561 ac_cv_header_stdc=no
7562 fi
7563 rm -f conftest*
7564
7565 fi
7566
7567 if test $ac_cv_header_stdc = yes; then
7568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7569 if test "$cross_compiling" = yes; then :
7570 :
7571 else
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 #include <ctype.h>
7575 #include <stdlib.h>
7576 #if ((' ' & 0x0FF) == 0x020)
7577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7579 #else
7580 # define ISLOWER(c) \
7581 (('a' <= (c) && (c) <= 'i') \
7582 || ('j' <= (c) && (c) <= 'r') \
7583 || ('s' <= (c) && (c) <= 'z'))
7584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7585 #endif
7586
7587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7588 int
7589 main ()
7590 {
7591 int i;
7592 for (i = 0; i < 256; i++)
7593 if (XOR (islower (i), ISLOWER (i))
7594 || toupper (i) != TOUPPER (i))
7595 return 2;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_run "$LINENO"; then :
7600
7601 else
7602 ac_cv_header_stdc=no
7603 fi
7604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7605 conftest.$ac_objext conftest.beam conftest.$ac_ext
7606 fi
7607
7608 fi
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7611 $as_echo "$ac_cv_header_stdc" >&6; }
7612 if test $ac_cv_header_stdc = yes; then
7613
7614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7615
7616 fi
7617
7618 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7620 inttypes.h stdint.h unistd.h
7621 do :
7622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7624 "
7625 eval as_val=\$$as_ac_Header
7626 if test "x$as_val" = x""yes; then :
7627 cat >>confdefs.h <<_ACEOF
7628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 _ACEOF
7630
7631 fi
7632
7633 done
7634
7635
7636 for ac_header in dlfcn.h
7637 do :
7638 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7639 "
7640 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7641 cat >>confdefs.h <<_ACEOF
7642 #define HAVE_DLFCN_H 1
7643 _ACEOF
7644
7645 fi
7646
7647 done
7648
7649
7650
7651
7652
7653
7654 # Set options
7655
7656
7657
7658
7659 enable_win32_dll=no
7660
7661
7662 # Check whether --enable-shared was given.
7663 if test "${enable_shared+set}" = set; then :
7664 enableval=$enable_shared; p=${PACKAGE-default}
7665 case $enableval in
7666 yes) enable_shared=yes ;;
7667 no) enable_shared=no ;;
7668 *)
7669 enable_shared=no
7670 # Look at the argument we got. We use all the common list separators.
7671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672 for pkg in $enableval; do
7673 IFS="$lt_save_ifs"
7674 if test "X$pkg" = "X$p"; then
7675 enable_shared=yes
7676 fi
7677 done
7678 IFS="$lt_save_ifs"
7679 ;;
7680 esac
7681 else
7682 enable_shared=yes
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 # Check whether --enable-static was given.
7694 if test "${enable_static+set}" = set; then :
7695 enableval=$enable_static; p=${PACKAGE-default}
7696 case $enableval in
7697 yes) enable_static=yes ;;
7698 no) enable_static=no ;;
7699 *)
7700 enable_static=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_static=yes
7707 fi
7708 done
7709 IFS="$lt_save_ifs"
7710 ;;
7711 esac
7712 else
7713 enable_static=yes
7714 fi
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 # Check whether --with-pic was given.
7726 if test "${with_pic+set}" = set; then :
7727 withval=$with_pic; pic_mode="$withval"
7728 else
7729 pic_mode=default
7730 fi
7731
7732
7733 test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7758 ;;
7759 esac
7760 else
7761 enable_fast_install=yes
7762 fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS="$ltmain"
7776
7777 # Always use our own libtool.
7778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 test -z "$LN_S" && LN_S="ln -s"
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820 if test -n "${ZSH_VERSION+set}" ; then
7821 setopt NO_GLOB_SUBST
7822 fi
7823
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7825 $as_echo_n "checking for objdir... " >&6; }
7826 if test "${lt_cv_objdir+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 rm -f .libs 2>/dev/null
7830 mkdir .libs 2>/dev/null
7831 if test -d .libs; then
7832 lt_cv_objdir=.libs
7833 else
7834 # MS-DOS does not allow filenames that begin with a dot.
7835 lt_cv_objdir=_libs
7836 fi
7837 rmdir .libs 2>/dev/null
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7840 $as_echo "$lt_cv_objdir" >&6; }
7841 objdir=$lt_cv_objdir
7842
7843
7844
7845
7846
7847 cat >>confdefs.h <<_ACEOF
7848 #define LT_OBJDIR "$lt_cv_objdir/"
7849 _ACEOF
7850
7851
7852
7853
7854 case $host_os in
7855 aix3*)
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset; then
7860 COLLECT_NAMES=
7861 export COLLECT_NAMES
7862 fi
7863 ;;
7864 esac
7865
7866 # Global variables:
7867 ofile=libtool
7868 can_build_shared=yes
7869
7870 # All known linkers require a `.a' archive for static linking (except MSVC,
7871 # which needs '.lib').
7872 libext=a
7873
7874 with_gnu_ld="$lt_cv_prog_gnu_ld"
7875
7876 old_CC="$CC"
7877 old_CFLAGS="$CFLAGS"
7878
7879 # Set sane defaults for various variables
7880 test -z "$CC" && CC=cc
7881 test -z "$LTCC" && LTCC=$CC
7882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7883 test -z "$LD" && LD=ld
7884 test -z "$ac_objext" && ac_objext=o
7885
7886 for cc_temp in $compiler""; do
7887 case $cc_temp in
7888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890 \-*) ;;
7891 *) break;;
7892 esac
7893 done
7894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7895
7896
7897 # Only perform the check for file, if the check method requires it
7898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899 case $deplibs_check_method in
7900 file_magic*)
7901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 case $MAGIC_CMD in
7908 [\\/*] | ?:[\\/]*)
7909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7910 ;;
7911 *)
7912 lt_save_MAGIC_CMD="$MAGIC_CMD"
7913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir in $ac_dummy; do
7916 IFS="$lt_save_ifs"
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/${ac_tool_prefix}file; then
7919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7922 "file_magic "*)
7923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7926 $EGREP "$file_magic_regex" > /dev/null; then
7927 :
7928 else
7929 cat <<_LT_EOF 1>&2
7930
7931 *** Warning: the command libtool uses to detect shared libraries,
7932 *** $file_magic_cmd, produces output that libtool cannot recognize.
7933 *** The result is that libtool may fail to recognize shared libraries
7934 *** as such. This will affect the creation of libtool libraries that
7935 *** depend on shared libraries, but programs linked with such libtool
7936 *** libraries will work regardless of this problem. Nevertheless, you
7937 *** may want to report the problem to your system manager and/or to
7938 *** bug-libtool@gnu.org
7939
7940 _LT_EOF
7941 fi ;;
7942 esac
7943 fi
7944 break
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 MAGIC_CMD="$lt_save_MAGIC_CMD"
7949 ;;
7950 esac
7951 fi
7952
7953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954 if test -n "$MAGIC_CMD"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956 $as_echo "$MAGIC_CMD" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963
7964
7965
7966 if test -z "$lt_cv_path_MAGIC_CMD"; then
7967 if test -n "$ac_tool_prefix"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7969 $as_echo_n "checking for file... " >&6; }
7970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 case $MAGIC_CMD in
7974 [\\/*] | ?:[\\/]*)
7975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 lt_save_MAGIC_CMD="$MAGIC_CMD"
7979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7981 for ac_dir in $ac_dummy; do
7982 IFS="$lt_save_ifs"
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f $ac_dir/file; then
7985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7986 if test -n "$file_magic_test_file"; then
7987 case $deplibs_check_method in
7988 "file_magic "*)
7989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7992 $EGREP "$file_magic_regex" > /dev/null; then
7993 :
7994 else
7995 cat <<_LT_EOF 1>&2
7996
7997 *** Warning: the command libtool uses to detect shared libraries,
7998 *** $file_magic_cmd, produces output that libtool cannot recognize.
7999 *** The result is that libtool may fail to recognize shared libraries
8000 *** as such. This will affect the creation of libtool libraries that
8001 *** depend on shared libraries, but programs linked with such libtool
8002 *** libraries will work regardless of this problem. Nevertheless, you
8003 *** may want to report the problem to your system manager and/or to
8004 *** bug-libtool@gnu.org
8005
8006 _LT_EOF
8007 fi ;;
8008 esac
8009 fi
8010 break
8011 fi
8012 done
8013 IFS="$lt_save_ifs"
8014 MAGIC_CMD="$lt_save_MAGIC_CMD"
8015 ;;
8016 esac
8017 fi
8018
8019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020 if test -n "$MAGIC_CMD"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022 $as_echo "$MAGIC_CMD" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 else
8030 MAGIC_CMD=:
8031 fi
8032 fi
8033
8034 fi
8035 ;;
8036 esac
8037
8038 # Use C for the default configuration in the libtool script
8039
8040 lt_save_CC="$CC"
8041 ac_ext=c
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048 # Source file extension for C test sources.
8049 ac_ext=c
8050
8051 # Object file extension for compiled C test sources.
8052 objext=o
8053 objext=$objext
8054
8055 # Code to be used in simple compile tests
8056 lt_simple_compile_test_code="int some_variable = 0;"
8057
8058 # Code to be used in simple link tests
8059 lt_simple_link_test_code='int main(){return(0);}'
8060
8061
8062
8063
8064
8065
8066
8067 # If no C compiler was specified, use CC.
8068 LTCC=${LTCC-"$CC"}
8069
8070 # If no C compiler flags were specified, use CFLAGS.
8071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8072
8073 # Allow CC to be a program name with arguments.
8074 compiler=$CC
8075
8076 # Save the default compiler, since it gets overwritten when the other
8077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8078 compiler_DEFAULT=$CC
8079
8080 # save warnings/boilerplate of simple test code
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084 _lt_compiler_boilerplate=`cat conftest.err`
8085 $RM conftest*
8086
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_linker_boilerplate=`cat conftest.err`
8091 $RM -r conftest*
8092
8093
8094 ## CAVEAT EMPTOR:
8095 ## There is no encapsulation within the following macros, do not change
8096 ## the running order or otherwise move them around unless you know exactly
8097 ## what you are doing...
8098 if test -n "$compiler"; then
8099
8100 lt_prog_compiler_no_builtin_flag=
8101
8102 if test "$GCC" = yes; then
8103 case $cc_basename in
8104 nvcc*)
8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8106 *)
8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8108 esac
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 lt_cv_prog_compiler_rtti_exceptions=no
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8118 lt_compiler_flag="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err)
8130 ac_status=$?
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_rtti_exceptions=yes
8140 fi
8141 fi
8142 $RM conftest*
8143
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8147
8148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8150 else
8151 :
8152 fi
8153
8154 fi
8155
8156
8157
8158
8159
8160
8161 lt_prog_compiler_wl=
8162 lt_prog_compiler_pic=
8163 lt_prog_compiler_static=
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8167
8168 if test "$GCC" = yes; then
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_static='-static'
8171
8172 case $host_os in
8173 aix*)
8174 # All AIX code is PIC.
8175 if test "$host_cpu" = ia64; then
8176 # AIX 5 now supports IA64 processor
8177 lt_prog_compiler_static='-Bstatic'
8178 fi
8179 lt_prog_compiler_pic='-fPIC'
8180 ;;
8181
8182 amigaos*)
8183 case $host_cpu in
8184 powerpc)
8185 # see comment about AmigaOS4 .so support
8186 lt_prog_compiler_pic='-fPIC'
8187 ;;
8188 m68k)
8189 # FIXME: we need at least 68020 code to build shared libraries, but
8190 # adding the `-m68020' flag to GCC prevents building anything better,
8191 # like `-m68040'.
8192 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8193 ;;
8194 esac
8195 ;;
8196
8197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8198 # PIC is the default for these OSes.
8199 ;;
8200
8201 mingw* | cygwin* | pw32* | os2* | cegcc*)
8202 # This hack is so that the source file can tell whether it is being
8203 # built for inclusion in a dll (and should export symbols for example).
8204 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8205 # (--disable-auto-import) libraries
8206 lt_prog_compiler_pic='-DDLL_EXPORT'
8207 ;;
8208
8209 darwin* | rhapsody*)
8210 # PIC is the default on this platform
8211 # Common symbols not allowed in MH_DYLIB files
8212 lt_prog_compiler_pic='-fno-common'
8213 ;;
8214
8215 haiku*)
8216 # PIC is the default for Haiku.
8217 # The "-static" flag exists, but is broken.
8218 lt_prog_compiler_static=
8219 ;;
8220
8221 hpux*)
8222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8224 # sets the default TLS model and affects inlining.
8225 case $host_cpu in
8226 hppa*64*)
8227 # +Z the default
8228 ;;
8229 *)
8230 lt_prog_compiler_pic='-fPIC'
8231 ;;
8232 esac
8233 ;;
8234
8235 interix[3-9]*)
8236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8237 # Instead, we relocate shared libraries at runtime.
8238 ;;
8239
8240 msdosdjgpp*)
8241 # Just because we use GCC doesn't mean we suddenly get shared libraries
8242 # on systems that don't support them.
8243 lt_prog_compiler_can_build_shared=no
8244 enable_shared=no
8245 ;;
8246
8247 *nto* | *qnx*)
8248 # QNX uses GNU C++, but need to define -shared option too, otherwise
8249 # it will coredump.
8250 lt_prog_compiler_pic='-fPIC -shared'
8251 ;;
8252
8253 sysv4*MP*)
8254 if test -d /usr/nec; then
8255 lt_prog_compiler_pic=-Kconform_pic
8256 fi
8257 ;;
8258
8259 *)
8260 lt_prog_compiler_pic='-fPIC'
8261 ;;
8262 esac
8263
8264 case $cc_basename in
8265 nvcc*) # Cuda Compiler Driver 2.2
8266 lt_prog_compiler_wl='-Xlinker '
8267 lt_prog_compiler_pic='-Xcompiler -fPIC'
8268 ;;
8269 esac
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
8332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8333 # Portland Group compilers (*not* the Pentium gcc compiler,
8334 # which looks to be a dead project)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fpic'
8337 lt_prog_compiler_static='-Bstatic'
8338 ;;
8339 ccc*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All Alpha code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344 xl* | bgxl* | bgf* | mpixl*)
8345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-qpic'
8348 lt_prog_compiler_static='-qstaticlink'
8349 ;;
8350 *)
8351 case `$CC -V 2>&1 | sed 5q` in
8352 *Sun\ F* | *Sun*Fortran*)
8353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 lt_prog_compiler_wl=''
8357 ;;
8358 *Sun\ C*)
8359 # Sun C 5.9
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl='-Wl,'
8363 ;;
8364 esac
8365 ;;
8366 esac
8367 ;;
8368
8369 newsos6)
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 osf3* | osf4* | osf5*)
8381 lt_prog_compiler_wl='-Wl,'
8382 # All OSF/1 code is PIC.
8383 lt_prog_compiler_static='-non_shared'
8384 ;;
8385
8386 rdos*)
8387 lt_prog_compiler_static='-non_shared'
8388 ;;
8389
8390 solaris*)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 case $cc_basename in
8394 f77* | f90* | f95*)
8395 lt_prog_compiler_wl='-Qoption ld ';;
8396 *)
8397 lt_prog_compiler_wl='-Wl,';;
8398 esac
8399 ;;
8400
8401 sunos4*)
8402 lt_prog_compiler_wl='-Qoption ld '
8403 lt_prog_compiler_pic='-PIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 sysv4 | sysv4.2uw2* | sysv4.3*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 ;;
8412
8413 sysv4*MP*)
8414 if test -d /usr/nec ;then
8415 lt_prog_compiler_pic='-Kconform_pic'
8416 lt_prog_compiler_static='-Bstatic'
8417 fi
8418 ;;
8419
8420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425
8426 unicos*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_can_build_shared=no
8429 ;;
8430
8431 uts4*)
8432 lt_prog_compiler_pic='-pic'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
8435
8436 *)
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439 esac
8440 fi
8441
8442 case $host_os in
8443 # For platforms which do not support PIC, -DPIC is meaningless:
8444 *djgpp*)
8445 lt_prog_compiler_pic=
8446 ;;
8447 *)
8448 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8449 ;;
8450 esac
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8452 $as_echo "$lt_prog_compiler_pic" >&6; }
8453
8454
8455
8456
8457
8458
8459 #
8460 # Check to make sure the PIC flag actually works.
8461 #
8462 if test -n "$lt_prog_compiler_pic"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8464 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8465 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 lt_cv_prog_compiler_pic_works=no
8469 ac_outfile=conftest.$ac_objext
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8472 # Insert the option either (1) after the last *FLAGS variable, or
8473 # (2) before a word containing "conftest.", or (3) at the end.
8474 # Note that $ac_compile itself does not contain backslashes and begins
8475 # with a dollar sign (not a hyphen), so the echo should work correctly.
8476 # The option is referenced via a variable to avoid confusing sed.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>conftest.err)
8483 ac_status=$?
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s "$ac_outfile"; then
8487 # The compiler can only warn and ignore the option if not recognized
8488 # So say no if there are warnings other than the usual output.
8489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_pic_works=yes
8493 fi
8494 fi
8495 $RM conftest*
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8499 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8500
8501 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8502 case $lt_prog_compiler_pic in
8503 "" | " "*) ;;
8504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8505 esac
8506 else
8507 lt_prog_compiler_pic=
8508 lt_prog_compiler_can_build_shared=no
8509 fi
8510
8511 fi
8512
8513
8514
8515
8516
8517
8518 #
8519 # Check to make sure the static flag actually works.
8520 #
8521 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8523 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8524 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 lt_cv_prog_compiler_static_works=no
8528 save_LDFLAGS="$LDFLAGS"
8529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8532 # The linker can only warn and ignore the option if not recognized
8533 # So say no if there are warnings
8534 if test -s conftest.err; then
8535 # Append any errors to the config.log.
8536 cat conftest.err 1>&5
8537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539 if diff conftest.exp conftest.er2 >/dev/null; then
8540 lt_cv_prog_compiler_static_works=yes
8541 fi
8542 else
8543 lt_cv_prog_compiler_static_works=yes
8544 fi
8545 fi
8546 $RM -r conftest*
8547 LDFLAGS="$save_LDFLAGS"
8548
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8551 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552
8553 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8554 :
8555 else
8556 lt_prog_compiler_static=
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_prog_compiler_c_o=no
8571 $RM -r conftest 2>/dev/null
8572 mkdir conftest
8573 cd conftest
8574 mkdir out
8575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577 lt_compiler_flag="-o out/conftest2.$ac_objext"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 lt_compile=`echo "$ac_compile" | $SED \
8583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585 -e 's:$: $lt_compiler_flag:'`
8586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8587 (eval "$lt_compile" 2>out/conftest.err)
8588 ac_status=$?
8589 cat out/conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592 then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_c_o=yes
8599 fi
8600 fi
8601 chmod u+w . 2>&5
8602 $RM conftest*
8603 # SGI C++ compiler will create directory out/ii_files/ for
8604 # template instantiation
8605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606 $RM out/* && rmdir out
8607 cd ..
8608 $RM -r conftest
8609 $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618
8619
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8621 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8622 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 lt_cv_prog_compiler_c_o=no
8626 $RM -r conftest 2>/dev/null
8627 mkdir conftest
8628 cd conftest
8629 mkdir out
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632 lt_compiler_flag="-o out/conftest2.$ac_objext"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 lt_compile=`echo "$ac_compile" | $SED \
8638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8640 -e 's:$: $lt_compiler_flag:'`
8641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8642 (eval "$lt_compile" 2>out/conftest.err)
8643 ac_status=$?
8644 cat out/conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8647 then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_c_o=yes
8654 fi
8655 fi
8656 chmod u+w . 2>&5
8657 $RM conftest*
8658 # SGI C++ compiler will create directory out/ii_files/ for
8659 # template instantiation
8660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8661 $RM out/* && rmdir out
8662 cd ..
8663 $RM -r conftest
8664 $RM conftest*
8665
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8668 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669
8670
8671
8672
8673 hard_links="nottested"
8674 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8675 # do not overwrite the value of need_locks provided by the user
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8677 $as_echo_n "checking if we can lock with hard links... " >&6; }
8678 hard_links=yes
8679 $RM conftest*
8680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681 touch conftest.a
8682 ln conftest.a conftest.b 2>&5 || hard_links=no
8683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8685 $as_echo "$hard_links" >&6; }
8686 if test "$hard_links" = no; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8688 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8689 need_locks=warn
8690 fi
8691 else
8692 need_locks=no
8693 fi
8694
8695
8696
8697
8698
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8701 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8702
8703 runpath_var=
8704 allow_undefined_flag=
8705 always_export_symbols=no
8706 archive_cmds=
8707 archive_expsym_cmds=
8708 compiler_needs_object=no
8709 enable_shared_with_static_runtimes=no
8710 export_dynamic_flag_spec=
8711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8712 hardcode_automatic=no
8713 hardcode_direct=no
8714 hardcode_direct_absolute=no
8715 hardcode_libdir_flag_spec=
8716 hardcode_libdir_flag_spec_ld=
8717 hardcode_libdir_separator=
8718 hardcode_minus_L=no
8719 hardcode_shlibpath_var=unsupported
8720 inherit_rpath=no
8721 link_all_deplibs=unknown
8722 module_cmds=
8723 module_expsym_cmds=
8724 old_archive_from_new_cmds=
8725 old_archive_from_expsyms_cmds=
8726 thread_safe_flag_spec=
8727 whole_archive_flag_spec=
8728 # include_expsyms should be a list of space-separated symbols to be *always*
8729 # included in the symbol list
8730 include_expsyms=
8731 # exclude_expsyms can be an extended regexp of symbols to exclude
8732 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8733 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8734 # as well as any symbol that contains `d'.
8735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8737 # platforms (ab)use it in PIC code, but their linkers get confused if
8738 # the symbol is explicitly referenced. Since portable code cannot
8739 # rely on this symbol name, it's probably fine to never include it in
8740 # preloaded symbol tables.
8741 # Exclude shared library initialization/finalization symbols.
8742 extract_expsyms_cmds=
8743
8744 case $host_os in
8745 cygwin* | mingw* | pw32* | cegcc*)
8746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8747 # When not using gcc, we currently assume that we are using
8748 # Microsoft Visual C++.
8749 if test "$GCC" != yes; then
8750 with_gnu_ld=no
8751 fi
8752 ;;
8753 interix*)
8754 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 with_gnu_ld=yes
8756 ;;
8757 openbsd*)
8758 with_gnu_ld=no
8759 ;;
8760 esac
8761
8762 ld_shlibs=yes
8763
8764 # On some targets, GNU ld is compatible enough with the native linker
8765 # that we're better off using the native interface for both.
8766 lt_use_gnu_ld_interface=no
8767 if test "$with_gnu_ld" = yes; then
8768 case $host_os in
8769 aix*)
8770 # The AIX port of GNU ld has always aspired to compatibility
8771 # with the native linker. However, as the warning in the GNU ld
8772 # block says, versions before 2.19.5* couldn't really create working
8773 # shared libraries, regardless of the interface used.
8774 case `$LD -v 2>&1` in
8775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 fi
8788
8789 if test "$lt_use_gnu_ld_interface" = yes; then
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 wlarc='${wl}'
8792
8793 # Set some defaults for GNU ld with shared library support. These
8794 # are reset later if shared libraries are not supported. Putting them
8795 # here allows them to be overridden if necessary.
8796 runpath_var=LD_RUN_PATH
8797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798 export_dynamic_flag_spec='${wl}--export-dynamic'
8799 # ancient GNU ld didn't support --whole-archive et. al.
8800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802 else
8803 whole_archive_flag_spec=
8804 fi
8805 supports_anon_versioning=no
8806 case `$LD -v 2>&1` in
8807 *GNU\ gold*) supports_anon_versioning=yes ;;
8808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8811 *\ 2.11.*) ;; # other 2.11 versions
8812 *) supports_anon_versioning=yes ;;
8813 esac
8814
8815 # See if GNU ld supports shared libraries.
8816 case $host_os in
8817 aix[3-9]*)
8818 # On AIX/PPC, the GNU linker is very broken
8819 if test "$host_cpu" != ia64; then
8820 ld_shlibs=no
8821 cat <<_LT_EOF 1>&2
8822
8823 *** Warning: the GNU linker, at least up to release 2.19, is reported
8824 *** to be unable to reliably create shared libraries on AIX.
8825 *** Therefore, libtool is disabling shared libraries support. If you
8826 *** really care for shared libraries, you may want to install binutils
8827 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8828 *** You will then need to restart the configuration process.
8829
8830 _LT_EOF
8831 fi
8832 ;;
8833
8834 amigaos*)
8835 case $host_cpu in
8836 powerpc)
8837 # see comment about AmigaOS4 .so support
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 archive_expsym_cmds=''
8840 ;;
8841 m68k)
8842 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)'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 ;;
8846 esac
8847 ;;
8848
8849 beos*)
8850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 allow_undefined_flag=unsupported
8852 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8853 # support --undefined. This deserves some investigation. FIXME
8854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 cygwin* | mingw* | pw32* | cegcc*)
8861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8862 # as there is no search path for DLLs.
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 export_dynamic_flag_spec='${wl}--export-all-symbols'
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=no
8867 enable_shared_with_static_runtimes=yes
8868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8869
8870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 # If the export-symbols file already is a .def file (1st line
8873 # is EXPORTS), use it as is; otherwise, prepend...
8874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8875 cp $export_symbols $output_objdir/$soname.def;
8876 else
8877 echo EXPORTS > $output_objdir/$soname.def;
8878 cat $export_symbols >> $output_objdir/$soname.def;
8879 fi~
8880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 else
8882 ld_shlibs=no
8883 fi
8884 ;;
8885
8886 haiku*)
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 link_all_deplibs=yes
8889 ;;
8890
8891 interix[3-9]*)
8892 hardcode_direct=no
8893 hardcode_shlibpath_var=no
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 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'
8904 ;;
8905
8906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907 tmp_diet=no
8908 if test "$host_os" = linux-dietlibc; then
8909 case $cc_basename in
8910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8911 esac
8912 fi
8913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8914 && test "$tmp_diet" = no
8915 then
8916 tmp_addflag=
8917 tmp_sharedflag='-shared'
8918 case $cc_basename,$host_cpu in
8919 pgcc*) # Portland Group C compiler
8920 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'
8921 tmp_addflag=' $pic_flag'
8922 ;;
8923 pgf77* | pgf90* | pgf95* | pgfortran*)
8924 # Portland Group f77 and f90 compilers
8925 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'
8926 tmp_addflag=' $pic_flag -Mnomain' ;;
8927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8928 tmp_addflag=' -i_dynamic' ;;
8929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8930 tmp_addflag=' -i_dynamic -nofor_main' ;;
8931 ifc* | ifort*) # Intel Fortran compiler
8932 tmp_addflag=' -nofor_main' ;;
8933 lf95*) # Lahey Fortran 8.1
8934 whole_archive_flag_spec=
8935 tmp_sharedflag='--shared' ;;
8936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8937 tmp_sharedflag='-qmkshrobj'
8938 tmp_addflag= ;;
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 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'
8941 compiler_needs_object=yes
8942 ;;
8943 esac
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ C*) # Sun C 5.9
8946 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'
8947 compiler_needs_object=yes
8948 tmp_sharedflag='-G' ;;
8949 *Sun\ F*) # Sun Fortran 8.3
8950 tmp_sharedflag='-G' ;;
8951 esac
8952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953
8954 if test "x$supports_anon_versioning" = xyes; then
8955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8957 echo "local: *; };" >> $output_objdir/$libname.ver~
8958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8959 fi
8960
8961 case $cc_basename in
8962 xlf* | bgf* | bgxlf* | mpixlf*)
8963 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8964 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8965 hardcode_libdir_flag_spec=
8966 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8967 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8968 if test "x$supports_anon_versioning" = xyes; then
8969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8971 echo "local: *; };" >> $output_objdir/$libname.ver~
8972 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8973 fi
8974 ;;
8975 esac
8976 else
8977 ld_shlibs=no
8978 fi
8979 ;;
8980
8981 netbsd*)
8982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8983 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8984 wlarc=
8985 else
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 fi
8989 ;;
8990
8991 solaris*)
8992 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8995
8996 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8997 *** create shared libraries on Solaris systems. Therefore, libtool
8998 *** is disabling shared libraries support. We urge you to upgrade GNU
8999 *** binutils to release 2.9.1 or newer. Another option is to modify
9000 *** your PATH or compiler configuration so that the native linker is
9001 *** used, and then restart.
9002
9003 _LT_EOF
9004 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
9012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9013 case `$LD -v 2>&1` in
9014 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9019 *** reliably create shared libraries on SCO systems. Therefore, libtool
9020 *** is disabling shared libraries support. We urge you to upgrade GNU
9021 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9024
9025 _LT_EOF
9026 ;;
9027 *)
9028 # For security reasons, it is highly recommended that you always
9029 # use absolute paths for naming shared libraries, and exclude the
9030 # DT_RUNPATH tag from executables and libraries. But doing so
9031 # requires that you compile everything twice, which is a pain.
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
9041 ;;
9042
9043 sunos4*)
9044 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 wlarc=
9046 hardcode_direct=yes
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 *)
9051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058 esac
9059
9060 if test "$ld_shlibs" = no; then
9061 runpath_var=
9062 hardcode_libdir_flag_spec=
9063 export_dynamic_flag_spec=
9064 whole_archive_flag_spec=
9065 fi
9066 else
9067 # PORTME fill in a description of your system's linker (not GNU ld)
9068 case $host_os in
9069 aix3*)
9070 allow_undefined_flag=unsupported
9071 always_export_symbols=yes
9072 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'
9073 # Note: this linker hardcodes the directories in LIBPATH if there
9074 # are no directories specified by -L.
9075 hardcode_minus_L=yes
9076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9077 # Neither direct hardcoding nor static linking is supported with a
9078 # broken collect2.
9079 hardcode_direct=unsupported
9080 fi
9081 ;;
9082
9083 aix[4-9]*)
9084 if test "$host_cpu" = ia64; then
9085 # On IA64, the linker does run time linking by default, so we don't
9086 # have to do anything special.
9087 aix_use_runtimelinking=no
9088 exp_sym_flag='-Bexport'
9089 no_entry_flag=""
9090 else
9091 # If we're using GNU nm, then we don't want the "-C" option.
9092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9093 # Also, AIX nm treats weak defined symbols like other global
9094 # defined symbols, whereas GNU nm marks them as "W".
9095 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9096 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'
9097 else
9098 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'
9099 fi
9100 aix_use_runtimelinking=no
9101
9102 # Test if we are trying to use run time linking or normal
9103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9104 # need to do runtime linking.
9105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9106 for ld_flag in $LDFLAGS; do
9107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9108 aix_use_runtimelinking=yes
9109 break
9110 fi
9111 done
9112 ;;
9113 esac
9114
9115 exp_sym_flag='-bexport'
9116 no_entry_flag='-bnoentry'
9117 fi
9118
9119 # When large executables or shared objects are built, AIX ld can
9120 # have problems creating the table of contents. If linking a library
9121 # or program results in "error TOC overflow" add -mminimal-toc to
9122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124
9125 archive_cmds=''
9126 hardcode_direct=yes
9127 hardcode_direct_absolute=yes
9128 hardcode_libdir_separator=':'
9129 link_all_deplibs=yes
9130 file_list_spec='${wl}-f,'
9131
9132 if test "$GCC" = yes; then
9133 case $host_os in aix4.[012]|aix4.[012].*)
9134 # We only want to do this on AIX 4.2 and lower, the check
9135 # below for broken collect2 doesn't work under 4.3+
9136 collect2name=`${CC} -print-prog-name=collect2`
9137 if test -f "$collect2name" &&
9138 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9139 then
9140 # We have reworked collect2
9141 :
9142 else
9143 # We have old collect2
9144 hardcode_direct=unsupported
9145 # It fails to find uninstalled libraries when the uninstalled
9146 # path is not listed in the libpath. Setting hardcode_minus_L
9147 # to unsupported forces relinking
9148 hardcode_minus_L=yes
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_libdir_separator=
9151 fi
9152 ;;
9153 esac
9154 shared_flag='-shared'
9155 if test "$aix_use_runtimelinking" = yes; then
9156 shared_flag="$shared_flag "'${wl}-G'
9157 fi
9158 else
9159 # not using gcc
9160 if test "$host_cpu" = ia64; then
9161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9162 # chokes on -Wl,-G. The following line is correct:
9163 shared_flag='-G'
9164 else
9165 if test "$aix_use_runtimelinking" = yes; then
9166 shared_flag='${wl}-G'
9167 else
9168 shared_flag='${wl}-bM:SRE'
9169 fi
9170 fi
9171 fi
9172
9173 export_dynamic_flag_spec='${wl}-bexpall'
9174 # It seems that -bexpall does not export symbols beginning with
9175 # underscore (_), so it is better to generate a list of symbols to export.
9176 always_export_symbols=yes
9177 if test "$aix_use_runtimelinking" = yes; then
9178 # Warning - without using the other runtime loading flags (-brtl),
9179 # -berok will link without error, but may produce a broken library.
9180 allow_undefined_flag='-berok'
9181 # Determine the default libpath from the value encoded in an
9182 # empty executable.
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185
9186 int
9187 main ()
9188 {
9189
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195
9196 lt_aix_libpath_sed='
9197 /Import File Strings/,/^$/ {
9198 /^0/ {
9199 s/^0 *\(.*\)$/\1/
9200 p
9201 }
9202 }'
9203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204 # Check for a 64-bit object if we didn't find anything.
9205 if test -z "$aix_libpath"; then
9206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 fi
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9212
9213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9214 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"
9215 else
9216 if test "$host_cpu" = ia64; then
9217 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9218 allow_undefined_flag="-z nodefs"
9219 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"
9220 else
9221 # Determine the default libpath from the value encoded in an
9222 # empty executable.
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"; then :
9235
9236 lt_aix_libpath_sed='
9237 /Import File Strings/,/^$/ {
9238 /^0/ {
9239 s/^0 *\(.*\)$/\1/
9240 p
9241 }
9242 }'
9243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244 # Check for a 64-bit object if we didn't find anything.
9245 if test -z "$aix_libpath"; then
9246 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9247 fi
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9252
9253 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9254 # Warning - without using the other run time loading flags,
9255 # -berok will link without error, but may produce a broken library.
9256 no_undefined_flag=' ${wl}-bernotok'
9257 allow_undefined_flag=' ${wl}-berok'
9258 if test "$with_gnu_ld" = yes; then
9259 # We only use this code for GNU lds that support --whole-archive.
9260 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9261 else
9262 # Exported symbols can be pulled into shared objects from archives
9263 whole_archive_flag_spec='$convenience'
9264 fi
9265 archive_cmds_need_lc=yes
9266 # This is similar to how AIX traditionally builds its shared libraries.
9267 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'
9268 fi
9269 fi
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9278 ;;
9279 m68k)
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 ;;
9286
9287 bsdi[45]*)
9288 export_dynamic_flag_spec=-rdynamic
9289 ;;
9290
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 # hardcode_libdir_flag_spec is actually meaningless, as there is
9295 # no search path for DLLs.
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 # Tell ltmain to make .lib files, not .a files.
9299 libext=lib
9300 # Tell ltmain to make .dll files, not .so files.
9301 shrext_cmds=".dll"
9302 # FIXME: Setting linknames here is a bad hack.
9303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9304 # The linker will automatically build a .lib file if we build a DLL.
9305 old_archive_from_new_cmds='true'
9306 # FIXME: Should let the user specify the lib program.
9307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9308 fix_srcfile_path='`cygpath -w "$srcfile"`'
9309 enable_shared_with_static_runtimes=yes
9310 ;;
9311
9312 darwin* | rhapsody*)
9313
9314
9315 archive_cmds_need_lc=no
9316 hardcode_direct=no
9317 hardcode_automatic=yes
9318 hardcode_shlibpath_var=unsupported
9319 if test "$lt_cv_ld_force_load" = "yes"; then
9320 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\"`'
9321 else
9322 whole_archive_flag_spec=''
9323 fi
9324 link_all_deplibs=yes
9325 allow_undefined_flag="$_lt_dar_allow_undefined"
9326 case $cc_basename in
9327 ifort*) _lt_dar_can_shared=yes ;;
9328 *) _lt_dar_can_shared=$GCC ;;
9329 esac
9330 if test "$_lt_dar_can_shared" = "yes"; then
9331 output_verbose_link_cmd=func_echo_all
9332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9334 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}"
9335 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}"
9336
9337 else
9338 ld_shlibs=no
9339 fi
9340
9341 ;;
9342
9343 dgux*)
9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9350 # support. Future versions do this automatically, but an explicit c++rt0.o
9351 # does not break anything, and helps significantly (at the cost of a little
9352 # extra space).
9353 freebsd2.2*)
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9355 hardcode_libdir_flag_spec='-R$libdir'
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9361 freebsd2.*)
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_direct=yes
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9369 freebsd* | dragonfly*)
9370 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_direct=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 hpux9*)
9377 if test "$GCC" = yes; then
9378 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'
9379 else
9380 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'
9381 fi
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 ;;
9391
9392 hpux10*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 else
9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 fi
9398 if test "$with_gnu_ld" = no; then
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld='+b $libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_direct=yes
9403 hardcode_direct_absolute=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 fi
9409 ;;
9410
9411 hpux11*)
9412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 ia64*)
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 *)
9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 esac
9424 else
9425 case $host_cpu in
9426 hppa*64*)
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 ia64*)
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 *)
9433
9434 # Older versions of the 11.00 compiler do not understand -b yet
9435 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9437 $as_echo_n "checking if $CC understands -b... " >&6; }
9438 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_prog_compiler__b=no
9442 save_LDFLAGS="$LDFLAGS"
9443 LDFLAGS="$LDFLAGS -b"
9444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446 # The linker can only warn and ignore the option if not recognized
9447 # So say no if there are warnings
9448 if test -s conftest.err; then
9449 # Append any errors to the config.log.
9450 cat conftest.err 1>&5
9451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453 if diff conftest.exp conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler__b=yes
9455 fi
9456 else
9457 lt_cv_prog_compiler__b=yes
9458 fi
9459 fi
9460 $RM -r conftest*
9461 LDFLAGS="$save_LDFLAGS"
9462
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9465 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9466
9467 if test x"$lt_cv_prog_compiler__b" = xyes; then
9468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469 else
9470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471 fi
9472
9473 ;;
9474 esac
9475 fi
9476 if test "$with_gnu_ld" = no; then
9477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479
9480 case $host_cpu in
9481 hppa*64*|ia64*)
9482 hardcode_direct=no
9483 hardcode_shlibpath_var=no
9484 ;;
9485 *)
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 ;;
9494 esac
9495 fi
9496 ;;
9497
9498 irix5* | irix6* | nonstopux*)
9499 if test "$GCC" = yes; then
9500 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'
9501 # Try to use the -exported_symbol ld option, if it does not
9502 # work, assume that -exports_file does not work either and
9503 # implicitly export all symbols.
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 int foo(void) {}
9509 _ACEOF
9510 if ac_fn_c_try_link "$LINENO"; then :
9511 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'
9512
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LDFLAGS="$save_LDFLAGS"
9517 else
9518 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'
9519 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'
9520 fi
9521 archive_cmds_need_lc='no'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 inherit_rpath=yes
9525 link_all_deplibs=yes
9526 ;;
9527
9528 netbsd*)
9529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 else
9532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 fi
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 newsos6)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 *nto* | *qnx*)
9548 ;;
9549
9550 openbsd*)
9551 if test -f /usr/libexec/ld.so; then
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 hardcode_direct_absolute=yes
9555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9559 export_dynamic_flag_spec='${wl}-E'
9560 else
9561 case $host_os in
9562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 ;;
9566 *)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 ;;
9570 esac
9571 fi
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9576
9577 os2*)
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_minus_L=yes
9580 allow_undefined_flag=unsupported
9581 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'
9582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 ;;
9584
9585 osf3*)
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 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'
9589 else
9590 allow_undefined_flag=' -expect_unresolved \*'
9591 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'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596 ;;
9597
9598 osf4* | osf5*) # as osf3* with the addition of -msym flag
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 else
9604 allow_undefined_flag=' -expect_unresolved \*'
9605 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'
9606 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~
9607 $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'
9608
9609 # Both c and cxx compiler support -rpath directly
9610 hardcode_libdir_flag_spec='-rpath $libdir'
9611 fi
9612 archive_cmds_need_lc='no'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 solaris*)
9617 no_undefined_flag=' -z defs'
9618 if test "$GCC" = yes; then
9619 wlarc='${wl}'
9620 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 else
9624 case `$CC -V 2>&1` in
9625 *"Compilers 5.0"*)
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 ;;
9631 *)
9632 wlarc='${wl}'
9633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 ;;
9637 esac
9638 fi
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_shlibpath_var=no
9641 case $host_os in
9642 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 *)
9644 # The compiler driver will combine and reorder linker options,
9645 # but understands `-z linker_flag'. GCC discards it without `$wl',
9646 # but is careful enough not to reorder.
9647 # Supported since Solaris 2.6 (maybe 2.5.1?)
9648 if test "$GCC" = yes; then
9649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 else
9651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 fi
9653 ;;
9654 esac
9655 link_all_deplibs=yes
9656 ;;
9657
9658 sunos4*)
9659 if test "x$host_vendor" = xsequent; then
9660 # Use $CC to link under sequent, because it throws in some extra .o
9661 # files that make .init and .fini sections work.
9662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 sysv4)
9673 case $host_vendor in
9674 sni)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes # is this really true???
9677 ;;
9678 siemens)
9679 ## LD is ld it makes a PLAMLIB
9680 ## CC just makes a GrossModule.
9681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682 reload_cmds='$CC -r -o $output$reload_objs'
9683 hardcode_direct=no
9684 ;;
9685 motorola)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 ;;
9689 esac
9690 runpath_var='LD_RUN_PATH'
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4.3*)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 export_dynamic_flag_spec='-Bexport'
9698 ;;
9699
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 runpath_var=LD_RUN_PATH
9705 hardcode_runpath_var=yes
9706 ld_shlibs=yes
9707 fi
9708 ;;
9709
9710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9711 no_undefined_flag='${wl}-z,text'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 runpath_var='LD_RUN_PATH'
9715
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 fi
9723 ;;
9724
9725 sysv5* | sco3.2v5* | sco5v6*)
9726 # Note: We can NOT use -z defs as we might desire, because we do not
9727 # link with -lc, and that would cause any symbols used from libc to
9728 # always be unresolved, which means just about no library would
9729 # ever link correctly. If we're not using GNU ld we use -z text
9730 # though, which does catch some bad symbols but isn't as heavy-handed
9731 # as -z defs.
9732 no_undefined_flag='${wl}-z,text'
9733 allow_undefined_flag='${wl}-z,nodefs'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 export_dynamic_flag_spec='${wl}-Bexport'
9740 runpath_var='LD_RUN_PATH'
9741
9742 if test "$GCC" = yes; then
9743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 fi
9749 ;;
9750
9751 uts4*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 *)
9758 ld_shlibs=no
9759 ;;
9760 esac
9761
9762 if test x$host_vendor = xsni; then
9763 case $host in
9764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9765 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 ;;
9767 esac
9768 fi
9769 fi
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9772 $as_echo "$ld_shlibs" >&6; }
9773 test "$ld_shlibs" = no && can_build_shared=no
9774
9775 with_gnu_ld=$with_gnu_ld
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791 #
9792 # Do we need to explicitly link libc?
9793 #
9794 case "x$archive_cmds_need_lc" in
9795 x|xyes)
9796 # Assume -lc should be added
9797 archive_cmds_need_lc=yes
9798
9799 if test "$enable_shared" = yes && test "$GCC" = yes; then
9800 case $archive_cmds in
9801 *'~'*)
9802 # FIXME: we may have to deal with multi-command sequences.
9803 ;;
9804 '$CC '*)
9805 # Test whether the compiler implicitly links with -lc since on some
9806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9807 # to ld, don't add -lc before -lgcc.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 $RM conftest*
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817 (eval $ac_compile) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; } 2>conftest.err; then
9821 soname=conftest
9822 lib=conftest
9823 libobjs=conftest.$ac_objext
9824 deplibs=
9825 wl=$lt_prog_compiler_wl
9826 pic_flag=$lt_prog_compiler_pic
9827 compiler_flags=-v
9828 linker_flags=-v
9829 verstring=
9830 output_objdir=.
9831 libname=conftest
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 ac_status=$?
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; }
9839 then
9840 lt_cv_archive_cmds_need_lc=no
9841 else
9842 lt_cv_archive_cmds_need_lc=yes
9843 fi
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 else
9846 cat conftest.err 1>&5
9847 fi
9848 $RM conftest*
9849
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9852 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9854 ;;
9855 esac
9856 fi
9857 ;;
9858 esac
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10017 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10018
10019 if test "$GCC" = yes; then
10020 case $host_os in
10021 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10022 *) lt_awk_arg="/^libraries:/" ;;
10023 esac
10024 case $host_os in
10025 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10026 *) lt_sed_strip_eq="s,=/,/,g" ;;
10027 esac
10028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10029 case $lt_search_path_spec in
10030 *\;*)
10031 # if the path contains ";" then we assume it to be the separator
10032 # otherwise default to the standard path separator (i.e. ":") - it is
10033 # assumed that no part of a normal pathname contains ";" but that should
10034 # okay in the real world where ";" in dirpaths is itself problematic.
10035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10036 ;;
10037 *)
10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10039 ;;
10040 esac
10041 # Ok, now we have the path, separated by spaces, we can step through it
10042 # and add multilib dir if necessary.
10043 lt_tmp_lt_search_path_spec=
10044 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10045 for lt_sys_path in $lt_search_path_spec; do
10046 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10048 else
10049 test -d "$lt_sys_path" && \
10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10051 fi
10052 done
10053 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10054 BEGIN {RS=" "; FS="/|\n";} {
10055 lt_foo="";
10056 lt_count=0;
10057 for (lt_i = NF; lt_i > 0; lt_i--) {
10058 if ($lt_i != "" && $lt_i != ".") {
10059 if ($lt_i == "..") {
10060 lt_count++;
10061 } else {
10062 if (lt_count == 0) {
10063 lt_foo="/" $lt_i lt_foo;
10064 } else {
10065 lt_count--;
10066 }
10067 }
10068 }
10069 }
10070 if (lt_foo != "") { lt_freq[lt_foo]++; }
10071 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10072 }'`
10073 # AWK program above erroneously prepends '/' to C:/dos/paths
10074 # for these hosts.
10075 case $host_os in
10076 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10077 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10078 esac
10079 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10080 else
10081 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10082 fi
10083 library_names_spec=
10084 libname_spec='lib$name'
10085 soname_spec=
10086 shrext_cmds=".so"
10087 postinstall_cmds=
10088 postuninstall_cmds=
10089 finish_cmds=
10090 finish_eval=
10091 shlibpath_var=
10092 shlibpath_overrides_runpath=unknown
10093 version_type=none
10094 dynamic_linker="$host_os ld.so"
10095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10096 need_lib_prefix=unknown
10097 hardcode_into_libs=no
10098
10099 # when you set need_version to no, make sure it does not cause -set_version
10100 # flags to be left without arguments
10101 need_version=unknown
10102
10103 case $host_os in
10104 aix3*)
10105 version_type=linux
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10107 shlibpath_var=LIBPATH
10108
10109 # AIX 3 has no versioning support, so we append a major version to the name.
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 ;;
10112
10113 aix[4-9]*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 hardcode_into_libs=yes
10118 if test "$host_cpu" = ia64; then
10119 # AIX 5 supports IA64
10120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 else
10123 # With GCC up to 2.95.x, collect2 would create an import file
10124 # for dependence libraries. The import file would start with
10125 # the line `#! .'. This would cause the generated library to
10126 # depend on `.', always an invalid library. This was fixed in
10127 # development snapshots of GCC prior to 3.0.
10128 case $host_os in
10129 aix4 | aix4.[01] | aix4.[01].*)
10130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10131 echo ' yes '
10132 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10133 :
10134 else
10135 can_build_shared=no
10136 fi
10137 ;;
10138 esac
10139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10140 # soname into executable. Probably we can add versioning support to
10141 # collect2, so additional links can be useful in future.
10142 if test "$aix_use_runtimelinking" = yes; then
10143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10144 # instead of lib<name>.a to let people know that these are not
10145 # typical AIX shared libraries.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 else
10148 # We preserve .a as extension for shared libraries through AIX4.2
10149 # and later when we are not doing run time linking.
10150 library_names_spec='${libname}${release}.a $libname.a'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 fi
10153 shlibpath_var=LIBPATH
10154 fi
10155 ;;
10156
10157 amigaos*)
10158 case $host_cpu in
10159 powerpc)
10160 # Since July 2007 AmigaOS4 officially supports .so libraries.
10161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 ;;
10164 m68k)
10165 library_names_spec='$libname.ixlibrary $libname.a'
10166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10167 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'
10168 ;;
10169 esac
10170 ;;
10171
10172 beos*)
10173 library_names_spec='${libname}${shared_ext}'
10174 dynamic_linker="$host_os ld.so"
10175 shlibpath_var=LIBRARY_PATH
10176 ;;
10177
10178 bsdi[45]*)
10179 version_type=linux
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10187 # the default ld.so.conf also contains /usr/contrib/lib and
10188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10189 # libtool to hard-code these into programs
10190 ;;
10191
10192 cygwin* | mingw* | pw32* | cegcc*)
10193 version_type=windows
10194 shrext_cmds=".dll"
10195 need_version=no
10196 need_lib_prefix=no
10197
10198 case $GCC,$host_os in
10199 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10200 library_names_spec='$libname.dll.a'
10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202 postinstall_cmds='base_file=`basename \${file}`~
10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204 dldir=$destdir/`dirname \$dlpath`~
10205 test -d \$dldir || mkdir -p \$dldir~
10206 $install_prog $dir/$dlname \$dldir/$dlname~
10207 chmod a+x \$dldir/$dlname~
10208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 fi'
10211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212 dlpath=$dir/\$dldll~
10213 $RM \$dlpath'
10214 shlibpath_overrides_runpath=yes
10215
10216 case $host_os in
10217 cygwin*)
10218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220
10221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10222 ;;
10223 mingw* | cegcc*)
10224 # MinGW DLLs use traditional 'lib' prefix
10225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 ;;
10227 pw32*)
10228 # pw32 DLLs use 'pw' prefix rather than 'lib'
10229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 ;;
10231 esac
10232 ;;
10233
10234 *)
10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10236 ;;
10237 esac
10238 dynamic_linker='Win32 ld.exe'
10239 # FIXME: first we should search . and the directory the executable is in
10240 shlibpath_var=PATH
10241 ;;
10242
10243 darwin* | rhapsody*)
10244 dynamic_linker="$host_os dyld"
10245 version_type=darwin
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10249 soname_spec='${libname}${release}${major}$shared_ext'
10250 shlibpath_overrides_runpath=yes
10251 shlibpath_var=DYLD_LIBRARY_PATH
10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10253
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 ;;
10257
10258 dgux*)
10259 version_type=linux
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 ;;
10266
10267 freebsd* | dragonfly*)
10268 # DragonFly does not have aout. When/if they implement a new
10269 # versioning mechanism, adjust this.
10270 if test -x /usr/bin/objformat; then
10271 objformat=`/usr/bin/objformat`
10272 else
10273 case $host_os in
10274 freebsd[23].*) objformat=aout ;;
10275 *) objformat=elf ;;
10276 esac
10277 fi
10278 version_type=freebsd-$objformat
10279 case $version_type in
10280 freebsd-elf*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10282 need_version=no
10283 need_lib_prefix=no
10284 ;;
10285 freebsd-*)
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10287 need_version=yes
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_os in
10292 freebsd2.*)
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295 freebsd3.[01]* | freebsdelf3.[01]*)
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 ;;
10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 ;;
10304 *) # from 4.6 on, and DragonFly
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 esac
10309 ;;
10310
10311 gnu*)
10312 version_type=linux
10313 need_lib_prefix=no
10314 need_version=no
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 hardcode_into_libs=yes
10319 ;;
10320
10321 haiku*)
10322 version_type=linux
10323 need_lib_prefix=no
10324 need_version=no
10325 dynamic_linker="$host_os runtime_loader"
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10331 hardcode_into_libs=yes
10332 ;;
10333
10334 hpux9* | hpux10* | hpux11*)
10335 # Give a soname corresponding to the major version so that dld.sl refuses to
10336 # link against other versions.
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 case $host_cpu in
10341 ia64*)
10342 shrext_cmds='.so'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.so"
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 if test "X$HPUX_IA64_MODE" = X32; then
10350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 else
10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 fi
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 ;;
10356 hppa*64*)
10357 shrext_cmds='.sl'
10358 hardcode_into_libs=yes
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366 ;;
10367 *)
10368 shrext_cmds='.sl'
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=SHLIB_PATH
10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 ;;
10375 esac
10376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10377 postinstall_cmds='chmod 555 $lib'
10378 # or fails outright, so override atomically:
10379 install_override_mode=555
10380 ;;
10381
10382 interix[3-9]*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 ;;
10393
10394 irix5* | irix6* | nonstopux*)
10395 case $host_os in
10396 nonstopux*) version_type=nonstopux ;;
10397 *)
10398 if test "$lt_cv_prog_gnu_ld" = yes; then
10399 version_type=linux
10400 else
10401 version_type=irix
10402 fi ;;
10403 esac
10404 need_lib_prefix=no
10405 need_version=no
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408 case $host_os in
10409 irix5* | nonstopux*)
10410 libsuff= shlibsuff=
10411 ;;
10412 *)
10413 case $LD in # libtool.m4 will add one of these switches to LD
10414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10415 libsuff= shlibsuff= libmagic=32-bit;;
10416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10417 libsuff=32 shlibsuff=N32 libmagic=N32;;
10418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10420 *) libsuff= shlibsuff= libmagic=never-match;;
10421 esac
10422 ;;
10423 esac
10424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10425 shlibpath_overrides_runpath=no
10426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10428 hardcode_into_libs=yes
10429 ;;
10430
10431 # No shared lib support for Linux oldld, aout, or coff.
10432 linux*oldld* | linux*aout* | linux*coff*)
10433 dynamic_linker=no
10434 ;;
10435
10436 # This must be Linux ELF.
10437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10438 version_type=linux
10439 need_lib_prefix=no
10440 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446
10447 # Some binutils ld are patched to set DT_RUNPATH
10448 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 lt_cv_shlibpath_overrides_runpath=no
10452 save_LDFLAGS=$LDFLAGS
10453 save_libdir=$libdir
10454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458
10459 int
10460 main ()
10461 {
10462
10463 ;
10464 return 0;
10465 }
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"; then :
10468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10469 lt_cv_shlibpath_overrides_runpath=yes
10470 fi
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LDFLAGS=$save_LDFLAGS
10475 libdir=$save_libdir
10476
10477 fi
10478
10479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10480
10481 # This implies no fast_install, which is unacceptable.
10482 # Some rework will be needed to allow for fast_install
10483 # before this can be enabled.
10484 hardcode_into_libs=yes
10485
10486 # Append ld.so.conf contents to the search path
10487 if test -f /etc/ld.so.conf; then
10488 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' ' '`
10489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10490 fi
10491
10492 # We used to test for /lib/ld.so.1 and disable shared libraries on
10493 # powerpc, because MkLinux only supported shared libraries with the
10494 # GNU dynamic linker. Since this was broken with cross compilers,
10495 # most powerpc-linux boxes support dynamic linking these days and
10496 # people can always --disable-shared, the test was removed, and we
10497 # assume the GNU/Linux dynamic linker is in use.
10498 dynamic_linker='GNU/Linux ld.so'
10499 ;;
10500
10501 netbsd*)
10502 version_type=sunos
10503 need_lib_prefix=no
10504 need_version=no
10505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 dynamic_linker='NetBSD (a.out) ld.so'
10509 else
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 dynamic_linker='NetBSD ld.elf_so'
10513 fi
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes
10516 hardcode_into_libs=yes
10517 ;;
10518
10519 newsos6)
10520 version_type=linux
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=yes
10524 ;;
10525
10526 *nto* | *qnx*)
10527 version_type=qnx
10528 need_lib_prefix=no
10529 need_version=no
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 dynamic_linker='ldqnx.so'
10536 ;;
10537
10538 openbsd*)
10539 version_type=sunos
10540 sys_lib_dlsearch_path_spec="/usr/lib"
10541 need_lib_prefix=no
10542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10543 case $host_os in
10544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10545 *) need_version=no ;;
10546 esac
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10551 case $host_os in
10552 openbsd2.[89] | openbsd2.[89].*)
10553 shlibpath_overrides_runpath=no
10554 ;;
10555 *)
10556 shlibpath_overrides_runpath=yes
10557 ;;
10558 esac
10559 else
10560 shlibpath_overrides_runpath=yes
10561 fi
10562 ;;
10563
10564 os2*)
10565 libname_spec='$name'
10566 shrext_cmds=".dll"
10567 need_lib_prefix=no
10568 library_names_spec='$libname${shared_ext} $libname.a'
10569 dynamic_linker='OS/2 ld.exe'
10570 shlibpath_var=LIBPATH
10571 ;;
10572
10573 osf3* | osf4* | osf5*)
10574 version_type=osf
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10582 ;;
10583
10584 rdos*)
10585 dynamic_linker=no
10586 ;;
10587
10588 solaris*)
10589 version_type=linux
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 hardcode_into_libs=yes
10597 # ldd complains unless libraries are executable
10598 postinstall_cmds='chmod +x $lib'
10599 ;;
10600
10601 sunos4*)
10602 version_type=sunos
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 if test "$with_gnu_ld" = yes; then
10608 need_lib_prefix=no
10609 fi
10610 need_version=yes
10611 ;;
10612
10613 sysv4 | sysv4.3*)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 case $host_vendor in
10619 sni)
10620 shlibpath_overrides_runpath=no
10621 need_lib_prefix=no
10622 runpath_var=LD_RUN_PATH
10623 ;;
10624 siemens)
10625 need_lib_prefix=no
10626 ;;
10627 motorola)
10628 need_lib_prefix=no
10629 need_version=no
10630 shlibpath_overrides_runpath=no
10631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10632 ;;
10633 esac
10634 ;;
10635
10636 sysv4*MP*)
10637 if test -d /usr/nec ;then
10638 version_type=linux
10639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10640 soname_spec='$libname${shared_ext}.$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 fi
10643 ;;
10644
10645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10646 version_type=freebsd-elf
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10654 if test "$with_gnu_ld" = yes; then
10655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10656 else
10657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10658 case $host_os in
10659 sco3.2v5*)
10660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10661 ;;
10662 esac
10663 fi
10664 sys_lib_dlsearch_path_spec='/usr/lib'
10665 ;;
10666
10667 tpf*)
10668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10669 version_type=linux
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 ;;
10677
10678 uts4*)
10679 version_type=linux
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 ;;
10684
10685 *)
10686 dynamic_linker=no
10687 ;;
10688 esac
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10690 $as_echo "$dynamic_linker" >&6; }
10691 test "$dynamic_linker" = no && can_build_shared=no
10692
10693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10694 if test "$GCC" = yes; then
10695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10696 fi
10697
10698 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10699 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10700 fi
10701 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10702 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10703 fi
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10797 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10798 hardcode_action=
10799 if test -n "$hardcode_libdir_flag_spec" ||
10800 test -n "$runpath_var" ||
10801 test "X$hardcode_automatic" = "Xyes" ; then
10802
10803 # We can hardcode non-existent directories.
10804 if test "$hardcode_direct" != no &&
10805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10806 # have to relink, otherwise we might link with an installed library
10807 # when we should be linking with a yet-to-be-installed one
10808 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10809 test "$hardcode_minus_L" != no; then
10810 # Linking always hardcodes the temporary library directory.
10811 hardcode_action=relink
10812 else
10813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10814 hardcode_action=immediate
10815 fi
10816 else
10817 # We cannot hardcode anything, or else we can only hardcode existing
10818 # directories.
10819 hardcode_action=unsupported
10820 fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10822 $as_echo "$hardcode_action" >&6; }
10823
10824 if test "$hardcode_action" = relink ||
10825 test "$inherit_rpath" = yes; then
10826 # Fast installation is not supported
10827 enable_fast_install=no
10828 elif test "$shlibpath_overrides_runpath" = yes ||
10829 test "$enable_shared" = no; then
10830 # Fast installation is not necessary
10831 enable_fast_install=needless
10832 fi
10833
10834
10835
10836
10837
10838
10839 if test "x$enable_dlopen" != xyes; then
10840 enable_dlopen=unknown
10841 enable_dlopen_self=unknown
10842 enable_dlopen_self_static=unknown
10843 else
10844 lt_cv_dlopen=no
10845 lt_cv_dlopen_libs=
10846
10847 case $host_os in
10848 beos*)
10849 lt_cv_dlopen="load_add_on"
10850 lt_cv_dlopen_libs=
10851 lt_cv_dlopen_self=yes
10852 ;;
10853
10854 mingw* | pw32* | cegcc*)
10855 lt_cv_dlopen="LoadLibrary"
10856 lt_cv_dlopen_libs=
10857 ;;
10858
10859 cygwin*)
10860 lt_cv_dlopen="dlopen"
10861 lt_cv_dlopen_libs=
10862 ;;
10863
10864 darwin*)
10865 # if libdl is installed we need to link against it
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10867 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-ldl $LIBS"
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char dlopen ();
10883 int
10884 main ()
10885 {
10886 return dlopen ();
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892 ac_cv_lib_dl_dlopen=yes
10893 else
10894 ac_cv_lib_dl_dlopen=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10901 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10902 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10904 else
10905
10906 lt_cv_dlopen="dyld"
10907 lt_cv_dlopen_libs=
10908 lt_cv_dlopen_self=yes
10909
10910 fi
10911
10912 ;;
10913
10914 *)
10915 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10916 if test "x$ac_cv_func_shl_load" = x""yes; then :
10917 lt_cv_dlopen="shl_load"
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10920 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-ldld $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char shl_load ();
10936 int
10937 main ()
10938 {
10939 return shl_load ();
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dld_shl_load=yes
10946 else
10947 ac_cv_lib_dld_shl_load=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10954 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10955 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10956 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10957 else
10958 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10959 if test "x$ac_cv_func_dlopen" = x""yes; then :
10960 lt_cv_dlopen="dlopen"
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10963 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-ldl $LIBS"
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dlopen ();
10979 int
10980 main ()
10981 {
10982 return dlopen ();
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_dl_dlopen=yes
10989 else
10990 ac_cv_lib_dl_dlopen=no
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10997 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10998 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11002 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11003 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 ac_check_lib_save_LIBS=$LIBS
11007 LIBS="-lsvld $LIBS"
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010
11011 /* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 char dlopen ();
11018 int
11019 main ()
11020 {
11021 return dlopen ();
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"; then :
11027 ac_cv_lib_svld_dlopen=yes
11028 else
11029 ac_cv_lib_svld_dlopen=no
11030 fi
11031 rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11036 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11041 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11042 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-ldld $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char dld_link ();
11057 int
11058 main ()
11059 {
11060 return dld_link ();
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_dld_dld_link=yes
11067 else
11068 ac_cv_lib_dld_dld_link=no
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11075 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11076 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11077 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11078 fi
11079
11080
11081 fi
11082
11083
11084 fi
11085
11086
11087 fi
11088
11089
11090 fi
11091
11092
11093 fi
11094
11095 ;;
11096 esac
11097
11098 if test "x$lt_cv_dlopen" != xno; then
11099 enable_dlopen=yes
11100 else
11101 enable_dlopen=no
11102 fi
11103
11104 case $lt_cv_dlopen in
11105 dlopen)
11106 save_CPPFLAGS="$CPPFLAGS"
11107 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11108
11109 save_LDFLAGS="$LDFLAGS"
11110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11111
11112 save_LIBS="$LIBS"
11113 LIBS="$lt_cv_dlopen_libs $LIBS"
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11116 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11117 if test "${lt_cv_dlopen_self+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self=cross
11122 else
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<_LT_EOF
11126 #line 11126 "configure"
11127 #include "confdefs.h"
11128
11129 #if HAVE_DLFCN_H
11130 #include <dlfcn.h>
11131 #endif
11132
11133 #include <stdio.h>
11134
11135 #ifdef RTLD_GLOBAL
11136 # define LT_DLGLOBAL RTLD_GLOBAL
11137 #else
11138 # ifdef DL_GLOBAL
11139 # define LT_DLGLOBAL DL_GLOBAL
11140 # else
11141 # define LT_DLGLOBAL 0
11142 # endif
11143 #endif
11144
11145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147 #ifndef LT_DLLAZY_OR_NOW
11148 # ifdef RTLD_LAZY
11149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11150 # else
11151 # ifdef DL_LAZY
11152 # define LT_DLLAZY_OR_NOW DL_LAZY
11153 # else
11154 # ifdef RTLD_NOW
11155 # define LT_DLLAZY_OR_NOW RTLD_NOW
11156 # else
11157 # ifdef DL_NOW
11158 # define LT_DLLAZY_OR_NOW DL_NOW
11159 # else
11160 # define LT_DLLAZY_OR_NOW 0
11161 # endif
11162 # endif
11163 # endif
11164 # endif
11165 #endif
11166
11167 /* When -fvisbility=hidden is used, assume the code has been annotated
11168 correspondingly for the symbols needed. */
11169 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11170 void fnord () __attribute__((visibility("default")));
11171 #endif
11172
11173 void fnord () { int i=42; }
11174 int main ()
11175 {
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11178
11179 if (self)
11180 {
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else
11183 {
11184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 else puts (dlerror ());
11186 }
11187 /* dlclose (self); */
11188 }
11189 else
11190 puts (dlerror ());
11191
11192 return status;
11193 }
11194 _LT_EOF
11195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11199 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11200 (./conftest; exit; ) >&5 2>/dev/null
11201 lt_status=$?
11202 case x$lt_status in
11203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11206 esac
11207 else :
11208 # compilation failed
11209 lt_cv_dlopen_self=no
11210 fi
11211 fi
11212 rm -fr conftest*
11213
11214
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11217 $as_echo "$lt_cv_dlopen_self" >&6; }
11218
11219 if test "x$lt_cv_dlopen_self" = xyes; then
11220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11222 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11223 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if test "$cross_compiling" = yes; then :
11227 lt_cv_dlopen_self_static=cross
11228 else
11229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11230 lt_status=$lt_dlunknown
11231 cat > conftest.$ac_ext <<_LT_EOF
11232 #line 11232 "configure"
11233 #include "confdefs.h"
11234
11235 #if HAVE_DLFCN_H
11236 #include <dlfcn.h>
11237 #endif
11238
11239 #include <stdio.h>
11240
11241 #ifdef RTLD_GLOBAL
11242 # define LT_DLGLOBAL RTLD_GLOBAL
11243 #else
11244 # ifdef DL_GLOBAL
11245 # define LT_DLGLOBAL DL_GLOBAL
11246 # else
11247 # define LT_DLGLOBAL 0
11248 # endif
11249 #endif
11250
11251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11252 find out it does not work in some platform. */
11253 #ifndef LT_DLLAZY_OR_NOW
11254 # ifdef RTLD_LAZY
11255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11256 # else
11257 # ifdef DL_LAZY
11258 # define LT_DLLAZY_OR_NOW DL_LAZY
11259 # else
11260 # ifdef RTLD_NOW
11261 # define LT_DLLAZY_OR_NOW RTLD_NOW
11262 # else
11263 # ifdef DL_NOW
11264 # define LT_DLLAZY_OR_NOW DL_NOW
11265 # else
11266 # define LT_DLLAZY_OR_NOW 0
11267 # endif
11268 # endif
11269 # endif
11270 # endif
11271 #endif
11272
11273 /* When -fvisbility=hidden is used, assume the code has been annotated
11274 correspondingly for the symbols needed. */
11275 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11276 void fnord () __attribute__((visibility("default")));
11277 #endif
11278
11279 void fnord () { int i=42; }
11280 int main ()
11281 {
11282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283 int status = $lt_dlunknown;
11284
11285 if (self)
11286 {
11287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11288 else
11289 {
11290 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11291 else puts (dlerror ());
11292 }
11293 /* dlclose (self); */
11294 }
11295 else
11296 puts (dlerror ());
11297
11298 return status;
11299 }
11300 _LT_EOF
11301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11302 (eval $ac_link) 2>&5
11303 ac_status=$?
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11306 (./conftest; exit; ) >&5 2>/dev/null
11307 lt_status=$?
11308 case x$lt_status in
11309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11312 esac
11313 else :
11314 # compilation failed
11315 lt_cv_dlopen_self_static=no
11316 fi
11317 fi
11318 rm -fr conftest*
11319
11320
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11323 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11324 fi
11325
11326 CPPFLAGS="$save_CPPFLAGS"
11327 LDFLAGS="$save_LDFLAGS"
11328 LIBS="$save_LIBS"
11329 ;;
11330 esac
11331
11332 case $lt_cv_dlopen_self in
11333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11334 *) enable_dlopen_self=unknown ;;
11335 esac
11336
11337 case $lt_cv_dlopen_self_static in
11338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11339 *) enable_dlopen_self_static=unknown ;;
11340 esac
11341 fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 striplib=
11360 old_striplib=
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11362 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11363 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; }
11368 else
11369 # FIXME - insert some real tests, host_os isn't really good enough
11370 case $host_os in
11371 darwin*)
11372 if test -n "$STRIP" ; then
11373 striplib="$STRIP -x"
11374 old_striplib="$STRIP -S"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376 $as_echo "yes" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381 ;;
11382 *)
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 ;;
11386 esac
11387 fi
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400 # Report which library types will actually be built
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11402 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11404 $as_echo "$can_build_shared" >&6; }
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11407 $as_echo_n "checking whether to build shared libraries... " >&6; }
11408 test "$can_build_shared" = "no" && enable_shared=no
11409
11410 # On AIX, shared libraries and static libraries use the same namespace, and
11411 # are all built from PIC.
11412 case $host_os in
11413 aix3*)
11414 test "$enable_shared" = yes && enable_static=no
11415 if test -n "$RANLIB"; then
11416 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11417 postinstall_cmds='$RANLIB $lib'
11418 fi
11419 ;;
11420
11421 aix[4-9]*)
11422 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11423 test "$enable_shared" = yes && enable_static=no
11424 fi
11425 ;;
11426 esac
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11428 $as_echo "$enable_shared" >&6; }
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11431 $as_echo_n "checking whether to build static libraries... " >&6; }
11432 # Make sure either enable_shared or enable_static is yes.
11433 test "$enable_shared" = yes || enable_static=yes
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11435 $as_echo "$enable_static" >&6; }
11436
11437
11438
11439
11440 fi
11441 ac_ext=c
11442 ac_cpp='$CPP $CPPFLAGS'
11443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447 CC="$lt_save_CC"
11448
11449 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11450 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11451 (test "X$CXX" != "Xg++"))) ; then
11452 ac_ext=cpp
11453 ac_cpp='$CXXCPP $CPPFLAGS'
11454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11458 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11459 if test -z "$CXXCPP"; then
11460 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 # Double quotes because CXXCPP needs to be expanded
11464 for CXXCPP in "$CXX -E" "/lib/cpp"
11465 do
11466 ac_preproc_ok=false
11467 for ac_cxx_preproc_warn_flag in '' yes
11468 do
11469 # Use a header file that comes with gcc, so configuring glibc
11470 # with a fresh cross-compiler works.
11471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 # <limits.h> exists even on freestanding compilers.
11473 # On the NeXT, cc -E runs the code through the compiler's parser,
11474 # not just through cpp. "Syntax error" is here to catch this case.
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 #ifdef __STDC__
11478 # include <limits.h>
11479 #else
11480 # include <assert.h>
11481 #endif
11482 Syntax error
11483 _ACEOF
11484 if ac_fn_cxx_try_cpp "$LINENO"; then :
11485
11486 else
11487 # Broken: fails on valid input.
11488 continue
11489 fi
11490 rm -f conftest.err conftest.$ac_ext
11491
11492 # OK, works on sane cases. Now check whether nonexistent headers
11493 # can be detected and how.
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11496 #include <ac_nonexistent.h>
11497 _ACEOF
11498 if ac_fn_cxx_try_cpp "$LINENO"; then :
11499 # Broken: success on invalid input.
11500 continue
11501 else
11502 # Passes both tests.
11503 ac_preproc_ok=:
11504 break
11505 fi
11506 rm -f conftest.err conftest.$ac_ext
11507
11508 done
11509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11510 rm -f conftest.err conftest.$ac_ext
11511 if $ac_preproc_ok; then :
11512 break
11513 fi
11514
11515 done
11516 ac_cv_prog_CXXCPP=$CXXCPP
11517
11518 fi
11519 CXXCPP=$ac_cv_prog_CXXCPP
11520 else
11521 ac_cv_prog_CXXCPP=$CXXCPP
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11524 $as_echo "$CXXCPP" >&6; }
11525 ac_preproc_ok=false
11526 for ac_cxx_preproc_warn_flag in '' yes
11527 do
11528 # Use a header file that comes with gcc, so configuring glibc
11529 # with a fresh cross-compiler works.
11530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 # <limits.h> exists even on freestanding compilers.
11532 # On the NeXT, cc -E runs the code through the compiler's parser,
11533 # not just through cpp. "Syntax error" is here to catch this case.
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11541 Syntax error
11542 _ACEOF
11543 if ac_fn_cxx_try_cpp "$LINENO"; then :
11544
11545 else
11546 # Broken: fails on valid input.
11547 continue
11548 fi
11549 rm -f conftest.err conftest.$ac_ext
11550
11551 # OK, works on sane cases. Now check whether nonexistent headers
11552 # can be detected and how.
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <ac_nonexistent.h>
11556 _ACEOF
11557 if ac_fn_cxx_try_cpp "$LINENO"; then :
11558 # Broken: success on invalid input.
11559 continue
11560 else
11561 # Passes both tests.
11562 ac_preproc_ok=:
11563 break
11564 fi
11565 rm -f conftest.err conftest.$ac_ext
11566
11567 done
11568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11569 rm -f conftest.err conftest.$ac_ext
11570 if $ac_preproc_ok; then :
11571
11572 else
11573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11575 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11576 See \`config.log' for more details." "$LINENO" 5; }
11577 fi
11578
11579 ac_ext=c
11580 ac_cpp='$CPP $CPPFLAGS'
11581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11584
11585 else
11586 _lt_caught_CXX_error=yes
11587 fi
11588
11589 ac_ext=cpp
11590 ac_cpp='$CXXCPP $CPPFLAGS'
11591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11594
11595 archive_cmds_need_lc_CXX=no
11596 allow_undefined_flag_CXX=
11597 always_export_symbols_CXX=no
11598 archive_expsym_cmds_CXX=
11599 compiler_needs_object_CXX=no
11600 export_dynamic_flag_spec_CXX=
11601 hardcode_direct_CXX=no
11602 hardcode_direct_absolute_CXX=no
11603 hardcode_libdir_flag_spec_CXX=
11604 hardcode_libdir_flag_spec_ld_CXX=
11605 hardcode_libdir_separator_CXX=
11606 hardcode_minus_L_CXX=no
11607 hardcode_shlibpath_var_CXX=unsupported
11608 hardcode_automatic_CXX=no
11609 inherit_rpath_CXX=no
11610 module_cmds_CXX=
11611 module_expsym_cmds_CXX=
11612 link_all_deplibs_CXX=unknown
11613 old_archive_cmds_CXX=$old_archive_cmds
11614 reload_flag_CXX=$reload_flag
11615 reload_cmds_CXX=$reload_cmds
11616 no_undefined_flag_CXX=
11617 whole_archive_flag_spec_CXX=
11618 enable_shared_with_static_runtimes_CXX=no
11619
11620 # Source file extension for C++ test sources.
11621 ac_ext=cpp
11622
11623 # Object file extension for compiled C++ test sources.
11624 objext=o
11625 objext_CXX=$objext
11626
11627 # No sense in running all these tests if we already determined that
11628 # the CXX compiler isn't working. Some variables (like enable_shared)
11629 # are currently assumed to apply to all compilers on this platform,
11630 # and will be corrupted by setting them based on a non-working compiler.
11631 if test "$_lt_caught_CXX_error" != yes; then
11632 # Code to be used in simple compile tests
11633 lt_simple_compile_test_code="int some_variable = 0;"
11634
11635 # Code to be used in simple link tests
11636 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11637
11638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11639
11640
11641
11642
11643
11644
11645 # If no C compiler was specified, use CC.
11646 LTCC=${LTCC-"$CC"}
11647
11648 # If no C compiler flags were specified, use CFLAGS.
11649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11650
11651 # Allow CC to be a program name with arguments.
11652 compiler=$CC
11653
11654
11655 # save warnings/boilerplate of simple test code
11656 ac_outfile=conftest.$ac_objext
11657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11659 _lt_compiler_boilerplate=`cat conftest.err`
11660 $RM conftest*
11661
11662 ac_outfile=conftest.$ac_objext
11663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11665 _lt_linker_boilerplate=`cat conftest.err`
11666 $RM -r conftest*
11667
11668
11669 # Allow CC to be a program name with arguments.
11670 lt_save_CC=$CC
11671 lt_save_LD=$LD
11672 lt_save_GCC=$GCC
11673 GCC=$GXX
11674 lt_save_with_gnu_ld=$with_gnu_ld
11675 lt_save_path_LD=$lt_cv_path_LD
11676 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11677 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11678 else
11679 $as_unset lt_cv_prog_gnu_ld
11680 fi
11681 if test -n "${lt_cv_path_LDCXX+set}"; then
11682 lt_cv_path_LD=$lt_cv_path_LDCXX
11683 else
11684 $as_unset lt_cv_path_LD
11685 fi
11686 test -z "${LDCXX+set}" || LD=$LDCXX
11687 CC=${CXX-"c++"}
11688 compiler=$CC
11689 compiler_CXX=$CC
11690 for cc_temp in $compiler""; do
11691 case $cc_temp in
11692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11694 \-*) ;;
11695 *) break;;
11696 esac
11697 done
11698 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11699
11700
11701 if test -n "$compiler"; then
11702 # We don't want -fno-exception when compiling C++ code, so set the
11703 # no_builtin_flag separately
11704 if test "$GXX" = yes; then
11705 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11706 else
11707 lt_prog_compiler_no_builtin_flag_CXX=
11708 fi
11709
11710 if test "$GXX" = yes; then
11711 # Set up default GNU C++ configuration
11712
11713
11714
11715 # Check whether --with-gnu-ld was given.
11716 if test "${with_gnu_ld+set}" = set; then :
11717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11718 else
11719 with_gnu_ld=no
11720 fi
11721
11722 ac_prog=ld
11723 if test "$GCC" = yes; then
11724 # Check if gcc -print-prog-name=ld gives a path.
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11726 $as_echo_n "checking for ld used by $CC... " >&6; }
11727 case $host in
11728 *-*-mingw*)
11729 # gcc leaves a trailing carriage return which upsets mingw
11730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11731 *)
11732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11733 esac
11734 case $ac_prog in
11735 # Accept absolute paths.
11736 [\\/]* | ?:[\\/]*)
11737 re_direlt='/[^/][^/]*/\.\./'
11738 # Canonicalize the pathname of ld
11739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11742 done
11743 test -z "$LD" && LD="$ac_prog"
11744 ;;
11745 "")
11746 # If it fails, then pretend we aren't using GCC.
11747 ac_prog=ld
11748 ;;
11749 *)
11750 # If it is relative, then search for the first ld in PATH.
11751 with_gnu_ld=unknown
11752 ;;
11753 esac
11754 elif test "$with_gnu_ld" = yes; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11756 $as_echo_n "checking for GNU ld... " >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11759 $as_echo_n "checking for non-GNU ld... " >&6; }
11760 fi
11761 if test "${lt_cv_path_LD+set}" = set; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 if test -z "$LD"; then
11765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11766 for ac_dir in $PATH; do
11767 IFS="$lt_save_ifs"
11768 test -z "$ac_dir" && ac_dir=.
11769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11770 lt_cv_path_LD="$ac_dir/$ac_prog"
11771 # Check to see if the program is GNU ld. I'd rather use --version,
11772 # but apparently some variants of GNU ld only accept -v.
11773 # Break only if it was the GNU/non-GNU ld that we prefer.
11774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11775 *GNU* | *'with BFD'*)
11776 test "$with_gnu_ld" != no && break
11777 ;;
11778 *)
11779 test "$with_gnu_ld" != yes && break
11780 ;;
11781 esac
11782 fi
11783 done
11784 IFS="$lt_save_ifs"
11785 else
11786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11787 fi
11788 fi
11789
11790 LD="$lt_cv_path_LD"
11791 if test -n "$LD"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11793 $as_echo "$LD" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11800 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11801 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11805 case `$LD -v 2>&1 </dev/null` in
11806 *GNU* | *'with BFD'*)
11807 lt_cv_prog_gnu_ld=yes
11808 ;;
11809 *)
11810 lt_cv_prog_gnu_ld=no
11811 ;;
11812 esac
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11815 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11816 with_gnu_ld=$lt_cv_prog_gnu_ld
11817
11818
11819
11820
11821
11822
11823
11824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11825 # archiving commands below assume that GNU ld is being used.
11826 if test "$with_gnu_ld" = yes; then
11827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11828 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'
11829
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11832
11833 # If archive_cmds runs LD, not CC, wlarc should be empty
11834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11835 # investigate it a little bit more. (MM)
11836 wlarc='${wl}'
11837
11838 # ancient GNU ld didn't support --whole-archive et. al.
11839 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11840 $GREP 'no-whole-archive' > /dev/null; then
11841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11842 else
11843 whole_archive_flag_spec_CXX=
11844 fi
11845 else
11846 with_gnu_ld=no
11847 wlarc=
11848
11849 # A generic and very simple default shared library creation
11850 # command for GNU C++ for the case where it uses the native
11851 # linker, instead of GNU ld. If possible, this setting should
11852 # overridden to take advantage of the native linker features on
11853 # the platform it is being used on.
11854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11855 fi
11856
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11861
11862 else
11863 GXX=no
11864 with_gnu_ld=no
11865 wlarc=
11866 fi
11867
11868 # PORTME: fill in a description of your system's C++ link characteristics
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11871 ld_shlibs_CXX=yes
11872 case $host_os in
11873 aix3*)
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11876 ;;
11877 aix[4-9]*)
11878 if test "$host_cpu" = ia64; then
11879 # On IA64, the linker does run time linking by default, so we don't
11880 # have to do anything special.
11881 aix_use_runtimelinking=no
11882 exp_sym_flag='-Bexport'
11883 no_entry_flag=""
11884 else
11885 aix_use_runtimelinking=no
11886
11887 # Test if we are trying to use run time linking or normal
11888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11889 # need to do runtime linking.
11890 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11891 for ld_flag in $LDFLAGS; do
11892 case $ld_flag in
11893 *-brtl*)
11894 aix_use_runtimelinking=yes
11895 break
11896 ;;
11897 esac
11898 done
11899 ;;
11900 esac
11901
11902 exp_sym_flag='-bexport'
11903 no_entry_flag='-bnoentry'
11904 fi
11905
11906 # When large executables or shared objects are built, AIX ld can
11907 # have problems creating the table of contents. If linking a library
11908 # or program results in "error TOC overflow" add -mminimal-toc to
11909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11911
11912 archive_cmds_CXX=''
11913 hardcode_direct_CXX=yes
11914 hardcode_direct_absolute_CXX=yes
11915 hardcode_libdir_separator_CXX=':'
11916 link_all_deplibs_CXX=yes
11917 file_list_spec_CXX='${wl}-f,'
11918
11919 if test "$GXX" = yes; then
11920 case $host_os in aix4.[012]|aix4.[012].*)
11921 # We only want to do this on AIX 4.2 and lower, the check
11922 # below for broken collect2 doesn't work under 4.3+
11923 collect2name=`${CC} -print-prog-name=collect2`
11924 if test -f "$collect2name" &&
11925 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11926 then
11927 # We have reworked collect2
11928 :
11929 else
11930 # We have old collect2
11931 hardcode_direct_CXX=unsupported
11932 # It fails to find uninstalled libraries when the uninstalled
11933 # path is not listed in the libpath. Setting hardcode_minus_L
11934 # to unsupported forces relinking
11935 hardcode_minus_L_CXX=yes
11936 hardcode_libdir_flag_spec_CXX='-L$libdir'
11937 hardcode_libdir_separator_CXX=
11938 fi
11939 esac
11940 shared_flag='-shared'
11941 if test "$aix_use_runtimelinking" = yes; then
11942 shared_flag="$shared_flag "'${wl}-G'
11943 fi
11944 else
11945 # not using gcc
11946 if test "$host_cpu" = ia64; then
11947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11948 # chokes on -Wl,-G. The following line is correct:
11949 shared_flag='-G'
11950 else
11951 if test "$aix_use_runtimelinking" = yes; then
11952 shared_flag='${wl}-G'
11953 else
11954 shared_flag='${wl}-bM:SRE'
11955 fi
11956 fi
11957 fi
11958
11959 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11960 # It seems that -bexpall does not export symbols beginning with
11961 # underscore (_), so it is better to generate a list of symbols to
11962 # export.
11963 always_export_symbols_CXX=yes
11964 if test "$aix_use_runtimelinking" = yes; then
11965 # Warning - without using the other runtime loading flags (-brtl),
11966 # -berok will link without error, but may produce a broken library.
11967 allow_undefined_flag_CXX='-berok'
11968 # Determine the default libpath from the value encoded in an empty
11969 # executable.
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972
11973 int
11974 main ()
11975 {
11976
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_cxx_try_link "$LINENO"; then :
11982
11983 lt_aix_libpath_sed='
11984 /Import File Strings/,/^$/ {
11985 /^0/ {
11986 s/^0 *\(.*\)$/\1/
11987 p
11988 }
11989 }'
11990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11991 # Check for a 64-bit object if we didn't find anything.
11992 if test -z "$aix_libpath"; then
11993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11994 fi
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11999
12000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12001
12002 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"
12003 else
12004 if test "$host_cpu" = ia64; then
12005 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12006 allow_undefined_flag_CXX="-z nodefs"
12007 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"
12008 else
12009 # Determine the default libpath from the value encoded in an
12010 # empty executable.
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013
12014 int
12015 main ()
12016 {
12017
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 if ac_fn_cxx_try_link "$LINENO"; then :
12023
12024 lt_aix_libpath_sed='
12025 /Import File Strings/,/^$/ {
12026 /^0/ {
12027 s/^0 *\(.*\)$/\1/
12028 p
12029 }
12030 }'
12031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12032 # Check for a 64-bit object if we didn't find anything.
12033 if test -z "$aix_libpath"; then
12034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12035 fi
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12040
12041 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12042 # Warning - without using the other run time loading flags,
12043 # -berok will link without error, but may produce a broken library.
12044 no_undefined_flag_CXX=' ${wl}-bernotok'
12045 allow_undefined_flag_CXX=' ${wl}-berok'
12046 if test "$with_gnu_ld" = yes; then
12047 # We only use this code for GNU lds that support --whole-archive.
12048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12049 else
12050 # Exported symbols can be pulled into shared objects from archives
12051 whole_archive_flag_spec_CXX='$convenience'
12052 fi
12053 archive_cmds_need_lc_CXX=yes
12054 # This is similar to how AIX traditionally builds its shared
12055 # libraries.
12056 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'
12057 fi
12058 fi
12059 ;;
12060
12061 beos*)
12062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12063 allow_undefined_flag_CXX=unsupported
12064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12065 # support --undefined. This deserves some investigation. FIXME
12066 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067 else
12068 ld_shlibs_CXX=no
12069 fi
12070 ;;
12071
12072 chorus*)
12073 case $cc_basename in
12074 *)
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12077 ;;
12078 esac
12079 ;;
12080
12081 cygwin* | mingw* | pw32* | cegcc*)
12082 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12083 # as there is no search path for DLLs.
12084 hardcode_libdir_flag_spec_CXX='-L$libdir'
12085 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12086 allow_undefined_flag_CXX=unsupported
12087 always_export_symbols_CXX=no
12088 enable_shared_with_static_runtimes_CXX=yes
12089
12090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12091 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'
12092 # If the export-symbols file already is a .def file (1st line
12093 # is EXPORTS), use it as is; otherwise, prepend...
12094 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12095 cp $export_symbols $output_objdir/$soname.def;
12096 else
12097 echo EXPORTS > $output_objdir/$soname.def;
12098 cat $export_symbols >> $output_objdir/$soname.def;
12099 fi~
12100 $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'
12101 else
12102 ld_shlibs_CXX=no
12103 fi
12104 ;;
12105 darwin* | rhapsody*)
12106
12107
12108 archive_cmds_need_lc_CXX=no
12109 hardcode_direct_CXX=no
12110 hardcode_automatic_CXX=yes
12111 hardcode_shlibpath_var_CXX=unsupported
12112 if test "$lt_cv_ld_force_load" = "yes"; then
12113 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\"`'
12114 else
12115 whole_archive_flag_spec_CXX=''
12116 fi
12117 link_all_deplibs_CXX=yes
12118 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12119 case $cc_basename in
12120 ifort*) _lt_dar_can_shared=yes ;;
12121 *) _lt_dar_can_shared=$GCC ;;
12122 esac
12123 if test "$_lt_dar_can_shared" = "yes"; then
12124 output_verbose_link_cmd=func_echo_all
12125 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}"
12126 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12127 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}"
12128 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}"
12129 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12130 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}"
12131 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}"
12132 fi
12133
12134 else
12135 ld_shlibs_CXX=no
12136 fi
12137
12138 ;;
12139
12140 dgux*)
12141 case $cc_basename in
12142 ec++*)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 ghcx*)
12147 # Green Hills C++ Compiler
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 ;;
12151 *)
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 ;;
12155 esac
12156 ;;
12157
12158 freebsd2.*)
12159 # C++ shared libraries reported to be fairly broken before
12160 # switch to ELF
12161 ld_shlibs_CXX=no
12162 ;;
12163
12164 freebsd-elf*)
12165 archive_cmds_need_lc_CXX=no
12166 ;;
12167
12168 freebsd* | dragonfly*)
12169 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12170 # conventions
12171 ld_shlibs_CXX=yes
12172 ;;
12173
12174 gnu*)
12175 ;;
12176
12177 haiku*)
12178 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12179 link_all_deplibs_CXX=yes
12180 ;;
12181
12182 hpux9*)
12183 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12184 hardcode_libdir_separator_CXX=:
12185 export_dynamic_flag_spec_CXX='${wl}-E'
12186 hardcode_direct_CXX=yes
12187 hardcode_minus_L_CXX=yes # Not in the search PATH,
12188 # but as the default
12189 # location of the library.
12190
12191 case $cc_basename in
12192 CC*)
12193 # FIXME: insert proper C++ library support
12194 ld_shlibs_CXX=no
12195 ;;
12196 aCC*)
12197 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'
12198 # Commands to make compiler produce verbose output that lists
12199 # what "hidden" libraries, object files and flags are used when
12200 # linking a shared library.
12201 #
12202 # There doesn't appear to be a way to prevent this compiler from
12203 # explicitly linking system object files so we need to strip them
12204 # from the output so that they don't get included in the library
12205 # dependencies.
12206 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"'
12207 ;;
12208 *)
12209 if test "$GXX" = yes; then
12210 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'
12211 else
12212 # FIXME: insert proper C++ library support
12213 ld_shlibs_CXX=no
12214 fi
12215 ;;
12216 esac
12217 ;;
12218
12219 hpux10*|hpux11*)
12220 if test $with_gnu_ld = no; then
12221 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12222 hardcode_libdir_separator_CXX=:
12223
12224 case $host_cpu in
12225 hppa*64*|ia64*)
12226 ;;
12227 *)
12228 export_dynamic_flag_spec_CXX='${wl}-E'
12229 ;;
12230 esac
12231 fi
12232 case $host_cpu in
12233 hppa*64*|ia64*)
12234 hardcode_direct_CXX=no
12235 hardcode_shlibpath_var_CXX=no
12236 ;;
12237 *)
12238 hardcode_direct_CXX=yes
12239 hardcode_direct_absolute_CXX=yes
12240 hardcode_minus_L_CXX=yes # Not in the search PATH,
12241 # but as the default
12242 # location of the library.
12243 ;;
12244 esac
12245
12246 case $cc_basename in
12247 CC*)
12248 # FIXME: insert proper C++ library support
12249 ld_shlibs_CXX=no
12250 ;;
12251 aCC*)
12252 case $host_cpu in
12253 hppa*64*)
12254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12255 ;;
12256 ia64*)
12257 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12258 ;;
12259 *)
12260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261 ;;
12262 esac
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12266 #
12267 # There doesn't appear to be a way to prevent this compiler from
12268 # explicitly linking system object files so we need to strip them
12269 # from the output so that they don't get included in the library
12270 # dependencies.
12271 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"'
12272 ;;
12273 *)
12274 if test "$GXX" = yes; then
12275 if test $with_gnu_ld = no; then
12276 case $host_cpu in
12277 hppa*64*)
12278 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12279 ;;
12280 ia64*)
12281 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12282 ;;
12283 *)
12284 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'
12285 ;;
12286 esac
12287 fi
12288 else
12289 # FIXME: insert proper C++ library support
12290 ld_shlibs_CXX=no
12291 fi
12292 ;;
12293 esac
12294 ;;
12295
12296 interix[3-9]*)
12297 hardcode_direct_CXX=no
12298 hardcode_shlibpath_var_CXX=no
12299 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12300 export_dynamic_flag_spec_CXX='${wl}-E'
12301 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12302 # Instead, shared libraries are loaded at an image base (0x10000000 by
12303 # default) and relocated if they conflict, which is a slow very memory
12304 # consuming and fragmenting process. To avoid this, we pick a random,
12305 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12306 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12307 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'
12308 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'
12309 ;;
12310 irix5* | irix6*)
12311 case $cc_basename in
12312 CC*)
12313 # SGI C++
12314 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'
12315
12316 # Archives containing C++ object files must be created using
12317 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12318 # necessary to make sure instantiated templates are included
12319 # in the archive.
12320 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12321 ;;
12322 *)
12323 if test "$GXX" = yes; then
12324 if test "$with_gnu_ld" = no; then
12325 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'
12326 else
12327 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'
12328 fi
12329 fi
12330 link_all_deplibs_CXX=yes
12331 ;;
12332 esac
12333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12334 hardcode_libdir_separator_CXX=:
12335 inherit_rpath_CXX=yes
12336 ;;
12337
12338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12339 case $cc_basename in
12340 KCC*)
12341 # Kuck and Associates, Inc. (KAI) C++ Compiler
12342
12343 # KCC will only create a shared library if the output file
12344 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12345 # to its proper name (with version) after linking.
12346 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'
12347 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'
12348 # Commands to make compiler produce verbose output that lists
12349 # what "hidden" libraries, object files and flags are used when
12350 # linking a shared library.
12351 #
12352 # There doesn't appear to be a way to prevent this compiler from
12353 # explicitly linking system object files so we need to strip them
12354 # from the output so that they don't get included in the library
12355 # dependencies.
12356 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"'
12357
12358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12360
12361 # Archives containing C++ object files must be created using
12362 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12363 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12364 ;;
12365 icpc* | ecpc* )
12366 # Intel C++
12367 with_gnu_ld=yes
12368 # version 8.0 and above of icpc choke on multiply defined symbols
12369 # if we add $predep_objects and $postdep_objects, however 7.1 and
12370 # earlier do not add the objects themselves.
12371 case `$CC -V 2>&1` in
12372 *"Version 7."*)
12373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 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'
12375 ;;
12376 *) # Version 8.0 or newer
12377 tmp_idyn=
12378 case $host_cpu in
12379 ia64*) tmp_idyn=' -i_dynamic';;
12380 esac
12381 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382 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'
12383 ;;
12384 esac
12385 archive_cmds_need_lc_CXX=no
12386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12388 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12389 ;;
12390 pgCC* | pgcpp*)
12391 # Portland Group C++ compiler
12392 case `$CC -V` in
12393 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12394 prelink_cmds_CXX='tpldir=Template.dir~
12395 rm -rf $tpldir~
12396 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12397 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12398 old_archive_cmds_CXX='tpldir=Template.dir~
12399 rm -rf $tpldir~
12400 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12401 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12402 $RANLIB $oldlib'
12403 archive_cmds_CXX='tpldir=Template.dir~
12404 rm -rf $tpldir~
12405 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12406 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12407 archive_expsym_cmds_CXX='tpldir=Template.dir~
12408 rm -rf $tpldir~
12409 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12410 $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'
12411 ;;
12412 *) # Version 6 and above use weak symbols
12413 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12414 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'
12415 ;;
12416 esac
12417
12418 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12420 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'
12421 ;;
12422 cxx*)
12423 # Compaq C++
12424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 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'
12426
12427 runpath_var=LD_RUN_PATH
12428 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12429 hardcode_libdir_separator_CXX=:
12430
12431 # Commands to make compiler produce verbose output that lists
12432 # what "hidden" libraries, object files and flags are used when
12433 # linking a shared library.
12434 #
12435 # There doesn't appear to be a way to prevent this compiler from
12436 # explicitly linking system object files so we need to strip them
12437 # from the output so that they don't get included in the library
12438 # dependencies.
12439 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'
12440 ;;
12441 xl* | mpixl* | bgxl*)
12442 # IBM XL 8.0 on PPC, with GNU ld
12443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12445 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12446 if test "x$supports_anon_versioning" = xyes; then
12447 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12449 echo "local: *; };" >> $output_objdir/$libname.ver~
12450 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12451 fi
12452 ;;
12453 *)
12454 case `$CC -V 2>&1 | sed 5q` in
12455 *Sun\ C*)
12456 # Sun C++ 5.9
12457 no_undefined_flag_CXX=' -zdefs'
12458 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12459 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'
12460 hardcode_libdir_flag_spec_CXX='-R$libdir'
12461 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'
12462 compiler_needs_object_CXX=yes
12463
12464 # Not sure whether something based on
12465 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12466 # would be better.
12467 output_verbose_link_cmd='func_echo_all'
12468
12469 # Archives containing C++ object files must be created using
12470 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12471 # necessary to make sure instantiated templates are included
12472 # in the archive.
12473 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12474 ;;
12475 esac
12476 ;;
12477 esac
12478 ;;
12479
12480 lynxos*)
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12483 ;;
12484
12485 m88k*)
12486 # FIXME: insert proper C++ library support
12487 ld_shlibs_CXX=no
12488 ;;
12489
12490 mvs*)
12491 case $cc_basename in
12492 cxx*)
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 ;;
12496 *)
12497 # FIXME: insert proper C++ library support
12498 ld_shlibs_CXX=no
12499 ;;
12500 esac
12501 ;;
12502
12503 netbsd*)
12504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12505 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12506 wlarc=
12507 hardcode_libdir_flag_spec_CXX='-R$libdir'
12508 hardcode_direct_CXX=yes
12509 hardcode_shlibpath_var_CXX=no
12510 fi
12511 # Workaround some broken pre-1.5 toolchains
12512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12513 ;;
12514
12515 *nto* | *qnx*)
12516 ld_shlibs_CXX=yes
12517 ;;
12518
12519 openbsd2*)
12520 # C++ shared libraries are fairly broken
12521 ld_shlibs_CXX=no
12522 ;;
12523
12524 openbsd*)
12525 if test -f /usr/libexec/ld.so; then
12526 hardcode_direct_CXX=yes
12527 hardcode_shlibpath_var_CXX=no
12528 hardcode_direct_absolute_CXX=yes
12529 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12530 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12532 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12533 export_dynamic_flag_spec_CXX='${wl}-E'
12534 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12535 fi
12536 output_verbose_link_cmd=func_echo_all
12537 else
12538 ld_shlibs_CXX=no
12539 fi
12540 ;;
12541
12542 osf3* | osf4* | osf5*)
12543 case $cc_basename in
12544 KCC*)
12545 # Kuck and Associates, Inc. (KAI) C++ Compiler
12546
12547 # KCC will only create a shared library if the output file
12548 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12549 # to its proper name (with version) after linking.
12550 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'
12551
12552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12553 hardcode_libdir_separator_CXX=:
12554
12555 # Archives containing C++ object files must be created using
12556 # the KAI C++ compiler.
12557 case $host in
12558 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12559 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12560 esac
12561 ;;
12562 RCC*)
12563 # Rational C++ 2.4.1
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12566 ;;
12567 cxx*)
12568 case $host in
12569 osf3*)
12570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12571 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'
12572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573 ;;
12574 *)
12575 allow_undefined_flag_CXX=' -expect_unresolved \*'
12576 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'
12577 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12578 echo "-hidden">> $lib.exp~
12579 $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~
12580 $RM $lib.exp'
12581 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12582 ;;
12583 esac
12584
12585 hardcode_libdir_separator_CXX=:
12586
12587 # Commands to make compiler produce verbose output that lists
12588 # what "hidden" libraries, object files and flags are used when
12589 # linking a shared library.
12590 #
12591 # There doesn't appear to be a way to prevent this compiler from
12592 # explicitly linking system object files so we need to strip them
12593 # from the output so that they don't get included in the library
12594 # dependencies.
12595 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"'
12596 ;;
12597 *)
12598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12599 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12600 case $host in
12601 osf3*)
12602 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'
12603 ;;
12604 *)
12605 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'
12606 ;;
12607 esac
12608
12609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12610 hardcode_libdir_separator_CXX=:
12611
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12616
12617 else
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 fi
12621 ;;
12622 esac
12623 ;;
12624
12625 psos*)
12626 # FIXME: insert proper C++ library support
12627 ld_shlibs_CXX=no
12628 ;;
12629
12630 sunos4*)
12631 case $cc_basename in
12632 CC*)
12633 # Sun C++ 4.x
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637 lcc*)
12638 # Lucid
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12641 ;;
12642 *)
12643 # FIXME: insert proper C++ library support
12644 ld_shlibs_CXX=no
12645 ;;
12646 esac
12647 ;;
12648
12649 solaris*)
12650 case $cc_basename in
12651 CC*)
12652 # Sun C++ 4.2, 5.x and Centerline C++
12653 archive_cmds_need_lc_CXX=yes
12654 no_undefined_flag_CXX=' -zdefs'
12655 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12656 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12657 $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'
12658
12659 hardcode_libdir_flag_spec_CXX='-R$libdir'
12660 hardcode_shlibpath_var_CXX=no
12661 case $host_os in
12662 solaris2.[0-5] | solaris2.[0-5].*) ;;
12663 *)
12664 # The compiler driver will combine and reorder linker options,
12665 # but understands `-z linker_flag'.
12666 # Supported since Solaris 2.6 (maybe 2.5.1?)
12667 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12668 ;;
12669 esac
12670 link_all_deplibs_CXX=yes
12671
12672 output_verbose_link_cmd='func_echo_all'
12673
12674 # Archives containing C++ object files must be created using
12675 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12676 # necessary to make sure instantiated templates are included
12677 # in the archive.
12678 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12679 ;;
12680 gcx*)
12681 # Green Hills C++ Compiler
12682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12683
12684 # The C++ compiler must be used to create the archive.
12685 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12686 ;;
12687 *)
12688 # GNU C++ compiler with Solaris linker
12689 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12690 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12691 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12692 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12694 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12695
12696 # Commands to make compiler produce verbose output that lists
12697 # what "hidden" libraries, object files and flags are used when
12698 # linking a shared library.
12699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12700 else
12701 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12702 # platform.
12703 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12704 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12705 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12706
12707 # Commands to make compiler produce verbose output that lists
12708 # what "hidden" libraries, object files and flags are used when
12709 # linking a shared library.
12710 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12711 fi
12712
12713 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12714 case $host_os in
12715 solaris2.[0-5] | solaris2.[0-5].*) ;;
12716 *)
12717 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12718 ;;
12719 esac
12720 fi
12721 ;;
12722 esac
12723 ;;
12724
12725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12726 no_undefined_flag_CXX='${wl}-z,text'
12727 archive_cmds_need_lc_CXX=no
12728 hardcode_shlibpath_var_CXX=no
12729 runpath_var='LD_RUN_PATH'
12730
12731 case $cc_basename in
12732 CC*)
12733 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12734 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12735 ;;
12736 *)
12737 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12738 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12739 ;;
12740 esac
12741 ;;
12742
12743 sysv5* | sco3.2v5* | sco5v6*)
12744 # Note: We can NOT use -z defs as we might desire, because we do not
12745 # link with -lc, and that would cause any symbols used from libc to
12746 # always be unresolved, which means just about no library would
12747 # ever link correctly. If we're not using GNU ld we use -z text
12748 # though, which does catch some bad symbols but isn't as heavy-handed
12749 # as -z defs.
12750 no_undefined_flag_CXX='${wl}-z,text'
12751 allow_undefined_flag_CXX='${wl}-z,nodefs'
12752 archive_cmds_need_lc_CXX=no
12753 hardcode_shlibpath_var_CXX=no
12754 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12755 hardcode_libdir_separator_CXX=':'
12756 link_all_deplibs_CXX=yes
12757 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12758 runpath_var='LD_RUN_PATH'
12759
12760 case $cc_basename in
12761 CC*)
12762 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12763 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12764 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12765 '"$old_archive_cmds_CXX"
12766 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12767 '"$reload_cmds_CXX"
12768 ;;
12769 *)
12770 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12771 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12772 ;;
12773 esac
12774 ;;
12775
12776 tandem*)
12777 case $cc_basename in
12778 NCC*)
12779 # NonStop-UX NCC 3.20
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12782 ;;
12783 *)
12784 # FIXME: insert proper C++ library support
12785 ld_shlibs_CXX=no
12786 ;;
12787 esac
12788 ;;
12789
12790 vxworks*)
12791 # FIXME: insert proper C++ library support
12792 ld_shlibs_CXX=no
12793 ;;
12794
12795 *)
12796 # FIXME: insert proper C++ library support
12797 ld_shlibs_CXX=no
12798 ;;
12799 esac
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12802 $as_echo "$ld_shlibs_CXX" >&6; }
12803 test "$ld_shlibs_CXX" = no && can_build_shared=no
12804
12805 GCC_CXX="$GXX"
12806 LD_CXX="$LD"
12807
12808 ## CAVEAT EMPTOR:
12809 ## There is no encapsulation within the following macros, do not change
12810 ## the running order or otherwise move them around unless you know exactly
12811 ## what you are doing...
12812 # Dependencies to place before and after the object being linked:
12813 predep_objects_CXX=
12814 postdep_objects_CXX=
12815 predeps_CXX=
12816 postdeps_CXX=
12817 compiler_lib_search_path_CXX=
12818
12819 cat > conftest.$ac_ext <<_LT_EOF
12820 class Foo
12821 {
12822 public:
12823 Foo (void) { a = 0; }
12824 private:
12825 int a;
12826 };
12827 _LT_EOF
12828
12829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12830 (eval $ac_compile) 2>&5
12831 ac_status=$?
12832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833 test $ac_status = 0; }; then
12834 # Parse the compiler output and extract the necessary
12835 # objects, libraries and library flags.
12836
12837 # Sentinel used to keep track of whether or not we are before
12838 # the conftest object file.
12839 pre_test_object_deps_done=no
12840
12841 for p in `eval "$output_verbose_link_cmd"`; do
12842 case $p in
12843
12844 -L* | -R* | -l*)
12845 # Some compilers place space between "-{L,R}" and the path.
12846 # Remove the space.
12847 if test $p = "-L" ||
12848 test $p = "-R"; then
12849 prev=$p
12850 continue
12851 else
12852 prev=
12853 fi
12854
12855 if test "$pre_test_object_deps_done" = no; then
12856 case $p in
12857 -L* | -R*)
12858 # Internal compiler library paths should come after those
12859 # provided the user. The postdeps already come after the
12860 # user supplied libs so there is no need to process them.
12861 if test -z "$compiler_lib_search_path_CXX"; then
12862 compiler_lib_search_path_CXX="${prev}${p}"
12863 else
12864 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12865 fi
12866 ;;
12867 # The "-l" case would never come before the object being
12868 # linked, so don't bother handling this case.
12869 esac
12870 else
12871 if test -z "$postdeps_CXX"; then
12872 postdeps_CXX="${prev}${p}"
12873 else
12874 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12875 fi
12876 fi
12877 ;;
12878
12879 *.$objext)
12880 # This assumes that the test object file only shows up
12881 # once in the compiler output.
12882 if test "$p" = "conftest.$objext"; then
12883 pre_test_object_deps_done=yes
12884 continue
12885 fi
12886
12887 if test "$pre_test_object_deps_done" = no; then
12888 if test -z "$predep_objects_CXX"; then
12889 predep_objects_CXX="$p"
12890 else
12891 predep_objects_CXX="$predep_objects_CXX $p"
12892 fi
12893 else
12894 if test -z "$postdep_objects_CXX"; then
12895 postdep_objects_CXX="$p"
12896 else
12897 postdep_objects_CXX="$postdep_objects_CXX $p"
12898 fi
12899 fi
12900 ;;
12901
12902 *) ;; # Ignore the rest.
12903
12904 esac
12905 done
12906
12907 # Clean up.
12908 rm -f a.out a.exe
12909 else
12910 echo "libtool.m4: error: problem compiling CXX test program"
12911 fi
12912
12913 $RM -f confest.$objext
12914
12915 # PORTME: override above test on systems where it is broken
12916 case $host_os in
12917 interix[3-9]*)
12918 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12919 # hack all around it, let's just trust "g++" to DTRT.
12920 predep_objects_CXX=
12921 postdep_objects_CXX=
12922 postdeps_CXX=
12923 ;;
12924
12925 linux*)
12926 case `$CC -V 2>&1 | sed 5q` in
12927 *Sun\ C*)
12928 # Sun C++ 5.9
12929
12930 # The more standards-conforming stlport4 library is
12931 # incompatible with the Cstd library. Avoid specifying
12932 # it if it's in CXXFLAGS. Ignore libCrun as
12933 # -library=stlport4 depends on it.
12934 case " $CXX $CXXFLAGS " in
12935 *" -library=stlport4 "*)
12936 solaris_use_stlport4=yes
12937 ;;
12938 esac
12939
12940 if test "$solaris_use_stlport4" != yes; then
12941 postdeps_CXX='-library=Cstd -library=Crun'
12942 fi
12943 ;;
12944 esac
12945 ;;
12946
12947 solaris*)
12948 case $cc_basename in
12949 CC*)
12950 # The more standards-conforming stlport4 library is
12951 # incompatible with the Cstd library. Avoid specifying
12952 # it if it's in CXXFLAGS. Ignore libCrun as
12953 # -library=stlport4 depends on it.
12954 case " $CXX $CXXFLAGS " in
12955 *" -library=stlport4 "*)
12956 solaris_use_stlport4=yes
12957 ;;
12958 esac
12959
12960 # Adding this requires a known-good setup of shared libraries for
12961 # Sun compiler versions before 5.6, else PIC objects from an old
12962 # archive will be linked into the output, leading to subtle bugs.
12963 if test "$solaris_use_stlport4" != yes; then
12964 postdeps_CXX='-library=Cstd -library=Crun'
12965 fi
12966 ;;
12967 esac
12968 ;;
12969 esac
12970
12971
12972 case " $postdeps_CXX " in
12973 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12974 esac
12975 compiler_lib_search_dirs_CXX=
12976 if test -n "${compiler_lib_search_path_CXX}"; then
12977 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12978 fi
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010 lt_prog_compiler_wl_CXX=
13011 lt_prog_compiler_pic_CXX=
13012 lt_prog_compiler_static_CXX=
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13016
13017 # C++ specific cases for pic, static, wl, etc.
13018 if test "$GXX" = yes; then
13019 lt_prog_compiler_wl_CXX='-Wl,'
13020 lt_prog_compiler_static_CXX='-static'
13021
13022 case $host_os in
13023 aix*)
13024 # All AIX code is PIC.
13025 if test "$host_cpu" = ia64; then
13026 # AIX 5 now supports IA64 processor
13027 lt_prog_compiler_static_CXX='-Bstatic'
13028 fi
13029 lt_prog_compiler_pic_CXX='-fPIC'
13030 ;;
13031
13032 amigaos*)
13033 case $host_cpu in
13034 powerpc)
13035 # see comment about AmigaOS4 .so support
13036 lt_prog_compiler_pic_CXX='-fPIC'
13037 ;;
13038 m68k)
13039 # FIXME: we need at least 68020 code to build shared libraries, but
13040 # adding the `-m68020' flag to GCC prevents building anything better,
13041 # like `-m68040'.
13042 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13043 ;;
13044 esac
13045 ;;
13046
13047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048 # PIC is the default for these OSes.
13049 ;;
13050 mingw* | cygwin* | os2* | pw32* | cegcc*)
13051 # This hack is so that the source file can tell whether it is being
13052 # built for inclusion in a dll (and should export symbols for example).
13053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13054 # (--disable-auto-import) libraries
13055 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13056 ;;
13057 darwin* | rhapsody*)
13058 # PIC is the default on this platform
13059 # Common symbols not allowed in MH_DYLIB files
13060 lt_prog_compiler_pic_CXX='-fno-common'
13061 ;;
13062 *djgpp*)
13063 # DJGPP does not support shared libraries at all
13064 lt_prog_compiler_pic_CXX=
13065 ;;
13066 haiku*)
13067 # PIC is the default for Haiku.
13068 # The "-static" flag exists, but is broken.
13069 lt_prog_compiler_static_CXX=
13070 ;;
13071 interix[3-9]*)
13072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13073 # Instead, we relocate shared libraries at runtime.
13074 ;;
13075 sysv4*MP*)
13076 if test -d /usr/nec; then
13077 lt_prog_compiler_pic_CXX=-Kconform_pic
13078 fi
13079 ;;
13080 hpux*)
13081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13083 # sets the default TLS model and affects inlining.
13084 case $host_cpu in
13085 hppa*64*)
13086 ;;
13087 *)
13088 lt_prog_compiler_pic_CXX='-fPIC'
13089 ;;
13090 esac
13091 ;;
13092 *qnx* | *nto*)
13093 # QNX uses GNU C++, but need to define -shared option too, otherwise
13094 # it will coredump.
13095 lt_prog_compiler_pic_CXX='-fPIC -shared'
13096 ;;
13097 *)
13098 lt_prog_compiler_pic_CXX='-fPIC'
13099 ;;
13100 esac
13101 else
13102 case $host_os in
13103 aix[4-9]*)
13104 # All AIX code is PIC.
13105 if test "$host_cpu" = ia64; then
13106 # AIX 5 now supports IA64 processor
13107 lt_prog_compiler_static_CXX='-Bstatic'
13108 else
13109 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13110 fi
13111 ;;
13112 chorus*)
13113 case $cc_basename in
13114 cxch68*)
13115 # Green Hills C++ Compiler
13116 # _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"
13117 ;;
13118 esac
13119 ;;
13120 dgux*)
13121 case $cc_basename in
13122 ec++*)
13123 lt_prog_compiler_pic_CXX='-KPIC'
13124 ;;
13125 ghcx*)
13126 # Green Hills C++ Compiler
13127 lt_prog_compiler_pic_CXX='-pic'
13128 ;;
13129 *)
13130 ;;
13131 esac
13132 ;;
13133 freebsd* | dragonfly*)
13134 # FreeBSD uses GNU C++
13135 ;;
13136 hpux9* | hpux10* | hpux11*)
13137 case $cc_basename in
13138 CC*)
13139 lt_prog_compiler_wl_CXX='-Wl,'
13140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13141 if test "$host_cpu" != ia64; then
13142 lt_prog_compiler_pic_CXX='+Z'
13143 fi
13144 ;;
13145 aCC*)
13146 lt_prog_compiler_wl_CXX='-Wl,'
13147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13148 case $host_cpu in
13149 hppa*64*|ia64*)
13150 # +Z the default
13151 ;;
13152 *)
13153 lt_prog_compiler_pic_CXX='+Z'
13154 ;;
13155 esac
13156 ;;
13157 *)
13158 ;;
13159 esac
13160 ;;
13161 interix*)
13162 # This is c89, which is MS Visual C++ (no shared libs)
13163 # Anyone wants to do a port?
13164 ;;
13165 irix5* | irix6* | nonstopux*)
13166 case $cc_basename in
13167 CC*)
13168 lt_prog_compiler_wl_CXX='-Wl,'
13169 lt_prog_compiler_static_CXX='-non_shared'
13170 # CC pic flag -KPIC is the default.
13171 ;;
13172 *)
13173 ;;
13174 esac
13175 ;;
13176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13177 case $cc_basename in
13178 KCC*)
13179 # KAI C++ Compiler
13180 lt_prog_compiler_wl_CXX='--backend -Wl,'
13181 lt_prog_compiler_pic_CXX='-fPIC'
13182 ;;
13183 ecpc* )
13184 # old Intel C++ for x86_64 which still supported -KPIC.
13185 lt_prog_compiler_wl_CXX='-Wl,'
13186 lt_prog_compiler_pic_CXX='-KPIC'
13187 lt_prog_compiler_static_CXX='-static'
13188 ;;
13189 icpc* )
13190 # Intel C++, used to be incompatible with GCC.
13191 # ICC 10 doesn't accept -KPIC any more.
13192 lt_prog_compiler_wl_CXX='-Wl,'
13193 lt_prog_compiler_pic_CXX='-fPIC'
13194 lt_prog_compiler_static_CXX='-static'
13195 ;;
13196 pgCC* | pgcpp*)
13197 # Portland Group C++ compiler
13198 lt_prog_compiler_wl_CXX='-Wl,'
13199 lt_prog_compiler_pic_CXX='-fpic'
13200 lt_prog_compiler_static_CXX='-Bstatic'
13201 ;;
13202 cxx*)
13203 # Compaq C++
13204 # Make sure the PIC flag is empty. It appears that all Alpha
13205 # Linux and Compaq Tru64 Unix objects are PIC.
13206 lt_prog_compiler_pic_CXX=
13207 lt_prog_compiler_static_CXX='-non_shared'
13208 ;;
13209 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13210 # IBM XL 8.0, 9.0 on PPC and BlueGene
13211 lt_prog_compiler_wl_CXX='-Wl,'
13212 lt_prog_compiler_pic_CXX='-qpic'
13213 lt_prog_compiler_static_CXX='-qstaticlink'
13214 ;;
13215 *)
13216 case `$CC -V 2>&1 | sed 5q` in
13217 *Sun\ C*)
13218 # Sun C++ 5.9
13219 lt_prog_compiler_pic_CXX='-KPIC'
13220 lt_prog_compiler_static_CXX='-Bstatic'
13221 lt_prog_compiler_wl_CXX='-Qoption ld '
13222 ;;
13223 esac
13224 ;;
13225 esac
13226 ;;
13227 lynxos*)
13228 ;;
13229 m88k*)
13230 ;;
13231 mvs*)
13232 case $cc_basename in
13233 cxx*)
13234 lt_prog_compiler_pic_CXX='-W c,exportall'
13235 ;;
13236 *)
13237 ;;
13238 esac
13239 ;;
13240 netbsd*)
13241 ;;
13242 *qnx* | *nto*)
13243 # QNX uses GNU C++, but need to define -shared option too, otherwise
13244 # it will coredump.
13245 lt_prog_compiler_pic_CXX='-fPIC -shared'
13246 ;;
13247 osf3* | osf4* | osf5*)
13248 case $cc_basename in
13249 KCC*)
13250 lt_prog_compiler_wl_CXX='--backend -Wl,'
13251 ;;
13252 RCC*)
13253 # Rational C++ 2.4.1
13254 lt_prog_compiler_pic_CXX='-pic'
13255 ;;
13256 cxx*)
13257 # Digital/Compaq C++
13258 lt_prog_compiler_wl_CXX='-Wl,'
13259 # Make sure the PIC flag is empty. It appears that all Alpha
13260 # Linux and Compaq Tru64 Unix objects are PIC.
13261 lt_prog_compiler_pic_CXX=
13262 lt_prog_compiler_static_CXX='-non_shared'
13263 ;;
13264 *)
13265 ;;
13266 esac
13267 ;;
13268 psos*)
13269 ;;
13270 solaris*)
13271 case $cc_basename in
13272 CC*)
13273 # Sun C++ 4.2, 5.x and Centerline C++
13274 lt_prog_compiler_pic_CXX='-KPIC'
13275 lt_prog_compiler_static_CXX='-Bstatic'
13276 lt_prog_compiler_wl_CXX='-Qoption ld '
13277 ;;
13278 gcx*)
13279 # Green Hills C++ Compiler
13280 lt_prog_compiler_pic_CXX='-PIC'
13281 ;;
13282 *)
13283 ;;
13284 esac
13285 ;;
13286 sunos4*)
13287 case $cc_basename in
13288 CC*)
13289 # Sun C++ 4.x
13290 lt_prog_compiler_pic_CXX='-pic'
13291 lt_prog_compiler_static_CXX='-Bstatic'
13292 ;;
13293 lcc*)
13294 # Lucid
13295 lt_prog_compiler_pic_CXX='-pic'
13296 ;;
13297 *)
13298 ;;
13299 esac
13300 ;;
13301 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13302 case $cc_basename in
13303 CC*)
13304 lt_prog_compiler_wl_CXX='-Wl,'
13305 lt_prog_compiler_pic_CXX='-KPIC'
13306 lt_prog_compiler_static_CXX='-Bstatic'
13307 ;;
13308 esac
13309 ;;
13310 tandem*)
13311 case $cc_basename in
13312 NCC*)
13313 # NonStop-UX NCC 3.20
13314 lt_prog_compiler_pic_CXX='-KPIC'
13315 ;;
13316 *)
13317 ;;
13318 esac
13319 ;;
13320 vxworks*)
13321 ;;
13322 *)
13323 lt_prog_compiler_can_build_shared_CXX=no
13324 ;;
13325 esac
13326 fi
13327
13328 case $host_os in
13329 # For platforms which do not support PIC, -DPIC is meaningless:
13330 *djgpp*)
13331 lt_prog_compiler_pic_CXX=
13332 ;;
13333 *)
13334 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13335 ;;
13336 esac
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13338 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13339
13340
13341
13342 #
13343 # Check to make sure the PIC flag actually works.
13344 #
13345 if test -n "$lt_prog_compiler_pic_CXX"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13347 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13348 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 lt_cv_prog_compiler_pic_works_CXX=no
13352 ac_outfile=conftest.$ac_objext
13353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13354 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13355 # Insert the option either (1) after the last *FLAGS variable, or
13356 # (2) before a word containing "conftest.", or (3) at the end.
13357 # Note that $ac_compile itself does not contain backslashes and begins
13358 # with a dollar sign (not a hyphen), so the echo should work correctly.
13359 # The option is referenced via a variable to avoid confusing sed.
13360 lt_compile=`echo "$ac_compile" | $SED \
13361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13363 -e 's:$: $lt_compiler_flag:'`
13364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13365 (eval "$lt_compile" 2>conftest.err)
13366 ac_status=$?
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 if (exit $ac_status) && test -s "$ac_outfile"; then
13370 # The compiler can only warn and ignore the option if not recognized
13371 # So say no if there are warnings other than the usual output.
13372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13375 lt_cv_prog_compiler_pic_works_CXX=yes
13376 fi
13377 fi
13378 $RM conftest*
13379
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13382 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13383
13384 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13385 case $lt_prog_compiler_pic_CXX in
13386 "" | " "*) ;;
13387 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13388 esac
13389 else
13390 lt_prog_compiler_pic_CXX=
13391 lt_prog_compiler_can_build_shared_CXX=no
13392 fi
13393
13394 fi
13395
13396
13397
13398 #
13399 # Check to make sure the static flag actually works.
13400 #
13401 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13403 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13404 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 lt_cv_prog_compiler_static_works_CXX=no
13408 save_LDFLAGS="$LDFLAGS"
13409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13412 # The linker can only warn and ignore the option if not recognized
13413 # So say no if there are warnings
13414 if test -s conftest.err; then
13415 # Append any errors to the config.log.
13416 cat conftest.err 1>&5
13417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13419 if diff conftest.exp conftest.er2 >/dev/null; then
13420 lt_cv_prog_compiler_static_works_CXX=yes
13421 fi
13422 else
13423 lt_cv_prog_compiler_static_works_CXX=yes
13424 fi
13425 fi
13426 $RM -r conftest*
13427 LDFLAGS="$save_LDFLAGS"
13428
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13431 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13432
13433 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13434 :
13435 else
13436 lt_prog_compiler_static_CXX=
13437 fi
13438
13439
13440
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13443 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 lt_cv_prog_compiler_c_o_CXX=no
13448 $RM -r conftest 2>/dev/null
13449 mkdir conftest
13450 cd conftest
13451 mkdir out
13452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
13454 lt_compiler_flag="-o out/conftest2.$ac_objext"
13455 # Insert the option either (1) after the last *FLAGS variable, or
13456 # (2) before a word containing "conftest.", or (3) at the end.
13457 # Note that $ac_compile itself does not contain backslashes and begins
13458 # with a dollar sign (not a hyphen), so the echo should work correctly.
13459 lt_compile=`echo "$ac_compile" | $SED \
13460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462 -e 's:$: $lt_compiler_flag:'`
13463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13464 (eval "$lt_compile" 2>out/conftest.err)
13465 ac_status=$?
13466 cat out/conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13469 then
13470 # The compiler can only warn and ignore the option if not recognized
13471 # So say no if there are warnings
13472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13475 lt_cv_prog_compiler_c_o_CXX=yes
13476 fi
13477 fi
13478 chmod u+w . 2>&5
13479 $RM conftest*
13480 # SGI C++ compiler will create directory out/ii_files/ for
13481 # template instantiation
13482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13483 $RM out/* && rmdir out
13484 cd ..
13485 $RM -r conftest
13486 $RM conftest*
13487
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13490 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13491
13492
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13496 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 lt_cv_prog_compiler_c_o_CXX=no
13500 $RM -r conftest 2>/dev/null
13501 mkdir conftest
13502 cd conftest
13503 mkdir out
13504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13505
13506 lt_compiler_flag="-o out/conftest2.$ac_objext"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 lt_compile=`echo "$ac_compile" | $SED \
13512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13514 -e 's:$: $lt_compiler_flag:'`
13515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13516 (eval "$lt_compile" 2>out/conftest.err)
13517 ac_status=$?
13518 cat out/conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13521 then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings
13524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13527 lt_cv_prog_compiler_c_o_CXX=yes
13528 fi
13529 fi
13530 chmod u+w . 2>&5
13531 $RM conftest*
13532 # SGI C++ compiler will create directory out/ii_files/ for
13533 # template instantiation
13534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13535 $RM out/* && rmdir out
13536 cd ..
13537 $RM -r conftest
13538 $RM conftest*
13539
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13542 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13543
13544
13545
13546
13547 hard_links="nottested"
13548 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13549 # do not overwrite the value of need_locks provided by the user
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13551 $as_echo_n "checking if we can lock with hard links... " >&6; }
13552 hard_links=yes
13553 $RM conftest*
13554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13555 touch conftest.a
13556 ln conftest.a conftest.b 2>&5 || hard_links=no
13557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13559 $as_echo "$hard_links" >&6; }
13560 if test "$hard_links" = no; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13562 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13563 need_locks=warn
13564 fi
13565 else
13566 need_locks=no
13567 fi
13568
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13572 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13573
13574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13575 case $host_os in
13576 aix[4-9]*)
13577 # If we're using GNU nm, then we don't want the "-C" option.
13578 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13579 # Also, AIX nm treats weak defined symbols like other global defined
13580 # symbols, whereas GNU nm marks them as "W".
13581 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13582 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'
13583 else
13584 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'
13585 fi
13586 ;;
13587 pw32*)
13588 export_symbols_cmds_CXX="$ltdll_cmds"
13589 ;;
13590 cygwin* | mingw* | cegcc*)
13591 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'
13592 ;;
13593 *)
13594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13595 ;;
13596 esac
13597 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13600 $as_echo "$ld_shlibs_CXX" >&6; }
13601 test "$ld_shlibs_CXX" = no && can_build_shared=no
13602
13603 with_gnu_ld_CXX=$with_gnu_ld
13604
13605
13606
13607
13608
13609
13610 #
13611 # Do we need to explicitly link libc?
13612 #
13613 case "x$archive_cmds_need_lc_CXX" in
13614 x|xyes)
13615 # Assume -lc should be added
13616 archive_cmds_need_lc_CXX=yes
13617
13618 if test "$enable_shared" = yes && test "$GCC" = yes; then
13619 case $archive_cmds_CXX in
13620 *'~'*)
13621 # FIXME: we may have to deal with multi-command sequences.
13622 ;;
13623 '$CC '*)
13624 # Test whether the compiler implicitly links with -lc since on some
13625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13626 # to ld, don't add -lc before -lgcc.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13628 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13629 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 $RM conftest*
13633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634
13635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13636 (eval $ac_compile) 2>&5
13637 ac_status=$?
13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13639 test $ac_status = 0; } 2>conftest.err; then
13640 soname=conftest
13641 lib=conftest
13642 libobjs=conftest.$ac_objext
13643 deplibs=
13644 wl=$lt_prog_compiler_wl_CXX
13645 pic_flag=$lt_prog_compiler_pic_CXX
13646 compiler_flags=-v
13647 linker_flags=-v
13648 verstring=
13649 output_objdir=.
13650 libname=conftest
13651 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13652 allow_undefined_flag_CXX=
13653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13654 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13655 ac_status=$?
13656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657 test $ac_status = 0; }
13658 then
13659 lt_cv_archive_cmds_need_lc_CXX=no
13660 else
13661 lt_cv_archive_cmds_need_lc_CXX=yes
13662 fi
13663 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13664 else
13665 cat conftest.err 1>&5
13666 fi
13667 $RM conftest*
13668
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13671 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13672 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13673 ;;
13674 esac
13675 fi
13676 ;;
13677 esac
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13743 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13744
13745 library_names_spec=
13746 libname_spec='lib$name'
13747 soname_spec=
13748 shrext_cmds=".so"
13749 postinstall_cmds=
13750 postuninstall_cmds=
13751 finish_cmds=
13752 finish_eval=
13753 shlibpath_var=
13754 shlibpath_overrides_runpath=unknown
13755 version_type=none
13756 dynamic_linker="$host_os ld.so"
13757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13758 need_lib_prefix=unknown
13759 hardcode_into_libs=no
13760
13761 # when you set need_version to no, make sure it does not cause -set_version
13762 # flags to be left without arguments
13763 need_version=unknown
13764
13765 case $host_os in
13766 aix3*)
13767 version_type=linux
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13769 shlibpath_var=LIBPATH
13770
13771 # AIX 3 has no versioning support, so we append a major version to the name.
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 ;;
13774
13775 aix[4-9]*)
13776 version_type=linux
13777 need_lib_prefix=no
13778 need_version=no
13779 hardcode_into_libs=yes
13780 if test "$host_cpu" = ia64; then
13781 # AIX 5 supports IA64
13782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 else
13785 # With GCC up to 2.95.x, collect2 would create an import file
13786 # for dependence libraries. The import file would start with
13787 # the line `#! .'. This would cause the generated library to
13788 # depend on `.', always an invalid library. This was fixed in
13789 # development snapshots of GCC prior to 3.0.
13790 case $host_os in
13791 aix4 | aix4.[01] | aix4.[01].*)
13792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13793 echo ' yes '
13794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13795 :
13796 else
13797 can_build_shared=no
13798 fi
13799 ;;
13800 esac
13801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13802 # soname into executable. Probably we can add versioning support to
13803 # collect2, so additional links can be useful in future.
13804 if test "$aix_use_runtimelinking" = yes; then
13805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13806 # instead of lib<name>.a to let people know that these are not
13807 # typical AIX shared libraries.
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809 else
13810 # We preserve .a as extension for shared libraries through AIX4.2
13811 # and later when we are not doing run time linking.
13812 library_names_spec='${libname}${release}.a $libname.a'
13813 soname_spec='${libname}${release}${shared_ext}$major'
13814 fi
13815 shlibpath_var=LIBPATH
13816 fi
13817 ;;
13818
13819 amigaos*)
13820 case $host_cpu in
13821 powerpc)
13822 # Since July 2007 AmigaOS4 officially supports .so libraries.
13823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825 ;;
13826 m68k)
13827 library_names_spec='$libname.ixlibrary $libname.a'
13828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13829 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'
13830 ;;
13831 esac
13832 ;;
13833
13834 beos*)
13835 library_names_spec='${libname}${shared_ext}'
13836 dynamic_linker="$host_os ld.so"
13837 shlibpath_var=LIBRARY_PATH
13838 ;;
13839
13840 bsdi[45]*)
13841 version_type=linux
13842 need_version=no
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844 soname_spec='${libname}${release}${shared_ext}$major'
13845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13849 # the default ld.so.conf also contains /usr/contrib/lib and
13850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13851 # libtool to hard-code these into programs
13852 ;;
13853
13854 cygwin* | mingw* | pw32* | cegcc*)
13855 version_type=windows
13856 shrext_cmds=".dll"
13857 need_version=no
13858 need_lib_prefix=no
13859
13860 case $GCC,$host_os in
13861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13862 library_names_spec='$libname.dll.a'
13863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13864 postinstall_cmds='base_file=`basename \${file}`~
13865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13866 dldir=$destdir/`dirname \$dlpath`~
13867 test -d \$dldir || mkdir -p \$dldir~
13868 $install_prog $dir/$dlname \$dldir/$dlname~
13869 chmod a+x \$dldir/$dlname~
13870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13872 fi'
13873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13874 dlpath=$dir/\$dldll~
13875 $RM \$dlpath'
13876 shlibpath_overrides_runpath=yes
13877
13878 case $host_os in
13879 cygwin*)
13880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13882
13883 ;;
13884 mingw* | cegcc*)
13885 # MinGW DLLs use traditional 'lib' prefix
13886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13887 ;;
13888 pw32*)
13889 # pw32 DLLs use 'pw' prefix rather than 'lib'
13890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13891 ;;
13892 esac
13893 ;;
13894
13895 *)
13896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13897 ;;
13898 esac
13899 dynamic_linker='Win32 ld.exe'
13900 # FIXME: first we should search . and the directory the executable is in
13901 shlibpath_var=PATH
13902 ;;
13903
13904 darwin* | rhapsody*)
13905 dynamic_linker="$host_os dyld"
13906 version_type=darwin
13907 need_lib_prefix=no
13908 need_version=no
13909 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13910 soname_spec='${libname}${release}${major}$shared_ext'
13911 shlibpath_overrides_runpath=yes
13912 shlibpath_var=DYLD_LIBRARY_PATH
13913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13914
13915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13916 ;;
13917
13918 dgux*)
13919 version_type=linux
13920 need_lib_prefix=no
13921 need_version=no
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 ;;
13926
13927 freebsd* | dragonfly*)
13928 # DragonFly does not have aout. When/if they implement a new
13929 # versioning mechanism, adjust this.
13930 if test -x /usr/bin/objformat; then
13931 objformat=`/usr/bin/objformat`
13932 else
13933 case $host_os in
13934 freebsd[23].*) objformat=aout ;;
13935 *) objformat=elf ;;
13936 esac
13937 fi
13938 version_type=freebsd-$objformat
13939 case $version_type in
13940 freebsd-elf*)
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13942 need_version=no
13943 need_lib_prefix=no
13944 ;;
13945 freebsd-*)
13946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13947 need_version=yes
13948 ;;
13949 esac
13950 shlibpath_var=LD_LIBRARY_PATH
13951 case $host_os in
13952 freebsd2.*)
13953 shlibpath_overrides_runpath=yes
13954 ;;
13955 freebsd3.[01]* | freebsdelf3.[01]*)
13956 shlibpath_overrides_runpath=yes
13957 hardcode_into_libs=yes
13958 ;;
13959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13961 shlibpath_overrides_runpath=no
13962 hardcode_into_libs=yes
13963 ;;
13964 *) # from 4.6 on, and DragonFly
13965 shlibpath_overrides_runpath=yes
13966 hardcode_into_libs=yes
13967 ;;
13968 esac
13969 ;;
13970
13971 gnu*)
13972 version_type=linux
13973 need_lib_prefix=no
13974 need_version=no
13975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13976 soname_spec='${libname}${release}${shared_ext}$major'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 hardcode_into_libs=yes
13979 ;;
13980
13981 haiku*)
13982 version_type=linux
13983 need_lib_prefix=no
13984 need_version=no
13985 dynamic_linker="$host_os runtime_loader"
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 shlibpath_var=LIBRARY_PATH
13989 shlibpath_overrides_runpath=yes
13990 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13991 hardcode_into_libs=yes
13992 ;;
13993
13994 hpux9* | hpux10* | hpux11*)
13995 # Give a soname corresponding to the major version so that dld.sl refuses to
13996 # link against other versions.
13997 version_type=sunos
13998 need_lib_prefix=no
13999 need_version=no
14000 case $host_cpu in
14001 ia64*)
14002 shrext_cmds='.so'
14003 hardcode_into_libs=yes
14004 dynamic_linker="$host_os dld.so"
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 if test "X$HPUX_IA64_MODE" = X32; then
14010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14011 else
14012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14013 fi
14014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14015 ;;
14016 hppa*64*)
14017 shrext_cmds='.sl'
14018 hardcode_into_libs=yes
14019 dynamic_linker="$host_os dld.sl"
14020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14026 ;;
14027 *)
14028 shrext_cmds='.sl'
14029 dynamic_linker="$host_os dld.sl"
14030 shlibpath_var=SHLIB_PATH
14031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 ;;
14035 esac
14036 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14037 postinstall_cmds='chmod 555 $lib'
14038 # or fails outright, so override atomically:
14039 install_override_mode=555
14040 ;;
14041
14042 interix[3-9]*)
14043 version_type=linux
14044 need_lib_prefix=no
14045 need_version=no
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=no
14051 hardcode_into_libs=yes
14052 ;;
14053
14054 irix5* | irix6* | nonstopux*)
14055 case $host_os in
14056 nonstopux*) version_type=nonstopux ;;
14057 *)
14058 if test "$lt_cv_prog_gnu_ld" = yes; then
14059 version_type=linux
14060 else
14061 version_type=irix
14062 fi ;;
14063 esac
14064 need_lib_prefix=no
14065 need_version=no
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14068 case $host_os in
14069 irix5* | nonstopux*)
14070 libsuff= shlibsuff=
14071 ;;
14072 *)
14073 case $LD in # libtool.m4 will add one of these switches to LD
14074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14075 libsuff= shlibsuff= libmagic=32-bit;;
14076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14077 libsuff=32 shlibsuff=N32 libmagic=N32;;
14078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14079 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14080 *) libsuff= shlibsuff= libmagic=never-match;;
14081 esac
14082 ;;
14083 esac
14084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14085 shlibpath_overrides_runpath=no
14086 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14087 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14088 hardcode_into_libs=yes
14089 ;;
14090
14091 # No shared lib support for Linux oldld, aout, or coff.
14092 linux*oldld* | linux*aout* | linux*coff*)
14093 dynamic_linker=no
14094 ;;
14095
14096 # This must be Linux ELF.
14097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14098 version_type=linux
14099 need_lib_prefix=no
14100 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=no
14106
14107 # Some binutils ld are patched to set DT_RUNPATH
14108 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 lt_cv_shlibpath_overrides_runpath=no
14112 save_LDFLAGS=$LDFLAGS
14113 save_libdir=$libdir
14114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118
14119 int
14120 main ()
14121 {
14122
14123 ;
14124 return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_cxx_try_link "$LINENO"; then :
14128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14129 lt_cv_shlibpath_overrides_runpath=yes
14130 fi
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LDFLAGS=$save_LDFLAGS
14135 libdir=$save_libdir
14136
14137 fi
14138
14139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14140
14141 # This implies no fast_install, which is unacceptable.
14142 # Some rework will be needed to allow for fast_install
14143 # before this can be enabled.
14144 hardcode_into_libs=yes
14145
14146 # Append ld.so.conf contents to the search path
14147 if test -f /etc/ld.so.conf; then
14148 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' ' '`
14149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14150 fi
14151
14152 # We used to test for /lib/ld.so.1 and disable shared libraries on
14153 # powerpc, because MkLinux only supported shared libraries with the
14154 # GNU dynamic linker. Since this was broken with cross compilers,
14155 # most powerpc-linux boxes support dynamic linking these days and
14156 # people can always --disable-shared, the test was removed, and we
14157 # assume the GNU/Linux dynamic linker is in use.
14158 dynamic_linker='GNU/Linux ld.so'
14159 ;;
14160
14161 netbsd*)
14162 version_type=sunos
14163 need_lib_prefix=no
14164 need_version=no
14165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14168 dynamic_linker='NetBSD (a.out) ld.so'
14169 else
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 dynamic_linker='NetBSD ld.elf_so'
14173 fi
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=yes
14176 hardcode_into_libs=yes
14177 ;;
14178
14179 newsos6)
14180 version_type=linux
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes
14184 ;;
14185
14186 *nto* | *qnx*)
14187 version_type=qnx
14188 need_lib_prefix=no
14189 need_version=no
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath=no
14194 hardcode_into_libs=yes
14195 dynamic_linker='ldqnx.so'
14196 ;;
14197
14198 openbsd*)
14199 version_type=sunos
14200 sys_lib_dlsearch_path_spec="/usr/lib"
14201 need_lib_prefix=no
14202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14203 case $host_os in
14204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14205 *) need_version=no ;;
14206 esac
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14209 shlibpath_var=LD_LIBRARY_PATH
14210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14211 case $host_os in
14212 openbsd2.[89] | openbsd2.[89].*)
14213 shlibpath_overrides_runpath=no
14214 ;;
14215 *)
14216 shlibpath_overrides_runpath=yes
14217 ;;
14218 esac
14219 else
14220 shlibpath_overrides_runpath=yes
14221 fi
14222 ;;
14223
14224 os2*)
14225 libname_spec='$name'
14226 shrext_cmds=".dll"
14227 need_lib_prefix=no
14228 library_names_spec='$libname${shared_ext} $libname.a'
14229 dynamic_linker='OS/2 ld.exe'
14230 shlibpath_var=LIBPATH
14231 ;;
14232
14233 osf3* | osf4* | osf5*)
14234 version_type=osf
14235 need_lib_prefix=no
14236 need_version=no
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14242 ;;
14243
14244 rdos*)
14245 dynamic_linker=no
14246 ;;
14247
14248 solaris*)
14249 version_type=linux
14250 need_lib_prefix=no
14251 need_version=no
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253 soname_spec='${libname}${release}${shared_ext}$major'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=yes
14256 hardcode_into_libs=yes
14257 # ldd complains unless libraries are executable
14258 postinstall_cmds='chmod +x $lib'
14259 ;;
14260
14261 sunos4*)
14262 version_type=sunos
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14265 shlibpath_var=LD_LIBRARY_PATH
14266 shlibpath_overrides_runpath=yes
14267 if test "$with_gnu_ld" = yes; then
14268 need_lib_prefix=no
14269 fi
14270 need_version=yes
14271 ;;
14272
14273 sysv4 | sysv4.3*)
14274 version_type=linux
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 case $host_vendor in
14279 sni)
14280 shlibpath_overrides_runpath=no
14281 need_lib_prefix=no
14282 runpath_var=LD_RUN_PATH
14283 ;;
14284 siemens)
14285 need_lib_prefix=no
14286 ;;
14287 motorola)
14288 need_lib_prefix=no
14289 need_version=no
14290 shlibpath_overrides_runpath=no
14291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14292 ;;
14293 esac
14294 ;;
14295
14296 sysv4*MP*)
14297 if test -d /usr/nec ;then
14298 version_type=linux
14299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14300 soname_spec='$libname${shared_ext}.$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 fi
14303 ;;
14304
14305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14306 version_type=freebsd-elf
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 shlibpath_overrides_runpath=yes
14313 hardcode_into_libs=yes
14314 if test "$with_gnu_ld" = yes; then
14315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14316 else
14317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14318 case $host_os in
14319 sco3.2v5*)
14320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14321 ;;
14322 esac
14323 fi
14324 sys_lib_dlsearch_path_spec='/usr/lib'
14325 ;;
14326
14327 tpf*)
14328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14329 version_type=linux
14330 need_lib_prefix=no
14331 need_version=no
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 shlibpath_overrides_runpath=no
14335 hardcode_into_libs=yes
14336 ;;
14337
14338 uts4*)
14339 version_type=linux
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 ;;
14344
14345 *)
14346 dynamic_linker=no
14347 ;;
14348 esac
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14350 $as_echo "$dynamic_linker" >&6; }
14351 test "$dynamic_linker" = no && can_build_shared=no
14352
14353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14354 if test "$GCC" = yes; then
14355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14356 fi
14357
14358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14360 fi
14361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14363 fi
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14403 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14404 hardcode_action_CXX=
14405 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14406 test -n "$runpath_var_CXX" ||
14407 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14408
14409 # We can hardcode non-existent directories.
14410 if test "$hardcode_direct_CXX" != no &&
14411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14412 # have to relink, otherwise we might link with an installed library
14413 # when we should be linking with a yet-to-be-installed one
14414 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14415 test "$hardcode_minus_L_CXX" != no; then
14416 # Linking always hardcodes the temporary library directory.
14417 hardcode_action_CXX=relink
14418 else
14419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14420 hardcode_action_CXX=immediate
14421 fi
14422 else
14423 # We cannot hardcode anything, or else we can only hardcode existing
14424 # directories.
14425 hardcode_action_CXX=unsupported
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14428 $as_echo "$hardcode_action_CXX" >&6; }
14429
14430 if test "$hardcode_action_CXX" = relink ||
14431 test "$inherit_rpath_CXX" = yes; then
14432 # Fast installation is not supported
14433 enable_fast_install=no
14434 elif test "$shlibpath_overrides_runpath" = yes ||
14435 test "$enable_shared" = no; then
14436 # Fast installation is not necessary
14437 enable_fast_install=needless
14438 fi
14439
14440
14441
14442
14443
14444
14445
14446 fi # test -n "$compiler"
14447
14448 CC=$lt_save_CC
14449 LDCXX=$LD
14450 LD=$lt_save_LD
14451 GCC=$lt_save_GCC
14452 with_gnu_ld=$lt_save_with_gnu_ld
14453 lt_cv_path_LDCXX=$lt_cv_path_LD
14454 lt_cv_path_LD=$lt_save_path_LD
14455 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14456 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14457 fi # test "$_lt_caught_CXX_error" != yes
14458
14459 ac_ext=c
14460 ac_cpp='$CPP $CPPFLAGS'
14461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477 ac_config_commands="$ac_config_commands libtool"
14478
14479
14480
14481
14482 # Only expand once:
14483
14484
14485
14486
14487
14488
14489 # The cast to long int works around a bug in the HP C Compiler
14490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14492 # This bug is HP SR number 8606223364.
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14494 $as_echo_n "checking size of void *... " >&6; }
14495 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14499
14500 else
14501 if test "$ac_cv_type_void_p" = yes; then
14502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14504 { as_fn_set_status 77
14505 as_fn_error "cannot compute sizeof (void *)
14506 See \`config.log' for more details." "$LINENO" 5; }; }
14507 else
14508 ac_cv_sizeof_void_p=0
14509 fi
14510 fi
14511
14512 fi
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14514 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14515
14516
14517
14518 cat >>confdefs.h <<_ACEOF
14519 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14520 _ACEOF
14521
14522
14523
14524 if test "${multilib}" = "yes"; then
14525 multilib_arg="--enable-multilib"
14526 else
14527 multilib_arg=
14528 fi
14529
14530 # Get target configury.
14531 unset TSAN_SUPPORTED
14532 unset LSAN_SUPPORTED
14533 . ${srcdir}/configure.tgt
14534 if test "x$TSAN_SUPPORTED" = "xyes"; then
14535 TSAN_SUPPORTED_TRUE=
14536 TSAN_SUPPORTED_FALSE='#'
14537 else
14538 TSAN_SUPPORTED_TRUE='#'
14539 TSAN_SUPPORTED_FALSE=
14540 fi
14541
14542 if test "x$LSAN_SUPPORTED" = "xyes"; then
14543 LSAN_SUPPORTED_TRUE=
14544 LSAN_SUPPORTED_FALSE='#'
14545 else
14546 LSAN_SUPPORTED_TRUE='#'
14547 LSAN_SUPPORTED_FALSE=
14548 fi
14549
14550
14551 # Check for functions needed.
14552 for ac_func in clock_getres clock_gettime clock_settime
14553 do :
14554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14556 eval as_val=\$$as_ac_var
14557 if test "x$as_val" = x""yes; then :
14558 cat >>confdefs.h <<_ACEOF
14559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14560 _ACEOF
14561
14562 fi
14563 done
14564
14565
14566 # Common libraries that we need to link against for all sanitizer libs.
14567 link_sanitizer_common='-lpthread -ldl'
14568
14569 # Set up the set of additional libraries that we need to link against for libasan.
14570 link_libasan=$link_sanitizer_common
14571
14572
14573 # Set up the set of additional libraries that we need to link against for libtsan.
14574 link_libtsan=$link_sanitizer_common
14575
14576
14577 # Set up the set of additional libraries that we need to link against for libubsan.
14578 link_libubsan=$link_sanitizer_common
14579
14580
14581 # Set up the set of additional libraries that we need to link against for liblsan.
14582 link_liblsan=$link_sanitizer_common
14583
14584
14585 # At least for glibc, clock_gettime is in librt. But don't pull that
14586 # in if it still doesn't give us the function we want. This
14587 # test is copied from libgomp.
14588 if test $ac_cv_func_clock_gettime = no; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14590 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
14591 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lrt $LIBS"
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14598
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char clock_gettime ();
14606 int
14607 main ()
14608 {
14609 return clock_gettime ();
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 ac_cv_lib_rt_clock_gettime=yes
14616 else
14617 ac_cv_lib_rt_clock_gettime=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14624 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
14625 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
14626 link_libasan="-lrt $link_libasan"
14627 link_libtsan="-lrt $link_libtsan"
14628 # Other sanitizers do not override clock_* API
14629
14630 fi
14631
14632 fi
14633
14634 case "$host" in
14635 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
14636 *) MAC_INTERPOSE=false ;;
14637 esac
14638 if $MAC_INTERPOSE; then
14639 USING_MAC_INTERPOSE_TRUE=
14640 USING_MAC_INTERPOSE_FALSE='#'
14641 else
14642 USING_MAC_INTERPOSE_TRUE='#'
14643 USING_MAC_INTERPOSE_FALSE=
14644 fi
14645
14646
14647 ac_config_files="$ac_config_files Makefile libsanitizer.spec"
14648
14649
14650 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
14651
14652
14653 if test "x$TSAN_SUPPORTED" = "xyes"; then
14654 ac_config_files="$ac_config_files tsan/Makefile"
14655
14656 fi
14657
14658 cat >confcache <<\_ACEOF
14659 # This file is a shell script that caches the results of configure
14660 # tests run on this system so they can be shared between configure
14661 # scripts and configure runs, see configure's option --config-cache.
14662 # It is not useful on other systems. If it contains results you don't
14663 # want to keep, you may remove or edit it.
14664 #
14665 # config.status only pays attention to the cache file if you give it
14666 # the --recheck option to rerun configure.
14667 #
14668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14670 # following values.
14671
14672 _ACEOF
14673
14674 # The following way of writing the cache mishandles newlines in values,
14675 # but we know of no workaround that is simple, portable, and efficient.
14676 # So, we kill variables containing newlines.
14677 # Ultrix sh set writes to stderr and can't be redirected directly,
14678 # and sets the high bit in the cache file unless we assign to the vars.
14679 (
14680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14681 eval ac_val=\$$ac_var
14682 case $ac_val in #(
14683 *${as_nl}*)
14684 case $ac_var in #(
14685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14687 esac
14688 case $ac_var in #(
14689 _ | IFS | as_nl) ;; #(
14690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14691 *) { eval $ac_var=; unset $ac_var;} ;;
14692 esac ;;
14693 esac
14694 done
14695
14696 (set) 2>&1 |
14697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14698 *${as_nl}ac_space=\ *)
14699 # `set' does not quote correctly, so add quotes: double-quote
14700 # substitution turns \\\\ into \\, and sed turns \\ into \.
14701 sed -n \
14702 "s/'/'\\\\''/g;
14703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14704 ;; #(
14705 *)
14706 # `set' quotes correctly as required by POSIX, so do not add quotes.
14707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14708 ;;
14709 esac |
14710 sort
14711 ) |
14712 sed '
14713 /^ac_cv_env_/b end
14714 t clear
14715 :clear
14716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14717 t end
14718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14719 :end' >>confcache
14720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14721 if test -w "$cache_file"; then
14722 test "x$cache_file" != "x/dev/null" &&
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14724 $as_echo "$as_me: updating cache $cache_file" >&6;}
14725 cat confcache >$cache_file
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14729 fi
14730 fi
14731 rm -f confcache
14732
14733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14734 # Let make expand exec_prefix.
14735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14736
14737 # Transform confdefs.h into DEFS.
14738 # Protect against shell expansion while executing Makefile rules.
14739 # Protect against Makefile macro expansion.
14740 #
14741 # If the first sed substitution is executed (which looks for macros that
14742 # take arguments), then branch to the quote section. Otherwise,
14743 # look for a macro that doesn't take arguments.
14744 ac_script='
14745 :mline
14746 /\\$/{
14747 N
14748 s,\\\n,,
14749 b mline
14750 }
14751 t clear
14752 :clear
14753 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14754 t quote
14755 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14756 t quote
14757 b any
14758 :quote
14759 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14760 s/\[/\\&/g
14761 s/\]/\\&/g
14762 s/\$/$$/g
14763 H
14764 :any
14765 ${
14766 g
14767 s/^\n//
14768 s/\n/ /g
14769 p
14770 }
14771 '
14772 DEFS=`sed -n "$ac_script" confdefs.h`
14773
14774
14775 ac_libobjs=
14776 ac_ltlibobjs=
14777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14778 # 1. Remove the extension, and $U if already installed.
14779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14782 # will be set to the directory where LIBOBJS objects are built.
14783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14785 done
14786 LIBOBJS=$ac_libobjs
14787
14788 LTLIBOBJS=$ac_ltlibobjs
14789
14790
14791 if test -n "$EXEEXT"; then
14792 am__EXEEXT_TRUE=
14793 am__EXEEXT_FALSE='#'
14794 else
14795 am__EXEEXT_TRUE='#'
14796 am__EXEEXT_FALSE=
14797 fi
14798
14799 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14800 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 fi
14803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14804 as_fn_error "conditional \"AMDEP\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14808 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14812 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 fi
14815 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14816 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 fi
14819 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
14820 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
14821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14822 fi
14823 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
14824 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
14825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14826 fi
14827 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
14828 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
14829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14830 fi
14831
14832 : ${CONFIG_STATUS=./config.status}
14833 ac_write_fail=0
14834 ac_clean_files_save=$ac_clean_files
14835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14837 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14838 as_write_fail=0
14839 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14840 #! $SHELL
14841 # Generated by $as_me.
14842 # Run this file to recreate the current configuration.
14843 # Compiler output produced by configure, useful for debugging
14844 # configure, is in config.log if it exists.
14845
14846 debug=false
14847 ac_cs_recheck=false
14848 ac_cs_silent=false
14849
14850 SHELL=\${CONFIG_SHELL-$SHELL}
14851 export SHELL
14852 _ASEOF
14853 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14854 ## -------------------- ##
14855 ## M4sh Initialization. ##
14856 ## -------------------- ##
14857
14858 # Be more Bourne compatible
14859 DUALCASE=1; export DUALCASE # for MKS sh
14860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14861 emulate sh
14862 NULLCMD=:
14863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14864 # is contrary to our usage. Disable this feature.
14865 alias -g '${1+"$@"}'='"$@"'
14866 setopt NO_GLOB_SUBST
14867 else
14868 case `(set -o) 2>/dev/null` in #(
14869 *posix*) :
14870 set -o posix ;; #(
14871 *) :
14872 ;;
14873 esac
14874 fi
14875
14876
14877 as_nl='
14878 '
14879 export as_nl
14880 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14881 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14882 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14884 # Prefer a ksh shell builtin over an external printf program on Solaris,
14885 # but without wasting forks for bash or zsh.
14886 if test -z "$BASH_VERSION$ZSH_VERSION" \
14887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14888 as_echo='print -r --'
14889 as_echo_n='print -rn --'
14890 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14891 as_echo='printf %s\n'
14892 as_echo_n='printf %s'
14893 else
14894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14896 as_echo_n='/usr/ucb/echo -n'
14897 else
14898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14899 as_echo_n_body='eval
14900 arg=$1;
14901 case $arg in #(
14902 *"$as_nl"*)
14903 expr "X$arg" : "X\\(.*\\)$as_nl";
14904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14905 esac;
14906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14907 '
14908 export as_echo_n_body
14909 as_echo_n='sh -c $as_echo_n_body as_echo'
14910 fi
14911 export as_echo_body
14912 as_echo='sh -c $as_echo_body as_echo'
14913 fi
14914
14915 # The user is always right.
14916 if test "${PATH_SEPARATOR+set}" != set; then
14917 PATH_SEPARATOR=:
14918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14920 PATH_SEPARATOR=';'
14921 }
14922 fi
14923
14924
14925 # IFS
14926 # We need space, tab and new line, in precisely that order. Quoting is
14927 # there to prevent editors from complaining about space-tab.
14928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14929 # splitting by setting IFS to empty value.)
14930 IFS=" "" $as_nl"
14931
14932 # Find who we are. Look in the path if we contain no directory separator.
14933 case $0 in #((
14934 *[\\/]* ) as_myself=$0 ;;
14935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14937 do
14938 IFS=$as_save_IFS
14939 test -z "$as_dir" && as_dir=.
14940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14941 done
14942 IFS=$as_save_IFS
14943
14944 ;;
14945 esac
14946 # We did not find ourselves, most probably we were run as `sh COMMAND'
14947 # in which case we are not to be found in the path.
14948 if test "x$as_myself" = x; then
14949 as_myself=$0
14950 fi
14951 if test ! -f "$as_myself"; then
14952 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14953 exit 1
14954 fi
14955
14956 # Unset variables that we do not need and which cause bugs (e.g. in
14957 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14958 # suppresses any "Segmentation fault" message there. '((' could
14959 # trigger a bug in pdksh 5.2.14.
14960 for as_var in BASH_ENV ENV MAIL MAILPATH
14961 do eval test x\${$as_var+set} = xset \
14962 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14963 done
14964 PS1='$ '
14965 PS2='> '
14966 PS4='+ '
14967
14968 # NLS nuisances.
14969 LC_ALL=C
14970 export LC_ALL
14971 LANGUAGE=C
14972 export LANGUAGE
14973
14974 # CDPATH.
14975 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14976
14977
14978 # as_fn_error ERROR [LINENO LOG_FD]
14979 # ---------------------------------
14980 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14981 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14982 # script with status $?, using 1 if that was 0.
14983 as_fn_error ()
14984 {
14985 as_status=$?; test $as_status -eq 0 && as_status=1
14986 if test "$3"; then
14987 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14988 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14989 fi
14990 $as_echo "$as_me: error: $1" >&2
14991 as_fn_exit $as_status
14992 } # as_fn_error
14993
14994
14995 # as_fn_set_status STATUS
14996 # -----------------------
14997 # Set $? to STATUS, without forking.
14998 as_fn_set_status ()
14999 {
15000 return $1
15001 } # as_fn_set_status
15002
15003 # as_fn_exit STATUS
15004 # -----------------
15005 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15006 as_fn_exit ()
15007 {
15008 set +e
15009 as_fn_set_status $1
15010 exit $1
15011 } # as_fn_exit
15012
15013 # as_fn_unset VAR
15014 # ---------------
15015 # Portably unset VAR.
15016 as_fn_unset ()
15017 {
15018 { eval $1=; unset $1;}
15019 }
15020 as_unset=as_fn_unset
15021 # as_fn_append VAR VALUE
15022 # ----------------------
15023 # Append the text in VALUE to the end of the definition contained in VAR. Take
15024 # advantage of any shell optimizations that allow amortized linear growth over
15025 # repeated appends, instead of the typical quadratic growth present in naive
15026 # implementations.
15027 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15028 eval 'as_fn_append ()
15029 {
15030 eval $1+=\$2
15031 }'
15032 else
15033 as_fn_append ()
15034 {
15035 eval $1=\$$1\$2
15036 }
15037 fi # as_fn_append
15038
15039 # as_fn_arith ARG...
15040 # ------------------
15041 # Perform arithmetic evaluation on the ARGs, and store the result in the
15042 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15043 # must be portable across $(()) and expr.
15044 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15045 eval 'as_fn_arith ()
15046 {
15047 as_val=$(( $* ))
15048 }'
15049 else
15050 as_fn_arith ()
15051 {
15052 as_val=`expr "$@" || test $? -eq 1`
15053 }
15054 fi # as_fn_arith
15055
15056
15057 if expr a : '\(a\)' >/dev/null 2>&1 &&
15058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15059 as_expr=expr
15060 else
15061 as_expr=false
15062 fi
15063
15064 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15065 as_basename=basename
15066 else
15067 as_basename=false
15068 fi
15069
15070 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15071 as_dirname=dirname
15072 else
15073 as_dirname=false
15074 fi
15075
15076 as_me=`$as_basename -- "$0" ||
15077 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15078 X"$0" : 'X\(//\)$' \| \
15079 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15080 $as_echo X/"$0" |
15081 sed '/^.*\/\([^/][^/]*\)\/*$/{
15082 s//\1/
15083 q
15084 }
15085 /^X\/\(\/\/\)$/{
15086 s//\1/
15087 q
15088 }
15089 /^X\/\(\/\).*/{
15090 s//\1/
15091 q
15092 }
15093 s/.*/./; q'`
15094
15095 # Avoid depending upon Character Ranges.
15096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15099 as_cr_digits='0123456789'
15100 as_cr_alnum=$as_cr_Letters$as_cr_digits
15101
15102 ECHO_C= ECHO_N= ECHO_T=
15103 case `echo -n x` in #(((((
15104 -n*)
15105 case `echo 'xy\c'` in
15106 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15107 xy) ECHO_C='\c';;
15108 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15109 ECHO_T=' ';;
15110 esac;;
15111 *)
15112 ECHO_N='-n';;
15113 esac
15114
15115 rm -f conf$$ conf$$.exe conf$$.file
15116 if test -d conf$$.dir; then
15117 rm -f conf$$.dir/conf$$.file
15118 else
15119 rm -f conf$$.dir
15120 mkdir conf$$.dir 2>/dev/null
15121 fi
15122 if (echo >conf$$.file) 2>/dev/null; then
15123 if ln -s conf$$.file conf$$ 2>/dev/null; then
15124 as_ln_s='ln -s'
15125 # ... but there are two gotchas:
15126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15128 # In both cases, we have to default to `cp -p'.
15129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15130 as_ln_s='cp -p'
15131 elif ln conf$$.file conf$$ 2>/dev/null; then
15132 as_ln_s=ln
15133 else
15134 as_ln_s='cp -p'
15135 fi
15136 else
15137 as_ln_s='cp -p'
15138 fi
15139 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15140 rmdir conf$$.dir 2>/dev/null
15141
15142
15143 # as_fn_mkdir_p
15144 # -------------
15145 # Create "$as_dir" as a directory, including parents if necessary.
15146 as_fn_mkdir_p ()
15147 {
15148
15149 case $as_dir in #(
15150 -*) as_dir=./$as_dir;;
15151 esac
15152 test -d "$as_dir" || eval $as_mkdir_p || {
15153 as_dirs=
15154 while :; do
15155 case $as_dir in #(
15156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15157 *) as_qdir=$as_dir;;
15158 esac
15159 as_dirs="'$as_qdir' $as_dirs"
15160 as_dir=`$as_dirname -- "$as_dir" ||
15161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15162 X"$as_dir" : 'X\(//\)[^/]' \| \
15163 X"$as_dir" : 'X\(//\)$' \| \
15164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15165 $as_echo X"$as_dir" |
15166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15167 s//\1/
15168 q
15169 }
15170 /^X\(\/\/\)[^/].*/{
15171 s//\1/
15172 q
15173 }
15174 /^X\(\/\/\)$/{
15175 s//\1/
15176 q
15177 }
15178 /^X\(\/\).*/{
15179 s//\1/
15180 q
15181 }
15182 s/.*/./; q'`
15183 test -d "$as_dir" && break
15184 done
15185 test -z "$as_dirs" || eval "mkdir $as_dirs"
15186 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15187
15188
15189 } # as_fn_mkdir_p
15190 if mkdir -p . 2>/dev/null; then
15191 as_mkdir_p='mkdir -p "$as_dir"'
15192 else
15193 test -d ./-p && rmdir ./-p
15194 as_mkdir_p=false
15195 fi
15196
15197 if test -x / >/dev/null 2>&1; then
15198 as_test_x='test -x'
15199 else
15200 if ls -dL / >/dev/null 2>&1; then
15201 as_ls_L_option=L
15202 else
15203 as_ls_L_option=
15204 fi
15205 as_test_x='
15206 eval sh -c '\''
15207 if test -d "$1"; then
15208 test -d "$1/.";
15209 else
15210 case $1 in #(
15211 -*)set "./$1";;
15212 esac;
15213 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15214 ???[sx]*):;;*)false;;esac;fi
15215 '\'' sh
15216 '
15217 fi
15218 as_executable_p=$as_test_x
15219
15220 # Sed expression to map a string onto a valid CPP name.
15221 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15222
15223 # Sed expression to map a string onto a valid variable name.
15224 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15225
15226
15227 exec 6>&1
15228 ## ----------------------------------- ##
15229 ## Main body of $CONFIG_STATUS script. ##
15230 ## ----------------------------------- ##
15231 _ASEOF
15232 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15233
15234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15235 # Save the log message, to keep $0 and so on meaningful, and to
15236 # report actual input values of CONFIG_FILES etc. instead of their
15237 # values after options handling.
15238 ac_log="
15239 This file was extended by package-unused $as_me version-unused, which was
15240 generated by GNU Autoconf 2.64. Invocation command line was
15241
15242 CONFIG_FILES = $CONFIG_FILES
15243 CONFIG_HEADERS = $CONFIG_HEADERS
15244 CONFIG_LINKS = $CONFIG_LINKS
15245 CONFIG_COMMANDS = $CONFIG_COMMANDS
15246 $ $0 $@
15247
15248 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15249 "
15250
15251 _ACEOF
15252
15253 case $ac_config_files in *"
15254 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15255 esac
15256
15257
15258
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 # Files that config.status was made for.
15261 config_files="$ac_config_files"
15262 config_commands="$ac_config_commands"
15263
15264 _ACEOF
15265
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 ac_cs_usage="\
15268 \`$as_me' instantiates files and other configuration actions
15269 from templates according to the current configuration. Unless the files
15270 and actions are specified as TAGs, all are instantiated by default.
15271
15272 Usage: $0 [OPTION]... [TAG]...
15273
15274 -h, --help print this help, then exit
15275 -V, --version print version number and configuration settings, then exit
15276 -q, --quiet, --silent
15277 do not print progress messages
15278 -d, --debug don't remove temporary files
15279 --recheck update $as_me by reconfiguring in the same conditions
15280 --file=FILE[:TEMPLATE]
15281 instantiate the configuration file FILE
15282
15283 Configuration files:
15284 $config_files
15285
15286 Configuration commands:
15287 $config_commands
15288
15289 Report bugs to <libsanitizer>."
15290
15291 _ACEOF
15292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 ac_cs_version="\\
15294 package-unused config.status version-unused
15295 configured by $0, generated by GNU Autoconf 2.64,
15296 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15297
15298 Copyright (C) 2009 Free Software Foundation, Inc.
15299 This config.status script is free software; the Free Software Foundation
15300 gives unlimited permission to copy, distribute and modify it."
15301
15302 ac_pwd='$ac_pwd'
15303 srcdir='$srcdir'
15304 INSTALL='$INSTALL'
15305 MKDIR_P='$MKDIR_P'
15306 AWK='$AWK'
15307 test -n "\$AWK" || AWK=awk
15308 _ACEOF
15309
15310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15311 # The default lists apply if the user does not specify any file.
15312 ac_need_defaults=:
15313 while test $# != 0
15314 do
15315 case $1 in
15316 --*=*)
15317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15319 ac_shift=:
15320 ;;
15321 *)
15322 ac_option=$1
15323 ac_optarg=$2
15324 ac_shift=shift
15325 ;;
15326 esac
15327
15328 case $ac_option in
15329 # Handling of the options.
15330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15331 ac_cs_recheck=: ;;
15332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15333 $as_echo "$ac_cs_version"; exit ;;
15334 --debug | --debu | --deb | --de | --d | -d )
15335 debug=: ;;
15336 --file | --fil | --fi | --f )
15337 $ac_shift
15338 case $ac_optarg in
15339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15340 esac
15341 as_fn_append CONFIG_FILES " '$ac_optarg'"
15342 ac_need_defaults=false;;
15343 --he | --h | --help | --hel | -h )
15344 $as_echo "$ac_cs_usage"; exit ;;
15345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15347 ac_cs_silent=: ;;
15348
15349 # This is an error.
15350 -*) as_fn_error "unrecognized option: \`$1'
15351 Try \`$0 --help' for more information." ;;
15352
15353 *) as_fn_append ac_config_targets " $1"
15354 ac_need_defaults=false ;;
15355
15356 esac
15357 shift
15358 done
15359
15360 ac_configure_extra_args=
15361
15362 if $ac_cs_silent; then
15363 exec 6>/dev/null
15364 ac_configure_extra_args="$ac_configure_extra_args --silent"
15365 fi
15366
15367 _ACEOF
15368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369 if \$ac_cs_recheck; then
15370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15371 shift
15372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15373 CONFIG_SHELL='$SHELL'
15374 export CONFIG_SHELL
15375 exec "\$@"
15376 fi
15377
15378 _ACEOF
15379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15380 exec 5>>config.log
15381 {
15382 echo
15383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15384 ## Running $as_me. ##
15385 _ASBOX
15386 $as_echo "$ac_log"
15387 } >&5
15388
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 #
15392 # INIT-COMMANDS
15393 #
15394
15395 srcdir="$srcdir"
15396 host="$host"
15397 target="$target"
15398 with_multisubdir="$with_multisubdir"
15399 with_multisrctop="$with_multisrctop"
15400 with_target_subdir="$with_target_subdir"
15401 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15402 multi_basedir="$multi_basedir"
15403 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15404 CC="$CC"
15405 CXX="$CXX"
15406 GFORTRAN="$GFORTRAN"
15407 GCJ="$GCJ"
15408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15409
15410
15411 # The HP-UX ksh and POSIX shell print the target directory to stdout
15412 # if CDPATH is set.
15413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15414
15415 sed_quote_subst='$sed_quote_subst'
15416 double_quote_subst='$double_quote_subst'
15417 delay_variable_subst='$delay_variable_subst'
15418 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15419 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15420 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15421 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15422 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15423 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15424 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15425 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15426 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15427 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15428 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15429 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15430 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15431 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15432 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15433 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15434 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15435 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15436 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15437 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15438 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15439 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15440 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15441 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15442 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15443 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15444 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15445 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15451 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15452 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15465 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15466 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"`'
15467 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15468 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15469 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15470 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15471 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15472 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15473 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15474 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15475 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15476 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15477 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15478 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15479 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15480 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15481 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15482 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15483 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15484 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15485 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15486 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15487 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15488 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15489 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15490 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15491 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15492 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15493 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15494 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15495 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15496 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15497 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15498 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15499 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15500 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15501 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15502 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15503 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15504 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15505 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15506 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15507 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15508 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15509 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15510 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15511 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15512 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15513 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15514 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15515 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15516 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15517 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15518 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15519 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15520 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15521 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15522 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15523 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15524 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15525 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15526 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15527 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15528 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15529 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15530 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15531 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15532 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15533 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15534 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15535 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15536 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15537 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15538 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15539 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15540 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15541 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15542 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15543 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15544 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15545 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15546 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15547 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15548 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15549 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15550 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15551 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15552 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15553 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15554 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15555 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15556 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15557 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15558 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15559 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15560 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15561 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15562 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15563 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15564 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15565 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15566 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15567 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15568 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15569 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15570 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15571 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15572 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15573 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15574 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15575 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15576 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15577 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15578 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15579 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15580 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15581 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15582 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15583 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15584 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15585 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15586 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15587 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15588 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15589 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15590 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15591 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15592 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15593
15594 LTCC='$LTCC'
15595 LTCFLAGS='$LTCFLAGS'
15596 compiler='$compiler_DEFAULT'
15597
15598 # A function that is used when there is no print builtin or printf.
15599 func_fallback_echo ()
15600 {
15601 eval 'cat <<_LTECHO_EOF
15602 \$1
15603 _LTECHO_EOF'
15604 }
15605
15606 # Quote evaled strings.
15607 for var in SHELL \
15608 ECHO \
15609 SED \
15610 GREP \
15611 EGREP \
15612 FGREP \
15613 LD \
15614 NM \
15615 LN_S \
15616 lt_SP2NL \
15617 lt_NL2SP \
15618 reload_flag \
15619 OBJDUMP \
15620 deplibs_check_method \
15621 file_magic_cmd \
15622 AR \
15623 AR_FLAGS \
15624 STRIP \
15625 RANLIB \
15626 CC \
15627 CFLAGS \
15628 compiler \
15629 lt_cv_sys_global_symbol_pipe \
15630 lt_cv_sys_global_symbol_to_cdecl \
15631 lt_cv_sys_global_symbol_to_c_name_address \
15632 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15633 lt_prog_compiler_no_builtin_flag \
15634 lt_prog_compiler_wl \
15635 lt_prog_compiler_pic \
15636 lt_prog_compiler_static \
15637 lt_cv_prog_compiler_c_o \
15638 need_locks \
15639 DSYMUTIL \
15640 NMEDIT \
15641 LIPO \
15642 OTOOL \
15643 OTOOL64 \
15644 shrext_cmds \
15645 export_dynamic_flag_spec \
15646 whole_archive_flag_spec \
15647 compiler_needs_object \
15648 with_gnu_ld \
15649 allow_undefined_flag \
15650 no_undefined_flag \
15651 hardcode_libdir_flag_spec \
15652 hardcode_libdir_flag_spec_ld \
15653 hardcode_libdir_separator \
15654 fix_srcfile_path \
15655 exclude_expsyms \
15656 include_expsyms \
15657 file_list_spec \
15658 variables_saved_for_relink \
15659 libname_spec \
15660 library_names_spec \
15661 soname_spec \
15662 install_override_mode \
15663 finish_eval \
15664 old_striplib \
15665 striplib \
15666 compiler_lib_search_dirs \
15667 predep_objects \
15668 postdep_objects \
15669 predeps \
15670 postdeps \
15671 compiler_lib_search_path \
15672 LD_CXX \
15673 reload_flag_CXX \
15674 compiler_CXX \
15675 lt_prog_compiler_no_builtin_flag_CXX \
15676 lt_prog_compiler_wl_CXX \
15677 lt_prog_compiler_pic_CXX \
15678 lt_prog_compiler_static_CXX \
15679 lt_cv_prog_compiler_c_o_CXX \
15680 export_dynamic_flag_spec_CXX \
15681 whole_archive_flag_spec_CXX \
15682 compiler_needs_object_CXX \
15683 with_gnu_ld_CXX \
15684 allow_undefined_flag_CXX \
15685 no_undefined_flag_CXX \
15686 hardcode_libdir_flag_spec_CXX \
15687 hardcode_libdir_flag_spec_ld_CXX \
15688 hardcode_libdir_separator_CXX \
15689 fix_srcfile_path_CXX \
15690 exclude_expsyms_CXX \
15691 include_expsyms_CXX \
15692 file_list_spec_CXX \
15693 compiler_lib_search_dirs_CXX \
15694 predep_objects_CXX \
15695 postdep_objects_CXX \
15696 predeps_CXX \
15697 postdeps_CXX \
15698 compiler_lib_search_path_CXX; do
15699 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15700 *[\\\\\\\`\\"\\\$]*)
15701 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15702 ;;
15703 *)
15704 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15705 ;;
15706 esac
15707 done
15708
15709 # Double-quote double-evaled strings.
15710 for var in reload_cmds \
15711 old_postinstall_cmds \
15712 old_postuninstall_cmds \
15713 old_archive_cmds \
15714 extract_expsyms_cmds \
15715 old_archive_from_new_cmds \
15716 old_archive_from_expsyms_cmds \
15717 archive_cmds \
15718 archive_expsym_cmds \
15719 module_cmds \
15720 module_expsym_cmds \
15721 export_symbols_cmds \
15722 prelink_cmds \
15723 postinstall_cmds \
15724 postuninstall_cmds \
15725 finish_cmds \
15726 sys_lib_search_path_spec \
15727 sys_lib_dlsearch_path_spec \
15728 reload_cmds_CXX \
15729 old_archive_cmds_CXX \
15730 old_archive_from_new_cmds_CXX \
15731 old_archive_from_expsyms_cmds_CXX \
15732 archive_cmds_CXX \
15733 archive_expsym_cmds_CXX \
15734 module_cmds_CXX \
15735 module_expsym_cmds_CXX \
15736 export_symbols_cmds_CXX \
15737 prelink_cmds_CXX; do
15738 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15739 *[\\\\\\\`\\"\\\$]*)
15740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15741 ;;
15742 *)
15743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15744 ;;
15745 esac
15746 done
15747
15748 ac_aux_dir='$ac_aux_dir'
15749 xsi_shell='$xsi_shell'
15750 lt_shell_append='$lt_shell_append'
15751
15752 # See if we are running on zsh, and set the options which allow our
15753 # commands through without removal of \ escapes INIT.
15754 if test -n "\${ZSH_VERSION+set}" ; then
15755 setopt NO_GLOB_SUBST
15756 fi
15757
15758
15759 PACKAGE='$PACKAGE'
15760 VERSION='$VERSION'
15761 TIMESTAMP='$TIMESTAMP'
15762 RM='$RM'
15763 ofile='$ofile'
15764
15765
15766
15767
15768
15769
15770 _ACEOF
15771
15772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15773
15774 # Handling of arguments.
15775 for ac_config_target in $ac_config_targets
15776 do
15777 case $ac_config_target in
15778 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15779 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15780 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15781 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15782 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
15783 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15784 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15785 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
15786 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15787 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
15788 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
15789
15790 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15791 esac
15792 done
15793
15794
15795 # If the user did not use the arguments to specify the items to instantiate,
15796 # then the envvar interface is used. Set only those that are not.
15797 # We use the long form for the default assignment because of an extremely
15798 # bizarre bug on SunOS 4.1.3.
15799 if $ac_need_defaults; then
15800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15802 fi
15803
15804 # Have a temporary directory for convenience. Make it in the build tree
15805 # simply because there is no reason against having it here, and in addition,
15806 # creating and moving files from /tmp can sometimes cause problems.
15807 # Hook for its removal unless debugging.
15808 # Note that there is a small window in which the directory will not be cleaned:
15809 # after its creation but before its name has been assigned to `$tmp'.
15810 $debug ||
15811 {
15812 tmp=
15813 trap 'exit_status=$?
15814 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15815 ' 0
15816 trap 'as_fn_exit 1' 1 2 13 15
15817 }
15818 # Create a (secure) tmp directory for tmp files.
15819
15820 {
15821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15822 test -n "$tmp" && test -d "$tmp"
15823 } ||
15824 {
15825 tmp=./conf$$-$RANDOM
15826 (umask 077 && mkdir "$tmp")
15827 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15828
15829 # Set up the scripts for CONFIG_FILES section.
15830 # No need to generate them if there are no CONFIG_FILES.
15831 # This happens for instance with `./config.status config.h'.
15832 if test -n "$CONFIG_FILES"; then
15833
15834
15835 ac_cr=`echo X | tr X '\015'`
15836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15837 # But we know of no other shell where ac_cr would be empty at this
15838 # point, so we can use a bashism as a fallback.
15839 if test "x$ac_cr" = x; then
15840 eval ac_cr=\$\'\\r\'
15841 fi
15842 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15844 ac_cs_awk_cr='\r'
15845 else
15846 ac_cs_awk_cr=$ac_cr
15847 fi
15848
15849 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15850 _ACEOF
15851
15852
15853 {
15854 echo "cat >conf$$subs.awk <<_ACEOF" &&
15855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15856 echo "_ACEOF"
15857 } >conf$$subs.sh ||
15858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15860 ac_delim='%!_!# '
15861 for ac_last_try in false false false false false :; do
15862 . ./conf$$subs.sh ||
15863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15864
15865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15866 if test $ac_delim_n = $ac_delim_num; then
15867 break
15868 elif $ac_last_try; then
15869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15870 else
15871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15872 fi
15873 done
15874 rm -f conf$$subs.sh
15875
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15878 _ACEOF
15879 sed -n '
15880 h
15881 s/^/S["/; s/!.*/"]=/
15882 p
15883 g
15884 s/^[^!]*!//
15885 :repl
15886 t repl
15887 s/'"$ac_delim"'$//
15888 t delim
15889 :nl
15890 h
15891 s/\(.\{148\}\).*/\1/
15892 t more1
15893 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15894 p
15895 n
15896 b repl
15897 :more1
15898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15899 p
15900 g
15901 s/.\{148\}//
15902 t nl
15903 :delim
15904 h
15905 s/\(.\{148\}\).*/\1/
15906 t more2
15907 s/["\\]/\\&/g; s/^/"/; s/$/"/
15908 p
15909 b
15910 :more2
15911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15912 p
15913 g
15914 s/.\{148\}//
15915 t delim
15916 ' <conf$$subs.awk | sed '
15917 /^[^""]/{
15918 N
15919 s/\n//
15920 }
15921 ' >>$CONFIG_STATUS || ac_write_fail=1
15922 rm -f conf$$subs.awk
15923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15924 _ACAWK
15925 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15926 for (key in S) S_is_set[key] = 1
15927 FS = "\a"
15928
15929 }
15930 {
15931 line = $ 0
15932 nfields = split(line, field, "@")
15933 substed = 0
15934 len = length(field[1])
15935 for (i = 2; i < nfields; i++) {
15936 key = field[i]
15937 keylen = length(key)
15938 if (S_is_set[key]) {
15939 value = S[key]
15940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15941 len += length(value) + length(field[++i])
15942 substed = 1
15943 } else
15944 len += 1 + keylen
15945 }
15946
15947 print line
15948 }
15949
15950 _ACAWK
15951 _ACEOF
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15954 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15955 else
15956 cat
15957 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15958 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15959 _ACEOF
15960
15961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15963 # trailing colons and then remove the whole line if VPATH becomes empty
15964 # (actually we leave an empty line to preserve line numbers).
15965 if test "x$srcdir" = x.; then
15966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15967 s/:*\$(srcdir):*/:/
15968 s/:*\${srcdir}:*/:/
15969 s/:*@srcdir@:*/:/
15970 s/^\([^=]*=[ ]*\):*/\1/
15971 s/:*$//
15972 s/^[^=]*=[ ]*$//
15973 }'
15974 fi
15975
15976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15977 fi # test -n "$CONFIG_FILES"
15978
15979
15980 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15981 shift
15982 for ac_tag
15983 do
15984 case $ac_tag in
15985 :[FHLC]) ac_mode=$ac_tag; continue;;
15986 esac
15987 case $ac_mode$ac_tag in
15988 :[FHL]*:*);;
15989 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15990 :[FH]-) ac_tag=-:-;;
15991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15992 esac
15993 ac_save_IFS=$IFS
15994 IFS=:
15995 set x $ac_tag
15996 IFS=$ac_save_IFS
15997 shift
15998 ac_file=$1
15999 shift
16000
16001 case $ac_mode in
16002 :L) ac_source=$1;;
16003 :[FH])
16004 ac_file_inputs=
16005 for ac_f
16006 do
16007 case $ac_f in
16008 -) ac_f="$tmp/stdin";;
16009 *) # Look for the file first in the build tree, then in the source tree
16010 # (if the path is not absolute). The absolute path cannot be DOS-style,
16011 # because $ac_f cannot contain `:'.
16012 test -f "$ac_f" ||
16013 case $ac_f in
16014 [\\/$]*) false;;
16015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16016 esac ||
16017 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16018 esac
16019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16020 as_fn_append ac_file_inputs " '$ac_f'"
16021 done
16022
16023 # Let's still pretend it is `configure' which instantiates (i.e., don't
16024 # use $as_me), people would be surprised to read:
16025 # /* config.h. Generated by config.status. */
16026 configure_input='Generated from '`
16027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16028 `' by configure.'
16029 if test x"$ac_file" != x-; then
16030 configure_input="$ac_file. $configure_input"
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16032 $as_echo "$as_me: creating $ac_file" >&6;}
16033 fi
16034 # Neutralize special characters interpreted by sed in replacement strings.
16035 case $configure_input in #(
16036 *\&* | *\|* | *\\* )
16037 ac_sed_conf_input=`$as_echo "$configure_input" |
16038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16039 *) ac_sed_conf_input=$configure_input;;
16040 esac
16041
16042 case $ac_tag in
16043 *:-:* | *:-) cat >"$tmp/stdin" \
16044 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16045 esac
16046 ;;
16047 esac
16048
16049 ac_dir=`$as_dirname -- "$ac_file" ||
16050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051 X"$ac_file" : 'X\(//\)[^/]' \| \
16052 X"$ac_file" : 'X\(//\)$' \| \
16053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16054 $as_echo X"$ac_file" |
16055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\/\)[^/].*/{
16060 s//\1/
16061 q
16062 }
16063 /^X\(\/\/\)$/{
16064 s//\1/
16065 q
16066 }
16067 /^X\(\/\).*/{
16068 s//\1/
16069 q
16070 }
16071 s/.*/./; q'`
16072 as_dir="$ac_dir"; as_fn_mkdir_p
16073 ac_builddir=.
16074
16075 case "$ac_dir" in
16076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16077 *)
16078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16079 # A ".." for each directory in $ac_dir_suffix.
16080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16081 case $ac_top_builddir_sub in
16082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16084 esac ;;
16085 esac
16086 ac_abs_top_builddir=$ac_pwd
16087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16088 # for backward compatibility:
16089 ac_top_builddir=$ac_top_build_prefix
16090
16091 case $srcdir in
16092 .) # We are building in place.
16093 ac_srcdir=.
16094 ac_top_srcdir=$ac_top_builddir_sub
16095 ac_abs_top_srcdir=$ac_pwd ;;
16096 [\\/]* | ?:[\\/]* ) # Absolute name.
16097 ac_srcdir=$srcdir$ac_dir_suffix;
16098 ac_top_srcdir=$srcdir
16099 ac_abs_top_srcdir=$srcdir ;;
16100 *) # Relative name.
16101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16102 ac_top_srcdir=$ac_top_build_prefix$srcdir
16103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16104 esac
16105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16106
16107
16108 case $ac_mode in
16109 :F)
16110 #
16111 # CONFIG_FILE
16112 #
16113
16114 case $INSTALL in
16115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16117 esac
16118 ac_MKDIR_P=$MKDIR_P
16119 case $MKDIR_P in
16120 [\\/$]* | ?:[\\/]* ) ;;
16121 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16122 esac
16123 _ACEOF
16124
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 # If the template does not know about datarootdir, expand it.
16127 # FIXME: This hack should be removed a few years after 2.60.
16128 ac_datarootdir_hack=; ac_datarootdir_seen=
16129 ac_sed_dataroot='
16130 /datarootdir/ {
16131 p
16132 q
16133 }
16134 /@datadir@/p
16135 /@docdir@/p
16136 /@infodir@/p
16137 /@localedir@/p
16138 /@mandir@/p'
16139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16140 *datarootdir*) ac_datarootdir_seen=yes;;
16141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16144 _ACEOF
16145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16146 ac_datarootdir_hack='
16147 s&@datadir@&$datadir&g
16148 s&@docdir@&$docdir&g
16149 s&@infodir@&$infodir&g
16150 s&@localedir@&$localedir&g
16151 s&@mandir@&$mandir&g
16152 s&\\\${datarootdir}&$datarootdir&g' ;;
16153 esac
16154 _ACEOF
16155
16156 # Neutralize VPATH when `$srcdir' = `.'.
16157 # Shell code in configure.ac might set extrasub.
16158 # FIXME: do we really want to maintain this feature?
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 ac_sed_extra="$ac_vpsub
16161 $extrasub
16162 _ACEOF
16163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164 :t
16165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16166 s|@configure_input@|$ac_sed_conf_input|;t t
16167 s&@top_builddir@&$ac_top_builddir_sub&;t t
16168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16169 s&@srcdir@&$ac_srcdir&;t t
16170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16171 s&@top_srcdir@&$ac_top_srcdir&;t t
16172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16173 s&@builddir@&$ac_builddir&;t t
16174 s&@abs_builddir@&$ac_abs_builddir&;t t
16175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16176 s&@INSTALL@&$ac_INSTALL&;t t
16177 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16178 $ac_datarootdir_hack
16179 "
16180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16181 || as_fn_error "could not create $ac_file" "$LINENO" 5
16182
16183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16184 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16187 which seems to be undefined. Please make sure it is defined." >&5
16188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16189 which seems to be undefined. Please make sure it is defined." >&2;}
16190
16191 rm -f "$tmp/stdin"
16192 case $ac_file in
16193 -) cat "$tmp/out" && rm -f "$tmp/out";;
16194 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16195 esac \
16196 || as_fn_error "could not create $ac_file" "$LINENO" 5
16197 ;;
16198
16199
16200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16201 $as_echo "$as_me: executing $ac_file commands" >&6;}
16202 ;;
16203 esac
16204
16205
16206 case $ac_file$ac_mode in
16207 "default-1":C)
16208 # Only add multilib support code if we just rebuilt the top-level
16209 # Makefile.
16210 case " $CONFIG_FILES " in
16211 *" Makefile "*)
16212 ac_file=Makefile . ${multi_basedir}/config-ml.in
16213 ;;
16214 esac ;;
16215 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16216 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16217 # are listed without --file. Let's play safe and only enable the eval
16218 # if we detect the quoting.
16219 case $CONFIG_FILES in
16220 *\'*) eval set x "$CONFIG_FILES" ;;
16221 *) set x $CONFIG_FILES ;;
16222 esac
16223 shift
16224 for mf
16225 do
16226 # Strip MF so we end up with the name of the file.
16227 mf=`echo "$mf" | sed -e 's/:.*$//'`
16228 # Check whether this is an Automake generated Makefile or not.
16229 # We used to match only the files named `Makefile.in', but
16230 # some people rename them; so instead we look at the file content.
16231 # Grep'ing the first line is not enough: some people post-process
16232 # each Makefile.in and add a new line on top of each file to say so.
16233 # Grep'ing the whole file is not good either: AIX grep has a line
16234 # limit of 2048, but all sed's we know have understand at least 4000.
16235 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16236 dirpart=`$as_dirname -- "$mf" ||
16237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16238 X"$mf" : 'X\(//\)[^/]' \| \
16239 X"$mf" : 'X\(//\)$' \| \
16240 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16241 $as_echo X"$mf" |
16242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16243 s//\1/
16244 q
16245 }
16246 /^X\(\/\/\)[^/].*/{
16247 s//\1/
16248 q
16249 }
16250 /^X\(\/\/\)$/{
16251 s//\1/
16252 q
16253 }
16254 /^X\(\/\).*/{
16255 s//\1/
16256 q
16257 }
16258 s/.*/./; q'`
16259 else
16260 continue
16261 fi
16262 # Extract the definition of DEPDIR, am__include, and am__quote
16263 # from the Makefile without running `make'.
16264 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16265 test -z "$DEPDIR" && continue
16266 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16267 test -z "am__include" && continue
16268 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16269 # When using ansi2knr, U may be empty or an underscore; expand it
16270 U=`sed -n 's/^U = //p' < "$mf"`
16271 # Find all dependency output files, they are included files with
16272 # $(DEPDIR) in their names. We invoke sed twice because it is the
16273 # simplest approach to changing $(DEPDIR) to its actual value in the
16274 # expansion.
16275 for file in `sed -n "
16276 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16277 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16278 # Make sure the directory exists.
16279 test -f "$dirpart/$file" && continue
16280 fdir=`$as_dirname -- "$file" ||
16281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16282 X"$file" : 'X\(//\)[^/]' \| \
16283 X"$file" : 'X\(//\)$' \| \
16284 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16285 $as_echo X"$file" |
16286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16287 s//\1/
16288 q
16289 }
16290 /^X\(\/\/\)[^/].*/{
16291 s//\1/
16292 q
16293 }
16294 /^X\(\/\/\)$/{
16295 s//\1/
16296 q
16297 }
16298 /^X\(\/\).*/{
16299 s//\1/
16300 q
16301 }
16302 s/.*/./; q'`
16303 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16304 # echo "creating $dirpart/$file"
16305 echo '# dummy' > "$dirpart/$file"
16306 done
16307 done
16308 }
16309 ;;
16310 "libtool":C)
16311
16312 # See if we are running on zsh, and set the options which allow our
16313 # commands through without removal of \ escapes.
16314 if test -n "${ZSH_VERSION+set}" ; then
16315 setopt NO_GLOB_SUBST
16316 fi
16317
16318 cfgfile="${ofile}T"
16319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16320 $RM "$cfgfile"
16321
16322 cat <<_LT_EOF >> "$cfgfile"
16323 #! $SHELL
16324
16325 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16326 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16329 #
16330 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16331 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16332 # Written by Gordon Matzigkeit, 1996
16333 #
16334 # This file is part of GNU Libtool.
16335 #
16336 # GNU Libtool is free software; you can redistribute it and/or
16337 # modify it under the terms of the GNU General Public License as
16338 # published by the Free Software Foundation; either version 2 of
16339 # the License, or (at your option) any later version.
16340 #
16341 # As a special exception to the GNU General Public License,
16342 # if you distribute this file as part of a program or library that
16343 # is built using GNU Libtool, you may include this file under the
16344 # same distribution terms that you use for the rest of that program.
16345 #
16346 # GNU Libtool is distributed in the hope that it will be useful,
16347 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16349 # GNU General Public License for more details.
16350 #
16351 # You should have received a copy of the GNU General Public License
16352 # along with GNU Libtool; see the file COPYING. If not, a copy
16353 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16354 # obtained by writing to the Free Software Foundation, Inc.,
16355 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16356
16357
16358 # The names of the tagged configurations supported by this script.
16359 available_tags="CXX "
16360
16361 # ### BEGIN LIBTOOL CONFIG
16362
16363 # Which release of libtool.m4 was used?
16364 macro_version=$macro_version
16365 macro_revision=$macro_revision
16366
16367 # Whether or not to build shared libraries.
16368 build_libtool_libs=$enable_shared
16369
16370 # Whether or not to build static libraries.
16371 build_old_libs=$enable_static
16372
16373 # What type of objects to build.
16374 pic_mode=$pic_mode
16375
16376 # Whether or not to optimize for fast installation.
16377 fast_install=$enable_fast_install
16378
16379 # Shell to use when invoking shell scripts.
16380 SHELL=$lt_SHELL
16381
16382 # An echo program that protects backslashes.
16383 ECHO=$lt_ECHO
16384
16385 # The host system.
16386 host_alias=$host_alias
16387 host=$host
16388 host_os=$host_os
16389
16390 # The build system.
16391 build_alias=$build_alias
16392 build=$build
16393 build_os=$build_os
16394
16395 # A sed program that does not truncate output.
16396 SED=$lt_SED
16397
16398 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16399 Xsed="\$SED -e 1s/^X//"
16400
16401 # A grep program that handles long lines.
16402 GREP=$lt_GREP
16403
16404 # An ERE matcher.
16405 EGREP=$lt_EGREP
16406
16407 # A literal string matcher.
16408 FGREP=$lt_FGREP
16409
16410 # A BSD- or MS-compatible name lister.
16411 NM=$lt_NM
16412
16413 # Whether we need soft or hard links.
16414 LN_S=$lt_LN_S
16415
16416 # What is the maximum length of a command?
16417 max_cmd_len=$max_cmd_len
16418
16419 # Object file suffix (normally "o").
16420 objext=$ac_objext
16421
16422 # Executable file suffix (normally "").
16423 exeext=$exeext
16424
16425 # whether the shell understands "unset".
16426 lt_unset=$lt_unset
16427
16428 # turn spaces into newlines.
16429 SP2NL=$lt_lt_SP2NL
16430
16431 # turn newlines into spaces.
16432 NL2SP=$lt_lt_NL2SP
16433
16434 # An object symbol dumper.
16435 OBJDUMP=$lt_OBJDUMP
16436
16437 # Method to check whether dependent libraries are shared objects.
16438 deplibs_check_method=$lt_deplibs_check_method
16439
16440 # Command to use when deplibs_check_method == "file_magic".
16441 file_magic_cmd=$lt_file_magic_cmd
16442
16443 # The archiver.
16444 AR=$lt_AR
16445 AR_FLAGS=$lt_AR_FLAGS
16446
16447 # A symbol stripping program.
16448 STRIP=$lt_STRIP
16449
16450 # Commands used to install an old-style archive.
16451 RANLIB=$lt_RANLIB
16452 old_postinstall_cmds=$lt_old_postinstall_cmds
16453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16454
16455 # Whether to use a lock for old archive extraction.
16456 lock_old_archive_extraction=$lock_old_archive_extraction
16457
16458 # A C compiler.
16459 LTCC=$lt_CC
16460
16461 # LTCC compiler flags.
16462 LTCFLAGS=$lt_CFLAGS
16463
16464 # Take the output of nm and produce a listing of raw symbols and C names.
16465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16466
16467 # Transform the output of nm in a proper C declaration.
16468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16469
16470 # Transform the output of nm in a C name address pair.
16471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16472
16473 # Transform the output of nm in a C name address pair when lib prefix is needed.
16474 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16475
16476 # The name of the directory that contains temporary libtool files.
16477 objdir=$objdir
16478
16479 # Used to examine libraries when file_magic_cmd begins with "file".
16480 MAGIC_CMD=$MAGIC_CMD
16481
16482 # Must we lock files when doing compilation?
16483 need_locks=$lt_need_locks
16484
16485 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16486 DSYMUTIL=$lt_DSYMUTIL
16487
16488 # Tool to change global to local symbols on Mac OS X.
16489 NMEDIT=$lt_NMEDIT
16490
16491 # Tool to manipulate fat objects and archives on Mac OS X.
16492 LIPO=$lt_LIPO
16493
16494 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16495 OTOOL=$lt_OTOOL
16496
16497 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16498 OTOOL64=$lt_OTOOL64
16499
16500 # Old archive suffix (normally "a").
16501 libext=$libext
16502
16503 # Shared library suffix (normally ".so").
16504 shrext_cmds=$lt_shrext_cmds
16505
16506 # The commands to extract the exported symbol list from a shared archive.
16507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16508
16509 # Variables whose values should be saved in libtool wrapper scripts and
16510 # restored at link time.
16511 variables_saved_for_relink=$lt_variables_saved_for_relink
16512
16513 # Do we need the "lib" prefix for modules?
16514 need_lib_prefix=$need_lib_prefix
16515
16516 # Do we need a version for libraries?
16517 need_version=$need_version
16518
16519 # Library versioning type.
16520 version_type=$version_type
16521
16522 # Shared library runtime path variable.
16523 runpath_var=$runpath_var
16524
16525 # Shared library path variable.
16526 shlibpath_var=$shlibpath_var
16527
16528 # Is shlibpath searched before the hard-coded library search path?
16529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16530
16531 # Format of library name prefix.
16532 libname_spec=$lt_libname_spec
16533
16534 # List of archive names. First name is the real one, the rest are links.
16535 # The last name is the one that the linker finds with -lNAME
16536 library_names_spec=$lt_library_names_spec
16537
16538 # The coded name of the library, if different from the real name.
16539 soname_spec=$lt_soname_spec
16540
16541 # Permission mode override for installation of shared libraries.
16542 install_override_mode=$lt_install_override_mode
16543
16544 # Command to use after installation of a shared archive.
16545 postinstall_cmds=$lt_postinstall_cmds
16546
16547 # Command to use after uninstallation of a shared archive.
16548 postuninstall_cmds=$lt_postuninstall_cmds
16549
16550 # Commands used to finish a libtool library installation in a directory.
16551 finish_cmds=$lt_finish_cmds
16552
16553 # As "finish_cmds", except a single script fragment to be evaled but
16554 # not shown.
16555 finish_eval=$lt_finish_eval
16556
16557 # Whether we should hardcode library paths into libraries.
16558 hardcode_into_libs=$hardcode_into_libs
16559
16560 # Compile-time system search path for libraries.
16561 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16562
16563 # Run-time system search path for libraries.
16564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16565
16566 # Whether dlopen is supported.
16567 dlopen_support=$enable_dlopen
16568
16569 # Whether dlopen of programs is supported.
16570 dlopen_self=$enable_dlopen_self
16571
16572 # Whether dlopen of statically linked programs is supported.
16573 dlopen_self_static=$enable_dlopen_self_static
16574
16575 # Commands to strip libraries.
16576 old_striplib=$lt_old_striplib
16577 striplib=$lt_striplib
16578
16579
16580 # The linker used to build libraries.
16581 LD=$lt_LD
16582
16583 # How to create reloadable object files.
16584 reload_flag=$lt_reload_flag
16585 reload_cmds=$lt_reload_cmds
16586
16587 # Commands used to build an old-style archive.
16588 old_archive_cmds=$lt_old_archive_cmds
16589
16590 # A language specific compiler.
16591 CC=$lt_compiler
16592
16593 # Is the compiler the GNU compiler?
16594 with_gcc=$GCC
16595
16596 # Compiler flag to turn off builtin functions.
16597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16598
16599 # How to pass a linker flag through the compiler.
16600 wl=$lt_lt_prog_compiler_wl
16601
16602 # Additional compiler flags for building library objects.
16603 pic_flag=$lt_lt_prog_compiler_pic
16604
16605 # Compiler flag to prevent dynamic linking.
16606 link_static_flag=$lt_lt_prog_compiler_static
16607
16608 # Does compiler simultaneously support -c and -o options?
16609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16610
16611 # Whether or not to add -lc for building shared libraries.
16612 build_libtool_need_lc=$archive_cmds_need_lc
16613
16614 # Whether or not to disallow shared libs when runtime libs are static.
16615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16616
16617 # Compiler flag to allow reflexive dlopens.
16618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16619
16620 # Compiler flag to generate shared objects directly from archives.
16621 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16622
16623 # Whether the compiler copes with passing no objects directly.
16624 compiler_needs_object=$lt_compiler_needs_object
16625
16626 # Create an old-style archive from a shared archive.
16627 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16628
16629 # Create a temporary old-style archive to link instead of a shared archive.
16630 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16631
16632 # Commands used to build a shared archive.
16633 archive_cmds=$lt_archive_cmds
16634 archive_expsym_cmds=$lt_archive_expsym_cmds
16635
16636 # Commands used to build a loadable module if different from building
16637 # a shared archive.
16638 module_cmds=$lt_module_cmds
16639 module_expsym_cmds=$lt_module_expsym_cmds
16640
16641 # Whether we are building with GNU ld or not.
16642 with_gnu_ld=$lt_with_gnu_ld
16643
16644 # Flag that allows shared libraries with undefined symbols to be built.
16645 allow_undefined_flag=$lt_allow_undefined_flag
16646
16647 # Flag that enforces no undefined symbols.
16648 no_undefined_flag=$lt_no_undefined_flag
16649
16650 # Flag to hardcode \$libdir into a binary during linking.
16651 # This must work even if \$libdir does not exist
16652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16653
16654 # If ld is used when linking, flag to hardcode \$libdir into a binary
16655 # during linking. This must work even if \$libdir does not exist.
16656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16657
16658 # Whether we need a single "-rpath" flag with a separated argument.
16659 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16660
16661 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16662 # DIR into the resulting binary.
16663 hardcode_direct=$hardcode_direct
16664
16665 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16666 # DIR into the resulting binary and the resulting library dependency is
16667 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16668 # library is relocated.
16669 hardcode_direct_absolute=$hardcode_direct_absolute
16670
16671 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16672 # into the resulting binary.
16673 hardcode_minus_L=$hardcode_minus_L
16674
16675 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16676 # into the resulting binary.
16677 hardcode_shlibpath_var=$hardcode_shlibpath_var
16678
16679 # Set to "yes" if building a shared library automatically hardcodes DIR
16680 # into the library and all subsequent libraries and executables linked
16681 # against it.
16682 hardcode_automatic=$hardcode_automatic
16683
16684 # Set to yes if linker adds runtime paths of dependent libraries
16685 # to runtime path list.
16686 inherit_rpath=$inherit_rpath
16687
16688 # Whether libtool must link a program against all its dependency libraries.
16689 link_all_deplibs=$link_all_deplibs
16690
16691 # Fix the shell variable \$srcfile for the compiler.
16692 fix_srcfile_path=$lt_fix_srcfile_path
16693
16694 # Set to "yes" if exported symbols are required.
16695 always_export_symbols=$always_export_symbols
16696
16697 # The commands to list exported symbols.
16698 export_symbols_cmds=$lt_export_symbols_cmds
16699
16700 # Symbols that should not be listed in the preloaded symbols.
16701 exclude_expsyms=$lt_exclude_expsyms
16702
16703 # Symbols that must always be exported.
16704 include_expsyms=$lt_include_expsyms
16705
16706 # Commands necessary for linking programs (against libraries) with templates.
16707 prelink_cmds=$lt_prelink_cmds
16708
16709 # Specify filename containing input files.
16710 file_list_spec=$lt_file_list_spec
16711
16712 # How to hardcode a shared library path into an executable.
16713 hardcode_action=$hardcode_action
16714
16715 # The directories searched by this compiler when creating a shared library.
16716 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16717
16718 # Dependencies to place before and after the objects being linked to
16719 # create a shared library.
16720 predep_objects=$lt_predep_objects
16721 postdep_objects=$lt_postdep_objects
16722 predeps=$lt_predeps
16723 postdeps=$lt_postdeps
16724
16725 # The library search path used internally by the compiler when linking
16726 # a shared library.
16727 compiler_lib_search_path=$lt_compiler_lib_search_path
16728
16729 # ### END LIBTOOL CONFIG
16730
16731 _LT_EOF
16732
16733 case $host_os in
16734 aix3*)
16735 cat <<\_LT_EOF >> "$cfgfile"
16736 # AIX sometimes has problems with the GCC collect2 program. For some
16737 # reason, if we set the COLLECT_NAMES environment variable, the problems
16738 # vanish in a puff of smoke.
16739 if test "X${COLLECT_NAMES+set}" != Xset; then
16740 COLLECT_NAMES=
16741 export COLLECT_NAMES
16742 fi
16743 _LT_EOF
16744 ;;
16745 esac
16746
16747
16748 ltmain="$ac_aux_dir/ltmain.sh"
16749
16750
16751 # We use sed instead of cat because bash on DJGPP gets confused if
16752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16753 # text mode, it properly converts lines to CR/LF. This bash problem
16754 # is reportedly fixed, but why not run on old versions too?
16755 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16756 || (rm -f "$cfgfile"; exit 1)
16757
16758 case $xsi_shell in
16759 yes)
16760 cat << \_LT_EOF >> "$cfgfile"
16761
16762 # func_dirname file append nondir_replacement
16763 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16764 # otherwise set result to NONDIR_REPLACEMENT.
16765 func_dirname ()
16766 {
16767 case ${1} in
16768 */*) func_dirname_result="${1%/*}${2}" ;;
16769 * ) func_dirname_result="${3}" ;;
16770 esac
16771 }
16772
16773 # func_basename file
16774 func_basename ()
16775 {
16776 func_basename_result="${1##*/}"
16777 }
16778
16779 # func_dirname_and_basename file append nondir_replacement
16780 # perform func_basename and func_dirname in a single function
16781 # call:
16782 # dirname: Compute the dirname of FILE. If nonempty,
16783 # add APPEND to the result, otherwise set result
16784 # to NONDIR_REPLACEMENT.
16785 # value returned in "$func_dirname_result"
16786 # basename: Compute filename of FILE.
16787 # value retuned in "$func_basename_result"
16788 # Implementation must be kept synchronized with func_dirname
16789 # and func_basename. For efficiency, we do not delegate to
16790 # those functions but instead duplicate the functionality here.
16791 func_dirname_and_basename ()
16792 {
16793 case ${1} in
16794 */*) func_dirname_result="${1%/*}${2}" ;;
16795 * ) func_dirname_result="${3}" ;;
16796 esac
16797 func_basename_result="${1##*/}"
16798 }
16799
16800 # func_stripname prefix suffix name
16801 # strip PREFIX and SUFFIX off of NAME.
16802 # PREFIX and SUFFIX must not contain globbing or regex special
16803 # characters, hashes, percent signs, but SUFFIX may contain a leading
16804 # dot (in which case that matches only a dot).
16805 func_stripname ()
16806 {
16807 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16808 # positional parameters, so assign one to ordinary parameter first.
16809 func_stripname_result=${3}
16810 func_stripname_result=${func_stripname_result#"${1}"}
16811 func_stripname_result=${func_stripname_result%"${2}"}
16812 }
16813
16814 # func_opt_split
16815 func_opt_split ()
16816 {
16817 func_opt_split_opt=${1%%=*}
16818 func_opt_split_arg=${1#*=}
16819 }
16820
16821 # func_lo2o object
16822 func_lo2o ()
16823 {
16824 case ${1} in
16825 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16826 *) func_lo2o_result=${1} ;;
16827 esac
16828 }
16829
16830 # func_xform libobj-or-source
16831 func_xform ()
16832 {
16833 func_xform_result=${1%.*}.lo
16834 }
16835
16836 # func_arith arithmetic-term...
16837 func_arith ()
16838 {
16839 func_arith_result=$(( $* ))
16840 }
16841
16842 # func_len string
16843 # STRING may not start with a hyphen.
16844 func_len ()
16845 {
16846 func_len_result=${#1}
16847 }
16848
16849 _LT_EOF
16850 ;;
16851 *) # Bourne compatible functions.
16852 cat << \_LT_EOF >> "$cfgfile"
16853
16854 # func_dirname file append nondir_replacement
16855 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16856 # otherwise set result to NONDIR_REPLACEMENT.
16857 func_dirname ()
16858 {
16859 # Extract subdirectory from the argument.
16860 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16861 if test "X$func_dirname_result" = "X${1}"; then
16862 func_dirname_result="${3}"
16863 else
16864 func_dirname_result="$func_dirname_result${2}"
16865 fi
16866 }
16867
16868 # func_basename file
16869 func_basename ()
16870 {
16871 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16872 }
16873
16874
16875 # func_stripname prefix suffix name
16876 # strip PREFIX and SUFFIX off of NAME.
16877 # PREFIX and SUFFIX must not contain globbing or regex special
16878 # characters, hashes, percent signs, but SUFFIX may contain a leading
16879 # dot (in which case that matches only a dot).
16880 # func_strip_suffix prefix name
16881 func_stripname ()
16882 {
16883 case ${2} in
16884 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16885 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16886 esac
16887 }
16888
16889 # sed scripts:
16890 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16891 my_sed_long_arg='1s/^-[^=]*=//'
16892
16893 # func_opt_split
16894 func_opt_split ()
16895 {
16896 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16897 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16898 }
16899
16900 # func_lo2o object
16901 func_lo2o ()
16902 {
16903 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16904 }
16905
16906 # func_xform libobj-or-source
16907 func_xform ()
16908 {
16909 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16910 }
16911
16912 # func_arith arithmetic-term...
16913 func_arith ()
16914 {
16915 func_arith_result=`expr "$@"`
16916 }
16917
16918 # func_len string
16919 # STRING may not start with a hyphen.
16920 func_len ()
16921 {
16922 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16923 }
16924
16925 _LT_EOF
16926 esac
16927
16928 case $lt_shell_append in
16929 yes)
16930 cat << \_LT_EOF >> "$cfgfile"
16931
16932 # func_append var value
16933 # Append VALUE to the end of shell variable VAR.
16934 func_append ()
16935 {
16936 eval "$1+=\$2"
16937 }
16938 _LT_EOF
16939 ;;
16940 *)
16941 cat << \_LT_EOF >> "$cfgfile"
16942
16943 # func_append var value
16944 # Append VALUE to the end of shell variable VAR.
16945 func_append ()
16946 {
16947 eval "$1=\$$1\$2"
16948 }
16949
16950 _LT_EOF
16951 ;;
16952 esac
16953
16954
16955 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16956 || (rm -f "$cfgfile"; exit 1)
16957
16958 mv -f "$cfgfile" "$ofile" ||
16959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16960 chmod +x "$ofile"
16961
16962
16963 cat <<_LT_EOF >> "$ofile"
16964
16965 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16966
16967 # The linker used to build libraries.
16968 LD=$lt_LD_CXX
16969
16970 # How to create reloadable object files.
16971 reload_flag=$lt_reload_flag_CXX
16972 reload_cmds=$lt_reload_cmds_CXX
16973
16974 # Commands used to build an old-style archive.
16975 old_archive_cmds=$lt_old_archive_cmds_CXX
16976
16977 # A language specific compiler.
16978 CC=$lt_compiler_CXX
16979
16980 # Is the compiler the GNU compiler?
16981 with_gcc=$GCC_CXX
16982
16983 # Compiler flag to turn off builtin functions.
16984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16985
16986 # How to pass a linker flag through the compiler.
16987 wl=$lt_lt_prog_compiler_wl_CXX
16988
16989 # Additional compiler flags for building library objects.
16990 pic_flag=$lt_lt_prog_compiler_pic_CXX
16991
16992 # Compiler flag to prevent dynamic linking.
16993 link_static_flag=$lt_lt_prog_compiler_static_CXX
16994
16995 # Does compiler simultaneously support -c and -o options?
16996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16997
16998 # Whether or not to add -lc for building shared libraries.
16999 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17000
17001 # Whether or not to disallow shared libs when runtime libs are static.
17002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17003
17004 # Compiler flag to allow reflexive dlopens.
17005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17006
17007 # Compiler flag to generate shared objects directly from archives.
17008 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17009
17010 # Whether the compiler copes with passing no objects directly.
17011 compiler_needs_object=$lt_compiler_needs_object_CXX
17012
17013 # Create an old-style archive from a shared archive.
17014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17015
17016 # Create a temporary old-style archive to link instead of a shared archive.
17017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17018
17019 # Commands used to build a shared archive.
17020 archive_cmds=$lt_archive_cmds_CXX
17021 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17022
17023 # Commands used to build a loadable module if different from building
17024 # a shared archive.
17025 module_cmds=$lt_module_cmds_CXX
17026 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17027
17028 # Whether we are building with GNU ld or not.
17029 with_gnu_ld=$lt_with_gnu_ld_CXX
17030
17031 # Flag that allows shared libraries with undefined symbols to be built.
17032 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17033
17034 # Flag that enforces no undefined symbols.
17035 no_undefined_flag=$lt_no_undefined_flag_CXX
17036
17037 # Flag to hardcode \$libdir into a binary during linking.
17038 # This must work even if \$libdir does not exist
17039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17040
17041 # If ld is used when linking, flag to hardcode \$libdir into a binary
17042 # during linking. This must work even if \$libdir does not exist.
17043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17044
17045 # Whether we need a single "-rpath" flag with a separated argument.
17046 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17047
17048 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17049 # DIR into the resulting binary.
17050 hardcode_direct=$hardcode_direct_CXX
17051
17052 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17053 # DIR into the resulting binary and the resulting library dependency is
17054 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17055 # library is relocated.
17056 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17057
17058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17059 # into the resulting binary.
17060 hardcode_minus_L=$hardcode_minus_L_CXX
17061
17062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17063 # into the resulting binary.
17064 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17065
17066 # Set to "yes" if building a shared library automatically hardcodes DIR
17067 # into the library and all subsequent libraries and executables linked
17068 # against it.
17069 hardcode_automatic=$hardcode_automatic_CXX
17070
17071 # Set to yes if linker adds runtime paths of dependent libraries
17072 # to runtime path list.
17073 inherit_rpath=$inherit_rpath_CXX
17074
17075 # Whether libtool must link a program against all its dependency libraries.
17076 link_all_deplibs=$link_all_deplibs_CXX
17077
17078 # Fix the shell variable \$srcfile for the compiler.
17079 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17080
17081 # Set to "yes" if exported symbols are required.
17082 always_export_symbols=$always_export_symbols_CXX
17083
17084 # The commands to list exported symbols.
17085 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17086
17087 # Symbols that should not be listed in the preloaded symbols.
17088 exclude_expsyms=$lt_exclude_expsyms_CXX
17089
17090 # Symbols that must always be exported.
17091 include_expsyms=$lt_include_expsyms_CXX
17092
17093 # Commands necessary for linking programs (against libraries) with templates.
17094 prelink_cmds=$lt_prelink_cmds_CXX
17095
17096 # Specify filename containing input files.
17097 file_list_spec=$lt_file_list_spec_CXX
17098
17099 # How to hardcode a shared library path into an executable.
17100 hardcode_action=$hardcode_action_CXX
17101
17102 # The directories searched by this compiler when creating a shared library.
17103 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17104
17105 # Dependencies to place before and after the objects being linked to
17106 # create a shared library.
17107 predep_objects=$lt_predep_objects_CXX
17108 postdep_objects=$lt_postdep_objects_CXX
17109 predeps=$lt_predeps_CXX
17110 postdeps=$lt_postdeps_CXX
17111
17112 # The library search path used internally by the compiler when linking
17113 # a shared library.
17114 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17115
17116 # ### END LIBTOOL TAG CONFIG: CXX
17117 _LT_EOF
17118
17119 ;;
17120 "interception/Makefile":F) cat > vpsed$$ << \_EOF
17121 s!`test -f '$<' || echo '$(srcdir)/'`!!
17122 _EOF
17123 sed -f vpsed$$ $ac_file > tmp$$
17124 mv tmp$$ $ac_file
17125 rm vpsed$$
17126 echo 'MULTISUBDIR =' >> $ac_file
17127 ml_norecursion=yes
17128 . ${multi_basedir}/config-ml.in
17129 { ml_norecursion=; unset ml_norecursion;}
17130 ;;
17131 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
17132 s!`test -f '$<' || echo '$(srcdir)/'`!!
17133 _EOF
17134 sed -f vpsed$$ $ac_file > tmp$$
17135 mv tmp$$ $ac_file
17136 rm vpsed$$
17137 echo 'MULTISUBDIR =' >> $ac_file
17138 ml_norecursion=yes
17139 . ${multi_basedir}/config-ml.in
17140 { ml_norecursion=; unset ml_norecursion;}
17141 ;;
17142 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
17143 s!`test -f '$<' || echo '$(srcdir)/'`!!
17144 _EOF
17145 sed -f vpsed$$ $ac_file > tmp$$
17146 mv tmp$$ $ac_file
17147 rm vpsed$$
17148 echo 'MULTISUBDIR =' >> $ac_file
17149 ml_norecursion=yes
17150 . ${multi_basedir}/config-ml.in
17151 { ml_norecursion=; unset ml_norecursion;}
17152 ;;
17153 "asan/Makefile":F) cat > vpsed$$ << \_EOF
17154 s!`test -f '$<' || echo '$(srcdir)/'`!!
17155 _EOF
17156 sed -f vpsed$$ $ac_file > tmp$$
17157 mv tmp$$ $ac_file
17158 rm vpsed$$
17159 echo 'MULTISUBDIR =' >> $ac_file
17160 ml_norecursion=yes
17161 . ${multi_basedir}/config-ml.in
17162 { ml_norecursion=; unset ml_norecursion;}
17163 ;;
17164 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
17165 s!`test -f '$<' || echo '$(srcdir)/'`!!
17166 _EOF
17167 sed -f vpsed$$ $ac_file > tmp$$
17168 mv tmp$$ $ac_file
17169 rm vpsed$$
17170 echo 'MULTISUBDIR =' >> $ac_file
17171 ml_norecursion=yes
17172 . ${multi_basedir}/config-ml.in
17173 { ml_norecursion=; unset ml_norecursion;}
17174 ;;
17175 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
17176 s!`test -f '$<' || echo '$(srcdir)/'`!!
17177 _EOF
17178 sed -f vpsed$$ $ac_file > tmp$$
17179 mv tmp$$ $ac_file
17180 rm vpsed$$
17181 echo 'MULTISUBDIR =' >> $ac_file
17182 ml_norecursion=yes
17183 . ${multi_basedir}/config-ml.in
17184 { ml_norecursion=; unset ml_norecursion;}
17185 ;;
17186
17187 esac
17188 done # for ac_tag
17189
17190
17191 as_fn_exit 0
17192 _ACEOF
17193 ac_clean_files=$ac_clean_files_save
17194
17195 test $ac_write_fail = 0 ||
17196 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17197
17198
17199 # configure is writing to config.log, and then calls config.status.
17200 # config.status does its own redirection, appending to config.log.
17201 # Unfortunately, on DOS this fails, as config.log is still kept open
17202 # by configure, so config.status won't be able to write to it; its
17203 # output is simply discarded. So we exec the FD to /dev/null,
17204 # effectively closing config.log, so it can be properly (re)opened and
17205 # appended to by config.status. When coming back to configure, we
17206 # need to make the FD available again.
17207 if test "$no_create" != yes; then
17208 ac_cs_success=:
17209 ac_config_status_args=
17210 test "$silent" = yes &&
17211 ac_config_status_args="$ac_config_status_args --quiet"
17212 exec 5>/dev/null
17213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17214 exec 5>>config.log
17215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17216 # would make configure fail if this is the last instruction.
17217 $ac_cs_success || as_fn_exit $?
17218 fi
17219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17222 fi
17223