configure.ac: Invoke AM_MAINTAINER_MODE.
[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 enable_static
608 enable_shared
609 CXXCPP
610 CPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
617 AR
618 OBJDUMP
619 LN_S
620 NM
621 ac_ct_DUMPBIN
622 DUMPBIN
623 LD
624 FGREP
625 EGREP
626 GREP
627 SED
628 LIBTOOL
629 am__fastdepCCAS_FALSE
630 am__fastdepCCAS_TRUE
631 CCASDEPMODE
632 CCASFLAGS
633 CCAS
634 am__fastdepCXX_FALSE
635 am__fastdepCXX_TRUE
636 CXXDEPMODE
637 ac_ct_CXX
638 CXXFLAGS
639 CXX
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 toolexeclibdir
657 toolexecdir
658 MAINT
659 MAINTAINER_MODE_FALSE
660 MAINTAINER_MODE_TRUE
661 multi_basedir
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
667 AWK
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_version_specific_runtime_libs
739 enable_multilib
740 enable_maintainer_mode
741 enable_dependency_tracking
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CXX
758 CXXFLAGS
759 CCC
760 CCAS
761 CCASFLAGS
762 CPP
763 CXXCPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
893
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1113
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
1129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
1148 -*) as_fn_error "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information."
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 esac
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 ;;
1169
1170 esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1191 do
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
1200 case $ac_val in
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 esac
1204 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1219 If a cross compiler is detected then cross compile mode will be used." >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of package-unused version-unused:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1385 --enable-multilib build many library versions (default)
1386 --enable-maintainer-mode enable make rules and dependencies not useful
1387 (and sometimes confusing) to the casual installer
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1413 CCAS assembler compiler command (defaults to CC)
1414 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1415 CPP C preprocessor
1416 CXXCPP C++ preprocessor
1417
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1420
1421 Report bugs to <libsanitizer>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 package-unused configure version-unused
1485 generated by GNU Autoconf 2.64
1486
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 return $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1571
1572 } # ac_fn_cxx_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 $as_test_x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 return $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } >/dev/null && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_cxx_try_cpp LINENO
1798 # ------------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_cpp ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } >/dev/null && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1831
1832 } # ac_fn_cxx_try_cpp
1833
1834 # ac_fn_cxx_try_link LINENO
1835 # -------------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_link ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1877
1878 } # ac_fn_cxx_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by package-unused $as_me version-unused, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072 echo
2073 cat confdefs.h
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2083 ' 0
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2088
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2091
2092 $as_echo "/* confdefs.h */" > confdefs.h
2093
2094 # Predefined preprocessor variables.
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2119
2120
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2133 fi
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 do
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file"
2142 fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2210 fi
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232
2233
2234
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2236 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2237 # Check whether --enable-version-specific-runtime-libs was given.
2238 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2239 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2240 yes) version_specific_libs=yes ;;
2241 no) version_specific_libs=no ;;
2242 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2243 esac
2244 else
2245 version_specific_libs=no
2246 fi
2247
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2249 $as_echo "$version_specific_libs" >&6; }
2250
2251 # Do not delete or change the following two lines. For why, see
2252 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2253 ac_aux_dir=
2254 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 for ac_t in install-sh install.sh shtool; do
2256 if test -f "$ac_dir/$ac_t"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/$ac_t -c"
2259 break 2
2260 fi
2261 done
2262 done
2263 if test -z "$ac_aux_dir"; then
2264 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2265 fi
2266
2267 # These three variables are undocumented and unsupported,
2268 # and are intended to be withdrawn in a future Autoconf release.
2269 # They can cause serious problems if a builder's source tree is in a directory
2270 # whose full name contains unusual characters.
2271 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2272 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2273 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274
2275
2276 # Make sure we can run config.sub.
2277 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2278 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2279
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2281 $as_echo_n "checking build system type... " >&6; }
2282 if test "${ac_cv_build+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 ac_build_alias=$build_alias
2286 test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288 test "x$ac_build_alias" = x &&
2289 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2290 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2292
2293 fi
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2295 $as_echo "$ac_cv_build" >&6; }
2296 case $ac_cv_build in
2297 *-*-*) ;;
2298 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2299 esac
2300 build=$ac_cv_build
2301 ac_save_IFS=$IFS; IFS='-'
2302 set x $ac_cv_build
2303 shift
2304 build_cpu=$1
2305 build_vendor=$2
2306 shift; shift
2307 # Remember, the first character of IFS is used to create $*,
2308 # except with old shells:
2309 build_os=$*
2310 IFS=$ac_save_IFS
2311 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2312
2313
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2315 $as_echo_n "checking host system type... " >&6; }
2316 if test "${ac_cv_host+set}" = set; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test "x$host_alias" = x; then
2320 ac_cv_host=$ac_cv_build
2321 else
2322 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2323 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2324 fi
2325
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2328 $as_echo "$ac_cv_host" >&6; }
2329 case $ac_cv_host in
2330 *-*-*) ;;
2331 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2332 esac
2333 host=$ac_cv_host
2334 ac_save_IFS=$IFS; IFS='-'
2335 set x $ac_cv_host
2336 shift
2337 host_cpu=$1
2338 host_vendor=$2
2339 shift; shift
2340 # Remember, the first character of IFS is used to create $*,
2341 # except with old shells:
2342 host_os=$*
2343 IFS=$ac_save_IFS
2344 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2345
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2348 $as_echo_n "checking target system type... " >&6; }
2349 if test "${ac_cv_target+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 if test "x$target_alias" = x; then
2353 ac_cv_target=$ac_cv_host
2354 else
2355 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2357 fi
2358
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2361 $as_echo "$ac_cv_target" >&6; }
2362 case $ac_cv_target in
2363 *-*-*) ;;
2364 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2365 esac
2366 target=$ac_cv_target
2367 ac_save_IFS=$IFS; IFS='-'
2368 set x $ac_cv_target
2369 shift
2370 target_cpu=$1
2371 target_vendor=$2
2372 shift; shift
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2375 target_os=$*
2376 IFS=$ac_save_IFS
2377 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2378
2379
2380 # The aliases save the names the user supplied, while $host etc.
2381 # will get canonicalized.
2382 test -n "$target_alias" &&
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
2385 program_prefix=${target_alias}-
2386
2387 target_alias=${target_alias-$host_alias}
2388
2389
2390 am__api_version='1.11'
2391
2392 # Find a good install program. We prefer a C program (faster),
2393 # so one script is as good as another. But avoid the broken or
2394 # incompatible versions:
2395 # SysV /etc/install, /usr/sbin/install
2396 # SunOS /usr/etc/install
2397 # IRIX /sbin/install
2398 # AIX /bin/install
2399 # AmigaOS /C/install, which installs bootblocks on floppy discs
2400 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2401 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2402 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2403 # OS/2's system install, which has a completely different semantic
2404 # ./install, which can be erroneously created by make from ./install.sh.
2405 # Reject install programs that cannot install multiple files.
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2407 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2408 if test -z "$INSTALL"; then
2409 if test "${ac_cv_path_install+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 # Account for people who put trailing slashes in PATH elements.
2418 case $as_dir/ in #((
2419 ./ | .// | /[cC]/* | \
2420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2421 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2422 /usr/ucb/* ) ;;
2423 *)
2424 # OSF1 and SCO ODT 3.0 have their own names for install.
2425 # Don't use installbsd from OSF since it installs stuff as root
2426 # by default.
2427 for ac_prog in ginstall scoinst install; do
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2430 if test $ac_prog = install &&
2431 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2432 # AIX install. It has an incompatible calling convention.
2433 :
2434 elif test $ac_prog = install &&
2435 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436 # program-specific install script used by HP pwplus--don't use.
2437 :
2438 else
2439 rm -rf conftest.one conftest.two conftest.dir
2440 echo one > conftest.one
2441 echo two > conftest.two
2442 mkdir conftest.dir
2443 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2444 test -s conftest.one && test -s conftest.two &&
2445 test -s conftest.dir/conftest.one &&
2446 test -s conftest.dir/conftest.two
2447 then
2448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2449 break 3
2450 fi
2451 fi
2452 fi
2453 done
2454 done
2455 ;;
2456 esac
2457
2458 done
2459 IFS=$as_save_IFS
2460
2461 rm -rf conftest.one conftest.two conftest.dir
2462
2463 fi
2464 if test "${ac_cv_path_install+set}" = set; then
2465 INSTALL=$ac_cv_path_install
2466 else
2467 # As a last resort, use the slow shell script. Don't cache a
2468 # value for INSTALL within a source directory, because that will
2469 # break other packages using the cache if that directory is
2470 # removed, or if the value is a relative name.
2471 INSTALL=$ac_install_sh
2472 fi
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2475 $as_echo "$INSTALL" >&6; }
2476
2477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2478 # It thinks the first close brace ends the variable substitution.
2479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2480
2481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2482
2483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2484
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2486 $as_echo_n "checking whether build environment is sane... " >&6; }
2487 # Just in case
2488 sleep 1
2489 echo timestamp > conftest.file
2490 # Reject unsafe characters in $srcdir or the absolute working directory
2491 # name. Accept space and tab only in the latter.
2492 am_lf='
2493 '
2494 case `pwd` in
2495 *[\\\"\#\$\&\'\`$am_lf]*)
2496 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2497 esac
2498 case $srcdir in
2499 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2500 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2501 esac
2502
2503 # Do `set' in a subshell so we don't clobber the current shell's
2504 # arguments. Must try -L first in case configure is actually a
2505 # symlink; some systems play weird games with the mod time of symlinks
2506 # (eg FreeBSD returns the mod time of the symlink's containing
2507 # directory).
2508 if (
2509 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2510 if test "$*" = "X"; then
2511 # -L didn't work.
2512 set X `ls -t "$srcdir/configure" conftest.file`
2513 fi
2514 rm -f conftest.file
2515 if test "$*" != "X $srcdir/configure conftest.file" \
2516 && test "$*" != "X conftest.file $srcdir/configure"; then
2517
2518 # If neither matched, then we have a broken ls. This can happen
2519 # if, for instance, CONFIG_SHELL is bash and it inherits a
2520 # broken ls alias from the environment. This has actually
2521 # happened. Such a system could not be considered "sane".
2522 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2523 alias in your environment" "$LINENO" 5
2524 fi
2525
2526 test "$2" = conftest.file
2527 )
2528 then
2529 # Ok.
2530 :
2531 else
2532 as_fn_error "newly created file is older than distributed files!
2533 Check your system clock" "$LINENO" 5
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2536 $as_echo "yes" >&6; }
2537 test "$program_prefix" != NONE &&
2538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $.
2543 # By default was `s,x,x', remove it if useless.
2544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546
2547 # expand $ac_aux_dir to an absolute path
2548 am_aux_dir=`cd $ac_aux_dir && pwd`
2549
2550 if test x"${MISSING+set}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2554 *)
2555 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2556 esac
2557 fi
2558 # Use eval to expand $SHELL
2559 if eval "$MISSING --run true"; then
2560 am_missing_run="$MISSING --run "
2561 else
2562 am_missing_run=
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2564 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2565 fi
2566
2567 if test x"${install_sh}" != xset; then
2568 case $am_aux_dir in
2569 *\ * | *\ *)
2570 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2571 *)
2572 install_sh="\${SHELL} $am_aux_dir/install-sh"
2573 esac
2574 fi
2575
2576 # Installed binaries are usually stripped using `strip' when the user
2577 # run `make install-strip'. However `strip' might not be the right
2578 # tool to use in cross-compilation environments, therefore Automake
2579 # will honor the `STRIP' environment variable to overrule this program.
2580 if test "$cross_compiling" != no; then
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}strip; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if test "${ac_cv_prog_STRIP+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$STRIP"; then
2590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 STRIP=$ac_cv_prog_STRIP
2610 if test -n "$STRIP"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612 $as_echo "$STRIP" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618
2619 fi
2620 if test -z "$ac_cv_prog_STRIP"; then
2621 ac_ct_STRIP=$STRIP
2622 # Extract the first word of "strip", so it can be a program name with args.
2623 set dummy strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$ac_ct_STRIP"; then
2630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_ac_ct_STRIP="strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650 if test -n "$ac_ct_STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652 $as_echo "$ac_ct_STRIP" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658 if test "x$ac_ct_STRIP" = x; then
2659 STRIP=":"
2660 else
2661 case $cross_compiling:$ac_tool_warned in
2662 yes:)
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665 ac_tool_warned=yes ;;
2666 esac
2667 STRIP=$ac_ct_STRIP
2668 fi
2669 else
2670 STRIP="$ac_cv_prog_STRIP"
2671 fi
2672
2673 fi
2674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2677 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2678 if test -z "$MKDIR_P"; then
2679 if test "${ac_cv_path_mkdir+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_prog in mkdir gmkdir; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2690 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2691 'mkdir (GNU coreutils) '* | \
2692 'mkdir (coreutils) '* | \
2693 'mkdir (fileutils) '4.1*)
2694 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695 break 3;;
2696 esac
2697 done
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703
2704 if test "${ac_cv_path_mkdir+set}" = set; then
2705 MKDIR_P="$ac_cv_path_mkdir -p"
2706 else
2707 # As a last resort, use the slow shell script. Don't cache a
2708 # value for MKDIR_P within a source directory, because that will
2709 # break other packages using the cache if that directory is
2710 # removed, or if the value is a relative name.
2711 test -d ./--version && rmdir ./--version
2712 MKDIR_P="$ac_install_sh -d"
2713 fi
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2716 $as_echo "$MKDIR_P" >&6; }
2717
2718 mkdir_p="$MKDIR_P"
2719 case $mkdir_p in
2720 [\\/$]* | ?:[\\/]*) ;;
2721 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2722 esac
2723
2724 for ac_prog in gawk mawk nawk awk
2725 do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_AWK+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 test -n "$AWK" && break
2764 done
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768 set x ${MAKE-make}
2769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 cat >conftest.make <<\_ACEOF
2774 SHELL = /bin/sh
2775 all:
2776 @echo '@@@%%%=$(MAKE)=@@@%%%'
2777 _ACEOF
2778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780 *@@@%%%=?*=@@@%%%*)
2781 eval ac_cv_prog_make_${ac_make}_set=yes;;
2782 *)
2783 eval ac_cv_prog_make_${ac_make}_set=no;;
2784 esac
2785 rm -f conftest.make
2786 fi
2787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2790 SET_MAKE=
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 SET_MAKE="MAKE=${MAKE-make}"
2795 fi
2796
2797 rm -rf .tst 2>/dev/null
2798 mkdir .tst 2>/dev/null
2799 if test -d .tst; then
2800 am__leading_dot=.
2801 else
2802 am__leading_dot=_
2803 fi
2804 rmdir .tst 2>/dev/null
2805
2806 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2807 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2808 # is not polluted with repeated "-I."
2809 am__isrc=' -I$(srcdir)'
2810 # test to see if srcdir already configured
2811 if test -f $srcdir/config.status; then
2812 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2813 fi
2814 fi
2815
2816 # test whether we have cygpath
2817 if test -z "$CYGPATH_W"; then
2818 if (cygpath --version) >/dev/null 2>/dev/null; then
2819 CYGPATH_W='cygpath -w'
2820 else
2821 CYGPATH_W=echo
2822 fi
2823 fi
2824
2825
2826 # Define the identity of the package.
2827 PACKAGE='package-unused'
2828 VERSION='version-unused'
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE "$PACKAGE"
2833 _ACEOF
2834
2835
2836 cat >>confdefs.h <<_ACEOF
2837 #define VERSION "$VERSION"
2838 _ACEOF
2839
2840 # Some tools Automake needs.
2841
2842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2843
2844
2845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2846
2847
2848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2849
2850
2851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2852
2853
2854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855
2856 # We need awk for the "check" target. The system "awk" is bad on
2857 # some platforms.
2858 # Always define AMTAR for backward compatibility.
2859
2860 AMTAR=${AMTAR-"${am_missing_run}tar"}
2861
2862 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2863
2864
2865
2866
2867
2868 # Default to --enable-multilib
2869 # Check whether --enable-multilib was given.
2870 if test "${enable_multilib+set}" = set; then :
2871 enableval=$enable_multilib; case "$enableval" in
2872 yes) multilib=yes ;;
2873 no) multilib=no ;;
2874 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2875 esac
2876 else
2877 multilib=yes
2878 fi
2879
2880
2881 # We may get other options which we leave undocumented:
2882 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2883 # See config-ml.in if you want the gory details.
2884
2885 if test "$srcdir" = "."; then
2886 if test "$with_target_subdir" != "."; then
2887 multi_basedir="$srcdir/$with_multisrctop../.."
2888 else
2889 multi_basedir="$srcdir/$with_multisrctop.."
2890 fi
2891 else
2892 multi_basedir="$srcdir/.."
2893 fi
2894
2895
2896 # Even if the default multilib is not a cross compilation,
2897 # it may be that some of the other multilibs are.
2898 if test $cross_compiling = no && test $multilib = yes \
2899 && test "x${with_multisubdir}" != x ; then
2900 cross_compiling=maybe
2901 fi
2902
2903 ac_config_commands="$ac_config_commands default-1"
2904
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2907 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2908 # Check whether --enable-maintainer-mode was given.
2909 if test "${enable_maintainer_mode+set}" = set; then :
2910 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2911 else
2912 USE_MAINTAINER_MODE=no
2913 fi
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2916 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2917 if test $USE_MAINTAINER_MODE = yes; then
2918 MAINTAINER_MODE_TRUE=
2919 MAINTAINER_MODE_FALSE='#'
2920 else
2921 MAINTAINER_MODE_TRUE='#'
2922 MAINTAINER_MODE_FALSE=
2923 fi
2924
2925 MAINT=$MAINTAINER_MODE_TRUE
2926
2927
2928
2929 # Calculate toolexeclibdir
2930 # Also toolexecdir, though it's only used in toolexeclibdir
2931 case ${version_specific_libs} in
2932 yes)
2933 # Need the gcc compiler version to know where to install libraries
2934 # and header files if --enable-version-specific-runtime-libs option
2935 # is selected.
2936 toolexecdir='$(libdir)/gcc/$(target_alias)'
2937 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2938 ;;
2939 no)
2940 if test -n "$with_cross_host" &&
2941 test x"$with_cross_host" != x"no"; then
2942 # Install a library built with a cross compiler in tooldir, not libdir.
2943 toolexecdir='$(exec_prefix)/$(target_alias)'
2944 toolexeclibdir='$(toolexecdir)/lib'
2945 else
2946 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2947 toolexeclibdir='$(libdir)'
2948 fi
2949 multi_os_directory=`$CC -print-multi-os-directory`
2950 case $multi_os_directory in
2951 .) ;; # Avoid trailing /.
2952 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2953 esac
2954 ;;
2955 esac
2956
2957
2958
2959 # Checks for programs.
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 CC=$ac_ct_CC
3052 fi
3053 else
3054 CC="$ac_cv_prog_CC"
3055 fi
3056
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_CC+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 fi
3097 fi
3098 if test -z "$CC"; then
3099 # Extract the first word of "cc", so it can be a program name with args.
3100 set dummy cc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if test "${ac_cv_prog_CC+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 ac_prog_rejected=no
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3118 ac_prog_rejected=yes
3119 continue
3120 fi
3121 ac_cv_prog_CC="cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 fi
3140 fi
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 for ac_prog in cl.exe
3157 do
3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 test -n "$CC" && break
3196 done
3197 fi
3198 if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl.exe
3201 do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230 if test -n "$ac_ct_CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232 $as_echo "$ac_ct_CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 test -n "$ac_ct_CC" && break
3240 done
3241
3242 if test "x$ac_ct_CC" = x; then
3243 CC=""
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251 CC=$ac_ct_CC
3252 fi
3253 fi
3254
3255 fi
3256
3257
3258 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error "no acceptable C compiler found in \$PATH
3261 See \`config.log' for more details." "$LINENO" 5; }
3262
3263 # Provide some information about the compiler.
3264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 set X $ac_compile
3266 ac_compiler=$2
3267 for ac_option in --version -v -V -qversion; do
3268 { { ac_try="$ac_compiler $ac_option >&5"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 ac_status=$?
3277 if test -s conftest.err; then
3278 sed '10a\
3279 ... rest of stderr output deleted ...
3280 10q' conftest.err >conftest.er1
3281 cat conftest.er1 >&5
3282 rm -f conftest.er1 conftest.err
3283 fi
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 done
3287
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 ac_clean_files_save=$ac_clean_files
3300 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3301 # Try to create an executable without -o first, disregard a.out.
3302 # It will help us diagnose broken compilers, and finding out an intuition
3303 # of exeext.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305 $as_echo_n "checking for C compiler default output file name... " >&6; }
3306 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307
3308 # The possible output files:
3309 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310
3311 ac_rmfiles=
3312 for ac_file in $ac_files
3313 do
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 esac
3318 done
3319 rm -f $ac_rmfiles
3320
3321 if { { ac_try="$ac_link_default"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link_default") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3336 # Autoconf.
3337 for ac_file in $ac_files ''
3338 do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 ;;
3343 [ab].out )
3344 # We found the default executable, but exeext='' is most
3345 # certainly right.
3346 break;;
3347 *.* )
3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 then :; else
3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 fi
3352 # We set ac_cv_exeext here because the later test for it is not
3353 # safe: cross compilers may not add the suffix if given an `-o'
3354 # argument, so we may need to know it at that point already.
3355 # Even if this section looks crufty: it has the advantage of
3356 # actually working.
3357 break;;
3358 * )
3359 break;;
3360 esac
3361 done
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364 else
3365 ac_file=''
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3368 $as_echo "$ac_file" >&6; }
3369 if test -z "$ac_file"; then :
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 { as_fn_set_status 77
3376 as_fn_error "C compiler cannot create executables
3377 See \`config.log' for more details." "$LINENO" 5; }; }
3378 fi
3379 ac_exeext=$ac_cv_exeext
3380
3381 # Check that the compiler produces executables we can run. If not, either
3382 # the compiler is broken, or we cross compile.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3384 $as_echo_n "checking whether the C compiler works... " >&6; }
3385 # If not cross compiling, check that we can run a simple program.
3386 if test "$cross_compiling" != yes; then
3387 if { ac_try='./$ac_file'
3388 { { case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; }; then
3398 cross_compiling=no
3399 else
3400 if test "$cross_compiling" = maybe; then
3401 cross_compiling=yes
3402 else
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error "cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." "$LINENO" 5; }
3408 fi
3409 fi
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412 $as_echo "yes" >&6; }
3413
3414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3415 ac_clean_files=$ac_clean_files_save
3416 # Check that the compiler produces executables we can run. If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 break;;
3446 * ) break;;
3447 esac
3448 done
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." "$LINENO" 5; }
3454 fi
3455 rm -f conftest$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3458
3459 rm -f conftest.$ac_ext
3460 EXEEXT=$ac_cv_exeext
3461 ac_exeext=$EXEEXT
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463 $as_echo_n "checking for suffix of object files... " >&6; }
3464 if test "${ac_cv_objext+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.o conftest.obj
3479 if { { ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_compile") 2>&5
3487 ac_status=$?
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 for ac_file in conftest.o conftest.obj conftest.*; do
3491 test -f "$ac_file" || continue;
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495 break;;
3496 esac
3497 done
3498 else
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error "cannot compute suffix of object files: cannot compile
3505 See \`config.log' for more details." "$LINENO" 5; }
3506 fi
3507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510 $as_echo "$ac_cv_objext" >&6; }
3511 OBJEXT=$ac_cv_objext
3512 ac_objext=$OBJEXT
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524 #ifndef __GNUC__
3525 choke me
3526 #endif
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_compiler_gnu=yes
3534 else
3535 ac_compiler_gnu=no
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543 if test $ac_compiler_gnu = yes; then
3544 GCC=yes
3545 else
3546 GCC=
3547 fi
3548 ac_test_CFLAGS=${CFLAGS+set}
3549 ac_save_CFLAGS=$CFLAGS
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3552 if test "${ac_cv_prog_cc_g+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 ac_save_c_werror_flag=$ac_c_werror_flag
3556 ac_c_werror_flag=yes
3557 ac_cv_prog_cc_g=no
3558 CFLAGS="-g"
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571 ac_cv_prog_cc_g=yes
3572 else
3573 CFLAGS=""
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586
3587 else
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3589 CFLAGS="-g"
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_g=yes
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_c_werror_flag=$ac_save_c_werror_flag
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612 $as_echo "$ac_cv_prog_cc_g" >&6; }
3613 if test "$ac_test_CFLAGS" = set; then
3614 CFLAGS=$ac_save_CFLAGS
3615 elif test $ac_cv_prog_cc_g = yes; then
3616 if test "$GCC" = yes; then
3617 CFLAGS="-g -O2"
3618 else
3619 CFLAGS="-g"
3620 fi
3621 else
3622 if test "$GCC" = yes; then
3623 CFLAGS="-O2"
3624 else
3625 CFLAGS=
3626 fi
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 ac_cv_prog_cc_c89=no
3634 ac_save_CC=$CC
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637 #include <stdarg.h>
3638 #include <stdio.h>
3639 #include <sys/types.h>
3640 #include <sys/stat.h>
3641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3642 struct buf { int x; };
3643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3644 static char *e (p, i)
3645 char **p;
3646 int i;
3647 {
3648 return p[i];
3649 }
3650 static char *f (char * (*g) (char **, int), char **p, ...)
3651 {
3652 char *s;
3653 va_list v;
3654 va_start (v,p);
3655 s = g (p, va_arg (v,int));
3656 va_end (v);
3657 return s;
3658 }
3659
3660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3661 function prototypes and stuff, but not '\xHH' hex character constants.
3662 These don't provoke an error unfortunately, instead are silently treated
3663 as 'x'. The following induces an error, until -std is added to get
3664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3665 array size at least. It's necessary to write '\x00'==0 to get something
3666 that's true only with -std. */
3667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3668
3669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3670 inside strings and character constants. */
3671 #define FOO(x) 'x'
3672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3673
3674 int test (int i, double x);
3675 struct s1 {int (*f) (int a);};
3676 struct s2 {int (*f) (double a);};
3677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 int argc;
3679 char **argv;
3680 int
3681 main ()
3682 {
3683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3690 do
3691 CC="$ac_save_CC $ac_arg"
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_c89=$ac_arg
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext
3696 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 done
3698 rm -f conftest.$ac_ext
3699 CC=$ac_save_CC
3700
3701 fi
3702 # AC_CACHE_VAL
3703 case "x$ac_cv_prog_cc_c89" in
3704 x)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3706 $as_echo "none needed" >&6; } ;;
3707 xno)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3709 $as_echo "unsupported" >&6; } ;;
3710 *)
3711 CC="$CC $ac_cv_prog_cc_c89"
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3714 esac
3715 if test "x$ac_cv_prog_cc_c89" != xno; then :
3716
3717 fi
3718
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 DEPDIR="${am__leading_dot}deps"
3725
3726 ac_config_commands="$ac_config_commands depfiles"
3727
3728
3729 am_make=${MAKE-make}
3730 cat > confinc << 'END'
3731 am__doit:
3732 @echo this is the am__doit target
3733 .PHONY: am__doit
3734 END
3735 # If we don't find an include directive, just comment out the code.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3737 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3738 am__include="#"
3739 am__quote=
3740 _am_result=none
3741 # First try GNU make style include.
3742 echo "include confinc" > confmf
3743 # Ignore all kinds of additional output from `make'.
3744 case `$am_make -s -f confmf 2> /dev/null` in #(
3745 *the\ am__doit\ target*)
3746 am__include=include
3747 am__quote=
3748 _am_result=GNU
3749 ;;
3750 esac
3751 # Now try BSD make style include.
3752 if test "$am__include" = "#"; then
3753 echo '.include "confinc"' > confmf
3754 case `$am_make -s -f confmf 2> /dev/null` in #(
3755 *the\ am__doit\ target*)
3756 am__include=.include
3757 am__quote="\""
3758 _am_result=BSD
3759 ;;
3760 esac
3761 fi
3762
3763
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3765 $as_echo "$_am_result" >&6; }
3766 rm -f confinc confmf
3767
3768 # Check whether --enable-dependency-tracking was given.
3769 if test "${enable_dependency_tracking+set}" = set; then :
3770 enableval=$enable_dependency_tracking;
3771 fi
3772
3773 if test "x$enable_dependency_tracking" != xno; then
3774 am_depcomp="$ac_aux_dir/depcomp"
3775 AMDEPBACKSLASH='\'
3776 fi
3777 if test "x$enable_dependency_tracking" != xno; then
3778 AMDEP_TRUE=
3779 AMDEP_FALSE='#'
3780 else
3781 AMDEP_TRUE='#'
3782 AMDEP_FALSE=
3783 fi
3784
3785
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # in D'.
3800 mkdir conftest.dir
3801 # Copy depcomp to subdir because otherwise we won't find it if we're
3802 # using a relative directory.
3803 cp "$am_depcomp" conftest.dir
3804 cd conftest.dir
3805 # We will build objects and dependencies in a subdirectory because
3806 # it helps to detect inapplicable dependency modes. For instance
3807 # both Tru64's cc and ICC support -MD to output dependencies as a
3808 # side effect of compilation, but ICC will put the dependencies in
3809 # the current directory while Tru64 will put them in the object
3810 # directory.
3811 mkdir sub
3812
3813 am_cv_CC_dependencies_compiler_type=none
3814 if test "$am_compiler_list" = ""; then
3815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 fi
3817 am__universal=false
3818 case " $depcc " in #(
3819 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3820 esac
3821
3822 for depmode in $am_compiler_list; do
3823 # Setup a source with many dependencies, because some compilers
3824 # like to wrap large dependency lists on column 80 (with \), and
3825 # we should not choose a depcomp mode which is confused by this.
3826 #
3827 # We need to recreate these files for each test, as the compiler may
3828 # overwrite some of them when testing with obscure command lines.
3829 # This happens at least with the AIX C compiler.
3830 : > sub/conftest.c
3831 for i in 1 2 3 4 5 6; do
3832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834 # Solaris 8's {/usr,}/bin/sh.
3835 touch sub/conftst$i.h
3836 done
3837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840 # mode. It turns out that the SunPro C++ compiler does not properly
3841 # handle `-M -o', and we need to detect this. Also, some Intel
3842 # versions had trouble with output in subdirs
3843 am__obj=sub/conftest.${OBJEXT-o}
3844 am__minus_obj="-o $am__obj"
3845 case $depmode in
3846 gcc)
3847 # This depmode causes a compiler race in universal mode.
3848 test "$am__universal" = false || continue
3849 ;;
3850 nosideeffect)
3851 # after this tag, mechanisms are not by side-effect, so they'll
3852 # only be used when explicitly requested
3853 if test "x$enable_dependency_tracking" = xyes; then
3854 continue
3855 else
3856 break
3857 fi
3858 ;;
3859 msvisualcpp | msvcmsys)
3860 # This compiler won't grok `-c -o', but also, the minuso test has
3861 # not run yet. These depmodes are late enough in the game, and
3862 # so weak that their functioning should not be impacted.
3863 am__obj=conftest.${OBJEXT-o}
3864 am__minus_obj=
3865 ;;
3866 none) break ;;
3867 esac
3868 if depmode=$depmode \
3869 source=sub/conftest.c object=$am__obj \
3870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3872 >/dev/null 2>conftest.err &&
3873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877 # icc doesn't choke on unknown options, it will just issue warnings
3878 # or remarks (even with -Werror). So we grep stderr for any message
3879 # that says an option was ignored or not supported.
3880 # When given -MP, icc 7.0 and 7.1 complain thusly:
3881 # icc: Command line warning: ignoring option '-M'; no argument required
3882 # The diagnosis changed in icc 8.0:
3883 # icc: Command line remark: option '-MP' not supported
3884 if (grep 'ignoring option' conftest.err ||
3885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886 am_cv_CC_dependencies_compiler_type=$depmode
3887 break
3888 fi
3889 fi
3890 done
3891
3892 cd ..
3893 rm -rf conftest.dir
3894 else
3895 am_cv_CC_dependencies_compiler_type=none
3896 fi
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3900 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902
3903 if
3904 test "x$enable_dependency_tracking" != xno \
3905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_TRUE=
3907 am__fastdepCC_FALSE='#'
3908 else
3909 am__fastdepCC_TRUE='#'
3910 am__fastdepCC_FALSE=
3911 fi
3912
3913
3914 ac_ext=cpp
3915 ac_cpp='$CXXCPP $CPPFLAGS'
3916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3919 if test -z "$CXX"; then
3920 if test -n "$CCC"; then
3921 CXX=$CCC
3922 else
3923 if test -n "$ac_tool_prefix"; then
3924 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3925 do
3926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if test "${ac_cv_prog_CXX+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$CXX"; then
3934 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 CXX=$ac_cv_prog_CXX
3954 if test -n "$CXX"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3956 $as_echo "$CXX" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963 test -n "$CXX" && break
3964 done
3965 fi
3966 if test -z "$CXX"; then
3967 ac_ct_CXX=$CXX
3968 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3969 do
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -n "$ac_ct_CXX"; then
3978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_ac_ct_CXX="$ac_prog"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993 IFS=$as_save_IFS
3994
3995 fi
3996 fi
3997 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3998 if test -n "$ac_ct_CXX"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4000 $as_echo "$ac_ct_CXX" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005
4006
4007 test -n "$ac_ct_CXX" && break
4008 done
4009
4010 if test "x$ac_ct_CXX" = x; then
4011 CXX="g++"
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4018 esac
4019 CXX=$ac_ct_CXX
4020 fi
4021 fi
4022
4023 fi
4024 fi
4025 # Provide some information about the compiler.
4026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4027 set X $ac_compile
4028 ac_compiler=$2
4029 for ac_option in --version -v -V -qversion; do
4030 { { ac_try="$ac_compiler $ac_option >&5"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4038 ac_status=$?
4039 if test -s conftest.err; then
4040 sed '10a\
4041 ... rest of stderr output deleted ...
4042 10q' conftest.err >conftest.er1
4043 cat conftest.er1 >&5
4044 rm -f conftest.er1 conftest.err
4045 fi
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 done
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4052 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_cxx_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4079 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GXX=yes
4082 else
4083 GXX=
4084 fi
4085 ac_test_CXXFLAGS=${CXXFLAGS+set}
4086 ac_save_CXXFLAGS=$CXXFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4088 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4093 ac_cxx_werror_flag=yes
4094 ac_cv_prog_cxx_g=no
4095 CXXFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_cxx_try_compile "$LINENO"; then :
4108 ac_cv_prog_cxx_g=yes
4109 else
4110 CXXFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_cxx_try_compile "$LINENO"; then :
4123
4124 else
4125 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4126 CXXFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main ()
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_cxx_try_compile "$LINENO"; then :
4139 ac_cv_prog_cxx_g=yes
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4149 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4150 if test "$ac_test_CXXFLAGS" = set; then
4151 CXXFLAGS=$ac_save_CXXFLAGS
4152 elif test $ac_cv_prog_cxx_g = yes; then
4153 if test "$GXX" = yes; then
4154 CXXFLAGS="-g -O2"
4155 else
4156 CXXFLAGS="-g"
4157 fi
4158 else
4159 if test "$GXX" = yes; then
4160 CXXFLAGS="-O2"
4161 else
4162 CXXFLAGS=
4163 fi
4164 fi
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
4171 depcc="$CXX" am_compiler_list=
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174 $as_echo_n "checking dependency style of $depcc... " >&6; }
4175 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179 # We make a subdir and do the tests there. Otherwise we can end up
4180 # making bogus files that we don't know about and never remove. For
4181 # instance it was reported that on HP-UX the gcc test will end up
4182 # making a dummy file named `D' -- because `-MD' means `put the output
4183 # in D'.
4184 mkdir conftest.dir
4185 # Copy depcomp to subdir because otherwise we won't find it if we're
4186 # using a relative directory.
4187 cp "$am_depcomp" conftest.dir
4188 cd conftest.dir
4189 # We will build objects and dependencies in a subdirectory because
4190 # it helps to detect inapplicable dependency modes. For instance
4191 # both Tru64's cc and ICC support -MD to output dependencies as a
4192 # side effect of compilation, but ICC will put the dependencies in
4193 # the current directory while Tru64 will put them in the object
4194 # directory.
4195 mkdir sub
4196
4197 am_cv_CXX_dependencies_compiler_type=none
4198 if test "$am_compiler_list" = ""; then
4199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4200 fi
4201 am__universal=false
4202 case " $depcc " in #(
4203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4204 esac
4205
4206 for depmode in $am_compiler_list; do
4207 # Setup a source with many dependencies, because some compilers
4208 # like to wrap large dependency lists on column 80 (with \), and
4209 # we should not choose a depcomp mode which is confused by this.
4210 #
4211 # We need to recreate these files for each test, as the compiler may
4212 # overwrite some of them when testing with obscure command lines.
4213 # This happens at least with the AIX C compiler.
4214 : > sub/conftest.c
4215 for i in 1 2 3 4 5 6; do
4216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4218 # Solaris 8's {/usr,}/bin/sh.
4219 touch sub/conftst$i.h
4220 done
4221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4222
4223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4224 # mode. It turns out that the SunPro C++ compiler does not properly
4225 # handle `-M -o', and we need to detect this. Also, some Intel
4226 # versions had trouble with output in subdirs
4227 am__obj=sub/conftest.${OBJEXT-o}
4228 am__minus_obj="-o $am__obj"
4229 case $depmode in
4230 gcc)
4231 # This depmode causes a compiler race in universal mode.
4232 test "$am__universal" = false || continue
4233 ;;
4234 nosideeffect)
4235 # after this tag, mechanisms are not by side-effect, so they'll
4236 # only be used when explicitly requested
4237 if test "x$enable_dependency_tracking" = xyes; then
4238 continue
4239 else
4240 break
4241 fi
4242 ;;
4243 msvisualcpp | msvcmsys)
4244 # This compiler won't grok `-c -o', but also, the minuso test has
4245 # not run yet. These depmodes are late enough in the game, and
4246 # so weak that their functioning should not be impacted.
4247 am__obj=conftest.${OBJEXT-o}
4248 am__minus_obj=
4249 ;;
4250 none) break ;;
4251 esac
4252 if depmode=$depmode \
4253 source=sub/conftest.c object=$am__obj \
4254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256 >/dev/null 2>conftest.err &&
4257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261 # icc doesn't choke on unknown options, it will just issue warnings
4262 # or remarks (even with -Werror). So we grep stderr for any message
4263 # that says an option was ignored or not supported.
4264 # When given -MP, icc 7.0 and 7.1 complain thusly:
4265 # icc: Command line warning: ignoring option '-M'; no argument required
4266 # The diagnosis changed in icc 8.0:
4267 # icc: Command line remark: option '-MP' not supported
4268 if (grep 'ignoring option' conftest.err ||
4269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270 am_cv_CXX_dependencies_compiler_type=$depmode
4271 break
4272 fi
4273 fi
4274 done
4275
4276 cd ..
4277 rm -rf conftest.dir
4278 else
4279 am_cv_CXX_dependencies_compiler_type=none
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4284 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4285 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4286
4287 if
4288 test "x$enable_dependency_tracking" != xno \
4289 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4290 am__fastdepCXX_TRUE=
4291 am__fastdepCXX_FALSE='#'
4292 else
4293 am__fastdepCXX_TRUE='#'
4294 am__fastdepCXX_FALSE=
4295 fi
4296
4297
4298 # By default we simply use the C compiler to build assembly code.
4299
4300 test "${CCAS+set}" = set || CCAS=$CC
4301 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4302
4303
4304
4305 depcc="$CCAS" am_compiler_list=
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4308 $as_echo_n "checking dependency style of $depcc... " >&6; }
4309 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4313 # We make a subdir and do the tests there. Otherwise we can end up
4314 # making bogus files that we don't know about and never remove. For
4315 # instance it was reported that on HP-UX the gcc test will end up
4316 # making a dummy file named `D' -- because `-MD' means `put the output
4317 # in D'.
4318 mkdir conftest.dir
4319 # Copy depcomp to subdir because otherwise we won't find it if we're
4320 # using a relative directory.
4321 cp "$am_depcomp" conftest.dir
4322 cd conftest.dir
4323 # We will build objects and dependencies in a subdirectory because
4324 # it helps to detect inapplicable dependency modes. For instance
4325 # both Tru64's cc and ICC support -MD to output dependencies as a
4326 # side effect of compilation, but ICC will put the dependencies in
4327 # the current directory while Tru64 will put them in the object
4328 # directory.
4329 mkdir sub
4330
4331 am_cv_CCAS_dependencies_compiler_type=none
4332 if test "$am_compiler_list" = ""; then
4333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4334 fi
4335 am__universal=false
4336
4337
4338 for depmode in $am_compiler_list; do
4339 # Setup a source with many dependencies, because some compilers
4340 # like to wrap large dependency lists on column 80 (with \), and
4341 # we should not choose a depcomp mode which is confused by this.
4342 #
4343 # We need to recreate these files for each test, as the compiler may
4344 # overwrite some of them when testing with obscure command lines.
4345 # This happens at least with the AIX C compiler.
4346 : > sub/conftest.c
4347 for i in 1 2 3 4 5 6; do
4348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4350 # Solaris 8's {/usr,}/bin/sh.
4351 touch sub/conftst$i.h
4352 done
4353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354
4355 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4356 # mode. It turns out that the SunPro C++ compiler does not properly
4357 # handle `-M -o', and we need to detect this. Also, some Intel
4358 # versions had trouble with output in subdirs
4359 am__obj=sub/conftest.${OBJEXT-o}
4360 am__minus_obj="-o $am__obj"
4361 case $depmode in
4362 gcc)
4363 # This depmode causes a compiler race in universal mode.
4364 test "$am__universal" = false || continue
4365 ;;
4366 nosideeffect)
4367 # after this tag, mechanisms are not by side-effect, so they'll
4368 # only be used when explicitly requested
4369 if test "x$enable_dependency_tracking" = xyes; then
4370 continue
4371 else
4372 break
4373 fi
4374 ;;
4375 msvisualcpp | msvcmsys)
4376 # This compiler won't grok `-c -o', but also, the minuso test has
4377 # not run yet. These depmodes are late enough in the game, and
4378 # so weak that their functioning should not be impacted.
4379 am__obj=conftest.${OBJEXT-o}
4380 am__minus_obj=
4381 ;;
4382 none) break ;;
4383 esac
4384 if depmode=$depmode \
4385 source=sub/conftest.c object=$am__obj \
4386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388 >/dev/null 2>conftest.err &&
4389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393 # icc doesn't choke on unknown options, it will just issue warnings
4394 # or remarks (even with -Werror). So we grep stderr for any message
4395 # that says an option was ignored or not supported.
4396 # When given -MP, icc 7.0 and 7.1 complain thusly:
4397 # icc: Command line warning: ignoring option '-M'; no argument required
4398 # The diagnosis changed in icc 8.0:
4399 # icc: Command line remark: option '-MP' not supported
4400 if (grep 'ignoring option' conftest.err ||
4401 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402 am_cv_CCAS_dependencies_compiler_type=$depmode
4403 break
4404 fi
4405 fi
4406 done
4407
4408 cd ..
4409 rm -rf conftest.dir
4410 else
4411 am_cv_CCAS_dependencies_compiler_type=none
4412 fi
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4416 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4417 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4418
4419 if
4420 test "x$enable_dependency_tracking" != xno \
4421 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCCAS_TRUE=
4423 am__fastdepCCAS_FALSE='#'
4424 else
4425 am__fastdepCCAS_TRUE='#'
4426 am__fastdepCCAS_FALSE=
4427 fi
4428
4429
4430
4431 enable_dlopen=yes
4432
4433
4434
4435 case `pwd` in
4436 *\ * | *\ *)
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4438 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4439 esac
4440
4441
4442
4443 macro_version='2.2.7a'
4444 macro_revision='1.3134'
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458 ltmain="$ac_aux_dir/ltmain.sh"
4459
4460 # Backslashify metacharacters that are still active within
4461 # double-quoted strings.
4462 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4463
4464 # Same as above, but do not quote variable references.
4465 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4466
4467 # Sed substitution to delay expansion of an escaped shell variable in a
4468 # double_quote_subst'ed string.
4469 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4470
4471 # Sed substitution to delay expansion of an escaped single quote.
4472 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4473
4474 # Sed substitution to avoid accidental globbing in evaled expressions
4475 no_glob_subst='s/\*/\\\*/g'
4476
4477 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4478 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4479 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4482 $as_echo_n "checking how to print strings... " >&6; }
4483 # Test print first, because it will be a builtin if present.
4484 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4485 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4486 ECHO='print -r --'
4487 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4488 ECHO='printf %s\n'
4489 else
4490 # Use this function as a fallback that always works.
4491 func_fallback_echo ()
4492 {
4493 eval 'cat <<_LTECHO_EOF
4494 $1
4495 _LTECHO_EOF'
4496 }
4497 ECHO='func_fallback_echo'
4498 fi
4499
4500 # func_echo_all arg...
4501 # Invoke $ECHO with all args, space-separated.
4502 func_echo_all ()
4503 {
4504 $ECHO ""
4505 }
4506
4507 case "$ECHO" in
4508 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4509 $as_echo "printf" >&6; } ;;
4510 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4511 $as_echo "print -r" >&6; } ;;
4512 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4513 $as_echo "cat" >&6; } ;;
4514 esac
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4530 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4531 if test "${ac_cv_path_SED+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4535 for ac_i in 1 2 3 4 5 6 7; do
4536 ac_script="$ac_script$as_nl$ac_script"
4537 done
4538 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4539 { ac_script=; unset ac_script;}
4540 if test -z "$SED"; then
4541 ac_path_SED_found=false
4542 # Loop through the user's path and test for each of PROGNAME-LIST
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_prog in sed gsed; do
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4551 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4552 # Check for GNU ac_path_SED and select it if it is found.
4553 # Check for GNU $ac_path_SED
4554 case `"$ac_path_SED" --version 2>&1` in
4555 *GNU*)
4556 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4557 *)
4558 ac_count=0
4559 $as_echo_n 0123456789 >"conftest.in"
4560 while :
4561 do
4562 cat "conftest.in" "conftest.in" >"conftest.tmp"
4563 mv "conftest.tmp" "conftest.in"
4564 cp "conftest.in" "conftest.nl"
4565 $as_echo '' >> "conftest.nl"
4566 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568 as_fn_arith $ac_count + 1 && ac_count=$as_val
4569 if test $ac_count -gt ${ac_path_SED_max-0}; then
4570 # Best one so far, save it but keep looking for a better one
4571 ac_cv_path_SED="$ac_path_SED"
4572 ac_path_SED_max=$ac_count
4573 fi
4574 # 10*(2^10) chars as input seems more than enough
4575 test $ac_count -gt 10 && break
4576 done
4577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578 esac
4579
4580 $ac_path_SED_found && break 3
4581 done
4582 done
4583 done
4584 IFS=$as_save_IFS
4585 if test -z "$ac_cv_path_SED"; then
4586 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4587 fi
4588 else
4589 ac_cv_path_SED=$SED
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4594 $as_echo "$ac_cv_path_SED" >&6; }
4595 SED="$ac_cv_path_SED"
4596 rm -f conftest.sed
4597
4598 test -z "$SED" && SED=sed
4599 Xsed="$SED -e 1s/^X//"
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4612 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4613 if test "${ac_cv_path_GREP+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -z "$GREP"; then
4617 ac_path_GREP_found=false
4618 # Loop through the user's path and test for each of PROGNAME-LIST
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4621 do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_prog in grep ggrep; do
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4627 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4628 # Check for GNU ac_path_GREP and select it if it is found.
4629 # Check for GNU $ac_path_GREP
4630 case `"$ac_path_GREP" --version 2>&1` in
4631 *GNU*)
4632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4633 *)
4634 ac_count=0
4635 $as_echo_n 0123456789 >"conftest.in"
4636 while :
4637 do
4638 cat "conftest.in" "conftest.in" >"conftest.tmp"
4639 mv "conftest.tmp" "conftest.in"
4640 cp "conftest.in" "conftest.nl"
4641 $as_echo 'GREP' >> "conftest.nl"
4642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4644 as_fn_arith $ac_count + 1 && ac_count=$as_val
4645 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4646 # Best one so far, save it but keep looking for a better one
4647 ac_cv_path_GREP="$ac_path_GREP"
4648 ac_path_GREP_max=$ac_count
4649 fi
4650 # 10*(2^10) chars as input seems more than enough
4651 test $ac_count -gt 10 && break
4652 done
4653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4654 esac
4655
4656 $ac_path_GREP_found && break 3
4657 done
4658 done
4659 done
4660 IFS=$as_save_IFS
4661 if test -z "$ac_cv_path_GREP"; then
4662 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663 fi
4664 else
4665 ac_cv_path_GREP=$GREP
4666 fi
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4670 $as_echo "$ac_cv_path_GREP" >&6; }
4671 GREP="$ac_cv_path_GREP"
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4675 $as_echo_n "checking for egrep... " >&6; }
4676 if test "${ac_cv_path_EGREP+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4680 then ac_cv_path_EGREP="$GREP -E"
4681 else
4682 if test -z "$EGREP"; then
4683 ac_path_EGREP_found=false
4684 # Loop through the user's path and test for each of PROGNAME-LIST
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_prog in egrep; do
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4693 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4694 # Check for GNU ac_path_EGREP and select it if it is found.
4695 # Check for GNU $ac_path_EGREP
4696 case `"$ac_path_EGREP" --version 2>&1` in
4697 *GNU*)
4698 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4699 *)
4700 ac_count=0
4701 $as_echo_n 0123456789 >"conftest.in"
4702 while :
4703 do
4704 cat "conftest.in" "conftest.in" >"conftest.tmp"
4705 mv "conftest.tmp" "conftest.in"
4706 cp "conftest.in" "conftest.nl"
4707 $as_echo 'EGREP' >> "conftest.nl"
4708 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710 as_fn_arith $ac_count + 1 && ac_count=$as_val
4711 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712 # Best one so far, save it but keep looking for a better one
4713 ac_cv_path_EGREP="$ac_path_EGREP"
4714 ac_path_EGREP_max=$ac_count
4715 fi
4716 # 10*(2^10) chars as input seems more than enough
4717 test $ac_count -gt 10 && break
4718 done
4719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4720 esac
4721
4722 $ac_path_EGREP_found && break 3
4723 done
4724 done
4725 done
4726 IFS=$as_save_IFS
4727 if test -z "$ac_cv_path_EGREP"; then
4728 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729 fi
4730 else
4731 ac_cv_path_EGREP=$EGREP
4732 fi
4733
4734 fi
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4737 $as_echo "$ac_cv_path_EGREP" >&6; }
4738 EGREP="$ac_cv_path_EGREP"
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4742 $as_echo_n "checking for fgrep... " >&6; }
4743 if test "${ac_cv_path_FGREP+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4747 then ac_cv_path_FGREP="$GREP -F"
4748 else
4749 if test -z "$FGREP"; then
4750 ac_path_FGREP_found=false
4751 # Loop through the user's path and test for each of PROGNAME-LIST
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_prog in fgrep; do
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4760 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4761 # Check for GNU ac_path_FGREP and select it if it is found.
4762 # Check for GNU $ac_path_FGREP
4763 case `"$ac_path_FGREP" --version 2>&1` in
4764 *GNU*)
4765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4766 *)
4767 ac_count=0
4768 $as_echo_n 0123456789 >"conftest.in"
4769 while :
4770 do
4771 cat "conftest.in" "conftest.in" >"conftest.tmp"
4772 mv "conftest.tmp" "conftest.in"
4773 cp "conftest.in" "conftest.nl"
4774 $as_echo 'FGREP' >> "conftest.nl"
4775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777 as_fn_arith $ac_count + 1 && ac_count=$as_val
4778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4779 # Best one so far, save it but keep looking for a better one
4780 ac_cv_path_FGREP="$ac_path_FGREP"
4781 ac_path_FGREP_max=$ac_count
4782 fi
4783 # 10*(2^10) chars as input seems more than enough
4784 test $ac_count -gt 10 && break
4785 done
4786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787 esac
4788
4789 $ac_path_FGREP_found && break 3
4790 done
4791 done
4792 done
4793 IFS=$as_save_IFS
4794 if test -z "$ac_cv_path_FGREP"; then
4795 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796 fi
4797 else
4798 ac_cv_path_FGREP=$FGREP
4799 fi
4800
4801 fi
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4804 $as_echo "$ac_cv_path_FGREP" >&6; }
4805 FGREP="$ac_cv_path_FGREP"
4806
4807
4808 test -z "$GREP" && GREP=grep
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 # Check whether --with-gnu-ld was given.
4829 if test "${with_gnu_ld+set}" = set; then :
4830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4831 else
4832 with_gnu_ld=no
4833 fi
4834
4835 ac_prog=ld
4836 if test "$GCC" = yes; then
4837 # Check if gcc -print-prog-name=ld gives a path.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4839 $as_echo_n "checking for ld used by $CC... " >&6; }
4840 case $host in
4841 *-*-mingw*)
4842 # gcc leaves a trailing carriage return which upsets mingw
4843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4844 *)
4845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4846 esac
4847 case $ac_prog in
4848 # Accept absolute paths.
4849 [\\/]* | ?:[\\/]*)
4850 re_direlt='/[^/][^/]*/\.\./'
4851 # Canonicalize the pathname of ld
4852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4855 done
4856 test -z "$LD" && LD="$ac_prog"
4857 ;;
4858 "")
4859 # If it fails, then pretend we aren't using GCC.
4860 ac_prog=ld
4861 ;;
4862 *)
4863 # If it is relative, then search for the first ld in PATH.
4864 with_gnu_ld=unknown
4865 ;;
4866 esac
4867 elif test "$with_gnu_ld" = yes; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4869 $as_echo_n "checking for GNU ld... " >&6; }
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4872 $as_echo_n "checking for non-GNU ld... " >&6; }
4873 fi
4874 if test "${lt_cv_path_LD+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -z "$LD"; then
4878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4879 for ac_dir in $PATH; do
4880 IFS="$lt_save_ifs"
4881 test -z "$ac_dir" && ac_dir=.
4882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4883 lt_cv_path_LD="$ac_dir/$ac_prog"
4884 # Check to see if the program is GNU ld. I'd rather use --version,
4885 # but apparently some variants of GNU ld only accept -v.
4886 # Break only if it was the GNU/non-GNU ld that we prefer.
4887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4888 *GNU* | *'with BFD'*)
4889 test "$with_gnu_ld" != no && break
4890 ;;
4891 *)
4892 test "$with_gnu_ld" != yes && break
4893 ;;
4894 esac
4895 fi
4896 done
4897 IFS="$lt_save_ifs"
4898 else
4899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4900 fi
4901 fi
4902
4903 LD="$lt_cv_path_LD"
4904 if test -n "$LD"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4906 $as_echo "$LD" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4914 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4918 case `$LD -v 2>&1 </dev/null` in
4919 *GNU* | *'with BFD'*)
4920 lt_cv_prog_gnu_ld=yes
4921 ;;
4922 *)
4923 lt_cv_prog_gnu_ld=no
4924 ;;
4925 esac
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4929 with_gnu_ld=$lt_cv_prog_gnu_ld
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4941 if test "${lt_cv_path_NM+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$NM"; then
4945 # Let the user override the test.
4946 lt_cv_path_NM="$NM"
4947 else
4948 lt_nm_to_check="${ac_tool_prefix}nm"
4949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4950 lt_nm_to_check="$lt_nm_to_check nm"
4951 fi
4952 for lt_tmp_nm in $lt_nm_to_check; do
4953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4955 IFS="$lt_save_ifs"
4956 test -z "$ac_dir" && ac_dir=.
4957 tmp_nm="$ac_dir/$lt_tmp_nm"
4958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4959 # Check to see if the nm accepts a BSD-compat flag.
4960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4961 # nm: unknown option "B" ignored
4962 # Tru64's nm complains that /dev/null is an invalid object file
4963 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4964 */dev/null* | *'Invalid file or object type'*)
4965 lt_cv_path_NM="$tmp_nm -B"
4966 break
4967 ;;
4968 *)
4969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4970 */dev/null*)
4971 lt_cv_path_NM="$tmp_nm -p"
4972 break
4973 ;;
4974 *)
4975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4976 continue # so that we can try to find one that supports BSD flags
4977 ;;
4978 esac
4979 ;;
4980 esac
4981 fi
4982 done
4983 IFS="$lt_save_ifs"
4984 done
4985 : ${lt_cv_path_NM=no}
4986 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4989 $as_echo "$lt_cv_path_NM" >&6; }
4990 if test "$lt_cv_path_NM" != "no"; then
4991 NM="$lt_cv_path_NM"
4992 else
4993 # Didn't find any BSD compatible name lister, look for dumpbin.
4994 if test -n "$DUMPBIN"; then :
4995 # Let the user override the test.
4996 else
4997 if test -n "$ac_tool_prefix"; then
4998 for ac_prog in dumpbin "link -dump"
4999 do
5000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$DUMPBIN"; then
5008 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 DUMPBIN=$ac_cv_prog_DUMPBIN
5028 if test -n "$DUMPBIN"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5030 $as_echo "$DUMPBIN" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 test -n "$DUMPBIN" && break
5038 done
5039 fi
5040 if test -z "$DUMPBIN"; then
5041 ac_ct_DUMPBIN=$DUMPBIN
5042 for ac_prog in dumpbin "link -dump"
5043 do
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$ac_ct_DUMPBIN"; then
5052 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5072 if test -n "$ac_ct_DUMPBIN"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5074 $as_echo "$ac_ct_DUMPBIN" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 test -n "$ac_ct_DUMPBIN" && break
5082 done
5083
5084 if test "x$ac_ct_DUMPBIN" = x; then
5085 DUMPBIN=":"
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088 yes:)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 DUMPBIN=$ac_ct_DUMPBIN
5094 fi
5095 fi
5096
5097 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5098 *COFF*)
5099 DUMPBIN="$DUMPBIN -symbols"
5100 ;;
5101 *)
5102 DUMPBIN=:
5103 ;;
5104 esac
5105 fi
5106
5107 if test "$DUMPBIN" != ":"; then
5108 NM="$DUMPBIN"
5109 fi
5110 fi
5111 test -z "$NM" && NM=nm
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5120 if test "${lt_cv_nm_interface+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 lt_cv_nm_interface="BSD nm"
5124 echo "int some_variable = 0;" > conftest.$ac_ext
5125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5126 (eval "$ac_compile" 2>conftest.err)
5127 cat conftest.err >&5
5128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5130 cat conftest.err >&5
5131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5132 cat conftest.out >&5
5133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5134 lt_cv_nm_interface="MS dumpbin"
5135 fi
5136 rm -f conftest*
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5139 $as_echo "$lt_cv_nm_interface" >&6; }
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5142 $as_echo_n "checking whether ln -s works... " >&6; }
5143 LN_S=$as_ln_s
5144 if test "$LN_S" = "ln -s"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5149 $as_echo "no, using $LN_S" >&6; }
5150 fi
5151
5152 # find the maximum length of command line arguments
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 i=0
5159 teststring="ABCD"
5160
5161 case $build_os in
5162 msdosdjgpp*)
5163 # On DJGPP, this test can blow up pretty badly due to problems in libc
5164 # (any single argument exceeding 2000 bytes causes a buffer overrun
5165 # during glob expansion). Even if it were fixed, the result of this
5166 # check would be larger than it should be.
5167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5168 ;;
5169
5170 gnu*)
5171 # Under GNU Hurd, this test is not required because there is
5172 # no limit to the length of command line arguments.
5173 # Libtool will interpret -1 as no limit whatsoever
5174 lt_cv_sys_max_cmd_len=-1;
5175 ;;
5176
5177 cygwin* | mingw* | cegcc*)
5178 # On Win9x/ME, this test blows up -- it succeeds, but takes
5179 # about 5 minutes as the teststring grows exponentially.
5180 # Worse, since 9x/ME are not pre-emptively multitasking,
5181 # you end up with a "frozen" computer, even though with patience
5182 # the test eventually succeeds (with a max line length of 256k).
5183 # Instead, let's just punt: use the minimum linelength reported by
5184 # all of the supported platforms: 8192 (on NT/2K/XP).
5185 lt_cv_sys_max_cmd_len=8192;
5186 ;;
5187
5188 mint*)
5189 # On MiNT this can take a long time and run out of memory.
5190 lt_cv_sys_max_cmd_len=8192;
5191 ;;
5192
5193 amigaos*)
5194 # On AmigaOS with pdksh, this test takes hours, literally.
5195 # So we just punt and use a minimum line length of 8192.
5196 lt_cv_sys_max_cmd_len=8192;
5197 ;;
5198
5199 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5200 # This has been around since 386BSD, at least. Likely further.
5201 if test -x /sbin/sysctl; then
5202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5203 elif test -x /usr/sbin/sysctl; then
5204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5205 else
5206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5207 fi
5208 # And add a safety zone
5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211 ;;
5212
5213 interix*)
5214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5215 lt_cv_sys_max_cmd_len=196608
5216 ;;
5217
5218 osf*)
5219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5221 # nice to cause kernel panics so lets avoid the loop below.
5222 # First set a reasonable default.
5223 lt_cv_sys_max_cmd_len=16384
5224 #
5225 if test -x /sbin/sysconfig; then
5226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5227 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5228 esac
5229 fi
5230 ;;
5231 sco3.2v5*)
5232 lt_cv_sys_max_cmd_len=102400
5233 ;;
5234 sysv5* | sco5v6* | sysv4.2uw2*)
5235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5236 if test -n "$kargmax"; then
5237 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5238 else
5239 lt_cv_sys_max_cmd_len=32768
5240 fi
5241 ;;
5242 *)
5243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5244 if test -n "$lt_cv_sys_max_cmd_len"; then
5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5247 else
5248 # Make teststring a little bigger before we do anything with it.
5249 # a 1K string should be a reasonable start.
5250 for i in 1 2 3 4 5 6 7 8 ; do
5251 teststring=$teststring$teststring
5252 done
5253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5254 # If test is not a shell built-in, we'll probably end up computing a
5255 # maximum length that is only half of the actual maximum length, but
5256 # we can't tell.
5257 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5258 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5259 test $i != 17 # 1/2 MB should be enough
5260 do
5261 i=`expr $i + 1`
5262 teststring=$teststring$teststring
5263 done
5264 # Only check the string length outside the loop.
5265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5266 teststring=
5267 # Add a significant safety factor because C++ compilers can tack on
5268 # massive amounts of additional arguments before passing them to the
5269 # linker. It appears as though 1/2 is a usable value.
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5271 fi
5272 ;;
5273 esac
5274
5275 fi
5276
5277 if test -n $lt_cv_sys_max_cmd_len ; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5282 $as_echo "none" >&6; }
5283 fi
5284 max_cmd_len=$lt_cv_sys_max_cmd_len
5285
5286
5287
5288
5289
5290
5291 : ${CP="cp -f"}
5292 : ${MV="mv -f"}
5293 : ${RM="rm -f"}
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5297 # Try some XSI features
5298 xsi_shell=no
5299 ( _lt_dummy="a/b/c"
5300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5301 = c,a/b,, \
5302 && eval 'test $(( 1 + 1 )) -eq 2 \
5303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5304 && xsi_shell=yes
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5306 $as_echo "$xsi_shell" >&6; }
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5311 lt_shell_append=no
5312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5313 >/dev/null 2>&1 \
5314 && lt_shell_append=yes
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5316 $as_echo "$lt_shell_append" >&6; }
5317
5318
5319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5320 lt_unset=unset
5321 else
5322 lt_unset=false
5323 fi
5324
5325
5326
5327
5328
5329 # test EBCDIC or ASCII
5330 case `echo X|tr X '\101'` in
5331 A) # ASCII based system
5332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5333 lt_SP2NL='tr \040 \012'
5334 lt_NL2SP='tr \015\012 \040\040'
5335 ;;
5336 *) # EBCDIC based system
5337 lt_SP2NL='tr \100 \n'
5338 lt_NL2SP='tr \r\n \100\100'
5339 ;;
5340 esac
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5352 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 lt_cv_ld_reload_flag='-r'
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5359 reload_flag=$lt_cv_ld_reload_flag
5360 case $reload_flag in
5361 "" | " "*) ;;
5362 *) reload_flag=" $reload_flag" ;;
5363 esac
5364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5365 case $host_os in
5366 darwin*)
5367 if test "$GCC" = yes; then
5368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5369 else
5370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5371 fi
5372 ;;
5373 esac
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 if test -n "$ac_tool_prefix"; then
5384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$OBJDUMP"; then
5392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5404 fi
5405 done
5406 done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 OBJDUMP=$ac_cv_prog_OBJDUMP
5412 if test -n "$OBJDUMP"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5414 $as_echo "$OBJDUMP" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420
5421 fi
5422 if test -z "$ac_cv_prog_OBJDUMP"; then
5423 ac_ct_OBJDUMP=$OBJDUMP
5424 # Extract the first word of "objdump", so it can be a program name with args.
5425 set dummy objdump; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$ac_ct_OBJDUMP"; then
5432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5452 if test -n "$ac_ct_OBJDUMP"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5454 $as_echo "$ac_ct_OBJDUMP" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460 if test "x$ac_ct_OBJDUMP" = x; then
5461 OBJDUMP="false"
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469 OBJDUMP=$ac_ct_OBJDUMP
5470 fi
5471 else
5472 OBJDUMP="$ac_cv_prog_OBJDUMP"
5473 fi
5474
5475 test -z "$OBJDUMP" && OBJDUMP=objdump
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5487 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 lt_cv_file_magic_cmd='$MAGIC_CMD'
5491 lt_cv_file_magic_test_file=
5492 lt_cv_deplibs_check_method='unknown'
5493 # Need to set the preceding variable on all platforms that support
5494 # interlibrary dependencies.
5495 # 'none' -- dependencies not supported.
5496 # `unknown' -- same as none, but documents that we really don't know.
5497 # 'pass_all' -- all dependencies passed with no checks.
5498 # 'test_compile' -- check by making test program.
5499 # 'file_magic [[regex]]' -- check by looking for files in library path
5500 # which responds to the $file_magic_cmd with a given extended regex.
5501 # If you have `file' or equivalent on your system and you're not sure
5502 # whether `pass_all' will *always* work, you probably want this one.
5503
5504 case $host_os in
5505 aix[4-9]*)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509 beos*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513 bsdi[45]*)
5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5515 lt_cv_file_magic_cmd='/usr/bin/file -L'
5516 lt_cv_file_magic_test_file=/shlib/libc.so
5517 ;;
5518
5519 cygwin*)
5520 # func_win32_libid is a shell function defined in ltmain.sh
5521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522 lt_cv_file_magic_cmd='func_win32_libid'
5523 ;;
5524
5525 mingw* | pw32*)
5526 # Base MSYS/MinGW do not provide the 'file' command needed by
5527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5528 # unless we find 'file', for example because we are cross-compiling.
5529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5530 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532 lt_cv_file_magic_cmd='func_win32_libid'
5533 else
5534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5535 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 fi
5537 ;;
5538
5539 cegcc*)
5540 # use the weaker test based on 'objdump'. See mingw*.
5541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5542 lt_cv_file_magic_cmd='$OBJDUMP -f'
5543 ;;
5544
5545 darwin* | rhapsody*)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548
5549 freebsd* | dragonfly*)
5550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5551 case $host_cpu in
5552 i*86 )
5553 # Not sure whether the presence of OpenBSD here was a mistake.
5554 # Let's accept both of them until this is cleared up.
5555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5556 lt_cv_file_magic_cmd=/usr/bin/file
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5558 ;;
5559 esac
5560 else
5561 lt_cv_deplibs_check_method=pass_all
5562 fi
5563 ;;
5564
5565 gnu*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 haiku*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 hpux10.20* | hpux11*)
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 case $host_cpu in
5576 ia64*)
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5579 ;;
5580 hppa*64*)
5581 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]'
5582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 ;;
5584 *)
5585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5587 ;;
5588 esac
5589 ;;
5590
5591 interix[3-9]*)
5592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 ;;
5595
5596 irix5* | irix6* | nonstopux*)
5597 case $LD in
5598 *-32|*"-32 ") libmagic=32-bit;;
5599 *-n32|*"-n32 ") libmagic=N32;;
5600 *-64|*"-64 ") libmagic=64-bit;;
5601 *) libmagic=never-match;;
5602 esac
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 # This must be Linux ELF.
5607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 netbsd*)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 else
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5616 fi
5617 ;;
5618
5619 newos6*)
5620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5621 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5623 ;;
5624
5625 *nto* | *qnx*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629 openbsd*)
5630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5632 else
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5634 fi
5635 ;;
5636
5637 osf3* | osf4* | osf5*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 rdos*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645 solaris*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 sysv4 | sysv4.3*)
5654 case $host_vendor in
5655 motorola)
5656 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]'
5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5658 ;;
5659 ncr)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 sequent)
5663 lt_cv_file_magic_cmd='/bin/file'
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5665 ;;
5666 sni)
5667 lt_cv_file_magic_cmd='/bin/file'
5668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669 lt_cv_file_magic_test_file=/lib/libc.so
5670 ;;
5671 siemens)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 pc)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677 esac
5678 ;;
5679
5680 tpf*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683 esac
5684
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5688 file_magic_cmd=$lt_cv_file_magic_cmd
5689 deplibs_check_method=$lt_cv_deplibs_check_method
5690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 if test -n "$ac_tool_prefix"; then
5704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5705 set dummy ${ac_tool_prefix}ar; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_prog_AR+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$AR"; then
5712 ac_cv_prog_AR="$AR" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_AR="${ac_tool_prefix}ar"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 AR=$ac_cv_prog_AR
5732 if test -n "$AR"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5734 $as_echo "$AR" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741 fi
5742 if test -z "$ac_cv_prog_AR"; then
5743 ac_ct_AR=$AR
5744 # Extract the first word of "ar", so it can be a program name with args.
5745 set dummy ar; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if test -n "$ac_ct_AR"; then
5752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_ac_ct_AR="ar"
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765 done
5766 done
5767 IFS=$as_save_IFS
5768
5769 fi
5770 fi
5771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772 if test -n "$ac_ct_AR"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5774 $as_echo "$ac_ct_AR" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 fi
5779
5780 if test "x$ac_ct_AR" = x; then
5781 AR="false"
5782 else
5783 case $cross_compiling:$ac_tool_warned in
5784 yes:)
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5787 ac_tool_warned=yes ;;
5788 esac
5789 AR=$ac_ct_AR
5790 fi
5791 else
5792 AR="$ac_cv_prog_AR"
5793 fi
5794
5795 test -z "$AR" && AR=ar
5796 test -z "$AR_FLAGS" && AR_FLAGS=cru
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}strip; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_STRIP+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$STRIP"; then
5817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 STRIP=$ac_cv_prog_STRIP
5837 if test -n "$STRIP"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5839 $as_echo "$STRIP" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_STRIP"; then
5848 ac_ct_STRIP=$STRIP
5849 # Extract the first word of "strip", so it can be a program name with args.
5850 set dummy strip; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_STRIP"; then
5857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_STRIP="strip"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5877 if test -n "$ac_ct_STRIP"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5879 $as_echo "$ac_ct_STRIP" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885 if test "x$ac_ct_STRIP" = x; then
5886 STRIP=":"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 STRIP=$ac_ct_STRIP
5895 fi
5896 else
5897 STRIP="$ac_cv_prog_STRIP"
5898 fi
5899
5900 test -z "$STRIP" && STRIP=:
5901
5902
5903
5904
5905
5906
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$RANLIB"; then
5916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929 done
5930 done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 RANLIB=$ac_cv_prog_RANLIB
5936 if test -n "$RANLIB"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5938 $as_echo "$RANLIB" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 fi
5946 if test -z "$ac_cv_prog_RANLIB"; then
5947 ac_ct_RANLIB=$RANLIB
5948 # Extract the first word of "ranlib", so it can be a program name with args.
5949 set dummy ranlib; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$ac_ct_RANLIB"; then
5956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_ac_ct_RANLIB="ranlib"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5976 if test -n "$ac_ct_RANLIB"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5978 $as_echo "$ac_ct_RANLIB" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984 if test "x$ac_ct_RANLIB" = x; then
5985 RANLIB=":"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 RANLIB=$ac_ct_RANLIB
5994 fi
5995 else
5996 RANLIB="$ac_cv_prog_RANLIB"
5997 fi
5998
5999 test -z "$RANLIB" && RANLIB=:
6000
6001
6002
6003
6004
6005
6006 # Determine commands to create old-style static archives.
6007 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6008 old_postinstall_cmds='chmod 644 $oldlib'
6009 old_postuninstall_cmds=
6010
6011 if test -n "$RANLIB"; then
6012 case $host_os in
6013 openbsd*)
6014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6015 ;;
6016 *)
6017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6018 ;;
6019 esac
6020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6021 fi
6022
6023 case $host_os in
6024 darwin*)
6025 lock_old_archive_extraction=yes ;;
6026 *)
6027 lock_old_archive_extraction=no ;;
6028 esac
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 # If no C compiler was specified, use CC.
6069 LTCC=${LTCC-"$CC"}
6070
6071 # If no C compiler flags were specified, use CFLAGS.
6072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6073
6074 # Allow CC to be a program name with arguments.
6075 compiler=$CC
6076
6077
6078 # Check for command to grab the raw symbol name followed by C symbol from nm.
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6080 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6081 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084
6085 # These are sane defaults that work on at least a few old systems.
6086 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6087
6088 # Character class describing NM global symbol codes.
6089 symcode='[BCDEGRST]'
6090
6091 # Regexp to match symbols that can be accessed directly from C.
6092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6093
6094 # Define system-specific variables.
6095 case $host_os in
6096 aix*)
6097 symcode='[BCDT]'
6098 ;;
6099 cygwin* | mingw* | pw32* | cegcc*)
6100 symcode='[ABCDGISTW]'
6101 ;;
6102 hpux*)
6103 if test "$host_cpu" = ia64; then
6104 symcode='[ABCDEGRST]'
6105 fi
6106 ;;
6107 irix* | nonstopux*)
6108 symcode='[BCDEGRST]'
6109 ;;
6110 osf*)
6111 symcode='[BCDEGQRST]'
6112 ;;
6113 solaris*)
6114 symcode='[BDRT]'
6115 ;;
6116 sco3.2v5*)
6117 symcode='[DT]'
6118 ;;
6119 sysv4.2uw2*)
6120 symcode='[DT]'
6121 ;;
6122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6123 symcode='[ABDT]'
6124 ;;
6125 sysv4)
6126 symcode='[DFNSTU]'
6127 ;;
6128 esac
6129
6130 # If we're using GNU nm, then use its standard symbol codes.
6131 case `$NM -V 2>&1` in
6132 *GNU* | *'with BFD'*)
6133 symcode='[ABCDGIRSTW]' ;;
6134 esac
6135
6136 # Transform an extracted symbol line into a proper C declaration.
6137 # Some systems (esp. on ia64) link data and code symbols differently,
6138 # so use this general approach.
6139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6140
6141 # Transform an extracted symbol line into symbol name and symbol address
6142 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6143 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'"
6144
6145 # Handle CRLF in mingw tool chain
6146 opt_cr=
6147 case $build_os in
6148 mingw*)
6149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6150 ;;
6151 esac
6152
6153 # Try without a prefix underscore, then with it.
6154 for ac_symprfx in "" "_"; do
6155
6156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6157 symxfrm="\\1 $ac_symprfx\\2 \\2"
6158
6159 # Write the raw and C identifiers.
6160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6161 # Fake it for dumpbin and say T for any non-static function
6162 # and D for any global variable.
6163 # Also find C++ and __fastcall symbols from MSVC++,
6164 # which start with @ or ?.
6165 lt_cv_sys_global_symbol_pipe="$AWK '"\
6166 " {last_section=section; section=\$ 3};"\
6167 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6168 " \$ 0!~/External *\|/{next};"\
6169 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6170 " {if(hide[section]) next};"\
6171 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6172 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6173 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6174 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6175 " ' prfx=^$ac_symprfx"
6176 else
6177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6178 fi
6179
6180 # Check to see that the pipe works correctly.
6181 pipe_works=no
6182
6183 rm -f conftest*
6184 cat > conftest.$ac_ext <<_LT_EOF
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188 char nm_test_var;
6189 void nm_test_func(void);
6190 void nm_test_func(void){}
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6195 _LT_EOF
6196
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 # Now try to grab the symbols.
6203 nlist=conftest.nm
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; } && test -s "$nlist"; then
6209 # Try sorting and uniquifying the output.
6210 if sort "$nlist" | uniq > "$nlist"T; then
6211 mv -f "$nlist"T "$nlist"
6212 else
6213 rm -f "$nlist"T
6214 fi
6215
6216 # Make sure that we snagged all the symbols we need.
6217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6219 cat <<_LT_EOF > conftest.$ac_ext
6220 #ifdef __cplusplus
6221 extern "C" {
6222 #endif
6223
6224 _LT_EOF
6225 # Now generate the symbol file.
6226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6227
6228 cat <<_LT_EOF >> conftest.$ac_ext
6229
6230 /* The mapping between symbol names and symbols. */
6231 const struct {
6232 const char *name;
6233 void *address;
6234 }
6235 lt__PROGRAM__LTX_preloaded_symbols[] =
6236 {
6237 { "@PROGRAM@", (void *) 0 },
6238 _LT_EOF
6239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6240 cat <<\_LT_EOF >> conftest.$ac_ext
6241 {0, (void *) 0}
6242 };
6243
6244 /* This works around a problem in FreeBSD linker */
6245 #ifdef FREEBSD_WORKAROUND
6246 static const void *lt_preloaded_setup() {
6247 return lt__PROGRAM__LTX_preloaded_symbols;
6248 }
6249 #endif
6250
6251 #ifdef __cplusplus
6252 }
6253 #endif
6254 _LT_EOF
6255 # Now try linking the two files.
6256 mv conftest.$ac_objext conftstm.$ac_objext
6257 lt_save_LIBS="$LIBS"
6258 lt_save_CFLAGS="$CFLAGS"
6259 LIBS="conftstm.$ac_objext"
6260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6262 (eval $ac_link) 2>&5
6263 ac_status=$?
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6266 pipe_works=yes
6267 fi
6268 LIBS="$lt_save_LIBS"
6269 CFLAGS="$lt_save_CFLAGS"
6270 else
6271 echo "cannot find nm_test_func in $nlist" >&5
6272 fi
6273 else
6274 echo "cannot find nm_test_var in $nlist" >&5
6275 fi
6276 else
6277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6278 fi
6279 else
6280 echo "$progname: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6282 fi
6283 rm -rf conftest* conftst*
6284
6285 # Do not use the global_symbol_pipe unless it works.
6286 if test "$pipe_works" = yes; then
6287 break
6288 else
6289 lt_cv_sys_global_symbol_pipe=
6290 fi
6291 done
6292
6293 fi
6294
6295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6296 lt_cv_sys_global_symbol_to_cdecl=
6297 fi
6298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6300 $as_echo "failed" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6303 $as_echo "ok" >&6; }
6304 fi
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # Check whether --enable-libtool-lock was given.
6329 if test "${enable_libtool_lock+set}" = set; then :
6330 enableval=$enable_libtool_lock;
6331 fi
6332
6333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6334
6335 # Some flags need to be propagated to the compiler or linker for good
6336 # libtool support.
6337 case $host in
6338 ia64-*-hpux*)
6339 # Find out which ABI we are using.
6340 echo 'int i;' > conftest.$ac_ext
6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6342 (eval $ac_compile) 2>&5
6343 ac_status=$?
6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345 test $ac_status = 0; }; then
6346 case `/usr/bin/file conftest.$ac_objext` in
6347 *ELF-32*)
6348 HPUX_IA64_MODE="32"
6349 ;;
6350 *ELF-64*)
6351 HPUX_IA64_MODE="64"
6352 ;;
6353 esac
6354 fi
6355 rm -rf conftest*
6356 ;;
6357 *-*-irix6*)
6358 # Find out which ABI we are using.
6359 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361 (eval $ac_compile) 2>&5
6362 ac_status=$?
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; }; then
6365 if test "$lt_cv_prog_gnu_ld" = yes; then
6366 case `/usr/bin/file conftest.$ac_objext` in
6367 *32-bit*)
6368 LD="${LD-ld} -melf32bsmip"
6369 ;;
6370 *N32*)
6371 LD="${LD-ld} -melf32bmipn32"
6372 ;;
6373 *64-bit*)
6374 LD="${LD-ld} -melf64bmip"
6375 ;;
6376 esac
6377 else
6378 case `/usr/bin/file conftest.$ac_objext` in
6379 *32-bit*)
6380 LD="${LD-ld} -32"
6381 ;;
6382 *N32*)
6383 LD="${LD-ld} -n32"
6384 ;;
6385 *64-bit*)
6386 LD="${LD-ld} -64"
6387 ;;
6388 esac
6389 fi
6390 fi
6391 rm -rf conftest*
6392 ;;
6393
6394 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6395 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6396 # Find out which ABI we are using.
6397 echo 'int i;' > conftest.$ac_ext
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 case `/usr/bin/file conftest.o` in
6404 *32-bit*)
6405 case $host in
6406 x86_64-*kfreebsd*-gnu)
6407 LD="${LD-ld} -m elf_i386_fbsd"
6408 ;;
6409 x86_64-*linux*)
6410 case `/usr/bin/file conftest.o` in
6411 *x86-64*)
6412 LD="${LD-ld} -m elf32_x86_64"
6413 ;;
6414 *)
6415 LD="${LD-ld} -m elf_i386"
6416 ;;
6417 esac
6418 ;;
6419 ppc64-*linux*|powerpc64-*linux*)
6420 LD="${LD-ld} -m elf32ppclinux"
6421 ;;
6422 s390x-*linux*)
6423 LD="${LD-ld} -m elf_s390"
6424 ;;
6425 sparc64-*linux*)
6426 LD="${LD-ld} -m elf32_sparc"
6427 ;;
6428 esac
6429 ;;
6430 *64-bit*)
6431 case $host in
6432 x86_64-*kfreebsd*-gnu)
6433 LD="${LD-ld} -m elf_x86_64_fbsd"
6434 ;;
6435 x86_64-*linux*)
6436 LD="${LD-ld} -m elf_x86_64"
6437 ;;
6438 ppc*-*linux*|powerpc*-*linux*)
6439 LD="${LD-ld} -m elf64ppc"
6440 ;;
6441 s390*-*linux*|s390*-*tpf*)
6442 LD="${LD-ld} -m elf64_s390"
6443 ;;
6444 sparc*-*linux*)
6445 LD="${LD-ld} -m elf64_sparc"
6446 ;;
6447 esac
6448 ;;
6449 esac
6450 fi
6451 rm -rf conftest*
6452 ;;
6453
6454 *-*-sco3.2v5*)
6455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6456 SAVE_CFLAGS="$CFLAGS"
6457 CFLAGS="$CFLAGS -belf"
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6459 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6460 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 ac_ext=c
6464 ac_cpp='$CPP $CPPFLAGS'
6465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_link "$LINENO"; then :
6481 lt_cv_cc_needs_belf=yes
6482 else
6483 lt_cv_cc_needs_belf=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 ac_ext=c
6488 ac_cpp='$CPP $CPPFLAGS'
6489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6495 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6496 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6498 CFLAGS="$SAVE_CFLAGS"
6499 fi
6500 ;;
6501 sparc*-*solaris*)
6502 # Find out which ABI we are using.
6503 echo 'int i;' > conftest.$ac_ext
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 case `/usr/bin/file conftest.o` in
6510 *64-bit*)
6511 case $lt_cv_prog_gnu_ld in
6512 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6513 *)
6514 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6515 LD="${LD-ld} -64"
6516 fi
6517 ;;
6518 esac
6519 ;;
6520 esac
6521 fi
6522 rm -rf conftest*
6523 ;;
6524 esac
6525
6526 need_locks="$enable_libtool_lock"
6527
6528
6529 case $host_os in
6530 rhapsody* | darwin*)
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$DSYMUTIL"; then
6540 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6560 if test -n "$DSYMUTIL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6562 $as_echo "$DSYMUTIL" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_DSYMUTIL"; then
6571 ac_ct_DSYMUTIL=$DSYMUTIL
6572 # Extract the first word of "dsymutil", so it can be a program name with args.
6573 set dummy dsymutil; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -n "$ac_ct_DSYMUTIL"; then
6580 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6600 if test -n "$ac_ct_DSYMUTIL"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6602 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608 if test "x$ac_ct_DSYMUTIL" = x; then
6609 DSYMUTIL=":"
6610 else
6611 case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617 DSYMUTIL=$ac_ct_DSYMUTIL
6618 fi
6619 else
6620 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6621 fi
6622
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 if test -n "$NMEDIT"; then
6632 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 NMEDIT=$ac_cv_prog_NMEDIT
6652 if test -n "$NMEDIT"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6654 $as_echo "$NMEDIT" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_NMEDIT"; then
6663 ac_ct_NMEDIT=$NMEDIT
6664 # Extract the first word of "nmedit", so it can be a program name with args.
6665 set dummy nmedit; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$ac_ct_NMEDIT"; then
6672 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6692 if test -n "$ac_ct_NMEDIT"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6694 $as_echo "$ac_ct_NMEDIT" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700 if test "x$ac_ct_NMEDIT" = x; then
6701 NMEDIT=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709 NMEDIT=$ac_ct_NMEDIT
6710 fi
6711 else
6712 NMEDIT="$ac_cv_prog_NMEDIT"
6713 fi
6714
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_LIPO+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$LIPO"; then
6724 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 LIPO=$ac_cv_prog_LIPO
6744 if test -n "$LIPO"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6746 $as_echo "$LIPO" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_LIPO"; then
6755 ac_ct_LIPO=$LIPO
6756 # Extract the first word of "lipo", so it can be a program name with args.
6757 set dummy lipo; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$ac_ct_LIPO"; then
6764 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_LIPO="lipo"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6784 if test -n "$ac_ct_LIPO"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6786 $as_echo "$ac_ct_LIPO" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792 if test "x$ac_ct_LIPO" = x; then
6793 LIPO=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801 LIPO=$ac_ct_LIPO
6802 fi
6803 else
6804 LIPO="$ac_cv_prog_LIPO"
6805 fi
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}otool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$OTOOL"; then
6816 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 OTOOL=$ac_cv_prog_OTOOL
6836 if test -n "$OTOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6838 $as_echo "$OTOOL" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_OTOOL"; then
6847 ac_ct_OTOOL=$OTOOL
6848 # Extract the first word of "otool", so it can be a program name with args.
6849 set dummy otool; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 if test -n "$ac_ct_OTOOL"; then
6856 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_prog_ac_ct_OTOOL="otool"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6876 if test -n "$ac_ct_OTOOL"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6878 $as_echo "$ac_ct_OTOOL" >&6; }
6879 else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884 if test "x$ac_ct_OTOOL" = x; then
6885 OTOOL=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893 OTOOL=$ac_ct_OTOOL
6894 fi
6895 else
6896 OTOOL="$ac_cv_prog_OTOOL"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$OTOOL64"; then
6908 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 OTOOL64=$ac_cv_prog_OTOOL64
6928 if test -n "$OTOOL64"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6930 $as_echo "$OTOOL64" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_OTOOL64"; then
6939 ac_ct_OTOOL64=$OTOOL64
6940 # Extract the first word of "otool64", so it can be a program name with args.
6941 set dummy otool64; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_OTOOL64"; then
6948 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_OTOOL64="otool64"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6968 if test -n "$ac_ct_OTOOL64"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6970 $as_echo "$ac_ct_OTOOL64" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_OTOOL64" = x; then
6977 OTOOL64=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 OTOOL64=$ac_ct_OTOOL64
6986 fi
6987 else
6988 OTOOL64="$ac_cv_prog_OTOOL64"
6989 fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7018 $as_echo_n "checking for -single_module linker flag... " >&6; }
7019 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 lt_cv_apple_cc_single_mod=no
7023 if test -z "${LT_MULTI_MODULE}"; then
7024 # By default we will add the -single_module flag. You can override
7025 # by either setting the environment variable LT_MULTI_MODULE
7026 # non-empty at configure time, or by adding -multi_module to the
7027 # link flags.
7028 rm -rf libconftest.dylib*
7029 echo "int foo(void){return 1;}" > conftest.c
7030 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7031 -dynamiclib -Wl,-single_module conftest.c" >&5
7032 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7033 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7034 _lt_result=$?
7035 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7036 lt_cv_apple_cc_single_mod=yes
7037 else
7038 cat conftest.err >&5
7039 fi
7040 rm -rf libconftest.dylib*
7041 rm -f conftest.*
7042 fi
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7047 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7048 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 lt_cv_ld_exported_symbols_list=no
7052 save_LDFLAGS=$LDFLAGS
7053 echo "_main" > conftest.sym
7054 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057
7058 int
7059 main ()
7060 {
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 if ac_fn_c_try_link "$LINENO"; then :
7067 lt_cv_ld_exported_symbols_list=yes
7068 else
7069 lt_cv_ld_exported_symbols_list=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext \
7072 conftest$ac_exeext conftest.$ac_ext
7073 LDFLAGS="$save_LDFLAGS"
7074
7075 fi
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7077 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7079 $as_echo_n "checking for -force_load linker flag... " >&6; }
7080 if test "${lt_cv_ld_force_load+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 lt_cv_ld_force_load=no
7084 cat > conftest.c << _LT_EOF
7085 int forced_loaded() { return 2;}
7086 _LT_EOF
7087 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7088 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7089 echo "$AR cru libconftest.a conftest.o" >&5
7090 $AR cru libconftest.a conftest.o 2>&5
7091 cat > conftest.c << _LT_EOF
7092 int main() { return 0;}
7093 _LT_EOF
7094 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7095 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7096 _lt_result=$?
7097 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7098 lt_cv_ld_force_load=yes
7099 else
7100 cat conftest.err >&5
7101 fi
7102 rm -f conftest.err libconftest.a conftest conftest.c
7103 rm -rf conftest.dSYM
7104
7105 fi
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7107 $as_echo "$lt_cv_ld_force_load" >&6; }
7108 case $host_os in
7109 rhapsody* | darwin1.[012])
7110 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7111 darwin1.*)
7112 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7113 darwin*) # darwin 5.x on
7114 # if running on 10.5 or later, the deployment target defaults
7115 # to the OS version, if on x86, and 10.4, the deployment
7116 # target defaults to 10.4. Don't you love it?
7117 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7118 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7119 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7120 10.[012]*)
7121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7122 10.*)
7123 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7124 esac
7125 ;;
7126 esac
7127 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7128 _lt_dar_single_mod='$single_module'
7129 fi
7130 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7131 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7132 else
7133 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7134 fi
7135 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7136 _lt_dsymutil='~$DSYMUTIL $lib || :'
7137 else
7138 _lt_dsymutil=
7139 fi
7140 ;;
7141 esac
7142
7143 ac_ext=c
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7149 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7150 # On Suns, sometimes $CPP names a directory.
7151 if test -n "$CPP" && test -d "$CPP"; then
7152 CPP=
7153 fi
7154 if test -z "$CPP"; then
7155 if test "${ac_cv_prog_CPP+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 # Double quotes because CPP needs to be expanded
7159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7160 do
7161 ac_preproc_ok=false
7162 for ac_c_preproc_warn_flag in '' yes
7163 do
7164 # Use a header file that comes with gcc, so configuring glibc
7165 # with a fresh cross-compiler works.
7166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 # <limits.h> exists even on freestanding compilers.
7168 # On the NeXT, cc -E runs the code through the compiler's parser,
7169 # not just through cpp. "Syntax error" is here to catch this case.
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #ifdef __STDC__
7173 # include <limits.h>
7174 #else
7175 # include <assert.h>
7176 #endif
7177 Syntax error
7178 _ACEOF
7179 if ac_fn_c_try_cpp "$LINENO"; then :
7180
7181 else
7182 # Broken: fails on valid input.
7183 continue
7184 fi
7185 rm -f conftest.err conftest.$ac_ext
7186
7187 # OK, works on sane cases. Now check whether nonexistent headers
7188 # can be detected and how.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #include <ac_nonexistent.h>
7192 _ACEOF
7193 if ac_fn_c_try_cpp "$LINENO"; then :
7194 # Broken: success on invalid input.
7195 continue
7196 else
7197 # Passes both tests.
7198 ac_preproc_ok=:
7199 break
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202
7203 done
7204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7205 rm -f conftest.err conftest.$ac_ext
7206 if $ac_preproc_ok; then :
7207 break
7208 fi
7209
7210 done
7211 ac_cv_prog_CPP=$CPP
7212
7213 fi
7214 CPP=$ac_cv_prog_CPP
7215 else
7216 ac_cv_prog_CPP=$CPP
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7219 $as_echo "$CPP" >&6; }
7220 ac_preproc_ok=false
7221 for ac_c_preproc_warn_flag in '' yes
7222 do
7223 # Use a header file that comes with gcc, so configuring glibc
7224 # with a fresh cross-compiler works.
7225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226 # <limits.h> exists even on freestanding compilers.
7227 # On the NeXT, cc -E runs the code through the compiler's parser,
7228 # not just through cpp. "Syntax error" is here to catch this case.
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #ifdef __STDC__
7232 # include <limits.h>
7233 #else
7234 # include <assert.h>
7235 #endif
7236 Syntax error
7237 _ACEOF
7238 if ac_fn_c_try_cpp "$LINENO"; then :
7239
7240 else
7241 # Broken: fails on valid input.
7242 continue
7243 fi
7244 rm -f conftest.err conftest.$ac_ext
7245
7246 # OK, works on sane cases. Now check whether nonexistent headers
7247 # can be detected and how.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <ac_nonexistent.h>
7251 _ACEOF
7252 if ac_fn_c_try_cpp "$LINENO"; then :
7253 # Broken: success on invalid input.
7254 continue
7255 else
7256 # Passes both tests.
7257 ac_preproc_ok=:
7258 break
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262 done
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then :
7266
7267 else
7268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7270 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7271 See \`config.log' for more details." "$LINENO" 5; }
7272 fi
7273
7274 ac_ext=c
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7282 $as_echo_n "checking for ANSI C header files... " >&6; }
7283 if test "${ac_cv_header_stdc+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <stdlib.h>
7289 #include <stdarg.h>
7290 #include <string.h>
7291 #include <float.h>
7292
7293 int
7294 main ()
7295 {
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_compile "$LINENO"; then :
7302 ac_cv_header_stdc=yes
7303 else
7304 ac_cv_header_stdc=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307
7308 if test $ac_cv_header_stdc = yes; then
7309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #include <string.h>
7313
7314 _ACEOF
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 $EGREP "memchr" >/dev/null 2>&1; then :
7317
7318 else
7319 ac_cv_header_stdc=no
7320 fi
7321 rm -f conftest*
7322
7323 fi
7324
7325 if test $ac_cv_header_stdc = yes; then
7326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <stdlib.h>
7330
7331 _ACEOF
7332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 $EGREP "free" >/dev/null 2>&1; then :
7334
7335 else
7336 ac_cv_header_stdc=no
7337 fi
7338 rm -f conftest*
7339
7340 fi
7341
7342 if test $ac_cv_header_stdc = yes; then
7343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7344 if test "$cross_compiling" = yes; then :
7345 :
7346 else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #include <ctype.h>
7350 #include <stdlib.h>
7351 #if ((' ' & 0x0FF) == 0x020)
7352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7354 #else
7355 # define ISLOWER(c) \
7356 (('a' <= (c) && (c) <= 'i') \
7357 || ('j' <= (c) && (c) <= 'r') \
7358 || ('s' <= (c) && (c) <= 'z'))
7359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7360 #endif
7361
7362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7363 int
7364 main ()
7365 {
7366 int i;
7367 for (i = 0; i < 256; i++)
7368 if (XOR (islower (i), ISLOWER (i))
7369 || toupper (i) != TOUPPER (i))
7370 return 2;
7371 return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_run "$LINENO"; then :
7375
7376 else
7377 ac_cv_header_stdc=no
7378 fi
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380 conftest.$ac_objext conftest.beam conftest.$ac_ext
7381 fi
7382
7383 fi
7384 fi
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7386 $as_echo "$ac_cv_header_stdc" >&6; }
7387 if test $ac_cv_header_stdc = yes; then
7388
7389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7390
7391 fi
7392
7393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7395 inttypes.h stdint.h unistd.h
7396 do :
7397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7399 "
7400 eval as_val=\$$as_ac_Header
7401 if test "x$as_val" = x""yes; then :
7402 cat >>confdefs.h <<_ACEOF
7403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7405
7406 fi
7407
7408 done
7409
7410
7411 for ac_header in dlfcn.h
7412 do :
7413 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7414 "
7415 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_DLFCN_H 1
7418 _ACEOF
7419
7420 fi
7421
7422 done
7423
7424
7425
7426
7427
7428
7429 # Set options
7430
7431
7432
7433
7434 enable_win32_dll=no
7435
7436
7437 # Check whether --enable-shared was given.
7438 if test "${enable_shared+set}" = set; then :
7439 enableval=$enable_shared; p=${PACKAGE-default}
7440 case $enableval in
7441 yes) enable_shared=yes ;;
7442 no) enable_shared=no ;;
7443 *)
7444 enable_shared=no
7445 # Look at the argument we got. We use all the common list separators.
7446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447 for pkg in $enableval; do
7448 IFS="$lt_save_ifs"
7449 if test "X$pkg" = "X$p"; then
7450 enable_shared=yes
7451 fi
7452 done
7453 IFS="$lt_save_ifs"
7454 ;;
7455 esac
7456 else
7457 enable_shared=yes
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468 # Check whether --enable-static was given.
7469 if test "${enable_static+set}" = set; then :
7470 enableval=$enable_static; p=${PACKAGE-default}
7471 case $enableval in
7472 yes) enable_static=yes ;;
7473 no) enable_static=no ;;
7474 *)
7475 enable_static=no
7476 # Look at the argument we got. We use all the common list separators.
7477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7478 for pkg in $enableval; do
7479 IFS="$lt_save_ifs"
7480 if test "X$pkg" = "X$p"; then
7481 enable_static=yes
7482 fi
7483 done
7484 IFS="$lt_save_ifs"
7485 ;;
7486 esac
7487 else
7488 enable_static=yes
7489 fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 # Check whether --with-pic was given.
7501 if test "${with_pic+set}" = set; then :
7502 withval=$with_pic; pic_mode="$withval"
7503 else
7504 pic_mode=default
7505 fi
7506
7507
7508 test -z "$pic_mode" && pic_mode=default
7509
7510
7511
7512
7513
7514
7515
7516 # Check whether --enable-fast-install was given.
7517 if test "${enable_fast_install+set}" = set; then :
7518 enableval=$enable_fast_install; p=${PACKAGE-default}
7519 case $enableval in
7520 yes) enable_fast_install=yes ;;
7521 no) enable_fast_install=no ;;
7522 *)
7523 enable_fast_install=no
7524 # Look at the argument we got. We use all the common list separators.
7525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7526 for pkg in $enableval; do
7527 IFS="$lt_save_ifs"
7528 if test "X$pkg" = "X$p"; then
7529 enable_fast_install=yes
7530 fi
7531 done
7532 IFS="$lt_save_ifs"
7533 ;;
7534 esac
7535 else
7536 enable_fast_install=yes
7537 fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 # This can be used to rebuild libtool when needed
7550 LIBTOOL_DEPS="$ltmain"
7551
7552 # Always use our own libtool.
7553 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 test -z "$LN_S" && LN_S="ln -s"
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595 if test -n "${ZSH_VERSION+set}" ; then
7596 setopt NO_GLOB_SUBST
7597 fi
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7600 $as_echo_n "checking for objdir... " >&6; }
7601 if test "${lt_cv_objdir+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 rm -f .libs 2>/dev/null
7605 mkdir .libs 2>/dev/null
7606 if test -d .libs; then
7607 lt_cv_objdir=.libs
7608 else
7609 # MS-DOS does not allow filenames that begin with a dot.
7610 lt_cv_objdir=_libs
7611 fi
7612 rmdir .libs 2>/dev/null
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7615 $as_echo "$lt_cv_objdir" >&6; }
7616 objdir=$lt_cv_objdir
7617
7618
7619
7620
7621
7622 cat >>confdefs.h <<_ACEOF
7623 #define LT_OBJDIR "$lt_cv_objdir/"
7624 _ACEOF
7625
7626
7627
7628
7629 case $host_os in
7630 aix3*)
7631 # AIX sometimes has problems with the GCC collect2 program. For some
7632 # reason, if we set the COLLECT_NAMES environment variable, the problems
7633 # vanish in a puff of smoke.
7634 if test "X${COLLECT_NAMES+set}" != Xset; then
7635 COLLECT_NAMES=
7636 export COLLECT_NAMES
7637 fi
7638 ;;
7639 esac
7640
7641 # Global variables:
7642 ofile=libtool
7643 can_build_shared=yes
7644
7645 # All known linkers require a `.a' archive for static linking (except MSVC,
7646 # which needs '.lib').
7647 libext=a
7648
7649 with_gnu_ld="$lt_cv_prog_gnu_ld"
7650
7651 old_CC="$CC"
7652 old_CFLAGS="$CFLAGS"
7653
7654 # Set sane defaults for various variables
7655 test -z "$CC" && CC=cc
7656 test -z "$LTCC" && LTCC=$CC
7657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7658 test -z "$LD" && LD=ld
7659 test -z "$ac_objext" && ac_objext=o
7660
7661 for cc_temp in $compiler""; do
7662 case $cc_temp in
7663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7665 \-*) ;;
7666 *) break;;
7667 esac
7668 done
7669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7670
7671
7672 # Only perform the check for file, if the check method requires it
7673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7674 case $deplibs_check_method in
7675 file_magic*)
7676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 case $MAGIC_CMD in
7683 [\\/*] | ?:[\\/]*)
7684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685 ;;
7686 *)
7687 lt_save_MAGIC_CMD="$MAGIC_CMD"
7688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7690 for ac_dir in $ac_dummy; do
7691 IFS="$lt_save_ifs"
7692 test -z "$ac_dir" && ac_dir=.
7693 if test -f $ac_dir/${ac_tool_prefix}file; then
7694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7695 if test -n "$file_magic_test_file"; then
7696 case $deplibs_check_method in
7697 "file_magic "*)
7698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7701 $EGREP "$file_magic_regex" > /dev/null; then
7702 :
7703 else
7704 cat <<_LT_EOF 1>&2
7705
7706 *** Warning: the command libtool uses to detect shared libraries,
7707 *** $file_magic_cmd, produces output that libtool cannot recognize.
7708 *** The result is that libtool may fail to recognize shared libraries
7709 *** as such. This will affect the creation of libtool libraries that
7710 *** depend on shared libraries, but programs linked with such libtool
7711 *** libraries will work regardless of this problem. Nevertheless, you
7712 *** may want to report the problem to your system manager and/or to
7713 *** bug-libtool@gnu.org
7714
7715 _LT_EOF
7716 fi ;;
7717 esac
7718 fi
7719 break
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 MAGIC_CMD="$lt_save_MAGIC_CMD"
7724 ;;
7725 esac
7726 fi
7727
7728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729 if test -n "$MAGIC_CMD"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7731 $as_echo "$MAGIC_CMD" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738
7739
7740
7741 if test -z "$lt_cv_path_MAGIC_CMD"; then
7742 if test -n "$ac_tool_prefix"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7744 $as_echo_n "checking for file... " >&6; }
7745 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 case $MAGIC_CMD in
7749 [\\/*] | ?:[\\/]*)
7750 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 lt_save_MAGIC_CMD="$MAGIC_CMD"
7754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756 for ac_dir in $ac_dummy; do
7757 IFS="$lt_save_ifs"
7758 test -z "$ac_dir" && ac_dir=.
7759 if test -f $ac_dir/file; then
7760 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7761 if test -n "$file_magic_test_file"; then
7762 case $deplibs_check_method in
7763 "file_magic "*)
7764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767 $EGREP "$file_magic_regex" > /dev/null; then
7768 :
7769 else
7770 cat <<_LT_EOF 1>&2
7771
7772 *** Warning: the command libtool uses to detect shared libraries,
7773 *** $file_magic_cmd, produces output that libtool cannot recognize.
7774 *** The result is that libtool may fail to recognize shared libraries
7775 *** as such. This will affect the creation of libtool libraries that
7776 *** depend on shared libraries, but programs linked with such libtool
7777 *** libraries will work regardless of this problem. Nevertheless, you
7778 *** may want to report the problem to your system manager and/or to
7779 *** bug-libtool@gnu.org
7780
7781 _LT_EOF
7782 fi ;;
7783 esac
7784 fi
7785 break
7786 fi
7787 done
7788 IFS="$lt_save_ifs"
7789 MAGIC_CMD="$lt_save_MAGIC_CMD"
7790 ;;
7791 esac
7792 fi
7793
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if test -n "$MAGIC_CMD"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7797 $as_echo "$MAGIC_CMD" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804 else
7805 MAGIC_CMD=:
7806 fi
7807 fi
7808
7809 fi
7810 ;;
7811 esac
7812
7813 # Use C for the default configuration in the libtool script
7814
7815 lt_save_CC="$CC"
7816 ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823 # Source file extension for C test sources.
7824 ac_ext=c
7825
7826 # Object file extension for compiled C test sources.
7827 objext=o
7828 objext=$objext
7829
7830 # Code to be used in simple compile tests
7831 lt_simple_compile_test_code="int some_variable = 0;"
7832
7833 # Code to be used in simple link tests
7834 lt_simple_link_test_code='int main(){return(0);}'
7835
7836
7837
7838
7839
7840
7841
7842 # If no C compiler was specified, use CC.
7843 LTCC=${LTCC-"$CC"}
7844
7845 # If no C compiler flags were specified, use CFLAGS.
7846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7847
7848 # Allow CC to be a program name with arguments.
7849 compiler=$CC
7850
7851 # Save the default compiler, since it gets overwritten when the other
7852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7853 compiler_DEFAULT=$CC
7854
7855 # save warnings/boilerplate of simple test code
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859 _lt_compiler_boilerplate=`cat conftest.err`
7860 $RM conftest*
7861
7862 ac_outfile=conftest.$ac_objext
7863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7865 _lt_linker_boilerplate=`cat conftest.err`
7866 $RM -r conftest*
7867
7868
7869 ## CAVEAT EMPTOR:
7870 ## There is no encapsulation within the following macros, do not change
7871 ## the running order or otherwise move them around unless you know exactly
7872 ## what you are doing...
7873 if test -n "$compiler"; then
7874
7875 lt_prog_compiler_no_builtin_flag=
7876
7877 if test "$GCC" = yes; then
7878 case $cc_basename in
7879 nvcc*)
7880 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7881 *)
7882 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7883 esac
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7886 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7887 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 lt_cv_prog_compiler_rtti_exceptions=no
7891 ac_outfile=conftest.$ac_objext
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="-fno-rtti -fno-exceptions"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 # The option is referenced via a variable to avoid confusing sed.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
7903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>conftest.err)
7905 ac_status=$?
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 if (exit $ac_status) && test -s "$ac_outfile"; then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings other than the usual output.
7911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_rtti_exceptions=yes
7915 fi
7916 fi
7917 $RM conftest*
7918
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7921 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7922
7923 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7925 else
7926 :
7927 fi
7928
7929 fi
7930
7931
7932
7933
7934
7935
7936 lt_prog_compiler_wl=
7937 lt_prog_compiler_pic=
7938 lt_prog_compiler_static=
7939
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7942
7943 if test "$GCC" = yes; then
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_static='-static'
7946
7947 case $host_os in
7948 aix*)
7949 # All AIX code is PIC.
7950 if test "$host_cpu" = ia64; then
7951 # AIX 5 now supports IA64 processor
7952 lt_prog_compiler_static='-Bstatic'
7953 fi
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 lt_prog_compiler_pic='-fPIC'
7962 ;;
7963 m68k)
7964 # FIXME: we need at least 68020 code to build shared libraries, but
7965 # adding the `-m68020' flag to GCC prevents building anything better,
7966 # like `-m68040'.
7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968 ;;
7969 esac
7970 ;;
7971
7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973 # PIC is the default for these OSes.
7974 ;;
7975
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980 # (--disable-auto-import) libraries
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 darwin* | rhapsody*)
7985 # PIC is the default on this platform
7986 # Common symbols not allowed in MH_DYLIB files
7987 lt_prog_compiler_pic='-fno-common'
7988 ;;
7989
7990 haiku*)
7991 # PIC is the default for Haiku.
7992 # The "-static" flag exists, but is broken.
7993 lt_prog_compiler_static=
7994 ;;
7995
7996 hpux*)
7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7999 # sets the default TLS model and affects inlining.
8000 case $host_cpu in
8001 hppa*64*)
8002 # +Z the default
8003 ;;
8004 *)
8005 lt_prog_compiler_pic='-fPIC'
8006 ;;
8007 esac
8008 ;;
8009
8010 interix[3-9]*)
8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012 # Instead, we relocate shared libraries at runtime.
8013 ;;
8014
8015 msdosdjgpp*)
8016 # Just because we use GCC doesn't mean we suddenly get shared libraries
8017 # on systems that don't support them.
8018 lt_prog_compiler_can_build_shared=no
8019 enable_shared=no
8020 ;;
8021
8022 *nto* | *qnx*)
8023 # QNX uses GNU C++, but need to define -shared option too, otherwise
8024 # it will coredump.
8025 lt_prog_compiler_pic='-fPIC -shared'
8026 ;;
8027
8028 sysv4*MP*)
8029 if test -d /usr/nec; then
8030 lt_prog_compiler_pic=-Kconform_pic
8031 fi
8032 ;;
8033
8034 *)
8035 lt_prog_compiler_pic='-fPIC'
8036 ;;
8037 esac
8038
8039 case $cc_basename in
8040 nvcc*) # Cuda Compiler Driver 2.2
8041 lt_prog_compiler_wl='-Xlinker '
8042 lt_prog_compiler_pic='-Xcompiler -fPIC'
8043 ;;
8044 esac
8045 else
8046 # PORTME Check for flag to pass linker flags through the system compiler.
8047 case $host_os in
8048 aix*)
8049 lt_prog_compiler_wl='-Wl,'
8050 if test "$host_cpu" = ia64; then
8051 # AIX 5 now supports IA64 processor
8052 lt_prog_compiler_static='-Bstatic'
8053 else
8054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8055 fi
8056 ;;
8057
8058 mingw* | cygwin* | pw32* | os2* | cegcc*)
8059 # This hack is so that the source file can tell whether it is being
8060 # built for inclusion in a dll (and should export symbols for example).
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8062 ;;
8063
8064 hpux9* | hpux10* | hpux11*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8067 # not for PA HP-UX.
8068 case $host_cpu in
8069 hppa*64*|ia64*)
8070 # +Z the default
8071 ;;
8072 *)
8073 lt_prog_compiler_pic='+Z'
8074 ;;
8075 esac
8076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8077 lt_prog_compiler_static='${wl}-a ${wl}archive'
8078 ;;
8079
8080 irix5* | irix6* | nonstopux*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # PIC (with -KPIC) is the default.
8083 lt_prog_compiler_static='-non_shared'
8084 ;;
8085
8086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8087 case $cc_basename in
8088 # old Intel for x86_64 which still supported -KPIC.
8089 ecc*)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-static'
8093 ;;
8094 # icc used to be incompatible with GCC.
8095 # ICC 10 doesn't accept -KPIC any more.
8096 icc* | ifort*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fPIC'
8099 lt_prog_compiler_static='-static'
8100 ;;
8101 # Lahey Fortran 8.1.
8102 lf95*)
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='--shared'
8105 lt_prog_compiler_static='--static'
8106 ;;
8107 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8108 # Portland Group compilers (*not* the Pentium gcc compiler,
8109 # which looks to be a dead project)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fpic'
8112 lt_prog_compiler_static='-Bstatic'
8113 ;;
8114 ccc*)
8115 lt_prog_compiler_wl='-Wl,'
8116 # All Alpha code is PIC.
8117 lt_prog_compiler_static='-non_shared'
8118 ;;
8119 xl* | bgxl* | bgf* | mpixl*)
8120 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-qpic'
8123 lt_prog_compiler_static='-qstaticlink'
8124 ;;
8125 *)
8126 case `$CC -V 2>&1 | sed 5q` in
8127 *Sun\ F* | *Sun*Fortran*)
8128 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 lt_prog_compiler_wl=''
8132 ;;
8133 *Sun\ C*)
8134 # Sun C 5.9
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl='-Wl,'
8138 ;;
8139 esac
8140 ;;
8141 esac
8142 ;;
8143
8144 newsos6)
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148
8149 *nto* | *qnx*)
8150 # QNX uses GNU C++, but need to define -shared option too, otherwise
8151 # it will coredump.
8152 lt_prog_compiler_pic='-fPIC -shared'
8153 ;;
8154
8155 osf3* | osf4* | osf5*)
8156 lt_prog_compiler_wl='-Wl,'
8157 # All OSF/1 code is PIC.
8158 lt_prog_compiler_static='-non_shared'
8159 ;;
8160
8161 rdos*)
8162 lt_prog_compiler_static='-non_shared'
8163 ;;
8164
8165 solaris*)
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8168 case $cc_basename in
8169 f77* | f90* | f95*)
8170 lt_prog_compiler_wl='-Qoption ld ';;
8171 *)
8172 lt_prog_compiler_wl='-Wl,';;
8173 esac
8174 ;;
8175
8176 sunos4*)
8177 lt_prog_compiler_wl='-Qoption ld '
8178 lt_prog_compiler_pic='-PIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 ;;
8181
8182 sysv4 | sysv4.2uw2* | sysv4.3*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187
8188 sysv4*MP*)
8189 if test -d /usr/nec ;then
8190 lt_prog_compiler_pic='-Kconform_pic'
8191 lt_prog_compiler_static='-Bstatic'
8192 fi
8193 ;;
8194
8195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200
8201 unicos*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_can_build_shared=no
8204 ;;
8205
8206 uts4*)
8207 lt_prog_compiler_pic='-pic'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 *)
8212 lt_prog_compiler_can_build_shared=no
8213 ;;
8214 esac
8215 fi
8216
8217 case $host_os in
8218 # For platforms which do not support PIC, -DPIC is meaningless:
8219 *djgpp*)
8220 lt_prog_compiler_pic=
8221 ;;
8222 *)
8223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8224 ;;
8225 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8227 $as_echo "$lt_prog_compiler_pic" >&6; }
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the PIC flag actually works.
8236 #
8237 if test -n "$lt_prog_compiler_pic"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8240 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_prog_compiler_pic_works=no
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8258 ac_status=$?
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings other than the usual output.
8264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_pic_works=yes
8268 fi
8269 fi
8270 $RM conftest*
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8275
8276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8277 case $lt_prog_compiler_pic in
8278 "" | " "*) ;;
8279 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8280 esac
8281 else
8282 lt_prog_compiler_pic=
8283 lt_prog_compiler_can_build_shared=no
8284 fi
8285
8286 fi
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the static flag actually works.
8295 #
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS="$LDFLAGS"
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8316 fi
8317 else
8318 lt_cv_prog_compiler_static_works=yes
8319 fi
8320 fi
8321 $RM -r conftest*
8322 LDFLAGS="$save_LDFLAGS"
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8327
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8329 :
8330 else
8331 lt_prog_compiler_static=
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8374 fi
8375 fi
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453 hard_links=yes
8454 $RM conftest*
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 touch conftest.a
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test "$hard_links" = no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8464 need_locks=warn
8465 fi
8466 else
8467 need_locks=no
8468 fi
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8477
8478 runpath_var=
8479 allow_undefined_flag=
8480 always_export_symbols=no
8481 archive_cmds=
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8488 hardcode_direct=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_flag_spec_ld=
8492 hardcode_libdir_separator=
8493 hardcode_minus_L=no
8494 hardcode_shlibpath_var=unsupported
8495 inherit_rpath=no
8496 link_all_deplibs=unknown
8497 module_cmds=
8498 module_expsym_cmds=
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8505 include_expsyms=
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509 # as well as any symbol that contains `d'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8518
8519 case $host_os in
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test "$GCC" != yes; then
8525 with_gnu_ld=no
8526 fi
8527 ;;
8528 interix*)
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8530 with_gnu_ld=yes
8531 ;;
8532 openbsd*)
8533 with_gnu_ld=no
8534 ;;
8535 esac
8536
8537 ld_shlibs=yes
8538
8539 # On some targets, GNU ld is compatible enough with the native linker
8540 # that we're better off using the native interface for both.
8541 lt_use_gnu_ld_interface=no
8542 if test "$with_gnu_ld" = yes; then
8543 case $host_os in
8544 aix*)
8545 # The AIX port of GNU ld has always aspired to compatibility
8546 # with the native linker. However, as the warning in the GNU ld
8547 # block says, versions before 2.19.5* couldn't really create working
8548 # shared libraries, regardless of the interface used.
8549 case `$LD -v 2>&1` in
8550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553 *)
8554 lt_use_gnu_ld_interface=yes
8555 ;;
8556 esac
8557 ;;
8558 *)
8559 lt_use_gnu_ld_interface=yes
8560 ;;
8561 esac
8562 fi
8563
8564 if test "$lt_use_gnu_ld_interface" = yes; then
8565 # If archive_cmds runs LD, not CC, wlarc should be empty
8566 wlarc='${wl}'
8567
8568 # Set some defaults for GNU ld with shared library support. These
8569 # are reset later if shared libraries are not supported. Putting them
8570 # here allows them to be overridden if necessary.
8571 runpath_var=LD_RUN_PATH
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 export_dynamic_flag_spec='${wl}--export-dynamic'
8574 # ancient GNU ld didn't support --whole-archive et. al.
8575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577 else
8578 whole_archive_flag_spec=
8579 fi
8580 supports_anon_versioning=no
8581 case `$LD -v 2>&1` in
8582 *GNU\ gold*) supports_anon_versioning=yes ;;
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8588 esac
8589
8590 # See if GNU ld supports shared libraries.
8591 case $host_os in
8592 aix[3-9]*)
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test "$host_cpu" != ia64; then
8595 ld_shlibs=no
8596 cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8604
8605 _LT_EOF
8606 fi
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8615 ;;
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8620 ;;
8621 esac
8622 ;;
8623
8624 beos*)
8625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 allow_undefined_flag=unsupported
8627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628 # support --undefined. This deserves some investigation. FIXME
8629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 else
8631 ld_shlibs=no
8632 fi
8633 ;;
8634
8635 cygwin* | mingw* | pw32* | cegcc*)
8636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637 # as there is no search path for DLLs.
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 export_dynamic_flag_spec='${wl}--export-all-symbols'
8640 allow_undefined_flag=unsupported
8641 always_export_symbols=no
8642 enable_shared_with_static_runtimes=yes
8643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8644
8645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647 # If the export-symbols file already is a .def file (1st line
8648 # is EXPORTS), use it as is; otherwise, prepend...
8649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8650 cp $export_symbols $output_objdir/$soname.def;
8651 else
8652 echo EXPORTS > $output_objdir/$soname.def;
8653 cat $export_symbols >> $output_objdir/$soname.def;
8654 fi~
8655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 else
8657 ld_shlibs=no
8658 fi
8659 ;;
8660
8661 haiku*)
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 link_all_deplibs=yes
8664 ;;
8665
8666 interix[3-9]*)
8667 hardcode_direct=no
8668 hardcode_shlibpath_var=no
8669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8670 export_dynamic_flag_spec='${wl}-E'
8671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8672 # Instead, shared libraries are loaded at an image base (0x10000000 by
8673 # default) and relocated if they conflict, which is a slow very memory
8674 # consuming and fragmenting process. To avoid this, we pick a random,
8675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8678 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'
8679 ;;
8680
8681 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8682 tmp_diet=no
8683 if test "$host_os" = linux-dietlibc; then
8684 case $cc_basename in
8685 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8686 esac
8687 fi
8688 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8689 && test "$tmp_diet" = no
8690 then
8691 tmp_addflag=
8692 tmp_sharedflag='-shared'
8693 case $cc_basename,$host_cpu in
8694 pgcc*) # Portland Group C compiler
8695 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'
8696 tmp_addflag=' $pic_flag'
8697 ;;
8698 pgf77* | pgf90* | pgf95* | pgfortran*)
8699 # Portland Group f77 and f90 compilers
8700 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'
8701 tmp_addflag=' $pic_flag -Mnomain' ;;
8702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8703 tmp_addflag=' -i_dynamic' ;;
8704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8705 tmp_addflag=' -i_dynamic -nofor_main' ;;
8706 ifc* | ifort*) # Intel Fortran compiler
8707 tmp_addflag=' -nofor_main' ;;
8708 lf95*) # Lahey Fortran 8.1
8709 whole_archive_flag_spec=
8710 tmp_sharedflag='--shared' ;;
8711 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8712 tmp_sharedflag='-qmkshrobj'
8713 tmp_addflag= ;;
8714 nvcc*) # Cuda Compiler Driver 2.2
8715 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'
8716 compiler_needs_object=yes
8717 ;;
8718 esac
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ C*) # Sun C 5.9
8721 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'
8722 compiler_needs_object=yes
8723 tmp_sharedflag='-G' ;;
8724 *Sun\ F*) # Sun Fortran 8.3
8725 tmp_sharedflag='-G' ;;
8726 esac
8727 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728
8729 if test "x$supports_anon_versioning" = xyes; then
8730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8732 echo "local: *; };" >> $output_objdir/$libname.ver~
8733 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8734 fi
8735
8736 case $cc_basename in
8737 xlf* | bgf* | bgxlf* | mpixlf*)
8738 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8739 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8740 hardcode_libdir_flag_spec=
8741 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8742 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8743 if test "x$supports_anon_versioning" = xyes; then
8744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8746 echo "local: *; };" >> $output_objdir/$libname.ver~
8747 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8748 fi
8749 ;;
8750 esac
8751 else
8752 ld_shlibs=no
8753 fi
8754 ;;
8755
8756 netbsd*)
8757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8759 wlarc=
8760 else
8761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763 fi
8764 ;;
8765
8766 solaris*)
8767 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8768 ld_shlibs=no
8769 cat <<_LT_EOF 1>&2
8770
8771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8772 *** create shared libraries on Solaris systems. Therefore, libtool
8773 *** is disabling shared libraries support. We urge you to upgrade GNU
8774 *** binutils to release 2.9.1 or newer. Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8777
8778 _LT_EOF
8779 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786
8787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8788 case `$LD -v 2>&1` in
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8790 ld_shlibs=no
8791 cat <<_LT_EOF 1>&2
8792
8793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8794 *** reliably create shared libraries on SCO systems. Therefore, libtool
8795 *** is disabling shared libraries support. We urge you to upgrade GNU
8796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8799
8800 _LT_EOF
8801 ;;
8802 *)
8803 # For security reasons, it is highly recommended that you always
8804 # use absolute paths for naming shared libraries, and exclude the
8805 # DT_RUNPATH tag from executables and libraries. But doing so
8806 # requires that you compile everything twice, which is a pain.
8807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811 else
8812 ld_shlibs=no
8813 fi
8814 ;;
8815 esac
8816 ;;
8817
8818 sunos4*)
8819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 wlarc=
8821 hardcode_direct=yes
8822 hardcode_shlibpath_var=no
8823 ;;
8824
8825 *)
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833 esac
8834
8835 if test "$ld_shlibs" = no; then
8836 runpath_var=
8837 hardcode_libdir_flag_spec=
8838 export_dynamic_flag_spec=
8839 whole_archive_flag_spec=
8840 fi
8841 else
8842 # PORTME fill in a description of your system's linker (not GNU ld)
8843 case $host_os in
8844 aix3*)
8845 allow_undefined_flag=unsupported
8846 always_export_symbols=yes
8847 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'
8848 # Note: this linker hardcodes the directories in LIBPATH if there
8849 # are no directories specified by -L.
8850 hardcode_minus_L=yes
8851 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8852 # Neither direct hardcoding nor static linking is supported with a
8853 # broken collect2.
8854 hardcode_direct=unsupported
8855 fi
8856 ;;
8857
8858 aix[4-9]*)
8859 if test "$host_cpu" = ia64; then
8860 # On IA64, the linker does run time linking by default, so we don't
8861 # have to do anything special.
8862 aix_use_runtimelinking=no
8863 exp_sym_flag='-Bexport'
8864 no_entry_flag=""
8865 else
8866 # If we're using GNU nm, then we don't want the "-C" option.
8867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8868 # Also, AIX nm treats weak defined symbols like other global
8869 # defined symbols, whereas GNU nm marks them as "W".
8870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8871 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'
8872 else
8873 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'
8874 fi
8875 aix_use_runtimelinking=no
8876
8877 # Test if we are trying to use run time linking or normal
8878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8879 # need to do runtime linking.
8880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8881 for ld_flag in $LDFLAGS; do
8882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8883 aix_use_runtimelinking=yes
8884 break
8885 fi
8886 done
8887 ;;
8888 esac
8889
8890 exp_sym_flag='-bexport'
8891 no_entry_flag='-bnoentry'
8892 fi
8893
8894 # When large executables or shared objects are built, AIX ld can
8895 # have problems creating the table of contents. If linking a library
8896 # or program results in "error TOC overflow" add -mminimal-toc to
8897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8899
8900 archive_cmds=''
8901 hardcode_direct=yes
8902 hardcode_direct_absolute=yes
8903 hardcode_libdir_separator=':'
8904 link_all_deplibs=yes
8905 file_list_spec='${wl}-f,'
8906
8907 if test "$GCC" = yes; then
8908 case $host_os in aix4.[012]|aix4.[012].*)
8909 # We only want to do this on AIX 4.2 and lower, the check
8910 # below for broken collect2 doesn't work under 4.3+
8911 collect2name=`${CC} -print-prog-name=collect2`
8912 if test -f "$collect2name" &&
8913 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8914 then
8915 # We have reworked collect2
8916 :
8917 else
8918 # We have old collect2
8919 hardcode_direct=unsupported
8920 # It fails to find uninstalled libraries when the uninstalled
8921 # path is not listed in the libpath. Setting hardcode_minus_L
8922 # to unsupported forces relinking
8923 hardcode_minus_L=yes
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_libdir_separator=
8926 fi
8927 ;;
8928 esac
8929 shared_flag='-shared'
8930 if test "$aix_use_runtimelinking" = yes; then
8931 shared_flag="$shared_flag "'${wl}-G'
8932 fi
8933 else
8934 # not using gcc
8935 if test "$host_cpu" = ia64; then
8936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8937 # chokes on -Wl,-G. The following line is correct:
8938 shared_flag='-G'
8939 else
8940 if test "$aix_use_runtimelinking" = yes; then
8941 shared_flag='${wl}-G'
8942 else
8943 shared_flag='${wl}-bM:SRE'
8944 fi
8945 fi
8946 fi
8947
8948 export_dynamic_flag_spec='${wl}-bexpall'
8949 # It seems that -bexpall does not export symbols beginning with
8950 # underscore (_), so it is better to generate a list of symbols to export.
8951 always_export_symbols=yes
8952 if test "$aix_use_runtimelinking" = yes; then
8953 # Warning - without using the other runtime loading flags (-brtl),
8954 # -berok will link without error, but may produce a broken library.
8955 allow_undefined_flag='-berok'
8956 # Determine the default libpath from the value encoded in an
8957 # empty executable.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8970
8971 lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8973 /^0/ {
8974 s/^0 *\(.*\)$/\1/
8975 p
8976 }
8977 }'
8978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 # Check for a 64-bit object if we didn't find anything.
8980 if test -z "$aix_libpath"; then
8981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982 fi
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8987
8988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989 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"
8990 else
8991 if test "$host_cpu" = ia64; then
8992 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8993 allow_undefined_flag="-z nodefs"
8994 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"
8995 else
8996 # Determine the default libpath from the value encoded in an
8997 # empty executable.
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000
9001 int
9002 main ()
9003 {
9004
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 if ac_fn_c_try_link "$LINENO"; then :
9010
9011 lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9013 /^0/ {
9014 s/^0 *\(.*\)$/\1/
9015 p
9016 }
9017 }'
9018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 # Check for a 64-bit object if we didn't find anything.
9020 if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022 fi
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9027
9028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9029 # Warning - without using the other run time loading flags,
9030 # -berok will link without error, but may produce a broken library.
9031 no_undefined_flag=' ${wl}-bernotok'
9032 allow_undefined_flag=' ${wl}-berok'
9033 if test "$with_gnu_ld" = yes; then
9034 # We only use this code for GNU lds that support --whole-archive.
9035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036 else
9037 # Exported symbols can be pulled into shared objects from archives
9038 whole_archive_flag_spec='$convenience'
9039 fi
9040 archive_cmds_need_lc=yes
9041 # This is similar to how AIX traditionally builds its shared libraries.
9042 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'
9043 fi
9044 fi
9045 ;;
9046
9047 amigaos*)
9048 case $host_cpu in
9049 powerpc)
9050 # see comment about AmigaOS4 .so support
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds=''
9053 ;;
9054 m68k)
9055 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)'
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 hardcode_minus_L=yes
9058 ;;
9059 esac
9060 ;;
9061
9062 bsdi[45]*)
9063 export_dynamic_flag_spec=-rdynamic
9064 ;;
9065
9066 cygwin* | mingw* | pw32* | cegcc*)
9067 # When not using gcc, we currently assume that we are using
9068 # Microsoft Visual C++.
9069 # hardcode_libdir_flag_spec is actually meaningless, as there is
9070 # no search path for DLLs.
9071 hardcode_libdir_flag_spec=' '
9072 allow_undefined_flag=unsupported
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079 # The linker will automatically build a .lib file if we build a DLL.
9080 old_archive_from_new_cmds='true'
9081 # FIXME: Should let the user specify the lib program.
9082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083 fix_srcfile_path='`cygpath -w "$srcfile"`'
9084 enable_shared_with_static_runtimes=yes
9085 ;;
9086
9087 darwin* | rhapsody*)
9088
9089
9090 archive_cmds_need_lc=no
9091 hardcode_direct=no
9092 hardcode_automatic=yes
9093 hardcode_shlibpath_var=unsupported
9094 if test "$lt_cv_ld_force_load" = "yes"; then
9095 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\"`'
9096 else
9097 whole_archive_flag_spec=''
9098 fi
9099 link_all_deplibs=yes
9100 allow_undefined_flag="$_lt_dar_allow_undefined"
9101 case $cc_basename in
9102 ifort*) _lt_dar_can_shared=yes ;;
9103 *) _lt_dar_can_shared=$GCC ;;
9104 esac
9105 if test "$_lt_dar_can_shared" = "yes"; then
9106 output_verbose_link_cmd=func_echo_all
9107 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9108 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9109 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}"
9110 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}"
9111
9112 else
9113 ld_shlibs=no
9114 fi
9115
9116 ;;
9117
9118 dgux*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_shlibpath_var=no
9122 ;;
9123
9124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9125 # support. Future versions do this automatically, but an explicit c++rt0.o
9126 # does not break anything, and helps significantly (at the cost of a little
9127 # extra space).
9128 freebsd2.2*)
9129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9130 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_direct=yes
9132 hardcode_shlibpath_var=no
9133 ;;
9134
9135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9136 freebsd2.*)
9137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_direct=yes
9139 hardcode_minus_L=yes
9140 hardcode_shlibpath_var=no
9141 ;;
9142
9143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9144 freebsd* | dragonfly*)
9145 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9146 hardcode_libdir_flag_spec='-R$libdir'
9147 hardcode_direct=yes
9148 hardcode_shlibpath_var=no
9149 ;;
9150
9151 hpux9*)
9152 if test "$GCC" = yes; then
9153 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'
9154 else
9155 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'
9156 fi
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9159 hardcode_direct=yes
9160
9161 # hardcode_minus_L: Not really in the search PATH,
9162 # but as the default location of the library.
9163 hardcode_minus_L=yes
9164 export_dynamic_flag_spec='${wl}-E'
9165 ;;
9166
9167 hpux10*)
9168 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9170 else
9171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9172 fi
9173 if test "$with_gnu_ld" = no; then
9174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175 hardcode_libdir_flag_spec_ld='+b $libdir'
9176 hardcode_libdir_separator=:
9177 hardcode_direct=yes
9178 hardcode_direct_absolute=yes
9179 export_dynamic_flag_spec='${wl}-E'
9180 # hardcode_minus_L: Not really in the search PATH,
9181 # but as the default location of the library.
9182 hardcode_minus_L=yes
9183 fi
9184 ;;
9185
9186 hpux11*)
9187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9188 case $host_cpu in
9189 hppa*64*)
9190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191 ;;
9192 ia64*)
9193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194 ;;
9195 *)
9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 esac
9199 else
9200 case $host_cpu in
9201 hppa*64*)
9202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9203 ;;
9204 ia64*)
9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9206 ;;
9207 *)
9208
9209 # Older versions of the 11.00 compiler do not understand -b yet
9210 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9212 $as_echo_n "checking if $CC understands -b... " >&6; }
9213 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 lt_cv_prog_compiler__b=no
9217 save_LDFLAGS="$LDFLAGS"
9218 LDFLAGS="$LDFLAGS -b"
9219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9221 # The linker can only warn and ignore the option if not recognized
9222 # So say no if there are warnings
9223 if test -s conftest.err; then
9224 # Append any errors to the config.log.
9225 cat conftest.err 1>&5
9226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9228 if diff conftest.exp conftest.er2 >/dev/null; then
9229 lt_cv_prog_compiler__b=yes
9230 fi
9231 else
9232 lt_cv_prog_compiler__b=yes
9233 fi
9234 fi
9235 $RM -r conftest*
9236 LDFLAGS="$save_LDFLAGS"
9237
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9240 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9241
9242 if test x"$lt_cv_prog_compiler__b" = xyes; then
9243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244 else
9245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9246 fi
9247
9248 ;;
9249 esac
9250 fi
9251 if test "$with_gnu_ld" = no; then
9252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9253 hardcode_libdir_separator=:
9254
9255 case $host_cpu in
9256 hppa*64*|ia64*)
9257 hardcode_direct=no
9258 hardcode_shlibpath_var=no
9259 ;;
9260 *)
9261 hardcode_direct=yes
9262 hardcode_direct_absolute=yes
9263 export_dynamic_flag_spec='${wl}-E'
9264
9265 # hardcode_minus_L: Not really in the search PATH,
9266 # but as the default location of the library.
9267 hardcode_minus_L=yes
9268 ;;
9269 esac
9270 fi
9271 ;;
9272
9273 irix5* | irix6* | nonstopux*)
9274 if test "$GCC" = yes; then
9275 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'
9276 # Try to use the -exported_symbol ld option, if it does not
9277 # work, assume that -exports_file does not work either and
9278 # implicitly export all symbols.
9279 save_LDFLAGS="$LDFLAGS"
9280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int foo(void) {}
9284 _ACEOF
9285 if ac_fn_c_try_link "$LINENO"; then :
9286 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'
9287
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LDFLAGS="$save_LDFLAGS"
9292 else
9293 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'
9294 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'
9295 fi
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 hardcode_libdir_separator=:
9299 inherit_rpath=yes
9300 link_all_deplibs=yes
9301 ;;
9302
9303 netbsd*)
9304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9306 else
9307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9308 fi
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_direct=yes
9311 hardcode_shlibpath_var=no
9312 ;;
9313
9314 newsos6)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=yes
9317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318 hardcode_libdir_separator=:
9319 hardcode_shlibpath_var=no
9320 ;;
9321
9322 *nto* | *qnx*)
9323 ;;
9324
9325 openbsd*)
9326 if test -f /usr/libexec/ld.so; then
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 hardcode_direct_absolute=yes
9330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9335 else
9336 case $host_os in
9337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-R$libdir'
9340 ;;
9341 *)
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9344 ;;
9345 esac
9346 fi
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 os2*)
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 allow_undefined_flag=unsupported
9356 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'
9357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9358 ;;
9359
9360 osf3*)
9361 if test "$GCC" = yes; then
9362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9363 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'
9364 else
9365 allow_undefined_flag=' -expect_unresolved \*'
9366 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'
9367 fi
9368 archive_cmds_need_lc='no'
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371 ;;
9372
9373 osf4* | osf5*) # as osf3* with the addition of -msym flag
9374 if test "$GCC" = yes; then
9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376 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'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 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'
9381 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~
9382 $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'
9383
9384 # Both c and cxx compiler support -rpath directly
9385 hardcode_libdir_flag_spec='-rpath $libdir'
9386 fi
9387 archive_cmds_need_lc='no'
9388 hardcode_libdir_separator=:
9389 ;;
9390
9391 solaris*)
9392 no_undefined_flag=' -z defs'
9393 if test "$GCC" = yes; then
9394 wlarc='${wl}'
9395 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9398 else
9399 case `$CC -V 2>&1` in
9400 *"Compilers 5.0"*)
9401 wlarc=''
9402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9405 ;;
9406 *)
9407 wlarc='${wl}'
9408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9411 ;;
9412 esac
9413 fi
9414 hardcode_libdir_flag_spec='-R$libdir'
9415 hardcode_shlibpath_var=no
9416 case $host_os in
9417 solaris2.[0-5] | solaris2.[0-5].*) ;;
9418 *)
9419 # The compiler driver will combine and reorder linker options,
9420 # but understands `-z linker_flag'. GCC discards it without `$wl',
9421 # but is careful enough not to reorder.
9422 # Supported since Solaris 2.6 (maybe 2.5.1?)
9423 if test "$GCC" = yes; then
9424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9425 else
9426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9427 fi
9428 ;;
9429 esac
9430 link_all_deplibs=yes
9431 ;;
9432
9433 sunos4*)
9434 if test "x$host_vendor" = xsequent; then
9435 # Use $CC to link under sequent, because it throws in some extra .o
9436 # files that make .init and .fini sections work.
9437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9440 fi
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_direct=yes
9443 hardcode_minus_L=yes
9444 hardcode_shlibpath_var=no
9445 ;;
9446
9447 sysv4)
9448 case $host_vendor in
9449 sni)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=yes # is this really true???
9452 ;;
9453 siemens)
9454 ## LD is ld it makes a PLAMLIB
9455 ## CC just makes a GrossModule.
9456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9457 reload_cmds='$CC -r -o $output$reload_objs'
9458 hardcode_direct=no
9459 ;;
9460 motorola)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9463 ;;
9464 esac
9465 runpath_var='LD_RUN_PATH'
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 sysv4.3*)
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var=no
9472 export_dynamic_flag_spec='-Bexport'
9473 ;;
9474
9475 sysv4*MP*)
9476 if test -d /usr/nec; then
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_shlibpath_var=no
9479 runpath_var=LD_RUN_PATH
9480 hardcode_runpath_var=yes
9481 ld_shlibs=yes
9482 fi
9483 ;;
9484
9485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9486 no_undefined_flag='${wl}-z,text'
9487 archive_cmds_need_lc=no
9488 hardcode_shlibpath_var=no
9489 runpath_var='LD_RUN_PATH'
9490
9491 if test "$GCC" = yes; then
9492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 fi
9498 ;;
9499
9500 sysv5* | sco3.2v5* | sco5v6*)
9501 # Note: We can NOT use -z defs as we might desire, because we do not
9502 # link with -lc, and that would cause any symbols used from libc to
9503 # always be unresolved, which means just about no library would
9504 # ever link correctly. If we're not using GNU ld we use -z text
9505 # though, which does catch some bad symbols but isn't as heavy-handed
9506 # as -z defs.
9507 no_undefined_flag='${wl}-z,text'
9508 allow_undefined_flag='${wl}-z,nodefs'
9509 archive_cmds_need_lc=no
9510 hardcode_shlibpath_var=no
9511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9512 hardcode_libdir_separator=':'
9513 link_all_deplibs=yes
9514 export_dynamic_flag_spec='${wl}-Bexport'
9515 runpath_var='LD_RUN_PATH'
9516
9517 if test "$GCC" = yes; then
9518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 else
9521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 fi
9524 ;;
9525
9526 uts4*)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 *)
9533 ld_shlibs=no
9534 ;;
9535 esac
9536
9537 if test x$host_vendor = xsni; then
9538 case $host in
9539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9540 export_dynamic_flag_spec='${wl}-Blargedynsym'
9541 ;;
9542 esac
9543 fi
9544 fi
9545
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9547 $as_echo "$ld_shlibs" >&6; }
9548 test "$ld_shlibs" = no && can_build_shared=no
9549
9550 with_gnu_ld=$with_gnu_ld
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566 #
9567 # Do we need to explicitly link libc?
9568 #
9569 case "x$archive_cmds_need_lc" in
9570 x|xyes)
9571 # Assume -lc should be added
9572 archive_cmds_need_lc=yes
9573
9574 if test "$enable_shared" = yes && test "$GCC" = yes; then
9575 case $archive_cmds in
9576 *'~'*)
9577 # FIXME: we may have to deal with multi-command sequences.
9578 ;;
9579 '$CC '*)
9580 # Test whether the compiler implicitly links with -lc since on some
9581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9582 # to ld, don't add -lc before -lgcc.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9585 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 $RM conftest*
9589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9590
9591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9595 test $ac_status = 0; } 2>conftest.err; then
9596 soname=conftest
9597 lib=conftest
9598 libobjs=conftest.$ac_objext
9599 deplibs=
9600 wl=$lt_prog_compiler_wl
9601 pic_flag=$lt_prog_compiler_pic
9602 compiler_flags=-v
9603 linker_flags=-v
9604 verstring=
9605 output_objdir=.
9606 libname=conftest
9607 lt_save_allow_undefined_flag=$allow_undefined_flag
9608 allow_undefined_flag=
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9610 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9611 ac_status=$?
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; }
9614 then
9615 lt_cv_archive_cmds_need_lc=no
9616 else
9617 lt_cv_archive_cmds_need_lc=yes
9618 fi
9619 allow_undefined_flag=$lt_save_allow_undefined_flag
9620 else
9621 cat conftest.err 1>&5
9622 fi
9623 $RM conftest*
9624
9625 fi
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9627 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9628 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9629 ;;
9630 esac
9631 fi
9632 ;;
9633 esac
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9792 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9793
9794 if test "$GCC" = yes; then
9795 case $host_os in
9796 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9797 *) lt_awk_arg="/^libraries:/" ;;
9798 esac
9799 case $host_os in
9800 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9801 *) lt_sed_strip_eq="s,=/,/,g" ;;
9802 esac
9803 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9804 case $lt_search_path_spec in
9805 *\;*)
9806 # if the path contains ";" then we assume it to be the separator
9807 # otherwise default to the standard path separator (i.e. ":") - it is
9808 # assumed that no part of a normal pathname contains ";" but that should
9809 # okay in the real world where ";" in dirpaths is itself problematic.
9810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9811 ;;
9812 *)
9813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9814 ;;
9815 esac
9816 # Ok, now we have the path, separated by spaces, we can step through it
9817 # and add multilib dir if necessary.
9818 lt_tmp_lt_search_path_spec=
9819 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9820 for lt_sys_path in $lt_search_path_spec; do
9821 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9822 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9823 else
9824 test -d "$lt_sys_path" && \
9825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9826 fi
9827 done
9828 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9829 BEGIN {RS=" "; FS="/|\n";} {
9830 lt_foo="";
9831 lt_count=0;
9832 for (lt_i = NF; lt_i > 0; lt_i--) {
9833 if ($lt_i != "" && $lt_i != ".") {
9834 if ($lt_i == "..") {
9835 lt_count++;
9836 } else {
9837 if (lt_count == 0) {
9838 lt_foo="/" $lt_i lt_foo;
9839 } else {
9840 lt_count--;
9841 }
9842 }
9843 }
9844 }
9845 if (lt_foo != "") { lt_freq[lt_foo]++; }
9846 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9847 }'`
9848 # AWK program above erroneously prepends '/' to C:/dos/paths
9849 # for these hosts.
9850 case $host_os in
9851 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9852 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9853 esac
9854 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9855 else
9856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9857 fi
9858 library_names_spec=
9859 libname_spec='lib$name'
9860 soname_spec=
9861 shrext_cmds=".so"
9862 postinstall_cmds=
9863 postuninstall_cmds=
9864 finish_cmds=
9865 finish_eval=
9866 shlibpath_var=
9867 shlibpath_overrides_runpath=unknown
9868 version_type=none
9869 dynamic_linker="$host_os ld.so"
9870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9871 need_lib_prefix=unknown
9872 hardcode_into_libs=no
9873
9874 # when you set need_version to no, make sure it does not cause -set_version
9875 # flags to be left without arguments
9876 need_version=unknown
9877
9878 case $host_os in
9879 aix3*)
9880 version_type=linux
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9882 shlibpath_var=LIBPATH
9883
9884 # AIX 3 has no versioning support, so we append a major version to the name.
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 ;;
9887
9888 aix[4-9]*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 hardcode_into_libs=yes
9893 if test "$host_cpu" = ia64; then
9894 # AIX 5 supports IA64
9895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 else
9898 # With GCC up to 2.95.x, collect2 would create an import file
9899 # for dependence libraries. The import file would start with
9900 # the line `#! .'. This would cause the generated library to
9901 # depend on `.', always an invalid library. This was fixed in
9902 # development snapshots of GCC prior to 3.0.
9903 case $host_os in
9904 aix4 | aix4.[01] | aix4.[01].*)
9905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9906 echo ' yes '
9907 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9908 :
9909 else
9910 can_build_shared=no
9911 fi
9912 ;;
9913 esac
9914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9915 # soname into executable. Probably we can add versioning support to
9916 # collect2, so additional links can be useful in future.
9917 if test "$aix_use_runtimelinking" = yes; then
9918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9919 # instead of lib<name>.a to let people know that these are not
9920 # typical AIX shared libraries.
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 else
9923 # We preserve .a as extension for shared libraries through AIX4.2
9924 # and later when we are not doing run time linking.
9925 library_names_spec='${libname}${release}.a $libname.a'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 fi
9928 shlibpath_var=LIBPATH
9929 fi
9930 ;;
9931
9932 amigaos*)
9933 case $host_cpu in
9934 powerpc)
9935 # Since July 2007 AmigaOS4 officially supports .so libraries.
9936 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 ;;
9939 m68k)
9940 library_names_spec='$libname.ixlibrary $libname.a'
9941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9942 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'
9943 ;;
9944 esac
9945 ;;
9946
9947 beos*)
9948 library_names_spec='${libname}${shared_ext}'
9949 dynamic_linker="$host_os ld.so"
9950 shlibpath_var=LIBRARY_PATH
9951 ;;
9952
9953 bsdi[45]*)
9954 version_type=linux
9955 need_version=no
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9962 # the default ld.so.conf also contains /usr/contrib/lib and
9963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9964 # libtool to hard-code these into programs
9965 ;;
9966
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 version_type=windows
9969 shrext_cmds=".dll"
9970 need_version=no
9971 need_lib_prefix=no
9972
9973 case $GCC,$host_os in
9974 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9975 library_names_spec='$libname.dll.a'
9976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9977 postinstall_cmds='base_file=`basename \${file}`~
9978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9979 dldir=$destdir/`dirname \$dlpath`~
9980 test -d \$dldir || mkdir -p \$dldir~
9981 $install_prog $dir/$dlname \$dldir/$dlname~
9982 chmod a+x \$dldir/$dlname~
9983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9985 fi'
9986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9987 dlpath=$dir/\$dldll~
9988 $RM \$dlpath'
9989 shlibpath_overrides_runpath=yes
9990
9991 case $host_os in
9992 cygwin*)
9993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995
9996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9997 ;;
9998 mingw* | cegcc*)
9999 # MinGW DLLs use traditional 'lib' prefix
10000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10001 ;;
10002 pw32*)
10003 # pw32 DLLs use 'pw' prefix rather than 'lib'
10004 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 ;;
10006 esac
10007 ;;
10008
10009 *)
10010 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10011 ;;
10012 esac
10013 dynamic_linker='Win32 ld.exe'
10014 # FIXME: first we should search . and the directory the executable is in
10015 shlibpath_var=PATH
10016 ;;
10017
10018 darwin* | rhapsody*)
10019 dynamic_linker="$host_os dyld"
10020 version_type=darwin
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10024 soname_spec='${libname}${release}${major}$shared_ext'
10025 shlibpath_overrides_runpath=yes
10026 shlibpath_var=DYLD_LIBRARY_PATH
10027 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10028
10029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10031 ;;
10032
10033 dgux*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 ;;
10041
10042 freebsd* | dragonfly*)
10043 # DragonFly does not have aout. When/if they implement a new
10044 # versioning mechanism, adjust this.
10045 if test -x /usr/bin/objformat; then
10046 objformat=`/usr/bin/objformat`
10047 else
10048 case $host_os in
10049 freebsd[23].*) objformat=aout ;;
10050 *) objformat=elf ;;
10051 esac
10052 fi
10053 version_type=freebsd-$objformat
10054 case $version_type in
10055 freebsd-elf*)
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 need_version=no
10058 need_lib_prefix=no
10059 ;;
10060 freebsd-*)
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10062 need_version=yes
10063 ;;
10064 esac
10065 shlibpath_var=LD_LIBRARY_PATH
10066 case $host_os in
10067 freebsd2.*)
10068 shlibpath_overrides_runpath=yes
10069 ;;
10070 freebsd3.[01]* | freebsdelf3.[01]*)
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 ;;
10074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 ;;
10079 *) # from 4.6 on, and DragonFly
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10082 ;;
10083 esac
10084 ;;
10085
10086 gnu*)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 hardcode_into_libs=yes
10094 ;;
10095
10096 haiku*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 dynamic_linker="$host_os runtime_loader"
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10105 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10106 hardcode_into_libs=yes
10107 ;;
10108
10109 hpux9* | hpux10* | hpux11*)
10110 # Give a soname corresponding to the major version so that dld.sl refuses to
10111 # link against other versions.
10112 version_type=sunos
10113 need_lib_prefix=no
10114 need_version=no
10115 case $host_cpu in
10116 ia64*)
10117 shrext_cmds='.so'
10118 hardcode_into_libs=yes
10119 dynamic_linker="$host_os dld.so"
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 if test "X$HPUX_IA64_MODE" = X32; then
10125 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10126 else
10127 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10128 fi
10129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10130 ;;
10131 hppa*64*)
10132 shrext_cmds='.sl'
10133 hardcode_into_libs=yes
10134 dynamic_linker="$host_os dld.sl"
10135 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10141 ;;
10142 *)
10143 shrext_cmds='.sl'
10144 dynamic_linker="$host_os dld.sl"
10145 shlibpath_var=SHLIB_PATH
10146 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 ;;
10150 esac
10151 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10152 postinstall_cmds='chmod 555 $lib'
10153 # or fails outright, so override atomically:
10154 install_override_mode=555
10155 ;;
10156
10157 interix[3-9]*)
10158 version_type=linux
10159 need_lib_prefix=no
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=no
10166 hardcode_into_libs=yes
10167 ;;
10168
10169 irix5* | irix6* | nonstopux*)
10170 case $host_os in
10171 nonstopux*) version_type=nonstopux ;;
10172 *)
10173 if test "$lt_cv_prog_gnu_ld" = yes; then
10174 version_type=linux
10175 else
10176 version_type=irix
10177 fi ;;
10178 esac
10179 need_lib_prefix=no
10180 need_version=no
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10183 case $host_os in
10184 irix5* | nonstopux*)
10185 libsuff= shlibsuff=
10186 ;;
10187 *)
10188 case $LD in # libtool.m4 will add one of these switches to LD
10189 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10190 libsuff= shlibsuff= libmagic=32-bit;;
10191 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10192 libsuff=32 shlibsuff=N32 libmagic=N32;;
10193 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10194 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10195 *) libsuff= shlibsuff= libmagic=never-match;;
10196 esac
10197 ;;
10198 esac
10199 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10200 shlibpath_overrides_runpath=no
10201 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10202 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10203 hardcode_into_libs=yes
10204 ;;
10205
10206 # No shared lib support for Linux oldld, aout, or coff.
10207 linux*oldld* | linux*aout* | linux*coff*)
10208 dynamic_linker=no
10209 ;;
10210
10211 # This must be Linux ELF.
10212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=no
10221
10222 # Some binutils ld are patched to set DT_RUNPATH
10223 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 lt_cv_shlibpath_overrides_runpath=no
10227 save_LDFLAGS=$LDFLAGS
10228 save_libdir=$libdir
10229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233
10234 int
10235 main ()
10236 {
10237
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10244 lt_cv_shlibpath_overrides_runpath=yes
10245 fi
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LDFLAGS=$save_LDFLAGS
10250 libdir=$save_libdir
10251
10252 fi
10253
10254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10255
10256 # This implies no fast_install, which is unacceptable.
10257 # Some rework will be needed to allow for fast_install
10258 # before this can be enabled.
10259 hardcode_into_libs=yes
10260
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 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' ' '`
10264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10265 fi
10266
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10274 ;;
10275
10276 netbsd*)
10277 version_type=sunos
10278 need_lib_prefix=no
10279 need_version=no
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10284 else
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10288 fi
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
10293
10294 newsos6)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 ;;
10300
10301 *nto* | *qnx*)
10302 version_type=qnx
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10311 ;;
10312
10313 openbsd*)
10314 version_type=sunos
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10316 need_lib_prefix=no
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318 case $host_os in
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10321 esac
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 case $host_os in
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10329 ;;
10330 *)
10331 shlibpath_overrides_runpath=yes
10332 ;;
10333 esac
10334 else
10335 shlibpath_overrides_runpath=yes
10336 fi
10337 ;;
10338
10339 os2*)
10340 libname_spec='$name'
10341 shrext_cmds=".dll"
10342 need_lib_prefix=no
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10346 ;;
10347
10348 osf3* | osf4* | osf5*)
10349 version_type=osf
10350 need_lib_prefix=no
10351 need_version=no
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 ;;
10358
10359 rdos*)
10360 dynamic_linker=no
10361 ;;
10362
10363 solaris*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10374 ;;
10375
10376 sunos4*)
10377 version_type=sunos
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10383 need_lib_prefix=no
10384 fi
10385 need_version=yes
10386 ;;
10387
10388 sysv4 | sysv4.3*)
10389 version_type=linux
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10394 sni)
10395 shlibpath_overrides_runpath=no
10396 need_lib_prefix=no
10397 runpath_var=LD_RUN_PATH
10398 ;;
10399 siemens)
10400 need_lib_prefix=no
10401 ;;
10402 motorola)
10403 need_lib_prefix=no
10404 need_version=no
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407 ;;
10408 esac
10409 ;;
10410
10411 sysv4*MP*)
10412 if test -d /usr/nec ;then
10413 version_type=linux
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 fi
10418 ;;
10419
10420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10431 else
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10433 case $host_os in
10434 sco3.2v5*)
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10436 ;;
10437 esac
10438 fi
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10440 ;;
10441
10442 tpf*)
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452
10453 uts4*)
10454 version_type=linux
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 ;;
10459
10460 *)
10461 dynamic_linker=no
10462 ;;
10463 esac
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10465 $as_echo "$dynamic_linker" >&6; }
10466 test "$dynamic_linker" = no && can_build_shared=no
10467
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10471 fi
10472
10473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10475 fi
10476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10573 hardcode_action=
10574 if test -n "$hardcode_libdir_flag_spec" ||
10575 test -n "$runpath_var" ||
10576 test "X$hardcode_automatic" = "Xyes" ; then
10577
10578 # We can hardcode non-existent directories.
10579 if test "$hardcode_direct" != no &&
10580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10581 # have to relink, otherwise we might link with an installed library
10582 # when we should be linking with a yet-to-be-installed one
10583 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10584 test "$hardcode_minus_L" != no; then
10585 # Linking always hardcodes the temporary library directory.
10586 hardcode_action=relink
10587 else
10588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10589 hardcode_action=immediate
10590 fi
10591 else
10592 # We cannot hardcode anything, or else we can only hardcode existing
10593 # directories.
10594 hardcode_action=unsupported
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10597 $as_echo "$hardcode_action" >&6; }
10598
10599 if test "$hardcode_action" = relink ||
10600 test "$inherit_rpath" = yes; then
10601 # Fast installation is not supported
10602 enable_fast_install=no
10603 elif test "$shlibpath_overrides_runpath" = yes ||
10604 test "$enable_shared" = no; then
10605 # Fast installation is not necessary
10606 enable_fast_install=needless
10607 fi
10608
10609
10610
10611
10612
10613
10614 if test "x$enable_dlopen" != xyes; then
10615 enable_dlopen=unknown
10616 enable_dlopen_self=unknown
10617 enable_dlopen_self_static=unknown
10618 else
10619 lt_cv_dlopen=no
10620 lt_cv_dlopen_libs=
10621
10622 case $host_os in
10623 beos*)
10624 lt_cv_dlopen="load_add_on"
10625 lt_cv_dlopen_libs=
10626 lt_cv_dlopen_self=yes
10627 ;;
10628
10629 mingw* | pw32* | cegcc*)
10630 lt_cv_dlopen="LoadLibrary"
10631 lt_cv_dlopen_libs=
10632 ;;
10633
10634 cygwin*)
10635 lt_cv_dlopen="dlopen"
10636 lt_cv_dlopen_libs=
10637 ;;
10638
10639 darwin*)
10640 # if libdl is installed we need to link against it
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldl $LIBS"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dlopen ();
10658 int
10659 main ()
10660 {
10661 return dlopen ();
10662 ;
10663 return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_lib_dl_dlopen=yes
10668 else
10669 ac_cv_lib_dl_dlopen=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10677 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10679 else
10680
10681 lt_cv_dlopen="dyld"
10682 lt_cv_dlopen_libs=
10683 lt_cv_dlopen_self=yes
10684
10685 fi
10686
10687 ;;
10688
10689 *)
10690 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10691 if test "x$ac_cv_func_shl_load" = x""yes; then :
10692 lt_cv_dlopen="shl_load"
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10695 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10696 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldld $LIBS"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char shl_load ();
10711 int
10712 main ()
10713 {
10714 return shl_load ();
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 ac_cv_lib_dld_shl_load=yes
10721 else
10722 ac_cv_lib_dld_shl_load=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10729 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10730 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10731 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10732 else
10733 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10734 if test "x$ac_cv_func_dlopen" = x""yes; then :
10735 lt_cv_dlopen="dlopen"
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10738 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldl $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char dlopen ();
10754 int
10755 main ()
10756 {
10757 return dlopen ();
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_lib_dl_dlopen=yes
10764 else
10765 ac_cv_lib_dl_dlopen=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10772 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10773 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10777 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lsvld $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char dlopen ();
10793 int
10794 main ()
10795 {
10796 return dlopen ();
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 ac_cv_lib_svld_dlopen=yes
10803 else
10804 ac_cv_lib_svld_dlopen=no
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10809 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10811 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10812 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10816 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldld $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char dld_link ();
10832 int
10833 main ()
10834 {
10835 return dld_link ();
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 ac_cv_lib_dld_dld_link=yes
10842 else
10843 ac_cv_lib_dld_dld_link=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10848 fi
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10850 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10851 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10852 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10853 fi
10854
10855
10856 fi
10857
10858
10859 fi
10860
10861
10862 fi
10863
10864
10865 fi
10866
10867
10868 fi
10869
10870 ;;
10871 esac
10872
10873 if test "x$lt_cv_dlopen" != xno; then
10874 enable_dlopen=yes
10875 else
10876 enable_dlopen=no
10877 fi
10878
10879 case $lt_cv_dlopen in
10880 dlopen)
10881 save_CPPFLAGS="$CPPFLAGS"
10882 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10883
10884 save_LDFLAGS="$LDFLAGS"
10885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10886
10887 save_LIBS="$LIBS"
10888 LIBS="$lt_cv_dlopen_libs $LIBS"
10889
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10891 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10892 if test "${lt_cv_dlopen_self+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 if test "$cross_compiling" = yes; then :
10896 lt_cv_dlopen_self=cross
10897 else
10898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10899 lt_status=$lt_dlunknown
10900 cat > conftest.$ac_ext <<_LT_EOF
10901 #line 10901 "configure"
10902 #include "confdefs.h"
10903
10904 #if HAVE_DLFCN_H
10905 #include <dlfcn.h>
10906 #endif
10907
10908 #include <stdio.h>
10909
10910 #ifdef RTLD_GLOBAL
10911 # define LT_DLGLOBAL RTLD_GLOBAL
10912 #else
10913 # ifdef DL_GLOBAL
10914 # define LT_DLGLOBAL DL_GLOBAL
10915 # else
10916 # define LT_DLGLOBAL 0
10917 # endif
10918 #endif
10919
10920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10921 find out it does not work in some platform. */
10922 #ifndef LT_DLLAZY_OR_NOW
10923 # ifdef RTLD_LAZY
10924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10925 # else
10926 # ifdef DL_LAZY
10927 # define LT_DLLAZY_OR_NOW DL_LAZY
10928 # else
10929 # ifdef RTLD_NOW
10930 # define LT_DLLAZY_OR_NOW RTLD_NOW
10931 # else
10932 # ifdef DL_NOW
10933 # define LT_DLLAZY_OR_NOW DL_NOW
10934 # else
10935 # define LT_DLLAZY_OR_NOW 0
10936 # endif
10937 # endif
10938 # endif
10939 # endif
10940 #endif
10941
10942 /* When -fvisbility=hidden is used, assume the code has been annotated
10943 correspondingly for the symbols needed. */
10944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10945 void fnord () __attribute__((visibility("default")));
10946 #endif
10947
10948 void fnord () { int i=42; }
10949 int main ()
10950 {
10951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10952 int status = $lt_dlunknown;
10953
10954 if (self)
10955 {
10956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10957 else
10958 {
10959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 else puts (dlerror ());
10961 }
10962 /* dlclose (self); */
10963 }
10964 else
10965 puts (dlerror ());
10966
10967 return status;
10968 }
10969 _LT_EOF
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10971 (eval $ac_link) 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10975 (./conftest; exit; ) >&5 2>/dev/null
10976 lt_status=$?
10977 case x$lt_status in
10978 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10979 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10980 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10981 esac
10982 else :
10983 # compilation failed
10984 lt_cv_dlopen_self=no
10985 fi
10986 fi
10987 rm -fr conftest*
10988
10989
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10992 $as_echo "$lt_cv_dlopen_self" >&6; }
10993
10994 if test "x$lt_cv_dlopen_self" = xyes; then
10995 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10997 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10998 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 if test "$cross_compiling" = yes; then :
11002 lt_cv_dlopen_self_static=cross
11003 else
11004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11005 lt_status=$lt_dlunknown
11006 cat > conftest.$ac_ext <<_LT_EOF
11007 #line 11007 "configure"
11008 #include "confdefs.h"
11009
11010 #if HAVE_DLFCN_H
11011 #include <dlfcn.h>
11012 #endif
11013
11014 #include <stdio.h>
11015
11016 #ifdef RTLD_GLOBAL
11017 # define LT_DLGLOBAL RTLD_GLOBAL
11018 #else
11019 # ifdef DL_GLOBAL
11020 # define LT_DLGLOBAL DL_GLOBAL
11021 # else
11022 # define LT_DLGLOBAL 0
11023 # endif
11024 #endif
11025
11026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11027 find out it does not work in some platform. */
11028 #ifndef LT_DLLAZY_OR_NOW
11029 # ifdef RTLD_LAZY
11030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11031 # else
11032 # ifdef DL_LAZY
11033 # define LT_DLLAZY_OR_NOW DL_LAZY
11034 # else
11035 # ifdef RTLD_NOW
11036 # define LT_DLLAZY_OR_NOW RTLD_NOW
11037 # else
11038 # ifdef DL_NOW
11039 # define LT_DLLAZY_OR_NOW DL_NOW
11040 # else
11041 # define LT_DLLAZY_OR_NOW 0
11042 # endif
11043 # endif
11044 # endif
11045 # endif
11046 #endif
11047
11048 /* When -fvisbility=hidden is used, assume the code has been annotated
11049 correspondingly for the symbols needed. */
11050 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11051 void fnord () __attribute__((visibility("default")));
11052 #endif
11053
11054 void fnord () { int i=42; }
11055 int main ()
11056 {
11057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11058 int status = $lt_dlunknown;
11059
11060 if (self)
11061 {
11062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11063 else
11064 {
11065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 else puts (dlerror ());
11067 }
11068 /* dlclose (self); */
11069 }
11070 else
11071 puts (dlerror ());
11072
11073 return status;
11074 }
11075 _LT_EOF
11076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11077 (eval $ac_link) 2>&5
11078 ac_status=$?
11079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11081 (./conftest; exit; ) >&5 2>/dev/null
11082 lt_status=$?
11083 case x$lt_status in
11084 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11085 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11086 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11087 esac
11088 else :
11089 # compilation failed
11090 lt_cv_dlopen_self_static=no
11091 fi
11092 fi
11093 rm -fr conftest*
11094
11095
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11098 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11099 fi
11100
11101 CPPFLAGS="$save_CPPFLAGS"
11102 LDFLAGS="$save_LDFLAGS"
11103 LIBS="$save_LIBS"
11104 ;;
11105 esac
11106
11107 case $lt_cv_dlopen_self in
11108 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11109 *) enable_dlopen_self=unknown ;;
11110 esac
11111
11112 case $lt_cv_dlopen_self_static in
11113 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11114 *) enable_dlopen_self_static=unknown ;;
11115 esac
11116 fi
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134 striplib=
11135 old_striplib=
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11137 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11138 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142 $as_echo "yes" >&6; }
11143 else
11144 # FIXME - insert some real tests, host_os isn't really good enough
11145 case $host_os in
11146 darwin*)
11147 if test -n "$STRIP" ; then
11148 striplib="$STRIP -x"
11149 old_striplib="$STRIP -S"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156 ;;
11157 *)
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 ;;
11161 esac
11162 fi
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175 # Report which library types will actually be built
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11177 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11179 $as_echo "$can_build_shared" >&6; }
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11182 $as_echo_n "checking whether to build shared libraries... " >&6; }
11183 test "$can_build_shared" = "no" && enable_shared=no
11184
11185 # On AIX, shared libraries and static libraries use the same namespace, and
11186 # are all built from PIC.
11187 case $host_os in
11188 aix3*)
11189 test "$enable_shared" = yes && enable_static=no
11190 if test -n "$RANLIB"; then
11191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11192 postinstall_cmds='$RANLIB $lib'
11193 fi
11194 ;;
11195
11196 aix[4-9]*)
11197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11198 test "$enable_shared" = yes && enable_static=no
11199 fi
11200 ;;
11201 esac
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11203 $as_echo "$enable_shared" >&6; }
11204
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11206 $as_echo_n "checking whether to build static libraries... " >&6; }
11207 # Make sure either enable_shared or enable_static is yes.
11208 test "$enable_shared" = yes || enable_static=yes
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11210 $as_echo "$enable_static" >&6; }
11211
11212
11213
11214
11215 fi
11216 ac_ext=c
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11221
11222 CC="$lt_save_CC"
11223
11224 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11225 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11226 (test "X$CXX" != "Xg++"))) ; then
11227 ac_ext=cpp
11228 ac_cpp='$CXXCPP $CPPFLAGS'
11229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11233 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11234 if test -z "$CXXCPP"; then
11235 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 # Double quotes because CXXCPP needs to be expanded
11239 for CXXCPP in "$CXX -E" "/lib/cpp"
11240 do
11241 ac_preproc_ok=false
11242 for ac_cxx_preproc_warn_flag in '' yes
11243 do
11244 # Use a header file that comes with gcc, so configuring glibc
11245 # with a fresh cross-compiler works.
11246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 # <limits.h> exists even on freestanding compilers.
11248 # On the NeXT, cc -E runs the code through the compiler's parser,
11249 # not just through cpp. "Syntax error" is here to catch this case.
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 #ifdef __STDC__
11253 # include <limits.h>
11254 #else
11255 # include <assert.h>
11256 #endif
11257 Syntax error
11258 _ACEOF
11259 if ac_fn_cxx_try_cpp "$LINENO"; then :
11260
11261 else
11262 # Broken: fails on valid input.
11263 continue
11264 fi
11265 rm -f conftest.err conftest.$ac_ext
11266
11267 # OK, works on sane cases. Now check whether nonexistent headers
11268 # can be detected and how.
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271 #include <ac_nonexistent.h>
11272 _ACEOF
11273 if ac_fn_cxx_try_cpp "$LINENO"; then :
11274 # Broken: success on invalid input.
11275 continue
11276 else
11277 # Passes both tests.
11278 ac_preproc_ok=:
11279 break
11280 fi
11281 rm -f conftest.err conftest.$ac_ext
11282
11283 done
11284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11285 rm -f conftest.err conftest.$ac_ext
11286 if $ac_preproc_ok; then :
11287 break
11288 fi
11289
11290 done
11291 ac_cv_prog_CXXCPP=$CXXCPP
11292
11293 fi
11294 CXXCPP=$ac_cv_prog_CXXCPP
11295 else
11296 ac_cv_prog_CXXCPP=$CXXCPP
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11299 $as_echo "$CXXCPP" >&6; }
11300 ac_preproc_ok=false
11301 for ac_cxx_preproc_warn_flag in '' yes
11302 do
11303 # Use a header file that comes with gcc, so configuring glibc
11304 # with a fresh cross-compiler works.
11305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 # <limits.h> exists even on freestanding compilers.
11307 # On the NeXT, cc -E runs the code through the compiler's parser,
11308 # not just through cpp. "Syntax error" is here to catch this case.
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311 #ifdef __STDC__
11312 # include <limits.h>
11313 #else
11314 # include <assert.h>
11315 #endif
11316 Syntax error
11317 _ACEOF
11318 if ac_fn_cxx_try_cpp "$LINENO"; then :
11319
11320 else
11321 # Broken: fails on valid input.
11322 continue
11323 fi
11324 rm -f conftest.err conftest.$ac_ext
11325
11326 # OK, works on sane cases. Now check whether nonexistent headers
11327 # can be detected and how.
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #include <ac_nonexistent.h>
11331 _ACEOF
11332 if ac_fn_cxx_try_cpp "$LINENO"; then :
11333 # Broken: success on invalid input.
11334 continue
11335 else
11336 # Passes both tests.
11337 ac_preproc_ok=:
11338 break
11339 fi
11340 rm -f conftest.err conftest.$ac_ext
11341
11342 done
11343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11344 rm -f conftest.err conftest.$ac_ext
11345 if $ac_preproc_ok; then :
11346
11347 else
11348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11350 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11351 See \`config.log' for more details." "$LINENO" 5; }
11352 fi
11353
11354 ac_ext=c
11355 ac_cpp='$CPP $CPPFLAGS'
11356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11359
11360 else
11361 _lt_caught_CXX_error=yes
11362 fi
11363
11364 ac_ext=cpp
11365 ac_cpp='$CXXCPP $CPPFLAGS'
11366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11369
11370 archive_cmds_need_lc_CXX=no
11371 allow_undefined_flag_CXX=
11372 always_export_symbols_CXX=no
11373 archive_expsym_cmds_CXX=
11374 compiler_needs_object_CXX=no
11375 export_dynamic_flag_spec_CXX=
11376 hardcode_direct_CXX=no
11377 hardcode_direct_absolute_CXX=no
11378 hardcode_libdir_flag_spec_CXX=
11379 hardcode_libdir_flag_spec_ld_CXX=
11380 hardcode_libdir_separator_CXX=
11381 hardcode_minus_L_CXX=no
11382 hardcode_shlibpath_var_CXX=unsupported
11383 hardcode_automatic_CXX=no
11384 inherit_rpath_CXX=no
11385 module_cmds_CXX=
11386 module_expsym_cmds_CXX=
11387 link_all_deplibs_CXX=unknown
11388 old_archive_cmds_CXX=$old_archive_cmds
11389 reload_flag_CXX=$reload_flag
11390 reload_cmds_CXX=$reload_cmds
11391 no_undefined_flag_CXX=
11392 whole_archive_flag_spec_CXX=
11393 enable_shared_with_static_runtimes_CXX=no
11394
11395 # Source file extension for C++ test sources.
11396 ac_ext=cpp
11397
11398 # Object file extension for compiled C++ test sources.
11399 objext=o
11400 objext_CXX=$objext
11401
11402 # No sense in running all these tests if we already determined that
11403 # the CXX compiler isn't working. Some variables (like enable_shared)
11404 # are currently assumed to apply to all compilers on this platform,
11405 # and will be corrupted by setting them based on a non-working compiler.
11406 if test "$_lt_caught_CXX_error" != yes; then
11407 # Code to be used in simple compile tests
11408 lt_simple_compile_test_code="int some_variable = 0;"
11409
11410 # Code to be used in simple link tests
11411 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11412
11413 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11414
11415
11416
11417
11418
11419
11420 # If no C compiler was specified, use CC.
11421 LTCC=${LTCC-"$CC"}
11422
11423 # If no C compiler flags were specified, use CFLAGS.
11424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11425
11426 # Allow CC to be a program name with arguments.
11427 compiler=$CC
11428
11429
11430 # save warnings/boilerplate of simple test code
11431 ac_outfile=conftest.$ac_objext
11432 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11434 _lt_compiler_boilerplate=`cat conftest.err`
11435 $RM conftest*
11436
11437 ac_outfile=conftest.$ac_objext
11438 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11440 _lt_linker_boilerplate=`cat conftest.err`
11441 $RM -r conftest*
11442
11443
11444 # Allow CC to be a program name with arguments.
11445 lt_save_CC=$CC
11446 lt_save_LD=$LD
11447 lt_save_GCC=$GCC
11448 GCC=$GXX
11449 lt_save_with_gnu_ld=$with_gnu_ld
11450 lt_save_path_LD=$lt_cv_path_LD
11451 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11452 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11453 else
11454 $as_unset lt_cv_prog_gnu_ld
11455 fi
11456 if test -n "${lt_cv_path_LDCXX+set}"; then
11457 lt_cv_path_LD=$lt_cv_path_LDCXX
11458 else
11459 $as_unset lt_cv_path_LD
11460 fi
11461 test -z "${LDCXX+set}" || LD=$LDCXX
11462 CC=${CXX-"c++"}
11463 compiler=$CC
11464 compiler_CXX=$CC
11465 for cc_temp in $compiler""; do
11466 case $cc_temp in
11467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11469 \-*) ;;
11470 *) break;;
11471 esac
11472 done
11473 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11474
11475
11476 if test -n "$compiler"; then
11477 # We don't want -fno-exception when compiling C++ code, so set the
11478 # no_builtin_flag separately
11479 if test "$GXX" = yes; then
11480 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11481 else
11482 lt_prog_compiler_no_builtin_flag_CXX=
11483 fi
11484
11485 if test "$GXX" = yes; then
11486 # Set up default GNU C++ configuration
11487
11488
11489
11490 # Check whether --with-gnu-ld was given.
11491 if test "${with_gnu_ld+set}" = set; then :
11492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11493 else
11494 with_gnu_ld=no
11495 fi
11496
11497 ac_prog=ld
11498 if test "$GCC" = yes; then
11499 # Check if gcc -print-prog-name=ld gives a path.
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11501 $as_echo_n "checking for ld used by $CC... " >&6; }
11502 case $host in
11503 *-*-mingw*)
11504 # gcc leaves a trailing carriage return which upsets mingw
11505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11506 *)
11507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11508 esac
11509 case $ac_prog in
11510 # Accept absolute paths.
11511 [\\/]* | ?:[\\/]*)
11512 re_direlt='/[^/][^/]*/\.\./'
11513 # Canonicalize the pathname of ld
11514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11517 done
11518 test -z "$LD" && LD="$ac_prog"
11519 ;;
11520 "")
11521 # If it fails, then pretend we aren't using GCC.
11522 ac_prog=ld
11523 ;;
11524 *)
11525 # If it is relative, then search for the first ld in PATH.
11526 with_gnu_ld=unknown
11527 ;;
11528 esac
11529 elif test "$with_gnu_ld" = yes; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11531 $as_echo_n "checking for GNU ld... " >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11534 $as_echo_n "checking for non-GNU ld... " >&6; }
11535 fi
11536 if test "${lt_cv_path_LD+set}" = set; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 if test -z "$LD"; then
11540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11541 for ac_dir in $PATH; do
11542 IFS="$lt_save_ifs"
11543 test -z "$ac_dir" && ac_dir=.
11544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11545 lt_cv_path_LD="$ac_dir/$ac_prog"
11546 # Check to see if the program is GNU ld. I'd rather use --version,
11547 # but apparently some variants of GNU ld only accept -v.
11548 # Break only if it was the GNU/non-GNU ld that we prefer.
11549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11550 *GNU* | *'with BFD'*)
11551 test "$with_gnu_ld" != no && break
11552 ;;
11553 *)
11554 test "$with_gnu_ld" != yes && break
11555 ;;
11556 esac
11557 fi
11558 done
11559 IFS="$lt_save_ifs"
11560 else
11561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11562 fi
11563 fi
11564
11565 LD="$lt_cv_path_LD"
11566 if test -n "$LD"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11568 $as_echo "$LD" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11573 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11575 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11576 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11580 case `$LD -v 2>&1 </dev/null` in
11581 *GNU* | *'with BFD'*)
11582 lt_cv_prog_gnu_ld=yes
11583 ;;
11584 *)
11585 lt_cv_prog_gnu_ld=no
11586 ;;
11587 esac
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11590 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11591 with_gnu_ld=$lt_cv_prog_gnu_ld
11592
11593
11594
11595
11596
11597
11598
11599 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11600 # archiving commands below assume that GNU ld is being used.
11601 if test "$with_gnu_ld" = yes; then
11602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 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'
11604
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11607
11608 # If archive_cmds runs LD, not CC, wlarc should be empty
11609 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11610 # investigate it a little bit more. (MM)
11611 wlarc='${wl}'
11612
11613 # ancient GNU ld didn't support --whole-archive et. al.
11614 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11615 $GREP 'no-whole-archive' > /dev/null; then
11616 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11617 else
11618 whole_archive_flag_spec_CXX=
11619 fi
11620 else
11621 with_gnu_ld=no
11622 wlarc=
11623
11624 # A generic and very simple default shared library creation
11625 # command for GNU C++ for the case where it uses the native
11626 # linker, instead of GNU ld. If possible, this setting should
11627 # overridden to take advantage of the native linker features on
11628 # the platform it is being used on.
11629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11630 fi
11631
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11636
11637 else
11638 GXX=no
11639 with_gnu_ld=no
11640 wlarc=
11641 fi
11642
11643 # PORTME: fill in a description of your system's C++ link characteristics
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11645 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11646 ld_shlibs_CXX=yes
11647 case $host_os in
11648 aix3*)
11649 # FIXME: insert proper C++ library support
11650 ld_shlibs_CXX=no
11651 ;;
11652 aix[4-9]*)
11653 if test "$host_cpu" = ia64; then
11654 # On IA64, the linker does run time linking by default, so we don't
11655 # have to do anything special.
11656 aix_use_runtimelinking=no
11657 exp_sym_flag='-Bexport'
11658 no_entry_flag=""
11659 else
11660 aix_use_runtimelinking=no
11661
11662 # Test if we are trying to use run time linking or normal
11663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11664 # need to do runtime linking.
11665 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11666 for ld_flag in $LDFLAGS; do
11667 case $ld_flag in
11668 *-brtl*)
11669 aix_use_runtimelinking=yes
11670 break
11671 ;;
11672 esac
11673 done
11674 ;;
11675 esac
11676
11677 exp_sym_flag='-bexport'
11678 no_entry_flag='-bnoentry'
11679 fi
11680
11681 # When large executables or shared objects are built, AIX ld can
11682 # have problems creating the table of contents. If linking a library
11683 # or program results in "error TOC overflow" add -mminimal-toc to
11684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11686
11687 archive_cmds_CXX=''
11688 hardcode_direct_CXX=yes
11689 hardcode_direct_absolute_CXX=yes
11690 hardcode_libdir_separator_CXX=':'
11691 link_all_deplibs_CXX=yes
11692 file_list_spec_CXX='${wl}-f,'
11693
11694 if test "$GXX" = yes; then
11695 case $host_os in aix4.[012]|aix4.[012].*)
11696 # We only want to do this on AIX 4.2 and lower, the check
11697 # below for broken collect2 doesn't work under 4.3+
11698 collect2name=`${CC} -print-prog-name=collect2`
11699 if test -f "$collect2name" &&
11700 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11701 then
11702 # We have reworked collect2
11703 :
11704 else
11705 # We have old collect2
11706 hardcode_direct_CXX=unsupported
11707 # It fails to find uninstalled libraries when the uninstalled
11708 # path is not listed in the libpath. Setting hardcode_minus_L
11709 # to unsupported forces relinking
11710 hardcode_minus_L_CXX=yes
11711 hardcode_libdir_flag_spec_CXX='-L$libdir'
11712 hardcode_libdir_separator_CXX=
11713 fi
11714 esac
11715 shared_flag='-shared'
11716 if test "$aix_use_runtimelinking" = yes; then
11717 shared_flag="$shared_flag "'${wl}-G'
11718 fi
11719 else
11720 # not using gcc
11721 if test "$host_cpu" = ia64; then
11722 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11723 # chokes on -Wl,-G. The following line is correct:
11724 shared_flag='-G'
11725 else
11726 if test "$aix_use_runtimelinking" = yes; then
11727 shared_flag='${wl}-G'
11728 else
11729 shared_flag='${wl}-bM:SRE'
11730 fi
11731 fi
11732 fi
11733
11734 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11735 # It seems that -bexpall does not export symbols beginning with
11736 # underscore (_), so it is better to generate a list of symbols to
11737 # export.
11738 always_export_symbols_CXX=yes
11739 if test "$aix_use_runtimelinking" = yes; then
11740 # Warning - without using the other runtime loading flags (-brtl),
11741 # -berok will link without error, but may produce a broken library.
11742 allow_undefined_flag_CXX='-berok'
11743 # Determine the default libpath from the value encoded in an empty
11744 # executable.
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747
11748 int
11749 main ()
11750 {
11751
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 if ac_fn_cxx_try_link "$LINENO"; then :
11757
11758 lt_aix_libpath_sed='
11759 /Import File Strings/,/^$/ {
11760 /^0/ {
11761 s/^0 *\(.*\)$/\1/
11762 p
11763 }
11764 }'
11765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 # Check for a 64-bit object if we didn't find anything.
11767 if test -z "$aix_libpath"; then
11768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11769 fi
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11774
11775 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11776
11777 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"
11778 else
11779 if test "$host_cpu" = ia64; then
11780 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11781 allow_undefined_flag_CXX="-z nodefs"
11782 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"
11783 else
11784 # Determine the default libpath from the value encoded in an
11785 # empty executable.
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11788
11789 int
11790 main ()
11791 {
11792
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_cxx_try_link "$LINENO"; then :
11798
11799 lt_aix_libpath_sed='
11800 /Import File Strings/,/^$/ {
11801 /^0/ {
11802 s/^0 *\(.*\)$/\1/
11803 p
11804 }
11805 }'
11806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11807 # Check for a 64-bit object if we didn't find anything.
11808 if test -z "$aix_libpath"; then
11809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810 fi
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11815
11816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11817 # Warning - without using the other run time loading flags,
11818 # -berok will link without error, but may produce a broken library.
11819 no_undefined_flag_CXX=' ${wl}-bernotok'
11820 allow_undefined_flag_CXX=' ${wl}-berok'
11821 if test "$with_gnu_ld" = yes; then
11822 # We only use this code for GNU lds that support --whole-archive.
11823 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11824 else
11825 # Exported symbols can be pulled into shared objects from archives
11826 whole_archive_flag_spec_CXX='$convenience'
11827 fi
11828 archive_cmds_need_lc_CXX=yes
11829 # This is similar to how AIX traditionally builds its shared
11830 # libraries.
11831 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'
11832 fi
11833 fi
11834 ;;
11835
11836 beos*)
11837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11838 allow_undefined_flag_CXX=unsupported
11839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11840 # support --undefined. This deserves some investigation. FIXME
11841 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11842 else
11843 ld_shlibs_CXX=no
11844 fi
11845 ;;
11846
11847 chorus*)
11848 case $cc_basename in
11849 *)
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 esac
11854 ;;
11855
11856 cygwin* | mingw* | pw32* | cegcc*)
11857 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11858 # as there is no search path for DLLs.
11859 hardcode_libdir_flag_spec_CXX='-L$libdir'
11860 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11861 allow_undefined_flag_CXX=unsupported
11862 always_export_symbols_CXX=no
11863 enable_shared_with_static_runtimes_CXX=yes
11864
11865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11866 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'
11867 # If the export-symbols file already is a .def file (1st line
11868 # is EXPORTS), use it as is; otherwise, prepend...
11869 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11870 cp $export_symbols $output_objdir/$soname.def;
11871 else
11872 echo EXPORTS > $output_objdir/$soname.def;
11873 cat $export_symbols >> $output_objdir/$soname.def;
11874 fi~
11875 $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'
11876 else
11877 ld_shlibs_CXX=no
11878 fi
11879 ;;
11880 darwin* | rhapsody*)
11881
11882
11883 archive_cmds_need_lc_CXX=no
11884 hardcode_direct_CXX=no
11885 hardcode_automatic_CXX=yes
11886 hardcode_shlibpath_var_CXX=unsupported
11887 if test "$lt_cv_ld_force_load" = "yes"; then
11888 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\"`'
11889 else
11890 whole_archive_flag_spec_CXX=''
11891 fi
11892 link_all_deplibs_CXX=yes
11893 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11894 case $cc_basename in
11895 ifort*) _lt_dar_can_shared=yes ;;
11896 *) _lt_dar_can_shared=$GCC ;;
11897 esac
11898 if test "$_lt_dar_can_shared" = "yes"; then
11899 output_verbose_link_cmd=func_echo_all
11900 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}"
11901 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11902 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}"
11903 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}"
11904 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11905 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}"
11906 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}"
11907 fi
11908
11909 else
11910 ld_shlibs_CXX=no
11911 fi
11912
11913 ;;
11914
11915 dgux*)
11916 case $cc_basename in
11917 ec++*)
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11920 ;;
11921 ghcx*)
11922 # Green Hills C++ Compiler
11923 # FIXME: insert proper C++ library support
11924 ld_shlibs_CXX=no
11925 ;;
11926 *)
11927 # FIXME: insert proper C++ library support
11928 ld_shlibs_CXX=no
11929 ;;
11930 esac
11931 ;;
11932
11933 freebsd2.*)
11934 # C++ shared libraries reported to be fairly broken before
11935 # switch to ELF
11936 ld_shlibs_CXX=no
11937 ;;
11938
11939 freebsd-elf*)
11940 archive_cmds_need_lc_CXX=no
11941 ;;
11942
11943 freebsd* | dragonfly*)
11944 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11945 # conventions
11946 ld_shlibs_CXX=yes
11947 ;;
11948
11949 gnu*)
11950 ;;
11951
11952 haiku*)
11953 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11954 link_all_deplibs_CXX=yes
11955 ;;
11956
11957 hpux9*)
11958 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11959 hardcode_libdir_separator_CXX=:
11960 export_dynamic_flag_spec_CXX='${wl}-E'
11961 hardcode_direct_CXX=yes
11962 hardcode_minus_L_CXX=yes # Not in the search PATH,
11963 # but as the default
11964 # location of the library.
11965
11966 case $cc_basename in
11967 CC*)
11968 # FIXME: insert proper C++ library support
11969 ld_shlibs_CXX=no
11970 ;;
11971 aCC*)
11972 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'
11973 # Commands to make compiler produce verbose output that lists
11974 # what "hidden" libraries, object files and flags are used when
11975 # linking a shared library.
11976 #
11977 # There doesn't appear to be a way to prevent this compiler from
11978 # explicitly linking system object files so we need to strip them
11979 # from the output so that they don't get included in the library
11980 # dependencies.
11981 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"'
11982 ;;
11983 *)
11984 if test "$GXX" = yes; then
11985 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'
11986 else
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11989 fi
11990 ;;
11991 esac
11992 ;;
11993
11994 hpux10*|hpux11*)
11995 if test $with_gnu_ld = no; then
11996 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11997 hardcode_libdir_separator_CXX=:
11998
11999 case $host_cpu in
12000 hppa*64*|ia64*)
12001 ;;
12002 *)
12003 export_dynamic_flag_spec_CXX='${wl}-E'
12004 ;;
12005 esac
12006 fi
12007 case $host_cpu in
12008 hppa*64*|ia64*)
12009 hardcode_direct_CXX=no
12010 hardcode_shlibpath_var_CXX=no
12011 ;;
12012 *)
12013 hardcode_direct_CXX=yes
12014 hardcode_direct_absolute_CXX=yes
12015 hardcode_minus_L_CXX=yes # Not in the search PATH,
12016 # but as the default
12017 # location of the library.
12018 ;;
12019 esac
12020
12021 case $cc_basename in
12022 CC*)
12023 # FIXME: insert proper C++ library support
12024 ld_shlibs_CXX=no
12025 ;;
12026 aCC*)
12027 case $host_cpu in
12028 hppa*64*)
12029 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12030 ;;
12031 ia64*)
12032 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12033 ;;
12034 *)
12035 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12036 ;;
12037 esac
12038 # Commands to make compiler produce verbose output that lists
12039 # what "hidden" libraries, object files and flags are used when
12040 # linking a shared library.
12041 #
12042 # There doesn't appear to be a way to prevent this compiler from
12043 # explicitly linking system object files so we need to strip them
12044 # from the output so that they don't get included in the library
12045 # dependencies.
12046 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"'
12047 ;;
12048 *)
12049 if test "$GXX" = yes; then
12050 if test $with_gnu_ld = no; then
12051 case $host_cpu in
12052 hppa*64*)
12053 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12054 ;;
12055 ia64*)
12056 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12057 ;;
12058 *)
12059 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'
12060 ;;
12061 esac
12062 fi
12063 else
12064 # FIXME: insert proper C++ library support
12065 ld_shlibs_CXX=no
12066 fi
12067 ;;
12068 esac
12069 ;;
12070
12071 interix[3-9]*)
12072 hardcode_direct_CXX=no
12073 hardcode_shlibpath_var_CXX=no
12074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}-E'
12076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12077 # Instead, shared libraries are loaded at an image base (0x10000000 by
12078 # default) and relocated if they conflict, which is a slow very memory
12079 # consuming and fragmenting process. To avoid this, we pick a random,
12080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12082 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'
12083 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'
12084 ;;
12085 irix5* | irix6*)
12086 case $cc_basename in
12087 CC*)
12088 # SGI C++
12089 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'
12090
12091 # Archives containing C++ object files must be created using
12092 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12093 # necessary to make sure instantiated templates are included
12094 # in the archive.
12095 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12096 ;;
12097 *)
12098 if test "$GXX" = yes; then
12099 if test "$with_gnu_ld" = no; then
12100 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'
12101 else
12102 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'
12103 fi
12104 fi
12105 link_all_deplibs_CXX=yes
12106 ;;
12107 esac
12108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12109 hardcode_libdir_separator_CXX=:
12110 inherit_rpath_CXX=yes
12111 ;;
12112
12113 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12114 case $cc_basename in
12115 KCC*)
12116 # Kuck and Associates, Inc. (KAI) C++ Compiler
12117
12118 # KCC will only create a shared library if the output file
12119 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12120 # to its proper name (with version) after linking.
12121 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'
12122 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'
12123 # Commands to make compiler produce verbose output that lists
12124 # what "hidden" libraries, object files and flags are used when
12125 # linking a shared library.
12126 #
12127 # There doesn't appear to be a way to prevent this compiler from
12128 # explicitly linking system object files so we need to strip them
12129 # from the output so that they don't get included in the library
12130 # dependencies.
12131 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"'
12132
12133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12135
12136 # Archives containing C++ object files must be created using
12137 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12138 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12139 ;;
12140 icpc* | ecpc* )
12141 # Intel C++
12142 with_gnu_ld=yes
12143 # version 8.0 and above of icpc choke on multiply defined symbols
12144 # if we add $predep_objects and $postdep_objects, however 7.1 and
12145 # earlier do not add the objects themselves.
12146 case `$CC -V 2>&1` in
12147 *"Version 7."*)
12148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149 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'
12150 ;;
12151 *) # Version 8.0 or newer
12152 tmp_idyn=
12153 case $host_cpu in
12154 ia64*) tmp_idyn=' -i_dynamic';;
12155 esac
12156 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157 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'
12158 ;;
12159 esac
12160 archive_cmds_need_lc_CXX=no
12161 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12163 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12164 ;;
12165 pgCC* | pgcpp*)
12166 # Portland Group C++ compiler
12167 case `$CC -V` in
12168 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12169 prelink_cmds_CXX='tpldir=Template.dir~
12170 rm -rf $tpldir~
12171 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12172 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12173 old_archive_cmds_CXX='tpldir=Template.dir~
12174 rm -rf $tpldir~
12175 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12176 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12177 $RANLIB $oldlib'
12178 archive_cmds_CXX='tpldir=Template.dir~
12179 rm -rf $tpldir~
12180 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12181 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12182 archive_expsym_cmds_CXX='tpldir=Template.dir~
12183 rm -rf $tpldir~
12184 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12185 $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'
12186 ;;
12187 *) # Version 6 and above use weak symbols
12188 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12189 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'
12190 ;;
12191 esac
12192
12193 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12195 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'
12196 ;;
12197 cxx*)
12198 # Compaq C++
12199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 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'
12201
12202 runpath_var=LD_RUN_PATH
12203 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12204 hardcode_libdir_separator_CXX=:
12205
12206 # Commands to make compiler produce verbose output that lists
12207 # what "hidden" libraries, object files and flags are used when
12208 # linking a shared library.
12209 #
12210 # There doesn't appear to be a way to prevent this compiler from
12211 # explicitly linking system object files so we need to strip them
12212 # from the output so that they don't get included in the library
12213 # dependencies.
12214 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'
12215 ;;
12216 xl* | mpixl* | bgxl*)
12217 # IBM XL 8.0 on PPC, with GNU ld
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12220 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221 if test "x$supports_anon_versioning" = xyes; then
12222 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12224 echo "local: *; };" >> $output_objdir/$libname.ver~
12225 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12226 fi
12227 ;;
12228 *)
12229 case `$CC -V 2>&1 | sed 5q` in
12230 *Sun\ C*)
12231 # Sun C++ 5.9
12232 no_undefined_flag_CXX=' -zdefs'
12233 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12234 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'
12235 hardcode_libdir_flag_spec_CXX='-R$libdir'
12236 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'
12237 compiler_needs_object_CXX=yes
12238
12239 # Not sure whether something based on
12240 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12241 # would be better.
12242 output_verbose_link_cmd='func_echo_all'
12243
12244 # Archives containing C++ object files must be created using
12245 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12246 # necessary to make sure instantiated templates are included
12247 # in the archive.
12248 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12249 ;;
12250 esac
12251 ;;
12252 esac
12253 ;;
12254
12255 lynxos*)
12256 # FIXME: insert proper C++ library support
12257 ld_shlibs_CXX=no
12258 ;;
12259
12260 m88k*)
12261 # FIXME: insert proper C++ library support
12262 ld_shlibs_CXX=no
12263 ;;
12264
12265 mvs*)
12266 case $cc_basename in
12267 cxx*)
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12270 ;;
12271 *)
12272 # FIXME: insert proper C++ library support
12273 ld_shlibs_CXX=no
12274 ;;
12275 esac
12276 ;;
12277
12278 netbsd*)
12279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12280 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12281 wlarc=
12282 hardcode_libdir_flag_spec_CXX='-R$libdir'
12283 hardcode_direct_CXX=yes
12284 hardcode_shlibpath_var_CXX=no
12285 fi
12286 # Workaround some broken pre-1.5 toolchains
12287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12288 ;;
12289
12290 *nto* | *qnx*)
12291 ld_shlibs_CXX=yes
12292 ;;
12293
12294 openbsd2*)
12295 # C++ shared libraries are fairly broken
12296 ld_shlibs_CXX=no
12297 ;;
12298
12299 openbsd*)
12300 if test -f /usr/libexec/ld.so; then
12301 hardcode_direct_CXX=yes
12302 hardcode_shlibpath_var_CXX=no
12303 hardcode_direct_absolute_CXX=yes
12304 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12307 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12308 export_dynamic_flag_spec_CXX='${wl}-E'
12309 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12310 fi
12311 output_verbose_link_cmd=func_echo_all
12312 else
12313 ld_shlibs_CXX=no
12314 fi
12315 ;;
12316
12317 osf3* | osf4* | osf5*)
12318 case $cc_basename in
12319 KCC*)
12320 # Kuck and Associates, Inc. (KAI) C++ Compiler
12321
12322 # KCC will only create a shared library if the output file
12323 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12324 # to its proper name (with version) after linking.
12325 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'
12326
12327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12328 hardcode_libdir_separator_CXX=:
12329
12330 # Archives containing C++ object files must be created using
12331 # the KAI C++ compiler.
12332 case $host in
12333 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12334 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12335 esac
12336 ;;
12337 RCC*)
12338 # Rational C++ 2.4.1
12339 # FIXME: insert proper C++ library support
12340 ld_shlibs_CXX=no
12341 ;;
12342 cxx*)
12343 case $host in
12344 osf3*)
12345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12346 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'
12347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12348 ;;
12349 *)
12350 allow_undefined_flag_CXX=' -expect_unresolved \*'
12351 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'
12352 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12353 echo "-hidden">> $lib.exp~
12354 $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~
12355 $RM $lib.exp'
12356 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12357 ;;
12358 esac
12359
12360 hardcode_libdir_separator_CXX=:
12361
12362 # Commands to make compiler produce verbose output that lists
12363 # what "hidden" libraries, object files and flags are used when
12364 # linking a shared library.
12365 #
12366 # There doesn't appear to be a way to prevent this compiler from
12367 # explicitly linking system object files so we need to strip them
12368 # from the output so that they don't get included in the library
12369 # dependencies.
12370 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"'
12371 ;;
12372 *)
12373 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12374 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12375 case $host in
12376 osf3*)
12377 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'
12378 ;;
12379 *)
12380 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'
12381 ;;
12382 esac
12383
12384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12385 hardcode_libdir_separator_CXX=:
12386
12387 # Commands to make compiler produce verbose output that lists
12388 # what "hidden" libraries, object files and flags are used when
12389 # linking a shared library.
12390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12391
12392 else
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 fi
12396 ;;
12397 esac
12398 ;;
12399
12400 psos*)
12401 # FIXME: insert proper C++ library support
12402 ld_shlibs_CXX=no
12403 ;;
12404
12405 sunos4*)
12406 case $cc_basename in
12407 CC*)
12408 # Sun C++ 4.x
12409 # FIXME: insert proper C++ library support
12410 ld_shlibs_CXX=no
12411 ;;
12412 lcc*)
12413 # Lucid
12414 # FIXME: insert proper C++ library support
12415 ld_shlibs_CXX=no
12416 ;;
12417 *)
12418 # FIXME: insert proper C++ library support
12419 ld_shlibs_CXX=no
12420 ;;
12421 esac
12422 ;;
12423
12424 solaris*)
12425 case $cc_basename in
12426 CC*)
12427 # Sun C++ 4.2, 5.x and Centerline C++
12428 archive_cmds_need_lc_CXX=yes
12429 no_undefined_flag_CXX=' -zdefs'
12430 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12431 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12432 $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'
12433
12434 hardcode_libdir_flag_spec_CXX='-R$libdir'
12435 hardcode_shlibpath_var_CXX=no
12436 case $host_os in
12437 solaris2.[0-5] | solaris2.[0-5].*) ;;
12438 *)
12439 # The compiler driver will combine and reorder linker options,
12440 # but understands `-z linker_flag'.
12441 # Supported since Solaris 2.6 (maybe 2.5.1?)
12442 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12443 ;;
12444 esac
12445 link_all_deplibs_CXX=yes
12446
12447 output_verbose_link_cmd='func_echo_all'
12448
12449 # Archives containing C++ object files must be created using
12450 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12451 # necessary to make sure instantiated templates are included
12452 # in the archive.
12453 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12454 ;;
12455 gcx*)
12456 # Green Hills C++ Compiler
12457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12458
12459 # The C++ compiler must be used to create the archive.
12460 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12461 ;;
12462 *)
12463 # GNU C++ compiler with Solaris linker
12464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12465 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12466 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12467 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12470
12471 # Commands to make compiler produce verbose output that lists
12472 # what "hidden" libraries, object files and flags are used when
12473 # linking a shared library.
12474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12475 else
12476 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12477 # platform.
12478 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12479 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12480 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12481
12482 # Commands to make compiler produce verbose output that lists
12483 # what "hidden" libraries, object files and flags are used when
12484 # linking a shared library.
12485 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12486 fi
12487
12488 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12489 case $host_os in
12490 solaris2.[0-5] | solaris2.[0-5].*) ;;
12491 *)
12492 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12493 ;;
12494 esac
12495 fi
12496 ;;
12497 esac
12498 ;;
12499
12500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12501 no_undefined_flag_CXX='${wl}-z,text'
12502 archive_cmds_need_lc_CXX=no
12503 hardcode_shlibpath_var_CXX=no
12504 runpath_var='LD_RUN_PATH'
12505
12506 case $cc_basename in
12507 CC*)
12508 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12509 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12510 ;;
12511 *)
12512 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12513 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12514 ;;
12515 esac
12516 ;;
12517
12518 sysv5* | sco3.2v5* | sco5v6*)
12519 # Note: We can NOT use -z defs as we might desire, because we do not
12520 # link with -lc, and that would cause any symbols used from libc to
12521 # always be unresolved, which means just about no library would
12522 # ever link correctly. If we're not using GNU ld we use -z text
12523 # though, which does catch some bad symbols but isn't as heavy-handed
12524 # as -z defs.
12525 no_undefined_flag_CXX='${wl}-z,text'
12526 allow_undefined_flag_CXX='${wl}-z,nodefs'
12527 archive_cmds_need_lc_CXX=no
12528 hardcode_shlibpath_var_CXX=no
12529 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12530 hardcode_libdir_separator_CXX=':'
12531 link_all_deplibs_CXX=yes
12532 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12533 runpath_var='LD_RUN_PATH'
12534
12535 case $cc_basename in
12536 CC*)
12537 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12538 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12539 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12540 '"$old_archive_cmds_CXX"
12541 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12542 '"$reload_cmds_CXX"
12543 ;;
12544 *)
12545 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12546 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 ;;
12548 esac
12549 ;;
12550
12551 tandem*)
12552 case $cc_basename in
12553 NCC*)
12554 # NonStop-UX NCC 3.20
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12557 ;;
12558 *)
12559 # FIXME: insert proper C++ library support
12560 ld_shlibs_CXX=no
12561 ;;
12562 esac
12563 ;;
12564
12565 vxworks*)
12566 # FIXME: insert proper C++ library support
12567 ld_shlibs_CXX=no
12568 ;;
12569
12570 *)
12571 # FIXME: insert proper C++ library support
12572 ld_shlibs_CXX=no
12573 ;;
12574 esac
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12577 $as_echo "$ld_shlibs_CXX" >&6; }
12578 test "$ld_shlibs_CXX" = no && can_build_shared=no
12579
12580 GCC_CXX="$GXX"
12581 LD_CXX="$LD"
12582
12583 ## CAVEAT EMPTOR:
12584 ## There is no encapsulation within the following macros, do not change
12585 ## the running order or otherwise move them around unless you know exactly
12586 ## what you are doing...
12587 # Dependencies to place before and after the object being linked:
12588 predep_objects_CXX=
12589 postdep_objects_CXX=
12590 predeps_CXX=
12591 postdeps_CXX=
12592 compiler_lib_search_path_CXX=
12593
12594 cat > conftest.$ac_ext <<_LT_EOF
12595 class Foo
12596 {
12597 public:
12598 Foo (void) { a = 0; }
12599 private:
12600 int a;
12601 };
12602 _LT_EOF
12603
12604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12605 (eval $ac_compile) 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }; then
12609 # Parse the compiler output and extract the necessary
12610 # objects, libraries and library flags.
12611
12612 # Sentinel used to keep track of whether or not we are before
12613 # the conftest object file.
12614 pre_test_object_deps_done=no
12615
12616 for p in `eval "$output_verbose_link_cmd"`; do
12617 case $p in
12618
12619 -L* | -R* | -l*)
12620 # Some compilers place space between "-{L,R}" and the path.
12621 # Remove the space.
12622 if test $p = "-L" ||
12623 test $p = "-R"; then
12624 prev=$p
12625 continue
12626 else
12627 prev=
12628 fi
12629
12630 if test "$pre_test_object_deps_done" = no; then
12631 case $p in
12632 -L* | -R*)
12633 # Internal compiler library paths should come after those
12634 # provided the user. The postdeps already come after the
12635 # user supplied libs so there is no need to process them.
12636 if test -z "$compiler_lib_search_path_CXX"; then
12637 compiler_lib_search_path_CXX="${prev}${p}"
12638 else
12639 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12640 fi
12641 ;;
12642 # The "-l" case would never come before the object being
12643 # linked, so don't bother handling this case.
12644 esac
12645 else
12646 if test -z "$postdeps_CXX"; then
12647 postdeps_CXX="${prev}${p}"
12648 else
12649 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12650 fi
12651 fi
12652 ;;
12653
12654 *.$objext)
12655 # This assumes that the test object file only shows up
12656 # once in the compiler output.
12657 if test "$p" = "conftest.$objext"; then
12658 pre_test_object_deps_done=yes
12659 continue
12660 fi
12661
12662 if test "$pre_test_object_deps_done" = no; then
12663 if test -z "$predep_objects_CXX"; then
12664 predep_objects_CXX="$p"
12665 else
12666 predep_objects_CXX="$predep_objects_CXX $p"
12667 fi
12668 else
12669 if test -z "$postdep_objects_CXX"; then
12670 postdep_objects_CXX="$p"
12671 else
12672 postdep_objects_CXX="$postdep_objects_CXX $p"
12673 fi
12674 fi
12675 ;;
12676
12677 *) ;; # Ignore the rest.
12678
12679 esac
12680 done
12681
12682 # Clean up.
12683 rm -f a.out a.exe
12684 else
12685 echo "libtool.m4: error: problem compiling CXX test program"
12686 fi
12687
12688 $RM -f confest.$objext
12689
12690 # PORTME: override above test on systems where it is broken
12691 case $host_os in
12692 interix[3-9]*)
12693 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12694 # hack all around it, let's just trust "g++" to DTRT.
12695 predep_objects_CXX=
12696 postdep_objects_CXX=
12697 postdeps_CXX=
12698 ;;
12699
12700 linux*)
12701 case `$CC -V 2>&1 | sed 5q` in
12702 *Sun\ C*)
12703 # Sun C++ 5.9
12704
12705 # The more standards-conforming stlport4 library is
12706 # incompatible with the Cstd library. Avoid specifying
12707 # it if it's in CXXFLAGS. Ignore libCrun as
12708 # -library=stlport4 depends on it.
12709 case " $CXX $CXXFLAGS " in
12710 *" -library=stlport4 "*)
12711 solaris_use_stlport4=yes
12712 ;;
12713 esac
12714
12715 if test "$solaris_use_stlport4" != yes; then
12716 postdeps_CXX='-library=Cstd -library=Crun'
12717 fi
12718 ;;
12719 esac
12720 ;;
12721
12722 solaris*)
12723 case $cc_basename in
12724 CC*)
12725 # The more standards-conforming stlport4 library is
12726 # incompatible with the Cstd library. Avoid specifying
12727 # it if it's in CXXFLAGS. Ignore libCrun as
12728 # -library=stlport4 depends on it.
12729 case " $CXX $CXXFLAGS " in
12730 *" -library=stlport4 "*)
12731 solaris_use_stlport4=yes
12732 ;;
12733 esac
12734
12735 # Adding this requires a known-good setup of shared libraries for
12736 # Sun compiler versions before 5.6, else PIC objects from an old
12737 # archive will be linked into the output, leading to subtle bugs.
12738 if test "$solaris_use_stlport4" != yes; then
12739 postdeps_CXX='-library=Cstd -library=Crun'
12740 fi
12741 ;;
12742 esac
12743 ;;
12744 esac
12745
12746
12747 case " $postdeps_CXX " in
12748 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12749 esac
12750 compiler_lib_search_dirs_CXX=
12751 if test -n "${compiler_lib_search_path_CXX}"; then
12752 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12753 fi
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785 lt_prog_compiler_wl_CXX=
12786 lt_prog_compiler_pic_CXX=
12787 lt_prog_compiler_static_CXX=
12788
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12790 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12791
12792 # C++ specific cases for pic, static, wl, etc.
12793 if test "$GXX" = yes; then
12794 lt_prog_compiler_wl_CXX='-Wl,'
12795 lt_prog_compiler_static_CXX='-static'
12796
12797 case $host_os in
12798 aix*)
12799 # All AIX code is PIC.
12800 if test "$host_cpu" = ia64; then
12801 # AIX 5 now supports IA64 processor
12802 lt_prog_compiler_static_CXX='-Bstatic'
12803 fi
12804 lt_prog_compiler_pic_CXX='-fPIC'
12805 ;;
12806
12807 amigaos*)
12808 case $host_cpu in
12809 powerpc)
12810 # see comment about AmigaOS4 .so support
12811 lt_prog_compiler_pic_CXX='-fPIC'
12812 ;;
12813 m68k)
12814 # FIXME: we need at least 68020 code to build shared libraries, but
12815 # adding the `-m68020' flag to GCC prevents building anything better,
12816 # like `-m68040'.
12817 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12818 ;;
12819 esac
12820 ;;
12821
12822 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12823 # PIC is the default for these OSes.
12824 ;;
12825 mingw* | cygwin* | os2* | pw32* | cegcc*)
12826 # This hack is so that the source file can tell whether it is being
12827 # built for inclusion in a dll (and should export symbols for example).
12828 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12829 # (--disable-auto-import) libraries
12830 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12831 ;;
12832 darwin* | rhapsody*)
12833 # PIC is the default on this platform
12834 # Common symbols not allowed in MH_DYLIB files
12835 lt_prog_compiler_pic_CXX='-fno-common'
12836 ;;
12837 *djgpp*)
12838 # DJGPP does not support shared libraries at all
12839 lt_prog_compiler_pic_CXX=
12840 ;;
12841 haiku*)
12842 # PIC is the default for Haiku.
12843 # The "-static" flag exists, but is broken.
12844 lt_prog_compiler_static_CXX=
12845 ;;
12846 interix[3-9]*)
12847 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12848 # Instead, we relocate shared libraries at runtime.
12849 ;;
12850 sysv4*MP*)
12851 if test -d /usr/nec; then
12852 lt_prog_compiler_pic_CXX=-Kconform_pic
12853 fi
12854 ;;
12855 hpux*)
12856 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12857 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12858 # sets the default TLS model and affects inlining.
12859 case $host_cpu in
12860 hppa*64*)
12861 ;;
12862 *)
12863 lt_prog_compiler_pic_CXX='-fPIC'
12864 ;;
12865 esac
12866 ;;
12867 *qnx* | *nto*)
12868 # QNX uses GNU C++, but need to define -shared option too, otherwise
12869 # it will coredump.
12870 lt_prog_compiler_pic_CXX='-fPIC -shared'
12871 ;;
12872 *)
12873 lt_prog_compiler_pic_CXX='-fPIC'
12874 ;;
12875 esac
12876 else
12877 case $host_os in
12878 aix[4-9]*)
12879 # All AIX code is PIC.
12880 if test "$host_cpu" = ia64; then
12881 # AIX 5 now supports IA64 processor
12882 lt_prog_compiler_static_CXX='-Bstatic'
12883 else
12884 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12885 fi
12886 ;;
12887 chorus*)
12888 case $cc_basename in
12889 cxch68*)
12890 # Green Hills C++ Compiler
12891 # _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"
12892 ;;
12893 esac
12894 ;;
12895 dgux*)
12896 case $cc_basename in
12897 ec++*)
12898 lt_prog_compiler_pic_CXX='-KPIC'
12899 ;;
12900 ghcx*)
12901 # Green Hills C++ Compiler
12902 lt_prog_compiler_pic_CXX='-pic'
12903 ;;
12904 *)
12905 ;;
12906 esac
12907 ;;
12908 freebsd* | dragonfly*)
12909 # FreeBSD uses GNU C++
12910 ;;
12911 hpux9* | hpux10* | hpux11*)
12912 case $cc_basename in
12913 CC*)
12914 lt_prog_compiler_wl_CXX='-Wl,'
12915 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12916 if test "$host_cpu" != ia64; then
12917 lt_prog_compiler_pic_CXX='+Z'
12918 fi
12919 ;;
12920 aCC*)
12921 lt_prog_compiler_wl_CXX='-Wl,'
12922 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12923 case $host_cpu in
12924 hppa*64*|ia64*)
12925 # +Z the default
12926 ;;
12927 *)
12928 lt_prog_compiler_pic_CXX='+Z'
12929 ;;
12930 esac
12931 ;;
12932 *)
12933 ;;
12934 esac
12935 ;;
12936 interix*)
12937 # This is c89, which is MS Visual C++ (no shared libs)
12938 # Anyone wants to do a port?
12939 ;;
12940 irix5* | irix6* | nonstopux*)
12941 case $cc_basename in
12942 CC*)
12943 lt_prog_compiler_wl_CXX='-Wl,'
12944 lt_prog_compiler_static_CXX='-non_shared'
12945 # CC pic flag -KPIC is the default.
12946 ;;
12947 *)
12948 ;;
12949 esac
12950 ;;
12951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12952 case $cc_basename in
12953 KCC*)
12954 # KAI C++ Compiler
12955 lt_prog_compiler_wl_CXX='--backend -Wl,'
12956 lt_prog_compiler_pic_CXX='-fPIC'
12957 ;;
12958 ecpc* )
12959 # old Intel C++ for x86_64 which still supported -KPIC.
12960 lt_prog_compiler_wl_CXX='-Wl,'
12961 lt_prog_compiler_pic_CXX='-KPIC'
12962 lt_prog_compiler_static_CXX='-static'
12963 ;;
12964 icpc* )
12965 # Intel C++, used to be incompatible with GCC.
12966 # ICC 10 doesn't accept -KPIC any more.
12967 lt_prog_compiler_wl_CXX='-Wl,'
12968 lt_prog_compiler_pic_CXX='-fPIC'
12969 lt_prog_compiler_static_CXX='-static'
12970 ;;
12971 pgCC* | pgcpp*)
12972 # Portland Group C++ compiler
12973 lt_prog_compiler_wl_CXX='-Wl,'
12974 lt_prog_compiler_pic_CXX='-fpic'
12975 lt_prog_compiler_static_CXX='-Bstatic'
12976 ;;
12977 cxx*)
12978 # Compaq C++
12979 # Make sure the PIC flag is empty. It appears that all Alpha
12980 # Linux and Compaq Tru64 Unix objects are PIC.
12981 lt_prog_compiler_pic_CXX=
12982 lt_prog_compiler_static_CXX='-non_shared'
12983 ;;
12984 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12985 # IBM XL 8.0, 9.0 on PPC and BlueGene
12986 lt_prog_compiler_wl_CXX='-Wl,'
12987 lt_prog_compiler_pic_CXX='-qpic'
12988 lt_prog_compiler_static_CXX='-qstaticlink'
12989 ;;
12990 *)
12991 case `$CC -V 2>&1 | sed 5q` in
12992 *Sun\ C*)
12993 # Sun C++ 5.9
12994 lt_prog_compiler_pic_CXX='-KPIC'
12995 lt_prog_compiler_static_CXX='-Bstatic'
12996 lt_prog_compiler_wl_CXX='-Qoption ld '
12997 ;;
12998 esac
12999 ;;
13000 esac
13001 ;;
13002 lynxos*)
13003 ;;
13004 m88k*)
13005 ;;
13006 mvs*)
13007 case $cc_basename in
13008 cxx*)
13009 lt_prog_compiler_pic_CXX='-W c,exportall'
13010 ;;
13011 *)
13012 ;;
13013 esac
13014 ;;
13015 netbsd*)
13016 ;;
13017 *qnx* | *nto*)
13018 # QNX uses GNU C++, but need to define -shared option too, otherwise
13019 # it will coredump.
13020 lt_prog_compiler_pic_CXX='-fPIC -shared'
13021 ;;
13022 osf3* | osf4* | osf5*)
13023 case $cc_basename in
13024 KCC*)
13025 lt_prog_compiler_wl_CXX='--backend -Wl,'
13026 ;;
13027 RCC*)
13028 # Rational C++ 2.4.1
13029 lt_prog_compiler_pic_CXX='-pic'
13030 ;;
13031 cxx*)
13032 # Digital/Compaq C++
13033 lt_prog_compiler_wl_CXX='-Wl,'
13034 # Make sure the PIC flag is empty. It appears that all Alpha
13035 # Linux and Compaq Tru64 Unix objects are PIC.
13036 lt_prog_compiler_pic_CXX=
13037 lt_prog_compiler_static_CXX='-non_shared'
13038 ;;
13039 *)
13040 ;;
13041 esac
13042 ;;
13043 psos*)
13044 ;;
13045 solaris*)
13046 case $cc_basename in
13047 CC*)
13048 # Sun C++ 4.2, 5.x and Centerline C++
13049 lt_prog_compiler_pic_CXX='-KPIC'
13050 lt_prog_compiler_static_CXX='-Bstatic'
13051 lt_prog_compiler_wl_CXX='-Qoption ld '
13052 ;;
13053 gcx*)
13054 # Green Hills C++ Compiler
13055 lt_prog_compiler_pic_CXX='-PIC'
13056 ;;
13057 *)
13058 ;;
13059 esac
13060 ;;
13061 sunos4*)
13062 case $cc_basename in
13063 CC*)
13064 # Sun C++ 4.x
13065 lt_prog_compiler_pic_CXX='-pic'
13066 lt_prog_compiler_static_CXX='-Bstatic'
13067 ;;
13068 lcc*)
13069 # Lucid
13070 lt_prog_compiler_pic_CXX='-pic'
13071 ;;
13072 *)
13073 ;;
13074 esac
13075 ;;
13076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13077 case $cc_basename in
13078 CC*)
13079 lt_prog_compiler_wl_CXX='-Wl,'
13080 lt_prog_compiler_pic_CXX='-KPIC'
13081 lt_prog_compiler_static_CXX='-Bstatic'
13082 ;;
13083 esac
13084 ;;
13085 tandem*)
13086 case $cc_basename in
13087 NCC*)
13088 # NonStop-UX NCC 3.20
13089 lt_prog_compiler_pic_CXX='-KPIC'
13090 ;;
13091 *)
13092 ;;
13093 esac
13094 ;;
13095 vxworks*)
13096 ;;
13097 *)
13098 lt_prog_compiler_can_build_shared_CXX=no
13099 ;;
13100 esac
13101 fi
13102
13103 case $host_os in
13104 # For platforms which do not support PIC, -DPIC is meaningless:
13105 *djgpp*)
13106 lt_prog_compiler_pic_CXX=
13107 ;;
13108 *)
13109 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13110 ;;
13111 esac
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13113 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13114
13115
13116
13117 #
13118 # Check to make sure the PIC flag actually works.
13119 #
13120 if test -n "$lt_prog_compiler_pic_CXX"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13122 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13123 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 lt_cv_prog_compiler_pic_works_CXX=no
13127 ac_outfile=conftest.$ac_objext
13128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13130 # Insert the option either (1) after the last *FLAGS variable, or
13131 # (2) before a word containing "conftest.", or (3) at the end.
13132 # Note that $ac_compile itself does not contain backslashes and begins
13133 # with a dollar sign (not a hyphen), so the echo should work correctly.
13134 # The option is referenced via a variable to avoid confusing sed.
13135 lt_compile=`echo "$ac_compile" | $SED \
13136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138 -e 's:$: $lt_compiler_flag:'`
13139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13140 (eval "$lt_compile" 2>conftest.err)
13141 ac_status=$?
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 if (exit $ac_status) && test -s "$ac_outfile"; then
13145 # The compiler can only warn and ignore the option if not recognized
13146 # So say no if there are warnings other than the usual output.
13147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13150 lt_cv_prog_compiler_pic_works_CXX=yes
13151 fi
13152 fi
13153 $RM conftest*
13154
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13157 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13158
13159 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13160 case $lt_prog_compiler_pic_CXX in
13161 "" | " "*) ;;
13162 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13163 esac
13164 else
13165 lt_prog_compiler_pic_CXX=
13166 lt_prog_compiler_can_build_shared_CXX=no
13167 fi
13168
13169 fi
13170
13171
13172
13173 #
13174 # Check to make sure the static flag actually works.
13175 #
13176 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13178 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13179 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 lt_cv_prog_compiler_static_works_CXX=no
13183 save_LDFLAGS="$LDFLAGS"
13184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13187 # The linker can only warn and ignore the option if not recognized
13188 # So say no if there are warnings
13189 if test -s conftest.err; then
13190 # Append any errors to the config.log.
13191 cat conftest.err 1>&5
13192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13194 if diff conftest.exp conftest.er2 >/dev/null; then
13195 lt_cv_prog_compiler_static_works_CXX=yes
13196 fi
13197 else
13198 lt_cv_prog_compiler_static_works_CXX=yes
13199 fi
13200 fi
13201 $RM -r conftest*
13202 LDFLAGS="$save_LDFLAGS"
13203
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13206 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13207
13208 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13209 :
13210 else
13211 lt_prog_compiler_static_CXX=
13212 fi
13213
13214
13215
13216
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13219 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222 lt_cv_prog_compiler_c_o_CXX=no
13223 $RM -r conftest 2>/dev/null
13224 mkdir conftest
13225 cd conftest
13226 mkdir out
13227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13228
13229 lt_compiler_flag="-o out/conftest2.$ac_objext"
13230 # Insert the option either (1) after the last *FLAGS variable, or
13231 # (2) before a word containing "conftest.", or (3) at the end.
13232 # Note that $ac_compile itself does not contain backslashes and begins
13233 # with a dollar sign (not a hyphen), so the echo should work correctly.
13234 lt_compile=`echo "$ac_compile" | $SED \
13235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13237 -e 's:$: $lt_compiler_flag:'`
13238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13239 (eval "$lt_compile" 2>out/conftest.err)
13240 ac_status=$?
13241 cat out/conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13244 then
13245 # The compiler can only warn and ignore the option if not recognized
13246 # So say no if there are warnings
13247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13250 lt_cv_prog_compiler_c_o_CXX=yes
13251 fi
13252 fi
13253 chmod u+w . 2>&5
13254 $RM conftest*
13255 # SGI C++ compiler will create directory out/ii_files/ for
13256 # template instantiation
13257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13258 $RM out/* && rmdir out
13259 cd ..
13260 $RM -r conftest
13261 $RM conftest*
13262
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13265 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13266
13267
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13271 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 lt_cv_prog_compiler_c_o_CXX=no
13275 $RM -r conftest 2>/dev/null
13276 mkdir conftest
13277 cd conftest
13278 mkdir out
13279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13280
13281 lt_compiler_flag="-o out/conftest2.$ac_objext"
13282 # Insert the option either (1) after the last *FLAGS variable, or
13283 # (2) before a word containing "conftest.", or (3) at the end.
13284 # Note that $ac_compile itself does not contain backslashes and begins
13285 # with a dollar sign (not a hyphen), so the echo should work correctly.
13286 lt_compile=`echo "$ac_compile" | $SED \
13287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13289 -e 's:$: $lt_compiler_flag:'`
13290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13291 (eval "$lt_compile" 2>out/conftest.err)
13292 ac_status=$?
13293 cat out/conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296 then
13297 # The compiler can only warn and ignore the option if not recognized
13298 # So say no if there are warnings
13299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13302 lt_cv_prog_compiler_c_o_CXX=yes
13303 fi
13304 fi
13305 chmod u+w . 2>&5
13306 $RM conftest*
13307 # SGI C++ compiler will create directory out/ii_files/ for
13308 # template instantiation
13309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13310 $RM out/* && rmdir out
13311 cd ..
13312 $RM -r conftest
13313 $RM conftest*
13314
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13317 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13318
13319
13320
13321
13322 hard_links="nottested"
13323 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13324 # do not overwrite the value of need_locks provided by the user
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13326 $as_echo_n "checking if we can lock with hard links... " >&6; }
13327 hard_links=yes
13328 $RM conftest*
13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330 touch conftest.a
13331 ln conftest.a conftest.b 2>&5 || hard_links=no
13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13334 $as_echo "$hard_links" >&6; }
13335 if test "$hard_links" = no; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13337 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13338 need_locks=warn
13339 fi
13340 else
13341 need_locks=no
13342 fi
13343
13344
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13348
13349 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13350 case $host_os in
13351 aix[4-9]*)
13352 # If we're using GNU nm, then we don't want the "-C" option.
13353 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13354 # Also, AIX nm treats weak defined symbols like other global defined
13355 # symbols, whereas GNU nm marks them as "W".
13356 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13357 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'
13358 else
13359 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'
13360 fi
13361 ;;
13362 pw32*)
13363 export_symbols_cmds_CXX="$ltdll_cmds"
13364 ;;
13365 cygwin* | mingw* | cegcc*)
13366 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'
13367 ;;
13368 *)
13369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13370 ;;
13371 esac
13372 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13375 $as_echo "$ld_shlibs_CXX" >&6; }
13376 test "$ld_shlibs_CXX" = no && can_build_shared=no
13377
13378 with_gnu_ld_CXX=$with_gnu_ld
13379
13380
13381
13382
13383
13384
13385 #
13386 # Do we need to explicitly link libc?
13387 #
13388 case "x$archive_cmds_need_lc_CXX" in
13389 x|xyes)
13390 # Assume -lc should be added
13391 archive_cmds_need_lc_CXX=yes
13392
13393 if test "$enable_shared" = yes && test "$GCC" = yes; then
13394 case $archive_cmds_CXX in
13395 *'~'*)
13396 # FIXME: we may have to deal with multi-command sequences.
13397 ;;
13398 '$CC '*)
13399 # Test whether the compiler implicitly links with -lc since on some
13400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13401 # to ld, don't add -lc before -lgcc.
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13403 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13404 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 $RM conftest*
13408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13409
13410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13411 (eval $ac_compile) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414 test $ac_status = 0; } 2>conftest.err; then
13415 soname=conftest
13416 lib=conftest
13417 libobjs=conftest.$ac_objext
13418 deplibs=
13419 wl=$lt_prog_compiler_wl_CXX
13420 pic_flag=$lt_prog_compiler_pic_CXX
13421 compiler_flags=-v
13422 linker_flags=-v
13423 verstring=
13424 output_objdir=.
13425 libname=conftest
13426 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13427 allow_undefined_flag_CXX=
13428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13429 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13430 ac_status=$?
13431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432 test $ac_status = 0; }
13433 then
13434 lt_cv_archive_cmds_need_lc_CXX=no
13435 else
13436 lt_cv_archive_cmds_need_lc_CXX=yes
13437 fi
13438 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13439 else
13440 cat conftest.err 1>&5
13441 fi
13442 $RM conftest*
13443
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13446 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13447 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13448 ;;
13449 esac
13450 fi
13451 ;;
13452 esac
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13518 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13519
13520 library_names_spec=
13521 libname_spec='lib$name'
13522 soname_spec=
13523 shrext_cmds=".so"
13524 postinstall_cmds=
13525 postuninstall_cmds=
13526 finish_cmds=
13527 finish_eval=
13528 shlibpath_var=
13529 shlibpath_overrides_runpath=unknown
13530 version_type=none
13531 dynamic_linker="$host_os ld.so"
13532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13533 need_lib_prefix=unknown
13534 hardcode_into_libs=no
13535
13536 # when you set need_version to no, make sure it does not cause -set_version
13537 # flags to be left without arguments
13538 need_version=unknown
13539
13540 case $host_os in
13541 aix3*)
13542 version_type=linux
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13544 shlibpath_var=LIBPATH
13545
13546 # AIX 3 has no versioning support, so we append a major version to the name.
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 ;;
13549
13550 aix[4-9]*)
13551 version_type=linux
13552 need_lib_prefix=no
13553 need_version=no
13554 hardcode_into_libs=yes
13555 if test "$host_cpu" = ia64; then
13556 # AIX 5 supports IA64
13557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 else
13560 # With GCC up to 2.95.x, collect2 would create an import file
13561 # for dependence libraries. The import file would start with
13562 # the line `#! .'. This would cause the generated library to
13563 # depend on `.', always an invalid library. This was fixed in
13564 # development snapshots of GCC prior to 3.0.
13565 case $host_os in
13566 aix4 | aix4.[01] | aix4.[01].*)
13567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13568 echo ' yes '
13569 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13570 :
13571 else
13572 can_build_shared=no
13573 fi
13574 ;;
13575 esac
13576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13577 # soname into executable. Probably we can add versioning support to
13578 # collect2, so additional links can be useful in future.
13579 if test "$aix_use_runtimelinking" = yes; then
13580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13581 # instead of lib<name>.a to let people know that these are not
13582 # typical AIX shared libraries.
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 else
13585 # We preserve .a as extension for shared libraries through AIX4.2
13586 # and later when we are not doing run time linking.
13587 library_names_spec='${libname}${release}.a $libname.a'
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 fi
13590 shlibpath_var=LIBPATH
13591 fi
13592 ;;
13593
13594 amigaos*)
13595 case $host_cpu in
13596 powerpc)
13597 # Since July 2007 AmigaOS4 officially supports .so libraries.
13598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600 ;;
13601 m68k)
13602 library_names_spec='$libname.ixlibrary $libname.a'
13603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13604 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'
13605 ;;
13606 esac
13607 ;;
13608
13609 beos*)
13610 library_names_spec='${libname}${shared_ext}'
13611 dynamic_linker="$host_os ld.so"
13612 shlibpath_var=LIBRARY_PATH
13613 ;;
13614
13615 bsdi[45]*)
13616 version_type=linux
13617 need_version=no
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619 soname_spec='${libname}${release}${shared_ext}$major'
13620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13624 # the default ld.so.conf also contains /usr/contrib/lib and
13625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13626 # libtool to hard-code these into programs
13627 ;;
13628
13629 cygwin* | mingw* | pw32* | cegcc*)
13630 version_type=windows
13631 shrext_cmds=".dll"
13632 need_version=no
13633 need_lib_prefix=no
13634
13635 case $GCC,$host_os in
13636 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13637 library_names_spec='$libname.dll.a'
13638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13639 postinstall_cmds='base_file=`basename \${file}`~
13640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13641 dldir=$destdir/`dirname \$dlpath`~
13642 test -d \$dldir || mkdir -p \$dldir~
13643 $install_prog $dir/$dlname \$dldir/$dlname~
13644 chmod a+x \$dldir/$dlname~
13645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13647 fi'
13648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13649 dlpath=$dir/\$dldll~
13650 $RM \$dlpath'
13651 shlibpath_overrides_runpath=yes
13652
13653 case $host_os in
13654 cygwin*)
13655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13657
13658 ;;
13659 mingw* | cegcc*)
13660 # MinGW DLLs use traditional 'lib' prefix
13661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13662 ;;
13663 pw32*)
13664 # pw32 DLLs use 'pw' prefix rather than 'lib'
13665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13666 ;;
13667 esac
13668 ;;
13669
13670 *)
13671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13672 ;;
13673 esac
13674 dynamic_linker='Win32 ld.exe'
13675 # FIXME: first we should search . and the directory the executable is in
13676 shlibpath_var=PATH
13677 ;;
13678
13679 darwin* | rhapsody*)
13680 dynamic_linker="$host_os dyld"
13681 version_type=darwin
13682 need_lib_prefix=no
13683 need_version=no
13684 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13685 soname_spec='${libname}${release}${major}$shared_ext'
13686 shlibpath_overrides_runpath=yes
13687 shlibpath_var=DYLD_LIBRARY_PATH
13688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13689
13690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13691 ;;
13692
13693 dgux*)
13694 version_type=linux
13695 need_lib_prefix=no
13696 need_version=no
13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13698 soname_spec='${libname}${release}${shared_ext}$major'
13699 shlibpath_var=LD_LIBRARY_PATH
13700 ;;
13701
13702 freebsd* | dragonfly*)
13703 # DragonFly does not have aout. When/if they implement a new
13704 # versioning mechanism, adjust this.
13705 if test -x /usr/bin/objformat; then
13706 objformat=`/usr/bin/objformat`
13707 else
13708 case $host_os in
13709 freebsd[23].*) objformat=aout ;;
13710 *) objformat=elf ;;
13711 esac
13712 fi
13713 version_type=freebsd-$objformat
13714 case $version_type in
13715 freebsd-elf*)
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13717 need_version=no
13718 need_lib_prefix=no
13719 ;;
13720 freebsd-*)
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13722 need_version=yes
13723 ;;
13724 esac
13725 shlibpath_var=LD_LIBRARY_PATH
13726 case $host_os in
13727 freebsd2.*)
13728 shlibpath_overrides_runpath=yes
13729 ;;
13730 freebsd3.[01]* | freebsdelf3.[01]*)
13731 shlibpath_overrides_runpath=yes
13732 hardcode_into_libs=yes
13733 ;;
13734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13736 shlibpath_overrides_runpath=no
13737 hardcode_into_libs=yes
13738 ;;
13739 *) # from 4.6 on, and DragonFly
13740 shlibpath_overrides_runpath=yes
13741 hardcode_into_libs=yes
13742 ;;
13743 esac
13744 ;;
13745
13746 gnu*)
13747 version_type=linux
13748 need_lib_prefix=no
13749 need_version=no
13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13751 soname_spec='${libname}${release}${shared_ext}$major'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 hardcode_into_libs=yes
13754 ;;
13755
13756 haiku*)
13757 version_type=linux
13758 need_lib_prefix=no
13759 need_version=no
13760 dynamic_linker="$host_os runtime_loader"
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 shlibpath_var=LIBRARY_PATH
13764 shlibpath_overrides_runpath=yes
13765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13766 hardcode_into_libs=yes
13767 ;;
13768
13769 hpux9* | hpux10* | hpux11*)
13770 # Give a soname corresponding to the major version so that dld.sl refuses to
13771 # link against other versions.
13772 version_type=sunos
13773 need_lib_prefix=no
13774 need_version=no
13775 case $host_cpu in
13776 ia64*)
13777 shrext_cmds='.so'
13778 hardcode_into_libs=yes
13779 dynamic_linker="$host_os dld.so"
13780 shlibpath_var=LD_LIBRARY_PATH
13781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 if test "X$HPUX_IA64_MODE" = X32; then
13785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13786 else
13787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13788 fi
13789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13790 ;;
13791 hppa*64*)
13792 shrext_cmds='.sl'
13793 hardcode_into_libs=yes
13794 dynamic_linker="$host_os dld.sl"
13795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13801 ;;
13802 *)
13803 shrext_cmds='.sl'
13804 dynamic_linker="$host_os dld.sl"
13805 shlibpath_var=SHLIB_PATH
13806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 ;;
13810 esac
13811 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13812 postinstall_cmds='chmod 555 $lib'
13813 # or fails outright, so override atomically:
13814 install_override_mode=555
13815 ;;
13816
13817 interix[3-9]*)
13818 version_type=linux
13819 need_lib_prefix=no
13820 need_version=no
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 shlibpath_overrides_runpath=no
13826 hardcode_into_libs=yes
13827 ;;
13828
13829 irix5* | irix6* | nonstopux*)
13830 case $host_os in
13831 nonstopux*) version_type=nonstopux ;;
13832 *)
13833 if test "$lt_cv_prog_gnu_ld" = yes; then
13834 version_type=linux
13835 else
13836 version_type=irix
13837 fi ;;
13838 esac
13839 need_lib_prefix=no
13840 need_version=no
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13843 case $host_os in
13844 irix5* | nonstopux*)
13845 libsuff= shlibsuff=
13846 ;;
13847 *)
13848 case $LD in # libtool.m4 will add one of these switches to LD
13849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13850 libsuff= shlibsuff= libmagic=32-bit;;
13851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13852 libsuff=32 shlibsuff=N32 libmagic=N32;;
13853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13855 *) libsuff= shlibsuff= libmagic=never-match;;
13856 esac
13857 ;;
13858 esac
13859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13860 shlibpath_overrides_runpath=no
13861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13863 hardcode_into_libs=yes
13864 ;;
13865
13866 # No shared lib support for Linux oldld, aout, or coff.
13867 linux*oldld* | linux*aout* | linux*coff*)
13868 dynamic_linker=no
13869 ;;
13870
13871 # This must be Linux ELF.
13872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13873 version_type=linux
13874 need_lib_prefix=no
13875 need_version=no
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13877 soname_spec='${libname}${release}${shared_ext}$major'
13878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13879 shlibpath_var=LD_LIBRARY_PATH
13880 shlibpath_overrides_runpath=no
13881
13882 # Some binutils ld are patched to set DT_RUNPATH
13883 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 lt_cv_shlibpath_overrides_runpath=no
13887 save_LDFLAGS=$LDFLAGS
13888 save_libdir=$libdir
13889 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13890 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893
13894 int
13895 main ()
13896 {
13897
13898 ;
13899 return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_cxx_try_link "$LINENO"; then :
13903 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13904 lt_cv_shlibpath_overrides_runpath=yes
13905 fi
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext conftest.$ac_ext
13909 LDFLAGS=$save_LDFLAGS
13910 libdir=$save_libdir
13911
13912 fi
13913
13914 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13915
13916 # This implies no fast_install, which is unacceptable.
13917 # Some rework will be needed to allow for fast_install
13918 # before this can be enabled.
13919 hardcode_into_libs=yes
13920
13921 # Append ld.so.conf contents to the search path
13922 if test -f /etc/ld.so.conf; then
13923 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' ' '`
13924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13925 fi
13926
13927 # We used to test for /lib/ld.so.1 and disable shared libraries on
13928 # powerpc, because MkLinux only supported shared libraries with the
13929 # GNU dynamic linker. Since this was broken with cross compilers,
13930 # most powerpc-linux boxes support dynamic linking these days and
13931 # people can always --disable-shared, the test was removed, and we
13932 # assume the GNU/Linux dynamic linker is in use.
13933 dynamic_linker='GNU/Linux ld.so'
13934 ;;
13935
13936 netbsd*)
13937 version_type=sunos
13938 need_lib_prefix=no
13939 need_version=no
13940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13943 dynamic_linker='NetBSD (a.out) ld.so'
13944 else
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 dynamic_linker='NetBSD ld.elf_so'
13948 fi
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=yes
13951 hardcode_into_libs=yes
13952 ;;
13953
13954 newsos6)
13955 version_type=linux
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes
13959 ;;
13960
13961 *nto* | *qnx*)
13962 version_type=qnx
13963 need_lib_prefix=no
13964 need_version=no
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 hardcode_into_libs=yes
13970 dynamic_linker='ldqnx.so'
13971 ;;
13972
13973 openbsd*)
13974 version_type=sunos
13975 sys_lib_dlsearch_path_spec="/usr/lib"
13976 need_lib_prefix=no
13977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13978 case $host_os in
13979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13980 *) need_version=no ;;
13981 esac
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13986 case $host_os in
13987 openbsd2.[89] | openbsd2.[89].*)
13988 shlibpath_overrides_runpath=no
13989 ;;
13990 *)
13991 shlibpath_overrides_runpath=yes
13992 ;;
13993 esac
13994 else
13995 shlibpath_overrides_runpath=yes
13996 fi
13997 ;;
13998
13999 os2*)
14000 libname_spec='$name'
14001 shrext_cmds=".dll"
14002 need_lib_prefix=no
14003 library_names_spec='$libname${shared_ext} $libname.a'
14004 dynamic_linker='OS/2 ld.exe'
14005 shlibpath_var=LIBPATH
14006 ;;
14007
14008 osf3* | osf4* | osf5*)
14009 version_type=osf
14010 need_lib_prefix=no
14011 need_version=no
14012 soname_spec='${libname}${release}${shared_ext}$major'
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14017 ;;
14018
14019 rdos*)
14020 dynamic_linker=no
14021 ;;
14022
14023 solaris*)
14024 version_type=linux
14025 need_lib_prefix=no
14026 need_version=no
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 shlibpath_overrides_runpath=yes
14031 hardcode_into_libs=yes
14032 # ldd complains unless libraries are executable
14033 postinstall_cmds='chmod +x $lib'
14034 ;;
14035
14036 sunos4*)
14037 version_type=sunos
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 shlibpath_overrides_runpath=yes
14042 if test "$with_gnu_ld" = yes; then
14043 need_lib_prefix=no
14044 fi
14045 need_version=yes
14046 ;;
14047
14048 sysv4 | sysv4.3*)
14049 version_type=linux
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 case $host_vendor in
14054 sni)
14055 shlibpath_overrides_runpath=no
14056 need_lib_prefix=no
14057 runpath_var=LD_RUN_PATH
14058 ;;
14059 siemens)
14060 need_lib_prefix=no
14061 ;;
14062 motorola)
14063 need_lib_prefix=no
14064 need_version=no
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14067 ;;
14068 esac
14069 ;;
14070
14071 sysv4*MP*)
14072 if test -d /usr/nec ;then
14073 version_type=linux
14074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14075 soname_spec='$libname${shared_ext}.$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 fi
14078 ;;
14079
14080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14081 version_type=freebsd-elf
14082 need_lib_prefix=no
14083 need_version=no
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 shlibpath_overrides_runpath=yes
14088 hardcode_into_libs=yes
14089 if test "$with_gnu_ld" = yes; then
14090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14091 else
14092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14093 case $host_os in
14094 sco3.2v5*)
14095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14096 ;;
14097 esac
14098 fi
14099 sys_lib_dlsearch_path_spec='/usr/lib'
14100 ;;
14101
14102 tpf*)
14103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14104 version_type=linux
14105 need_lib_prefix=no
14106 need_version=no
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 shlibpath_var=LD_LIBRARY_PATH
14109 shlibpath_overrides_runpath=no
14110 hardcode_into_libs=yes
14111 ;;
14112
14113 uts4*)
14114 version_type=linux
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 ;;
14119
14120 *)
14121 dynamic_linker=no
14122 ;;
14123 esac
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14125 $as_echo "$dynamic_linker" >&6; }
14126 test "$dynamic_linker" = no && can_build_shared=no
14127
14128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14129 if test "$GCC" = yes; then
14130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14131 fi
14132
14133 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14134 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14135 fi
14136 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14137 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14138 fi
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14179 hardcode_action_CXX=
14180 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14181 test -n "$runpath_var_CXX" ||
14182 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14183
14184 # We can hardcode non-existent directories.
14185 if test "$hardcode_direct_CXX" != no &&
14186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14187 # have to relink, otherwise we might link with an installed library
14188 # when we should be linking with a yet-to-be-installed one
14189 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14190 test "$hardcode_minus_L_CXX" != no; then
14191 # Linking always hardcodes the temporary library directory.
14192 hardcode_action_CXX=relink
14193 else
14194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14195 hardcode_action_CXX=immediate
14196 fi
14197 else
14198 # We cannot hardcode anything, or else we can only hardcode existing
14199 # directories.
14200 hardcode_action_CXX=unsupported
14201 fi
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14203 $as_echo "$hardcode_action_CXX" >&6; }
14204
14205 if test "$hardcode_action_CXX" = relink ||
14206 test "$inherit_rpath_CXX" = yes; then
14207 # Fast installation is not supported
14208 enable_fast_install=no
14209 elif test "$shlibpath_overrides_runpath" = yes ||
14210 test "$enable_shared" = no; then
14211 # Fast installation is not necessary
14212 enable_fast_install=needless
14213 fi
14214
14215
14216
14217
14218
14219
14220
14221 fi # test -n "$compiler"
14222
14223 CC=$lt_save_CC
14224 LDCXX=$LD
14225 LD=$lt_save_LD
14226 GCC=$lt_save_GCC
14227 with_gnu_ld=$lt_save_with_gnu_ld
14228 lt_cv_path_LDCXX=$lt_cv_path_LD
14229 lt_cv_path_LD=$lt_save_path_LD
14230 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14231 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14232 fi # test "$_lt_caught_CXX_error" != yes
14233
14234 ac_ext=c
14235 ac_cpp='$CPP $CPPFLAGS'
14236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252 ac_config_commands="$ac_config_commands libtool"
14253
14254
14255
14256
14257 # Only expand once:
14258
14259
14260
14261
14262
14263
14264 if test "${multilib}" = "yes"; then
14265 multilib_arg="--enable-multilib"
14266 else
14267 multilib_arg=
14268 fi
14269
14270 ac_config_files="$ac_config_files Makefile"
14271
14272
14273 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14274
14275
14276 cat >confcache <<\_ACEOF
14277 # This file is a shell script that caches the results of configure
14278 # tests run on this system so they can be shared between configure
14279 # scripts and configure runs, see configure's option --config-cache.
14280 # It is not useful on other systems. If it contains results you don't
14281 # want to keep, you may remove or edit it.
14282 #
14283 # config.status only pays attention to the cache file if you give it
14284 # the --recheck option to rerun configure.
14285 #
14286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14288 # following values.
14289
14290 _ACEOF
14291
14292 # The following way of writing the cache mishandles newlines in values,
14293 # but we know of no workaround that is simple, portable, and efficient.
14294 # So, we kill variables containing newlines.
14295 # Ultrix sh set writes to stderr and can't be redirected directly,
14296 # and sets the high bit in the cache file unless we assign to the vars.
14297 (
14298 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14299 eval ac_val=\$$ac_var
14300 case $ac_val in #(
14301 *${as_nl}*)
14302 case $ac_var in #(
14303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14305 esac
14306 case $ac_var in #(
14307 _ | IFS | as_nl) ;; #(
14308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14309 *) { eval $ac_var=; unset $ac_var;} ;;
14310 esac ;;
14311 esac
14312 done
14313
14314 (set) 2>&1 |
14315 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14316 *${as_nl}ac_space=\ *)
14317 # `set' does not quote correctly, so add quotes: double-quote
14318 # substitution turns \\\\ into \\, and sed turns \\ into \.
14319 sed -n \
14320 "s/'/'\\\\''/g;
14321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14322 ;; #(
14323 *)
14324 # `set' quotes correctly as required by POSIX, so do not add quotes.
14325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14326 ;;
14327 esac |
14328 sort
14329 ) |
14330 sed '
14331 /^ac_cv_env_/b end
14332 t clear
14333 :clear
14334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14335 t end
14336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14337 :end' >>confcache
14338 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14339 if test -w "$cache_file"; then
14340 test "x$cache_file" != "x/dev/null" &&
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14342 $as_echo "$as_me: updating cache $cache_file" >&6;}
14343 cat confcache >$cache_file
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14346 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14347 fi
14348 fi
14349 rm -f confcache
14350
14351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14352 # Let make expand exec_prefix.
14353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14354
14355 # Transform confdefs.h into DEFS.
14356 # Protect against shell expansion while executing Makefile rules.
14357 # Protect against Makefile macro expansion.
14358 #
14359 # If the first sed substitution is executed (which looks for macros that
14360 # take arguments), then branch to the quote section. Otherwise,
14361 # look for a macro that doesn't take arguments.
14362 ac_script='
14363 :mline
14364 /\\$/{
14365 N
14366 s,\\\n,,
14367 b mline
14368 }
14369 t clear
14370 :clear
14371 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14372 t quote
14373 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14374 t quote
14375 b any
14376 :quote
14377 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14378 s/\[/\\&/g
14379 s/\]/\\&/g
14380 s/\$/$$/g
14381 H
14382 :any
14383 ${
14384 g
14385 s/^\n//
14386 s/\n/ /g
14387 p
14388 }
14389 '
14390 DEFS=`sed -n "$ac_script" confdefs.h`
14391
14392
14393 ac_libobjs=
14394 ac_ltlibobjs=
14395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14396 # 1. Remove the extension, and $U if already installed.
14397 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14398 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14399 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14400 # will be set to the directory where LIBOBJS objects are built.
14401 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14402 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14403 done
14404 LIBOBJS=$ac_libobjs
14405
14406 LTLIBOBJS=$ac_ltlibobjs
14407
14408
14409 if test -n "$EXEEXT"; then
14410 am__EXEEXT_TRUE=
14411 am__EXEEXT_FALSE='#'
14412 else
14413 am__EXEEXT_TRUE='#'
14414 am__EXEEXT_FALSE=
14415 fi
14416
14417 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14418 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14420 fi
14421 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14422 as_fn_error "conditional \"AMDEP\" was never defined.
14423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14424 fi
14425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14426 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14428 fi
14429 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14430 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14432 fi
14433 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14434 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14436 fi
14437
14438 : ${CONFIG_STATUS=./config.status}
14439 ac_write_fail=0
14440 ac_clean_files_save=$ac_clean_files
14441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14443 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14444 as_write_fail=0
14445 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14446 #! $SHELL
14447 # Generated by $as_me.
14448 # Run this file to recreate the current configuration.
14449 # Compiler output produced by configure, useful for debugging
14450 # configure, is in config.log if it exists.
14451
14452 debug=false
14453 ac_cs_recheck=false
14454 ac_cs_silent=false
14455
14456 SHELL=\${CONFIG_SHELL-$SHELL}
14457 export SHELL
14458 _ASEOF
14459 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14460 ## -------------------- ##
14461 ## M4sh Initialization. ##
14462 ## -------------------- ##
14463
14464 # Be more Bourne compatible
14465 DUALCASE=1; export DUALCASE # for MKS sh
14466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14467 emulate sh
14468 NULLCMD=:
14469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14470 # is contrary to our usage. Disable this feature.
14471 alias -g '${1+"$@"}'='"$@"'
14472 setopt NO_GLOB_SUBST
14473 else
14474 case `(set -o) 2>/dev/null` in #(
14475 *posix*) :
14476 set -o posix ;; #(
14477 *) :
14478 ;;
14479 esac
14480 fi
14481
14482
14483 as_nl='
14484 '
14485 export as_nl
14486 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14487 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14490 # Prefer a ksh shell builtin over an external printf program on Solaris,
14491 # but without wasting forks for bash or zsh.
14492 if test -z "$BASH_VERSION$ZSH_VERSION" \
14493 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14494 as_echo='print -r --'
14495 as_echo_n='print -rn --'
14496 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14497 as_echo='printf %s\n'
14498 as_echo_n='printf %s'
14499 else
14500 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14501 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14502 as_echo_n='/usr/ucb/echo -n'
14503 else
14504 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14505 as_echo_n_body='eval
14506 arg=$1;
14507 case $arg in #(
14508 *"$as_nl"*)
14509 expr "X$arg" : "X\\(.*\\)$as_nl";
14510 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14511 esac;
14512 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14513 '
14514 export as_echo_n_body
14515 as_echo_n='sh -c $as_echo_n_body as_echo'
14516 fi
14517 export as_echo_body
14518 as_echo='sh -c $as_echo_body as_echo'
14519 fi
14520
14521 # The user is always right.
14522 if test "${PATH_SEPARATOR+set}" != set; then
14523 PATH_SEPARATOR=:
14524 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14525 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14526 PATH_SEPARATOR=';'
14527 }
14528 fi
14529
14530
14531 # IFS
14532 # We need space, tab and new line, in precisely that order. Quoting is
14533 # there to prevent editors from complaining about space-tab.
14534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14535 # splitting by setting IFS to empty value.)
14536 IFS=" "" $as_nl"
14537
14538 # Find who we are. Look in the path if we contain no directory separator.
14539 case $0 in #((
14540 *[\\/]* ) as_myself=$0 ;;
14541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14542 for as_dir in $PATH
14543 do
14544 IFS=$as_save_IFS
14545 test -z "$as_dir" && as_dir=.
14546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14547 done
14548 IFS=$as_save_IFS
14549
14550 ;;
14551 esac
14552 # We did not find ourselves, most probably we were run as `sh COMMAND'
14553 # in which case we are not to be found in the path.
14554 if test "x$as_myself" = x; then
14555 as_myself=$0
14556 fi
14557 if test ! -f "$as_myself"; then
14558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14559 exit 1
14560 fi
14561
14562 # Unset variables that we do not need and which cause bugs (e.g. in
14563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14564 # suppresses any "Segmentation fault" message there. '((' could
14565 # trigger a bug in pdksh 5.2.14.
14566 for as_var in BASH_ENV ENV MAIL MAILPATH
14567 do eval test x\${$as_var+set} = xset \
14568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14569 done
14570 PS1='$ '
14571 PS2='> '
14572 PS4='+ '
14573
14574 # NLS nuisances.
14575 LC_ALL=C
14576 export LC_ALL
14577 LANGUAGE=C
14578 export LANGUAGE
14579
14580 # CDPATH.
14581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14582
14583
14584 # as_fn_error ERROR [LINENO LOG_FD]
14585 # ---------------------------------
14586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14588 # script with status $?, using 1 if that was 0.
14589 as_fn_error ()
14590 {
14591 as_status=$?; test $as_status -eq 0 && as_status=1
14592 if test "$3"; then
14593 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14595 fi
14596 $as_echo "$as_me: error: $1" >&2
14597 as_fn_exit $as_status
14598 } # as_fn_error
14599
14600
14601 # as_fn_set_status STATUS
14602 # -----------------------
14603 # Set $? to STATUS, without forking.
14604 as_fn_set_status ()
14605 {
14606 return $1
14607 } # as_fn_set_status
14608
14609 # as_fn_exit STATUS
14610 # -----------------
14611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14612 as_fn_exit ()
14613 {
14614 set +e
14615 as_fn_set_status $1
14616 exit $1
14617 } # as_fn_exit
14618
14619 # as_fn_unset VAR
14620 # ---------------
14621 # Portably unset VAR.
14622 as_fn_unset ()
14623 {
14624 { eval $1=; unset $1;}
14625 }
14626 as_unset=as_fn_unset
14627 # as_fn_append VAR VALUE
14628 # ----------------------
14629 # Append the text in VALUE to the end of the definition contained in VAR. Take
14630 # advantage of any shell optimizations that allow amortized linear growth over
14631 # repeated appends, instead of the typical quadratic growth present in naive
14632 # implementations.
14633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14634 eval 'as_fn_append ()
14635 {
14636 eval $1+=\$2
14637 }'
14638 else
14639 as_fn_append ()
14640 {
14641 eval $1=\$$1\$2
14642 }
14643 fi # as_fn_append
14644
14645 # as_fn_arith ARG...
14646 # ------------------
14647 # Perform arithmetic evaluation on the ARGs, and store the result in the
14648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14649 # must be portable across $(()) and expr.
14650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14651 eval 'as_fn_arith ()
14652 {
14653 as_val=$(( $* ))
14654 }'
14655 else
14656 as_fn_arith ()
14657 {
14658 as_val=`expr "$@" || test $? -eq 1`
14659 }
14660 fi # as_fn_arith
14661
14662
14663 if expr a : '\(a\)' >/dev/null 2>&1 &&
14664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14665 as_expr=expr
14666 else
14667 as_expr=false
14668 fi
14669
14670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14671 as_basename=basename
14672 else
14673 as_basename=false
14674 fi
14675
14676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14677 as_dirname=dirname
14678 else
14679 as_dirname=false
14680 fi
14681
14682 as_me=`$as_basename -- "$0" ||
14683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14684 X"$0" : 'X\(//\)$' \| \
14685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14686 $as_echo X/"$0" |
14687 sed '/^.*\/\([^/][^/]*\)\/*$/{
14688 s//\1/
14689 q
14690 }
14691 /^X\/\(\/\/\)$/{
14692 s//\1/
14693 q
14694 }
14695 /^X\/\(\/\).*/{
14696 s//\1/
14697 q
14698 }
14699 s/.*/./; q'`
14700
14701 # Avoid depending upon Character Ranges.
14702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14705 as_cr_digits='0123456789'
14706 as_cr_alnum=$as_cr_Letters$as_cr_digits
14707
14708 ECHO_C= ECHO_N= ECHO_T=
14709 case `echo -n x` in #(((((
14710 -n*)
14711 case `echo 'xy\c'` in
14712 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14713 xy) ECHO_C='\c';;
14714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14715 ECHO_T=' ';;
14716 esac;;
14717 *)
14718 ECHO_N='-n';;
14719 esac
14720
14721 rm -f conf$$ conf$$.exe conf$$.file
14722 if test -d conf$$.dir; then
14723 rm -f conf$$.dir/conf$$.file
14724 else
14725 rm -f conf$$.dir
14726 mkdir conf$$.dir 2>/dev/null
14727 fi
14728 if (echo >conf$$.file) 2>/dev/null; then
14729 if ln -s conf$$.file conf$$ 2>/dev/null; then
14730 as_ln_s='ln -s'
14731 # ... but there are two gotchas:
14732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14734 # In both cases, we have to default to `cp -p'.
14735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14736 as_ln_s='cp -p'
14737 elif ln conf$$.file conf$$ 2>/dev/null; then
14738 as_ln_s=ln
14739 else
14740 as_ln_s='cp -p'
14741 fi
14742 else
14743 as_ln_s='cp -p'
14744 fi
14745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14746 rmdir conf$$.dir 2>/dev/null
14747
14748
14749 # as_fn_mkdir_p
14750 # -------------
14751 # Create "$as_dir" as a directory, including parents if necessary.
14752 as_fn_mkdir_p ()
14753 {
14754
14755 case $as_dir in #(
14756 -*) as_dir=./$as_dir;;
14757 esac
14758 test -d "$as_dir" || eval $as_mkdir_p || {
14759 as_dirs=
14760 while :; do
14761 case $as_dir in #(
14762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14763 *) as_qdir=$as_dir;;
14764 esac
14765 as_dirs="'$as_qdir' $as_dirs"
14766 as_dir=`$as_dirname -- "$as_dir" ||
14767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$as_dir" : 'X\(//\)[^/]' \| \
14769 X"$as_dir" : 'X\(//\)$' \| \
14770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14771 $as_echo X"$as_dir" |
14772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14773 s//\1/
14774 q
14775 }
14776 /^X\(\/\/\)[^/].*/{
14777 s//\1/
14778 q
14779 }
14780 /^X\(\/\/\)$/{
14781 s//\1/
14782 q
14783 }
14784 /^X\(\/\).*/{
14785 s//\1/
14786 q
14787 }
14788 s/.*/./; q'`
14789 test -d "$as_dir" && break
14790 done
14791 test -z "$as_dirs" || eval "mkdir $as_dirs"
14792 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14793
14794
14795 } # as_fn_mkdir_p
14796 if mkdir -p . 2>/dev/null; then
14797 as_mkdir_p='mkdir -p "$as_dir"'
14798 else
14799 test -d ./-p && rmdir ./-p
14800 as_mkdir_p=false
14801 fi
14802
14803 if test -x / >/dev/null 2>&1; then
14804 as_test_x='test -x'
14805 else
14806 if ls -dL / >/dev/null 2>&1; then
14807 as_ls_L_option=L
14808 else
14809 as_ls_L_option=
14810 fi
14811 as_test_x='
14812 eval sh -c '\''
14813 if test -d "$1"; then
14814 test -d "$1/.";
14815 else
14816 case $1 in #(
14817 -*)set "./$1";;
14818 esac;
14819 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14820 ???[sx]*):;;*)false;;esac;fi
14821 '\'' sh
14822 '
14823 fi
14824 as_executable_p=$as_test_x
14825
14826 # Sed expression to map a string onto a valid CPP name.
14827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14828
14829 # Sed expression to map a string onto a valid variable name.
14830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14831
14832
14833 exec 6>&1
14834 ## ----------------------------------- ##
14835 ## Main body of $CONFIG_STATUS script. ##
14836 ## ----------------------------------- ##
14837 _ASEOF
14838 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14839
14840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14841 # Save the log message, to keep $0 and so on meaningful, and to
14842 # report actual input values of CONFIG_FILES etc. instead of their
14843 # values after options handling.
14844 ac_log="
14845 This file was extended by package-unused $as_me version-unused, which was
14846 generated by GNU Autoconf 2.64. Invocation command line was
14847
14848 CONFIG_FILES = $CONFIG_FILES
14849 CONFIG_HEADERS = $CONFIG_HEADERS
14850 CONFIG_LINKS = $CONFIG_LINKS
14851 CONFIG_COMMANDS = $CONFIG_COMMANDS
14852 $ $0 $@
14853
14854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14855 "
14856
14857 _ACEOF
14858
14859 case $ac_config_files in *"
14860 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14861 esac
14862
14863
14864
14865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14866 # Files that config.status was made for.
14867 config_files="$ac_config_files"
14868 config_commands="$ac_config_commands"
14869
14870 _ACEOF
14871
14872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14873 ac_cs_usage="\
14874 \`$as_me' instantiates files and other configuration actions
14875 from templates according to the current configuration. Unless the files
14876 and actions are specified as TAGs, all are instantiated by default.
14877
14878 Usage: $0 [OPTION]... [TAG]...
14879
14880 -h, --help print this help, then exit
14881 -V, --version print version number and configuration settings, then exit
14882 -q, --quiet, --silent
14883 do not print progress messages
14884 -d, --debug don't remove temporary files
14885 --recheck update $as_me by reconfiguring in the same conditions
14886 --file=FILE[:TEMPLATE]
14887 instantiate the configuration file FILE
14888
14889 Configuration files:
14890 $config_files
14891
14892 Configuration commands:
14893 $config_commands
14894
14895 Report bugs to <libsanitizer>."
14896
14897 _ACEOF
14898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14899 ac_cs_version="\\
14900 package-unused config.status version-unused
14901 configured by $0, generated by GNU Autoconf 2.64,
14902 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14903
14904 Copyright (C) 2009 Free Software Foundation, Inc.
14905 This config.status script is free software; the Free Software Foundation
14906 gives unlimited permission to copy, distribute and modify it."
14907
14908 ac_pwd='$ac_pwd'
14909 srcdir='$srcdir'
14910 INSTALL='$INSTALL'
14911 MKDIR_P='$MKDIR_P'
14912 AWK='$AWK'
14913 test -n "\$AWK" || AWK=awk
14914 _ACEOF
14915
14916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917 # The default lists apply if the user does not specify any file.
14918 ac_need_defaults=:
14919 while test $# != 0
14920 do
14921 case $1 in
14922 --*=*)
14923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14924 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14925 ac_shift=:
14926 ;;
14927 *)
14928 ac_option=$1
14929 ac_optarg=$2
14930 ac_shift=shift
14931 ;;
14932 esac
14933
14934 case $ac_option in
14935 # Handling of the options.
14936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14937 ac_cs_recheck=: ;;
14938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14939 $as_echo "$ac_cs_version"; exit ;;
14940 --debug | --debu | --deb | --de | --d | -d )
14941 debug=: ;;
14942 --file | --fil | --fi | --f )
14943 $ac_shift
14944 case $ac_optarg in
14945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14946 esac
14947 as_fn_append CONFIG_FILES " '$ac_optarg'"
14948 ac_need_defaults=false;;
14949 --he | --h | --help | --hel | -h )
14950 $as_echo "$ac_cs_usage"; exit ;;
14951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14953 ac_cs_silent=: ;;
14954
14955 # This is an error.
14956 -*) as_fn_error "unrecognized option: \`$1'
14957 Try \`$0 --help' for more information." ;;
14958
14959 *) as_fn_append ac_config_targets " $1"
14960 ac_need_defaults=false ;;
14961
14962 esac
14963 shift
14964 done
14965
14966 ac_configure_extra_args=
14967
14968 if $ac_cs_silent; then
14969 exec 6>/dev/null
14970 ac_configure_extra_args="$ac_configure_extra_args --silent"
14971 fi
14972
14973 _ACEOF
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 if \$ac_cs_recheck; then
14976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14977 shift
14978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14979 CONFIG_SHELL='$SHELL'
14980 export CONFIG_SHELL
14981 exec "\$@"
14982 fi
14983
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986 exec 5>>config.log
14987 {
14988 echo
14989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14990 ## Running $as_me. ##
14991 _ASBOX
14992 $as_echo "$ac_log"
14993 } >&5
14994
14995 _ACEOF
14996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14997 #
14998 # INIT-COMMANDS
14999 #
15000
15001 srcdir="$srcdir"
15002 host="$host"
15003 target="$target"
15004 with_multisubdir="$with_multisubdir"
15005 with_multisrctop="$with_multisrctop"
15006 with_target_subdir="$with_target_subdir"
15007 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15008 multi_basedir="$multi_basedir"
15009 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15010 CC="$CC"
15011 CXX="$CXX"
15012 GFORTRAN="$GFORTRAN"
15013 GCJ="$GCJ"
15014 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15015
15016
15017 # The HP-UX ksh and POSIX shell print the target directory to stdout
15018 # if CDPATH is set.
15019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15020
15021 sed_quote_subst='$sed_quote_subst'
15022 double_quote_subst='$double_quote_subst'
15023 delay_variable_subst='$delay_variable_subst'
15024 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15025 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15026 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15027 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15028 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15029 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15030 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15031 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15038 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15039 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15040 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15041 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15042 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15043 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15044 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15045 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15046 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15047 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15048 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15049 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15050 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15051 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15052 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15053 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15054 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15055 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15056 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15057 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15058 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15059 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15060 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15061 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15062 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15063 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15064 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15065 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15066 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15067 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15068 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15069 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15070 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15071 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15072 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"`'
15073 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15074 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15075 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15076 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15077 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15078 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15079 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15080 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15081 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15082 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15083 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15084 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15085 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15086 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15087 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15088 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15089 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15090 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15091 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15092 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15093 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15094 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15095 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15096 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15097 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15098 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15099 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15100 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15101 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15102 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15103 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15104 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15105 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15106 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15107 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15108 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15109 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15110 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15111 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15112 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15113 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15114 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15115 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15116 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15117 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15118 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15119 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15120 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15121 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15122 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15123 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15124 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15125 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15126 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15127 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15128 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15129 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15130 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15131 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15132 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15133 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15134 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15135 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15136 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15137 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15138 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15139 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15140 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15141 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15142 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15143 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15144 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15145 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15146 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15147 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15148 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15149 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15150 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15151 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15152 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15153 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15154 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15155 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15156 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15157 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15158 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15159 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15160 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15161 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15162 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15163 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15164 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15165 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15166 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15167 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15168 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15169 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15170 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15171 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15172 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15173 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15174 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15175 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15176 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15177 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15178 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15179 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15180 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15181 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15182 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15183 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15184 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15185 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15186 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15187 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15188 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15189 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15190 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15191 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15192 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15193 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15194 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15195 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15196 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15197 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15198 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15199
15200 LTCC='$LTCC'
15201 LTCFLAGS='$LTCFLAGS'
15202 compiler='$compiler_DEFAULT'
15203
15204 # A function that is used when there is no print builtin or printf.
15205 func_fallback_echo ()
15206 {
15207 eval 'cat <<_LTECHO_EOF
15208 \$1
15209 _LTECHO_EOF'
15210 }
15211
15212 # Quote evaled strings.
15213 for var in SHELL \
15214 ECHO \
15215 SED \
15216 GREP \
15217 EGREP \
15218 FGREP \
15219 LD \
15220 NM \
15221 LN_S \
15222 lt_SP2NL \
15223 lt_NL2SP \
15224 reload_flag \
15225 OBJDUMP \
15226 deplibs_check_method \
15227 file_magic_cmd \
15228 AR \
15229 AR_FLAGS \
15230 STRIP \
15231 RANLIB \
15232 CC \
15233 CFLAGS \
15234 compiler \
15235 lt_cv_sys_global_symbol_pipe \
15236 lt_cv_sys_global_symbol_to_cdecl \
15237 lt_cv_sys_global_symbol_to_c_name_address \
15238 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15239 lt_prog_compiler_no_builtin_flag \
15240 lt_prog_compiler_wl \
15241 lt_prog_compiler_pic \
15242 lt_prog_compiler_static \
15243 lt_cv_prog_compiler_c_o \
15244 need_locks \
15245 DSYMUTIL \
15246 NMEDIT \
15247 LIPO \
15248 OTOOL \
15249 OTOOL64 \
15250 shrext_cmds \
15251 export_dynamic_flag_spec \
15252 whole_archive_flag_spec \
15253 compiler_needs_object \
15254 with_gnu_ld \
15255 allow_undefined_flag \
15256 no_undefined_flag \
15257 hardcode_libdir_flag_spec \
15258 hardcode_libdir_flag_spec_ld \
15259 hardcode_libdir_separator \
15260 fix_srcfile_path \
15261 exclude_expsyms \
15262 include_expsyms \
15263 file_list_spec \
15264 variables_saved_for_relink \
15265 libname_spec \
15266 library_names_spec \
15267 soname_spec \
15268 install_override_mode \
15269 finish_eval \
15270 old_striplib \
15271 striplib \
15272 compiler_lib_search_dirs \
15273 predep_objects \
15274 postdep_objects \
15275 predeps \
15276 postdeps \
15277 compiler_lib_search_path \
15278 LD_CXX \
15279 reload_flag_CXX \
15280 compiler_CXX \
15281 lt_prog_compiler_no_builtin_flag_CXX \
15282 lt_prog_compiler_wl_CXX \
15283 lt_prog_compiler_pic_CXX \
15284 lt_prog_compiler_static_CXX \
15285 lt_cv_prog_compiler_c_o_CXX \
15286 export_dynamic_flag_spec_CXX \
15287 whole_archive_flag_spec_CXX \
15288 compiler_needs_object_CXX \
15289 with_gnu_ld_CXX \
15290 allow_undefined_flag_CXX \
15291 no_undefined_flag_CXX \
15292 hardcode_libdir_flag_spec_CXX \
15293 hardcode_libdir_flag_spec_ld_CXX \
15294 hardcode_libdir_separator_CXX \
15295 fix_srcfile_path_CXX \
15296 exclude_expsyms_CXX \
15297 include_expsyms_CXX \
15298 file_list_spec_CXX \
15299 compiler_lib_search_dirs_CXX \
15300 predep_objects_CXX \
15301 postdep_objects_CXX \
15302 predeps_CXX \
15303 postdeps_CXX \
15304 compiler_lib_search_path_CXX; do
15305 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15306 *[\\\\\\\`\\"\\\$]*)
15307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15308 ;;
15309 *)
15310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15311 ;;
15312 esac
15313 done
15314
15315 # Double-quote double-evaled strings.
15316 for var in reload_cmds \
15317 old_postinstall_cmds \
15318 old_postuninstall_cmds \
15319 old_archive_cmds \
15320 extract_expsyms_cmds \
15321 old_archive_from_new_cmds \
15322 old_archive_from_expsyms_cmds \
15323 archive_cmds \
15324 archive_expsym_cmds \
15325 module_cmds \
15326 module_expsym_cmds \
15327 export_symbols_cmds \
15328 prelink_cmds \
15329 postinstall_cmds \
15330 postuninstall_cmds \
15331 finish_cmds \
15332 sys_lib_search_path_spec \
15333 sys_lib_dlsearch_path_spec \
15334 reload_cmds_CXX \
15335 old_archive_cmds_CXX \
15336 old_archive_from_new_cmds_CXX \
15337 old_archive_from_expsyms_cmds_CXX \
15338 archive_cmds_CXX \
15339 archive_expsym_cmds_CXX \
15340 module_cmds_CXX \
15341 module_expsym_cmds_CXX \
15342 export_symbols_cmds_CXX \
15343 prelink_cmds_CXX; do
15344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15345 *[\\\\\\\`\\"\\\$]*)
15346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15347 ;;
15348 *)
15349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15350 ;;
15351 esac
15352 done
15353
15354 ac_aux_dir='$ac_aux_dir'
15355 xsi_shell='$xsi_shell'
15356 lt_shell_append='$lt_shell_append'
15357
15358 # See if we are running on zsh, and set the options which allow our
15359 # commands through without removal of \ escapes INIT.
15360 if test -n "\${ZSH_VERSION+set}" ; then
15361 setopt NO_GLOB_SUBST
15362 fi
15363
15364
15365 PACKAGE='$PACKAGE'
15366 VERSION='$VERSION'
15367 TIMESTAMP='$TIMESTAMP'
15368 RM='$RM'
15369 ofile='$ofile'
15370
15371
15372
15373
15374
15375
15376 _ACEOF
15377
15378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379
15380 # Handling of arguments.
15381 for ac_config_target in $ac_config_targets
15382 do
15383 case $ac_config_target in
15384 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15385 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15386 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15388 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15389 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15390 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15391
15392 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15393 esac
15394 done
15395
15396
15397 # If the user did not use the arguments to specify the items to instantiate,
15398 # then the envvar interface is used. Set only those that are not.
15399 # We use the long form for the default assignment because of an extremely
15400 # bizarre bug on SunOS 4.1.3.
15401 if $ac_need_defaults; then
15402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15404 fi
15405
15406 # Have a temporary directory for convenience. Make it in the build tree
15407 # simply because there is no reason against having it here, and in addition,
15408 # creating and moving files from /tmp can sometimes cause problems.
15409 # Hook for its removal unless debugging.
15410 # Note that there is a small window in which the directory will not be cleaned:
15411 # after its creation but before its name has been assigned to `$tmp'.
15412 $debug ||
15413 {
15414 tmp=
15415 trap 'exit_status=$?
15416 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15417 ' 0
15418 trap 'as_fn_exit 1' 1 2 13 15
15419 }
15420 # Create a (secure) tmp directory for tmp files.
15421
15422 {
15423 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15424 test -n "$tmp" && test -d "$tmp"
15425 } ||
15426 {
15427 tmp=./conf$$-$RANDOM
15428 (umask 077 && mkdir "$tmp")
15429 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15430
15431 # Set up the scripts for CONFIG_FILES section.
15432 # No need to generate them if there are no CONFIG_FILES.
15433 # This happens for instance with `./config.status config.h'.
15434 if test -n "$CONFIG_FILES"; then
15435
15436
15437 ac_cr=`echo X | tr X '\015'`
15438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15439 # But we know of no other shell where ac_cr would be empty at this
15440 # point, so we can use a bashism as a fallback.
15441 if test "x$ac_cr" = x; then
15442 eval ac_cr=\$\'\\r\'
15443 fi
15444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15446 ac_cs_awk_cr='\r'
15447 else
15448 ac_cs_awk_cr=$ac_cr
15449 fi
15450
15451 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15452 _ACEOF
15453
15454
15455 {
15456 echo "cat >conf$$subs.awk <<_ACEOF" &&
15457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15458 echo "_ACEOF"
15459 } >conf$$subs.sh ||
15460 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15462 ac_delim='%!_!# '
15463 for ac_last_try in false false false false false :; do
15464 . ./conf$$subs.sh ||
15465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15466
15467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15468 if test $ac_delim_n = $ac_delim_num; then
15469 break
15470 elif $ac_last_try; then
15471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15472 else
15473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15474 fi
15475 done
15476 rm -f conf$$subs.sh
15477
15478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15479 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15480 _ACEOF
15481 sed -n '
15482 h
15483 s/^/S["/; s/!.*/"]=/
15484 p
15485 g
15486 s/^[^!]*!//
15487 :repl
15488 t repl
15489 s/'"$ac_delim"'$//
15490 t delim
15491 :nl
15492 h
15493 s/\(.\{148\}\).*/\1/
15494 t more1
15495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15496 p
15497 n
15498 b repl
15499 :more1
15500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15501 p
15502 g
15503 s/.\{148\}//
15504 t nl
15505 :delim
15506 h
15507 s/\(.\{148\}\).*/\1/
15508 t more2
15509 s/["\\]/\\&/g; s/^/"/; s/$/"/
15510 p
15511 b
15512 :more2
15513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15514 p
15515 g
15516 s/.\{148\}//
15517 t delim
15518 ' <conf$$subs.awk | sed '
15519 /^[^""]/{
15520 N
15521 s/\n//
15522 }
15523 ' >>$CONFIG_STATUS || ac_write_fail=1
15524 rm -f conf$$subs.awk
15525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15526 _ACAWK
15527 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15528 for (key in S) S_is_set[key] = 1
15529 FS = "\a"
15530
15531 }
15532 {
15533 line = $ 0
15534 nfields = split(line, field, "@")
15535 substed = 0
15536 len = length(field[1])
15537 for (i = 2; i < nfields; i++) {
15538 key = field[i]
15539 keylen = length(key)
15540 if (S_is_set[key]) {
15541 value = S[key]
15542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15543 len += length(value) + length(field[++i])
15544 substed = 1
15545 } else
15546 len += 1 + keylen
15547 }
15548
15549 print line
15550 }
15551
15552 _ACAWK
15553 _ACEOF
15554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15557 else
15558 cat
15559 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15560 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15561 _ACEOF
15562
15563 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15564 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15565 # trailing colons and then remove the whole line if VPATH becomes empty
15566 # (actually we leave an empty line to preserve line numbers).
15567 if test "x$srcdir" = x.; then
15568 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15569 s/:*\$(srcdir):*/:/
15570 s/:*\${srcdir}:*/:/
15571 s/:*@srcdir@:*/:/
15572 s/^\([^=]*=[ ]*\):*/\1/
15573 s/:*$//
15574 s/^[^=]*=[ ]*$//
15575 }'
15576 fi
15577
15578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15579 fi # test -n "$CONFIG_FILES"
15580
15581
15582 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15583 shift
15584 for ac_tag
15585 do
15586 case $ac_tag in
15587 :[FHLC]) ac_mode=$ac_tag; continue;;
15588 esac
15589 case $ac_mode$ac_tag in
15590 :[FHL]*:*);;
15591 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15592 :[FH]-) ac_tag=-:-;;
15593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15594 esac
15595 ac_save_IFS=$IFS
15596 IFS=:
15597 set x $ac_tag
15598 IFS=$ac_save_IFS
15599 shift
15600 ac_file=$1
15601 shift
15602
15603 case $ac_mode in
15604 :L) ac_source=$1;;
15605 :[FH])
15606 ac_file_inputs=
15607 for ac_f
15608 do
15609 case $ac_f in
15610 -) ac_f="$tmp/stdin";;
15611 *) # Look for the file first in the build tree, then in the source tree
15612 # (if the path is not absolute). The absolute path cannot be DOS-style,
15613 # because $ac_f cannot contain `:'.
15614 test -f "$ac_f" ||
15615 case $ac_f in
15616 [\\/$]*) false;;
15617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15618 esac ||
15619 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15620 esac
15621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15622 as_fn_append ac_file_inputs " '$ac_f'"
15623 done
15624
15625 # Let's still pretend it is `configure' which instantiates (i.e., don't
15626 # use $as_me), people would be surprised to read:
15627 # /* config.h. Generated by config.status. */
15628 configure_input='Generated from '`
15629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15630 `' by configure.'
15631 if test x"$ac_file" != x-; then
15632 configure_input="$ac_file. $configure_input"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15634 $as_echo "$as_me: creating $ac_file" >&6;}
15635 fi
15636 # Neutralize special characters interpreted by sed in replacement strings.
15637 case $configure_input in #(
15638 *\&* | *\|* | *\\* )
15639 ac_sed_conf_input=`$as_echo "$configure_input" |
15640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15641 *) ac_sed_conf_input=$configure_input;;
15642 esac
15643
15644 case $ac_tag in
15645 *:-:* | *:-) cat >"$tmp/stdin" \
15646 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15647 esac
15648 ;;
15649 esac
15650
15651 ac_dir=`$as_dirname -- "$ac_file" ||
15652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15653 X"$ac_file" : 'X\(//\)[^/]' \| \
15654 X"$ac_file" : 'X\(//\)$' \| \
15655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15656 $as_echo X"$ac_file" |
15657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15658 s//\1/
15659 q
15660 }
15661 /^X\(\/\/\)[^/].*/{
15662 s//\1/
15663 q
15664 }
15665 /^X\(\/\/\)$/{
15666 s//\1/
15667 q
15668 }
15669 /^X\(\/\).*/{
15670 s//\1/
15671 q
15672 }
15673 s/.*/./; q'`
15674 as_dir="$ac_dir"; as_fn_mkdir_p
15675 ac_builddir=.
15676
15677 case "$ac_dir" in
15678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15679 *)
15680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15681 # A ".." for each directory in $ac_dir_suffix.
15682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15683 case $ac_top_builddir_sub in
15684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15686 esac ;;
15687 esac
15688 ac_abs_top_builddir=$ac_pwd
15689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15690 # for backward compatibility:
15691 ac_top_builddir=$ac_top_build_prefix
15692
15693 case $srcdir in
15694 .) # We are building in place.
15695 ac_srcdir=.
15696 ac_top_srcdir=$ac_top_builddir_sub
15697 ac_abs_top_srcdir=$ac_pwd ;;
15698 [\\/]* | ?:[\\/]* ) # Absolute name.
15699 ac_srcdir=$srcdir$ac_dir_suffix;
15700 ac_top_srcdir=$srcdir
15701 ac_abs_top_srcdir=$srcdir ;;
15702 *) # Relative name.
15703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15704 ac_top_srcdir=$ac_top_build_prefix$srcdir
15705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15706 esac
15707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15708
15709
15710 case $ac_mode in
15711 :F)
15712 #
15713 # CONFIG_FILE
15714 #
15715
15716 case $INSTALL in
15717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15719 esac
15720 ac_MKDIR_P=$MKDIR_P
15721 case $MKDIR_P in
15722 [\\/$]* | ?:[\\/]* ) ;;
15723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15724 esac
15725 _ACEOF
15726
15727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15728 # If the template does not know about datarootdir, expand it.
15729 # FIXME: This hack should be removed a few years after 2.60.
15730 ac_datarootdir_hack=; ac_datarootdir_seen=
15731 ac_sed_dataroot='
15732 /datarootdir/ {
15733 p
15734 q
15735 }
15736 /@datadir@/p
15737 /@docdir@/p
15738 /@infodir@/p
15739 /@localedir@/p
15740 /@mandir@/p'
15741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15742 *datarootdir*) ac_datarootdir_seen=yes;;
15743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15746 _ACEOF
15747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15748 ac_datarootdir_hack='
15749 s&@datadir@&$datadir&g
15750 s&@docdir@&$docdir&g
15751 s&@infodir@&$infodir&g
15752 s&@localedir@&$localedir&g
15753 s&@mandir@&$mandir&g
15754 s&\\\${datarootdir}&$datarootdir&g' ;;
15755 esac
15756 _ACEOF
15757
15758 # Neutralize VPATH when `$srcdir' = `.'.
15759 # Shell code in configure.ac might set extrasub.
15760 # FIXME: do we really want to maintain this feature?
15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762 ac_sed_extra="$ac_vpsub
15763 $extrasub
15764 _ACEOF
15765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15766 :t
15767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15768 s|@configure_input@|$ac_sed_conf_input|;t t
15769 s&@top_builddir@&$ac_top_builddir_sub&;t t
15770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15771 s&@srcdir@&$ac_srcdir&;t t
15772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15773 s&@top_srcdir@&$ac_top_srcdir&;t t
15774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15775 s&@builddir@&$ac_builddir&;t t
15776 s&@abs_builddir@&$ac_abs_builddir&;t t
15777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15778 s&@INSTALL@&$ac_INSTALL&;t t
15779 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15780 $ac_datarootdir_hack
15781 "
15782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15783 || as_fn_error "could not create $ac_file" "$LINENO" 5
15784
15785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15789 which seems to be undefined. Please make sure it is defined." >&5
15790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15791 which seems to be undefined. Please make sure it is defined." >&2;}
15792
15793 rm -f "$tmp/stdin"
15794 case $ac_file in
15795 -) cat "$tmp/out" && rm -f "$tmp/out";;
15796 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15797 esac \
15798 || as_fn_error "could not create $ac_file" "$LINENO" 5
15799 ;;
15800
15801
15802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15803 $as_echo "$as_me: executing $ac_file commands" >&6;}
15804 ;;
15805 esac
15806
15807
15808 case $ac_file$ac_mode in
15809 "default-1":C)
15810 # Only add multilib support code if we just rebuilt the top-level
15811 # Makefile.
15812 case " $CONFIG_FILES " in
15813 *" Makefile "*)
15814 ac_file=Makefile . ${multi_basedir}/config-ml.in
15815 ;;
15816 esac ;;
15817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15818 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15819 # are listed without --file. Let's play safe and only enable the eval
15820 # if we detect the quoting.
15821 case $CONFIG_FILES in
15822 *\'*) eval set x "$CONFIG_FILES" ;;
15823 *) set x $CONFIG_FILES ;;
15824 esac
15825 shift
15826 for mf
15827 do
15828 # Strip MF so we end up with the name of the file.
15829 mf=`echo "$mf" | sed -e 's/:.*$//'`
15830 # Check whether this is an Automake generated Makefile or not.
15831 # We used to match only the files named `Makefile.in', but
15832 # some people rename them; so instead we look at the file content.
15833 # Grep'ing the first line is not enough: some people post-process
15834 # each Makefile.in and add a new line on top of each file to say so.
15835 # Grep'ing the whole file is not good either: AIX grep has a line
15836 # limit of 2048, but all sed's we know have understand at least 4000.
15837 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15838 dirpart=`$as_dirname -- "$mf" ||
15839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$mf" : 'X\(//\)[^/]' \| \
15841 X"$mf" : 'X\(//\)$' \| \
15842 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X"$mf" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15845 s//\1/
15846 q
15847 }
15848 /^X\(\/\/\)[^/].*/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\/\)$/{
15853 s//\1/
15854 q
15855 }
15856 /^X\(\/\).*/{
15857 s//\1/
15858 q
15859 }
15860 s/.*/./; q'`
15861 else
15862 continue
15863 fi
15864 # Extract the definition of DEPDIR, am__include, and am__quote
15865 # from the Makefile without running `make'.
15866 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15867 test -z "$DEPDIR" && continue
15868 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15869 test -z "am__include" && continue
15870 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15871 # When using ansi2knr, U may be empty or an underscore; expand it
15872 U=`sed -n 's/^U = //p' < "$mf"`
15873 # Find all dependency output files, they are included files with
15874 # $(DEPDIR) in their names. We invoke sed twice because it is the
15875 # simplest approach to changing $(DEPDIR) to its actual value in the
15876 # expansion.
15877 for file in `sed -n "
15878 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15879 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15880 # Make sure the directory exists.
15881 test -f "$dirpart/$file" && continue
15882 fdir=`$as_dirname -- "$file" ||
15883 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15884 X"$file" : 'X\(//\)[^/]' \| \
15885 X"$file" : 'X\(//\)$' \| \
15886 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15887 $as_echo X"$file" |
15888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15889 s//\1/
15890 q
15891 }
15892 /^X\(\/\/\)[^/].*/{
15893 s//\1/
15894 q
15895 }
15896 /^X\(\/\/\)$/{
15897 s//\1/
15898 q
15899 }
15900 /^X\(\/\).*/{
15901 s//\1/
15902 q
15903 }
15904 s/.*/./; q'`
15905 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15906 # echo "creating $dirpart/$file"
15907 echo '# dummy' > "$dirpart/$file"
15908 done
15909 done
15910 }
15911 ;;
15912 "libtool":C)
15913
15914 # See if we are running on zsh, and set the options which allow our
15915 # commands through without removal of \ escapes.
15916 if test -n "${ZSH_VERSION+set}" ; then
15917 setopt NO_GLOB_SUBST
15918 fi
15919
15920 cfgfile="${ofile}T"
15921 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15922 $RM "$cfgfile"
15923
15924 cat <<_LT_EOF >> "$cfgfile"
15925 #! $SHELL
15926
15927 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15928 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15929 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15930 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15931 #
15932 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15933 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15934 # Written by Gordon Matzigkeit, 1996
15935 #
15936 # This file is part of GNU Libtool.
15937 #
15938 # GNU Libtool is free software; you can redistribute it and/or
15939 # modify it under the terms of the GNU General Public License as
15940 # published by the Free Software Foundation; either version 2 of
15941 # the License, or (at your option) any later version.
15942 #
15943 # As a special exception to the GNU General Public License,
15944 # if you distribute this file as part of a program or library that
15945 # is built using GNU Libtool, you may include this file under the
15946 # same distribution terms that you use for the rest of that program.
15947 #
15948 # GNU Libtool is distributed in the hope that it will be useful,
15949 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15951 # GNU General Public License for more details.
15952 #
15953 # You should have received a copy of the GNU General Public License
15954 # along with GNU Libtool; see the file COPYING. If not, a copy
15955 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15956 # obtained by writing to the Free Software Foundation, Inc.,
15957 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15958
15959
15960 # The names of the tagged configurations supported by this script.
15961 available_tags="CXX "
15962
15963 # ### BEGIN LIBTOOL CONFIG
15964
15965 # Which release of libtool.m4 was used?
15966 macro_version=$macro_version
15967 macro_revision=$macro_revision
15968
15969 # Whether or not to build shared libraries.
15970 build_libtool_libs=$enable_shared
15971
15972 # Whether or not to build static libraries.
15973 build_old_libs=$enable_static
15974
15975 # What type of objects to build.
15976 pic_mode=$pic_mode
15977
15978 # Whether or not to optimize for fast installation.
15979 fast_install=$enable_fast_install
15980
15981 # Shell to use when invoking shell scripts.
15982 SHELL=$lt_SHELL
15983
15984 # An echo program that protects backslashes.
15985 ECHO=$lt_ECHO
15986
15987 # The host system.
15988 host_alias=$host_alias
15989 host=$host
15990 host_os=$host_os
15991
15992 # The build system.
15993 build_alias=$build_alias
15994 build=$build
15995 build_os=$build_os
15996
15997 # A sed program that does not truncate output.
15998 SED=$lt_SED
15999
16000 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16001 Xsed="\$SED -e 1s/^X//"
16002
16003 # A grep program that handles long lines.
16004 GREP=$lt_GREP
16005
16006 # An ERE matcher.
16007 EGREP=$lt_EGREP
16008
16009 # A literal string matcher.
16010 FGREP=$lt_FGREP
16011
16012 # A BSD- or MS-compatible name lister.
16013 NM=$lt_NM
16014
16015 # Whether we need soft or hard links.
16016 LN_S=$lt_LN_S
16017
16018 # What is the maximum length of a command?
16019 max_cmd_len=$max_cmd_len
16020
16021 # Object file suffix (normally "o").
16022 objext=$ac_objext
16023
16024 # Executable file suffix (normally "").
16025 exeext=$exeext
16026
16027 # whether the shell understands "unset".
16028 lt_unset=$lt_unset
16029
16030 # turn spaces into newlines.
16031 SP2NL=$lt_lt_SP2NL
16032
16033 # turn newlines into spaces.
16034 NL2SP=$lt_lt_NL2SP
16035
16036 # An object symbol dumper.
16037 OBJDUMP=$lt_OBJDUMP
16038
16039 # Method to check whether dependent libraries are shared objects.
16040 deplibs_check_method=$lt_deplibs_check_method
16041
16042 # Command to use when deplibs_check_method == "file_magic".
16043 file_magic_cmd=$lt_file_magic_cmd
16044
16045 # The archiver.
16046 AR=$lt_AR
16047 AR_FLAGS=$lt_AR_FLAGS
16048
16049 # A symbol stripping program.
16050 STRIP=$lt_STRIP
16051
16052 # Commands used to install an old-style archive.
16053 RANLIB=$lt_RANLIB
16054 old_postinstall_cmds=$lt_old_postinstall_cmds
16055 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16056
16057 # Whether to use a lock for old archive extraction.
16058 lock_old_archive_extraction=$lock_old_archive_extraction
16059
16060 # A C compiler.
16061 LTCC=$lt_CC
16062
16063 # LTCC compiler flags.
16064 LTCFLAGS=$lt_CFLAGS
16065
16066 # Take the output of nm and produce a listing of raw symbols and C names.
16067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16068
16069 # Transform the output of nm in a proper C declaration.
16070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16071
16072 # Transform the output of nm in a C name address pair.
16073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16074
16075 # Transform the output of nm in a C name address pair when lib prefix is needed.
16076 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16077
16078 # The name of the directory that contains temporary libtool files.
16079 objdir=$objdir
16080
16081 # Used to examine libraries when file_magic_cmd begins with "file".
16082 MAGIC_CMD=$MAGIC_CMD
16083
16084 # Must we lock files when doing compilation?
16085 need_locks=$lt_need_locks
16086
16087 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16088 DSYMUTIL=$lt_DSYMUTIL
16089
16090 # Tool to change global to local symbols on Mac OS X.
16091 NMEDIT=$lt_NMEDIT
16092
16093 # Tool to manipulate fat objects and archives on Mac OS X.
16094 LIPO=$lt_LIPO
16095
16096 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16097 OTOOL=$lt_OTOOL
16098
16099 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16100 OTOOL64=$lt_OTOOL64
16101
16102 # Old archive suffix (normally "a").
16103 libext=$libext
16104
16105 # Shared library suffix (normally ".so").
16106 shrext_cmds=$lt_shrext_cmds
16107
16108 # The commands to extract the exported symbol list from a shared archive.
16109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16110
16111 # Variables whose values should be saved in libtool wrapper scripts and
16112 # restored at link time.
16113 variables_saved_for_relink=$lt_variables_saved_for_relink
16114
16115 # Do we need the "lib" prefix for modules?
16116 need_lib_prefix=$need_lib_prefix
16117
16118 # Do we need a version for libraries?
16119 need_version=$need_version
16120
16121 # Library versioning type.
16122 version_type=$version_type
16123
16124 # Shared library runtime path variable.
16125 runpath_var=$runpath_var
16126
16127 # Shared library path variable.
16128 shlibpath_var=$shlibpath_var
16129
16130 # Is shlibpath searched before the hard-coded library search path?
16131 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16132
16133 # Format of library name prefix.
16134 libname_spec=$lt_libname_spec
16135
16136 # List of archive names. First name is the real one, the rest are links.
16137 # The last name is the one that the linker finds with -lNAME
16138 library_names_spec=$lt_library_names_spec
16139
16140 # The coded name of the library, if different from the real name.
16141 soname_spec=$lt_soname_spec
16142
16143 # Permission mode override for installation of shared libraries.
16144 install_override_mode=$lt_install_override_mode
16145
16146 # Command to use after installation of a shared archive.
16147 postinstall_cmds=$lt_postinstall_cmds
16148
16149 # Command to use after uninstallation of a shared archive.
16150 postuninstall_cmds=$lt_postuninstall_cmds
16151
16152 # Commands used to finish a libtool library installation in a directory.
16153 finish_cmds=$lt_finish_cmds
16154
16155 # As "finish_cmds", except a single script fragment to be evaled but
16156 # not shown.
16157 finish_eval=$lt_finish_eval
16158
16159 # Whether we should hardcode library paths into libraries.
16160 hardcode_into_libs=$hardcode_into_libs
16161
16162 # Compile-time system search path for libraries.
16163 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16164
16165 # Run-time system search path for libraries.
16166 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16167
16168 # Whether dlopen is supported.
16169 dlopen_support=$enable_dlopen
16170
16171 # Whether dlopen of programs is supported.
16172 dlopen_self=$enable_dlopen_self
16173
16174 # Whether dlopen of statically linked programs is supported.
16175 dlopen_self_static=$enable_dlopen_self_static
16176
16177 # Commands to strip libraries.
16178 old_striplib=$lt_old_striplib
16179 striplib=$lt_striplib
16180
16181
16182 # The linker used to build libraries.
16183 LD=$lt_LD
16184
16185 # How to create reloadable object files.
16186 reload_flag=$lt_reload_flag
16187 reload_cmds=$lt_reload_cmds
16188
16189 # Commands used to build an old-style archive.
16190 old_archive_cmds=$lt_old_archive_cmds
16191
16192 # A language specific compiler.
16193 CC=$lt_compiler
16194
16195 # Is the compiler the GNU compiler?
16196 with_gcc=$GCC
16197
16198 # Compiler flag to turn off builtin functions.
16199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16200
16201 # How to pass a linker flag through the compiler.
16202 wl=$lt_lt_prog_compiler_wl
16203
16204 # Additional compiler flags for building library objects.
16205 pic_flag=$lt_lt_prog_compiler_pic
16206
16207 # Compiler flag to prevent dynamic linking.
16208 link_static_flag=$lt_lt_prog_compiler_static
16209
16210 # Does compiler simultaneously support -c and -o options?
16211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16212
16213 # Whether or not to add -lc for building shared libraries.
16214 build_libtool_need_lc=$archive_cmds_need_lc
16215
16216 # Whether or not to disallow shared libs when runtime libs are static.
16217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16218
16219 # Compiler flag to allow reflexive dlopens.
16220 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16221
16222 # Compiler flag to generate shared objects directly from archives.
16223 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16224
16225 # Whether the compiler copes with passing no objects directly.
16226 compiler_needs_object=$lt_compiler_needs_object
16227
16228 # Create an old-style archive from a shared archive.
16229 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16230
16231 # Create a temporary old-style archive to link instead of a shared archive.
16232 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16233
16234 # Commands used to build a shared archive.
16235 archive_cmds=$lt_archive_cmds
16236 archive_expsym_cmds=$lt_archive_expsym_cmds
16237
16238 # Commands used to build a loadable module if different from building
16239 # a shared archive.
16240 module_cmds=$lt_module_cmds
16241 module_expsym_cmds=$lt_module_expsym_cmds
16242
16243 # Whether we are building with GNU ld or not.
16244 with_gnu_ld=$lt_with_gnu_ld
16245
16246 # Flag that allows shared libraries with undefined symbols to be built.
16247 allow_undefined_flag=$lt_allow_undefined_flag
16248
16249 # Flag that enforces no undefined symbols.
16250 no_undefined_flag=$lt_no_undefined_flag
16251
16252 # Flag to hardcode \$libdir into a binary during linking.
16253 # This must work even if \$libdir does not exist
16254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16255
16256 # If ld is used when linking, flag to hardcode \$libdir into a binary
16257 # during linking. This must work even if \$libdir does not exist.
16258 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16259
16260 # Whether we need a single "-rpath" flag with a separated argument.
16261 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16262
16263 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16264 # DIR into the resulting binary.
16265 hardcode_direct=$hardcode_direct
16266
16267 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16268 # DIR into the resulting binary and the resulting library dependency is
16269 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16270 # library is relocated.
16271 hardcode_direct_absolute=$hardcode_direct_absolute
16272
16273 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16274 # into the resulting binary.
16275 hardcode_minus_L=$hardcode_minus_L
16276
16277 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16278 # into the resulting binary.
16279 hardcode_shlibpath_var=$hardcode_shlibpath_var
16280
16281 # Set to "yes" if building a shared library automatically hardcodes DIR
16282 # into the library and all subsequent libraries and executables linked
16283 # against it.
16284 hardcode_automatic=$hardcode_automatic
16285
16286 # Set to yes if linker adds runtime paths of dependent libraries
16287 # to runtime path list.
16288 inherit_rpath=$inherit_rpath
16289
16290 # Whether libtool must link a program against all its dependency libraries.
16291 link_all_deplibs=$link_all_deplibs
16292
16293 # Fix the shell variable \$srcfile for the compiler.
16294 fix_srcfile_path=$lt_fix_srcfile_path
16295
16296 # Set to "yes" if exported symbols are required.
16297 always_export_symbols=$always_export_symbols
16298
16299 # The commands to list exported symbols.
16300 export_symbols_cmds=$lt_export_symbols_cmds
16301
16302 # Symbols that should not be listed in the preloaded symbols.
16303 exclude_expsyms=$lt_exclude_expsyms
16304
16305 # Symbols that must always be exported.
16306 include_expsyms=$lt_include_expsyms
16307
16308 # Commands necessary for linking programs (against libraries) with templates.
16309 prelink_cmds=$lt_prelink_cmds
16310
16311 # Specify filename containing input files.
16312 file_list_spec=$lt_file_list_spec
16313
16314 # How to hardcode a shared library path into an executable.
16315 hardcode_action=$hardcode_action
16316
16317 # The directories searched by this compiler when creating a shared library.
16318 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16319
16320 # Dependencies to place before and after the objects being linked to
16321 # create a shared library.
16322 predep_objects=$lt_predep_objects
16323 postdep_objects=$lt_postdep_objects
16324 predeps=$lt_predeps
16325 postdeps=$lt_postdeps
16326
16327 # The library search path used internally by the compiler when linking
16328 # a shared library.
16329 compiler_lib_search_path=$lt_compiler_lib_search_path
16330
16331 # ### END LIBTOOL CONFIG
16332
16333 _LT_EOF
16334
16335 case $host_os in
16336 aix3*)
16337 cat <<\_LT_EOF >> "$cfgfile"
16338 # AIX sometimes has problems with the GCC collect2 program. For some
16339 # reason, if we set the COLLECT_NAMES environment variable, the problems
16340 # vanish in a puff of smoke.
16341 if test "X${COLLECT_NAMES+set}" != Xset; then
16342 COLLECT_NAMES=
16343 export COLLECT_NAMES
16344 fi
16345 _LT_EOF
16346 ;;
16347 esac
16348
16349
16350 ltmain="$ac_aux_dir/ltmain.sh"
16351
16352
16353 # We use sed instead of cat because bash on DJGPP gets confused if
16354 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16355 # text mode, it properly converts lines to CR/LF. This bash problem
16356 # is reportedly fixed, but why not run on old versions too?
16357 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16358 || (rm -f "$cfgfile"; exit 1)
16359
16360 case $xsi_shell in
16361 yes)
16362 cat << \_LT_EOF >> "$cfgfile"
16363
16364 # func_dirname file append nondir_replacement
16365 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16366 # otherwise set result to NONDIR_REPLACEMENT.
16367 func_dirname ()
16368 {
16369 case ${1} in
16370 */*) func_dirname_result="${1%/*}${2}" ;;
16371 * ) func_dirname_result="${3}" ;;
16372 esac
16373 }
16374
16375 # func_basename file
16376 func_basename ()
16377 {
16378 func_basename_result="${1##*/}"
16379 }
16380
16381 # func_dirname_and_basename file append nondir_replacement
16382 # perform func_basename and func_dirname in a single function
16383 # call:
16384 # dirname: Compute the dirname of FILE. If nonempty,
16385 # add APPEND to the result, otherwise set result
16386 # to NONDIR_REPLACEMENT.
16387 # value returned in "$func_dirname_result"
16388 # basename: Compute filename of FILE.
16389 # value retuned in "$func_basename_result"
16390 # Implementation must be kept synchronized with func_dirname
16391 # and func_basename. For efficiency, we do not delegate to
16392 # those functions but instead duplicate the functionality here.
16393 func_dirname_and_basename ()
16394 {
16395 case ${1} in
16396 */*) func_dirname_result="${1%/*}${2}" ;;
16397 * ) func_dirname_result="${3}" ;;
16398 esac
16399 func_basename_result="${1##*/}"
16400 }
16401
16402 # func_stripname prefix suffix name
16403 # strip PREFIX and SUFFIX off of NAME.
16404 # PREFIX and SUFFIX must not contain globbing or regex special
16405 # characters, hashes, percent signs, but SUFFIX may contain a leading
16406 # dot (in which case that matches only a dot).
16407 func_stripname ()
16408 {
16409 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16410 # positional parameters, so assign one to ordinary parameter first.
16411 func_stripname_result=${3}
16412 func_stripname_result=${func_stripname_result#"${1}"}
16413 func_stripname_result=${func_stripname_result%"${2}"}
16414 }
16415
16416 # func_opt_split
16417 func_opt_split ()
16418 {
16419 func_opt_split_opt=${1%%=*}
16420 func_opt_split_arg=${1#*=}
16421 }
16422
16423 # func_lo2o object
16424 func_lo2o ()
16425 {
16426 case ${1} in
16427 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16428 *) func_lo2o_result=${1} ;;
16429 esac
16430 }
16431
16432 # func_xform libobj-or-source
16433 func_xform ()
16434 {
16435 func_xform_result=${1%.*}.lo
16436 }
16437
16438 # func_arith arithmetic-term...
16439 func_arith ()
16440 {
16441 func_arith_result=$(( $* ))
16442 }
16443
16444 # func_len string
16445 # STRING may not start with a hyphen.
16446 func_len ()
16447 {
16448 func_len_result=${#1}
16449 }
16450
16451 _LT_EOF
16452 ;;
16453 *) # Bourne compatible functions.
16454 cat << \_LT_EOF >> "$cfgfile"
16455
16456 # func_dirname file append nondir_replacement
16457 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16458 # otherwise set result to NONDIR_REPLACEMENT.
16459 func_dirname ()
16460 {
16461 # Extract subdirectory from the argument.
16462 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16463 if test "X$func_dirname_result" = "X${1}"; then
16464 func_dirname_result="${3}"
16465 else
16466 func_dirname_result="$func_dirname_result${2}"
16467 fi
16468 }
16469
16470 # func_basename file
16471 func_basename ()
16472 {
16473 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16474 }
16475
16476
16477 # func_stripname prefix suffix name
16478 # strip PREFIX and SUFFIX off of NAME.
16479 # PREFIX and SUFFIX must not contain globbing or regex special
16480 # characters, hashes, percent signs, but SUFFIX may contain a leading
16481 # dot (in which case that matches only a dot).
16482 # func_strip_suffix prefix name
16483 func_stripname ()
16484 {
16485 case ${2} in
16486 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16487 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16488 esac
16489 }
16490
16491 # sed scripts:
16492 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16493 my_sed_long_arg='1s/^-[^=]*=//'
16494
16495 # func_opt_split
16496 func_opt_split ()
16497 {
16498 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16499 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16500 }
16501
16502 # func_lo2o object
16503 func_lo2o ()
16504 {
16505 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16506 }
16507
16508 # func_xform libobj-or-source
16509 func_xform ()
16510 {
16511 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16512 }
16513
16514 # func_arith arithmetic-term...
16515 func_arith ()
16516 {
16517 func_arith_result=`expr "$@"`
16518 }
16519
16520 # func_len string
16521 # STRING may not start with a hyphen.
16522 func_len ()
16523 {
16524 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16525 }
16526
16527 _LT_EOF
16528 esac
16529
16530 case $lt_shell_append in
16531 yes)
16532 cat << \_LT_EOF >> "$cfgfile"
16533
16534 # func_append var value
16535 # Append VALUE to the end of shell variable VAR.
16536 func_append ()
16537 {
16538 eval "$1+=\$2"
16539 }
16540 _LT_EOF
16541 ;;
16542 *)
16543 cat << \_LT_EOF >> "$cfgfile"
16544
16545 # func_append var value
16546 # Append VALUE to the end of shell variable VAR.
16547 func_append ()
16548 {
16549 eval "$1=\$$1\$2"
16550 }
16551
16552 _LT_EOF
16553 ;;
16554 esac
16555
16556
16557 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16558 || (rm -f "$cfgfile"; exit 1)
16559
16560 mv -f "$cfgfile" "$ofile" ||
16561 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16562 chmod +x "$ofile"
16563
16564
16565 cat <<_LT_EOF >> "$ofile"
16566
16567 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16568
16569 # The linker used to build libraries.
16570 LD=$lt_LD_CXX
16571
16572 # How to create reloadable object files.
16573 reload_flag=$lt_reload_flag_CXX
16574 reload_cmds=$lt_reload_cmds_CXX
16575
16576 # Commands used to build an old-style archive.
16577 old_archive_cmds=$lt_old_archive_cmds_CXX
16578
16579 # A language specific compiler.
16580 CC=$lt_compiler_CXX
16581
16582 # Is the compiler the GNU compiler?
16583 with_gcc=$GCC_CXX
16584
16585 # Compiler flag to turn off builtin functions.
16586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16587
16588 # How to pass a linker flag through the compiler.
16589 wl=$lt_lt_prog_compiler_wl_CXX
16590
16591 # Additional compiler flags for building library objects.
16592 pic_flag=$lt_lt_prog_compiler_pic_CXX
16593
16594 # Compiler flag to prevent dynamic linking.
16595 link_static_flag=$lt_lt_prog_compiler_static_CXX
16596
16597 # Does compiler simultaneously support -c and -o options?
16598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16599
16600 # Whether or not to add -lc for building shared libraries.
16601 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16602
16603 # Whether or not to disallow shared libs when runtime libs are static.
16604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16605
16606 # Compiler flag to allow reflexive dlopens.
16607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16608
16609 # Compiler flag to generate shared objects directly from archives.
16610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16611
16612 # Whether the compiler copes with passing no objects directly.
16613 compiler_needs_object=$lt_compiler_needs_object_CXX
16614
16615 # Create an old-style archive from a shared archive.
16616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16617
16618 # Create a temporary old-style archive to link instead of a shared archive.
16619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16620
16621 # Commands used to build a shared archive.
16622 archive_cmds=$lt_archive_cmds_CXX
16623 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16624
16625 # Commands used to build a loadable module if different from building
16626 # a shared archive.
16627 module_cmds=$lt_module_cmds_CXX
16628 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16629
16630 # Whether we are building with GNU ld or not.
16631 with_gnu_ld=$lt_with_gnu_ld_CXX
16632
16633 # Flag that allows shared libraries with undefined symbols to be built.
16634 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16635
16636 # Flag that enforces no undefined symbols.
16637 no_undefined_flag=$lt_no_undefined_flag_CXX
16638
16639 # Flag to hardcode \$libdir into a binary during linking.
16640 # This must work even if \$libdir does not exist
16641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16642
16643 # If ld is used when linking, flag to hardcode \$libdir into a binary
16644 # during linking. This must work even if \$libdir does not exist.
16645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16646
16647 # Whether we need a single "-rpath" flag with a separated argument.
16648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16649
16650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16651 # DIR into the resulting binary.
16652 hardcode_direct=$hardcode_direct_CXX
16653
16654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16655 # DIR into the resulting binary and the resulting library dependency is
16656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16657 # library is relocated.
16658 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16659
16660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16661 # into the resulting binary.
16662 hardcode_minus_L=$hardcode_minus_L_CXX
16663
16664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16665 # into the resulting binary.
16666 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16667
16668 # Set to "yes" if building a shared library automatically hardcodes DIR
16669 # into the library and all subsequent libraries and executables linked
16670 # against it.
16671 hardcode_automatic=$hardcode_automatic_CXX
16672
16673 # Set to yes if linker adds runtime paths of dependent libraries
16674 # to runtime path list.
16675 inherit_rpath=$inherit_rpath_CXX
16676
16677 # Whether libtool must link a program against all its dependency libraries.
16678 link_all_deplibs=$link_all_deplibs_CXX
16679
16680 # Fix the shell variable \$srcfile for the compiler.
16681 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16682
16683 # Set to "yes" if exported symbols are required.
16684 always_export_symbols=$always_export_symbols_CXX
16685
16686 # The commands to list exported symbols.
16687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16688
16689 # Symbols that should not be listed in the preloaded symbols.
16690 exclude_expsyms=$lt_exclude_expsyms_CXX
16691
16692 # Symbols that must always be exported.
16693 include_expsyms=$lt_include_expsyms_CXX
16694
16695 # Commands necessary for linking programs (against libraries) with templates.
16696 prelink_cmds=$lt_prelink_cmds_CXX
16697
16698 # Specify filename containing input files.
16699 file_list_spec=$lt_file_list_spec_CXX
16700
16701 # How to hardcode a shared library path into an executable.
16702 hardcode_action=$hardcode_action_CXX
16703
16704 # The directories searched by this compiler when creating a shared library.
16705 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16706
16707 # Dependencies to place before and after the objects being linked to
16708 # create a shared library.
16709 predep_objects=$lt_predep_objects_CXX
16710 postdep_objects=$lt_postdep_objects_CXX
16711 predeps=$lt_predeps_CXX
16712 postdeps=$lt_postdeps_CXX
16713
16714 # The library search path used internally by the compiler when linking
16715 # a shared library.
16716 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16717
16718 # ### END LIBTOOL TAG CONFIG: CXX
16719 _LT_EOF
16720
16721 ;;
16722 "interception/Makefile":F) cat > vpsed$$ << \_EOF
16723 s!`test -f '$<' || echo '$(srcdir)/'`!!
16724 _EOF
16725 sed -f vpsed$$ $ac_file > tmp$$
16726 mv tmp$$ $ac_file
16727 rm vpsed$$
16728 echo 'MULTISUBDIR =' >> $ac_file
16729 ml_norecursion=yes
16730 . ${multi_basedir}/config-ml.in
16731 { ml_norecursion=; unset ml_norecursion;}
16732 ;;
16733 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
16734 s!`test -f '$<' || echo '$(srcdir)/'`!!
16735 _EOF
16736 sed -f vpsed$$ $ac_file > tmp$$
16737 mv tmp$$ $ac_file
16738 rm vpsed$$
16739 echo 'MULTISUBDIR =' >> $ac_file
16740 ml_norecursion=yes
16741 . ${multi_basedir}/config-ml.in
16742 { ml_norecursion=; unset ml_norecursion;}
16743 ;;
16744 "asan/Makefile":F) cat > vpsed$$ << \_EOF
16745 s!`test -f '$<' || echo '$(srcdir)/'`!!
16746 _EOF
16747 sed -f vpsed$$ $ac_file > tmp$$
16748 mv tmp$$ $ac_file
16749 rm vpsed$$
16750 echo 'MULTISUBDIR =' >> $ac_file
16751 ml_norecursion=yes
16752 . ${multi_basedir}/config-ml.in
16753 { ml_norecursion=; unset ml_norecursion;}
16754 ;;
16755
16756 esac
16757 done # for ac_tag
16758
16759
16760 as_fn_exit 0
16761 _ACEOF
16762 ac_clean_files=$ac_clean_files_save
16763
16764 test $ac_write_fail = 0 ||
16765 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16766
16767
16768 # configure is writing to config.log, and then calls config.status.
16769 # config.status does its own redirection, appending to config.log.
16770 # Unfortunately, on DOS this fails, as config.log is still kept open
16771 # by configure, so config.status won't be able to write to it; its
16772 # output is simply discarded. So we exec the FD to /dev/null,
16773 # effectively closing config.log, so it can be properly (re)opened and
16774 # appended to by config.status. When coming back to configure, we
16775 # need to make the FD available again.
16776 if test "$no_create" != yes; then
16777 ac_cs_success=:
16778 ac_config_status_args=
16779 test "$silent" = yes &&
16780 ac_config_status_args="$ac_config_status_args --quiet"
16781 exec 5>/dev/null
16782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16783 exec 5>>config.log
16784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16785 # would make configure fail if this is the last instruction.
16786 $ac_cs_success || as_fn_exit $?
16787 fi
16788 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16790 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16791 fi
16792