PR c++/54903
[official-gcc.git] / libsanitizer / configure
blob9fbfccb3411cba2708c73ea9c77fb5d53b019f6e
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.
5 # Report bugs to <libsanitizer>.
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.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
150 esac
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; }
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 :
166 else
167 exitcode=1; echo positional parameters were not saved.
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
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
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
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
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
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+"$@"}
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."
244 exit 1
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
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
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 ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
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/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
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"
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 ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
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 ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
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 ()
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
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
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
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
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
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/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
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
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 '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
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; }
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
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;;
470 ECHO_N='-n';;
471 esac
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
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'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
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
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=
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
528 as_executable_p=$as_test_x
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'"
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'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
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`
547 # Initializations.
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=
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=''
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"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 enable_static
608 enable_shared
609 CXXCPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
625 EGREP
626 GREP
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
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
656 toolexeclibdir
657 toolexecdir
658 multi_basedir
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_os
683 target_vendor
684 target_cpu
685 target
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_version_specific_runtime_libs
736 enable_multilib
737 enable_dependency_tracking
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 enable_libtool_lock
745 ac_precious_vars='build_alias
746 host_alias
747 target_alias
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
754 CXXFLAGS
756 CCAS
757 CCASFLAGS
759 CXXCPP'
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
810 ac_prev=
811 ac_dashdash=
812 for ac_option
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1094 -with-* | --with-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) as_fn_error "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information."
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1154 esac
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error "missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 esac
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1190 case $ac_val in
1191 */ )
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1194 esac
1195 # Be sure to have absolute directory names.
1196 case $ac_val in
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 esac
1200 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error "pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1253 /^X\(\/\/\)$/{
1254 s//\1/
1257 /^X\(\/\).*/{
1258 s//\1/
1261 s/.*/./; q'`
1262 srcdir=$ac_confdir
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 srcdir=..
1266 else
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 ac_abs_confdir=`(
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1356 cat <<\_ACEOF
1358 Program names:
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 System types:
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 --target=TARGET configure for building compilers for TARGET [HOST]
1367 _ACEOF
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of package-unused version-unused:";;
1373 esac
1374 cat <<\_ACEOF
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1381 --enable-multilib build many library versions (default)
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --enable-shared[=PKGS] build shared libraries [default=yes]
1385 --enable-static[=PKGS] build static libraries [default=yes]
1386 --enable-fast-install[=PKGS]
1387 optimize for fast installation [default=yes]
1388 --disable-libtool-lock avoid locking (might break parallel builds)
1390 Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-pic try to use only PIC/non-PIC objects [default=use
1394 both]
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1407 CCAS assembler compiler command (defaults to CC)
1408 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1409 CPP C preprocessor
1410 CXXCPP C++ preprocessor
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <libsanitizer>.
1416 _ACEOF
1417 ac_status=$?
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 package-unused configure version-unused
1479 generated by GNU Autoconf 2.64
1481 Copyright (C) 2009 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1523 ac_retval=1
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 return $ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_cxx_try_compile LINENO
1531 # ----------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_cxx_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_cxx_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1561 ac_retval=1
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1566 } # ac_fn_cxx_try_compile
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1602 ac_retval=1
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_link
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633 else
1634 eval "$3=no"
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } >/dev/null && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=1
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 return $ac_retval
1680 } # ac_fn_c_try_cpp
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=$ac_status
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1722 } # ac_fn_c_try_run
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1752 #undef $2
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1769 main ()
1771 return $2 ();
1773 return 0;
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1781 rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 } # ac_fn_c_check_func
1791 # ac_fn_cxx_try_cpp LINENO
1792 # ------------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1826 } # ac_fn_cxx_try_cpp
1828 # ac_fn_cxx_try_link LINENO
1829 # -------------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_link ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_cxx_try_link
1873 cat >config.log <<_ACEOF
1874 This file contains any messages produced by compilers while
1875 running configure, to aid debugging if configure makes a mistake.
1877 It was created by package-unused $as_me version-unused, which was
1878 generated by GNU Autoconf 2.64. Invocation command line was
1880 $ $0 $@
1882 _ACEOF
1883 exec 5>>config.log
1885 cat <<_ASUNAME
1886 ## --------- ##
1887 ## Platform. ##
1888 ## --------- ##
1890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1902 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907 _ASUNAME
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1912 IFS=$as_save_IFS
1913 test -z "$as_dir" && as_dir=.
1914 $as_echo "PATH: $as_dir"
1915 done
1916 IFS=$as_save_IFS
1918 } >&5
1920 cat >&5 <<_ACEOF
1923 ## ----------- ##
1924 ## Core tests. ##
1925 ## ----------- ##
1927 _ACEOF
1930 # Keep a trace of the command line.
1931 # Strip out --no-create and --no-recursion so they do not pile up.
1932 # Strip out --silent because we don't want to record it for future runs.
1933 # Also quote any args containing shell meta-characters.
1934 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_configure_args=
1936 ac_configure_args0=
1937 ac_configure_args1=
1938 ac_must_keep_next=false
1939 for ac_pass in 1 2
1941 for ac_arg
1943 case $ac_arg in
1944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946 | -silent | --silent | --silen | --sile | --sil)
1947 continue ;;
1948 *\'*)
1949 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 case $ac_pass in
1952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954 as_fn_append ac_configure_args1 " '$ac_arg'"
1955 if test $ac_must_keep_next = true; then
1956 ac_must_keep_next=false # Got value, back to normal.
1957 else
1958 case $ac_arg in
1959 *=* | --config-cache | -C | -disable-* | --disable-* \
1960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962 | -with-* | --with-* | -without-* | --without-* | --x)
1963 case "$ac_configure_args0 " in
1964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 esac
1967 -* ) ac_must_keep_next=true ;;
1968 esac
1970 as_fn_append ac_configure_args " '$ac_arg'"
1972 esac
1973 done
1974 done
1975 { ac_configure_args0=; unset ac_configure_args0;}
1976 { ac_configure_args1=; unset ac_configure_args1;}
1978 # When interrupted or exit'd, cleanup temporary files, and complete
1979 # config.log. We remove comments because anyway the quotes in there
1980 # would cause problems or look ugly.
1981 # WARNING: Use '\'' to represent an apostrophe within the trap.
1982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983 trap 'exit_status=$?
1984 # Save into config.log some information that might help in debugging.
1986 echo
1988 cat <<\_ASBOX
1989 ## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##
1992 _ASBOX
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 esac |
2022 sort
2024 echo
2026 cat <<\_ASBOX
2027 ## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##
2030 _ASBOX
2031 echo
2032 for ac_var in $ac_subst_vars
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2042 if test -n "$ac_subst_files"; then
2043 cat <<\_ASBOX
2044 ## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##
2047 _ASBOX
2048 echo
2049 for ac_var in $ac_subst_files
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2060 if test -s confdefs.h; then
2061 cat <<\_ASBOX
2062 ## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##
2065 _ASBOX
2066 echo
2067 cat confdefs.h
2068 echo
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2086 $as_echo "/* confdefs.h */" > confdefs.h
2088 # Predefined preprocessor variables.
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_URL "$PACKAGE_URL"
2112 _ACEOF
2115 # Let the site file select an alternate cache file if it wants to.
2116 # Prefer an explicitly selected file to automatically selected ones.
2117 ac_site_file1=NONE
2118 ac_site_file2=NONE
2119 if test -n "$CONFIG_SITE"; then
2120 ac_site_file1=$CONFIG_SITE
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 test "x$ac_site_file" = xNONE && continue
2131 if test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file"
2137 done
2139 if test -r "$cache_file"; then
2140 # Some versions of bash will fail to source /dev/null (special
2141 # files actually), so we avoid doing that.
2142 if test -f "$cache_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2144 $as_echo "$as_me: loading cache $cache_file" >&6;}
2145 case $cache_file in
2146 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2147 *) . "./$cache_file";;
2148 esac
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2152 $as_echo "$as_me: creating cache $cache_file" >&6;}
2153 >$cache_file
2156 # Check that the precious variables saved in the cache have kept the same
2157 # value.
2158 ac_cache_corrupted=false
2159 for ac_var in $ac_precious_vars; do
2160 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2161 eval ac_new_set=\$ac_env_${ac_var}_set
2162 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2163 eval ac_new_val=\$ac_env_${ac_var}_value
2164 case $ac_old_set,$ac_new_set in
2165 set,)
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2169 ,set)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,);;
2175 if test "x$ac_old_val" != "x$ac_new_val"; then
2176 # differences in whitespace do not lead to failure.
2177 ac_old_val_w=`echo x $ac_old_val`
2178 ac_new_val_w=`echo x $ac_new_val`
2179 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2181 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2182 ac_cache_corrupted=:
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2185 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2186 eval $ac_var=\$ac_old_val
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2189 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2191 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192 fi;;
2193 esac
2194 # Pass precious variables to config.status.
2195 if test "$ac_new_set" = set; then
2196 case $ac_new_val in
2197 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 *) ac_arg=$ac_var=$ac_new_val ;;
2199 esac
2200 case " $ac_configure_args " in
2201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2202 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2203 esac
2205 done
2206 if $ac_cache_corrupted; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2210 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2211 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213 ## -------------------- ##
2214 ## Main body of script. ##
2215 ## -------------------- ##
2217 ac_ext=c
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2230 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2231 # Check whether --enable-version-specific-runtime-libs was given.
2232 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2233 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2234 yes) version_specific_libs=yes ;;
2235 no) version_specific_libs=no ;;
2236 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2237 esac
2238 else
2239 version_specific_libs=no
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2243 $as_echo "$version_specific_libs" >&6; }
2245 # Do not delete or change the following two lines. For why, see
2246 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2247 ac_aux_dir=
2248 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2249 for ac_t in install-sh install.sh shtool; do
2250 if test -f "$ac_dir/$ac_t"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/$ac_t -c"
2253 break 2
2255 done
2256 done
2257 if test -z "$ac_aux_dir"; then
2258 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2261 # These three variables are undocumented and unsupported,
2262 # and are intended to be withdrawn in a future Autoconf release.
2263 # They can cause serious problems if a builder's source tree is in a directory
2264 # whose full name contains unusual characters.
2265 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2266 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2267 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2270 # Make sure we can run config.sub.
2271 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2272 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2275 $as_echo_n "checking build system type... " >&6; }
2276 if test "${ac_cv_build+set}" = set; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 ac_build_alias=$build_alias
2280 test "x$ac_build_alias" = x &&
2281 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2282 test "x$ac_build_alias" = x &&
2283 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2284 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2285 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2289 $as_echo "$ac_cv_build" >&6; }
2290 case $ac_cv_build in
2291 *-*-*) ;;
2292 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2293 esac
2294 build=$ac_cv_build
2295 ac_save_IFS=$IFS; IFS='-'
2296 set x $ac_cv_build
2297 shift
2298 build_cpu=$1
2299 build_vendor=$2
2300 shift; shift
2301 # Remember, the first character of IFS is used to create $*,
2302 # except with old shells:
2303 build_os=$*
2304 IFS=$ac_save_IFS
2305 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2309 $as_echo_n "checking host system type... " >&6; }
2310 if test "${ac_cv_host+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 if test "x$host_alias" = x; then
2314 ac_cv_host=$ac_cv_build
2315 else
2316 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2317 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2322 $as_echo "$ac_cv_host" >&6; }
2323 case $ac_cv_host in
2324 *-*-*) ;;
2325 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2326 esac
2327 host=$ac_cv_host
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_host
2330 shift
2331 host_cpu=$1
2332 host_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 host_os=$*
2337 IFS=$ac_save_IFS
2338 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2342 $as_echo_n "checking target system type... " >&6; }
2343 if test "${ac_cv_target+set}" = set; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test "x$target_alias" = x; then
2347 ac_cv_target=$ac_cv_host
2348 else
2349 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2350 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2355 $as_echo "$ac_cv_target" >&6; }
2356 case $ac_cv_target in
2357 *-*-*) ;;
2358 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2359 esac
2360 target=$ac_cv_target
2361 ac_save_IFS=$IFS; IFS='-'
2362 set x $ac_cv_target
2363 shift
2364 target_cpu=$1
2365 target_vendor=$2
2366 shift; shift
2367 # Remember, the first character of IFS is used to create $*,
2368 # except with old shells:
2369 target_os=$*
2370 IFS=$ac_save_IFS
2371 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2374 # The aliases save the names the user supplied, while $host etc.
2375 # will get canonicalized.
2376 test -n "$target_alias" &&
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
2379 program_prefix=${target_alias}-
2381 target_alias=${target_alias-$host_alias}
2384 am__api_version='1.11'
2386 # Find a good install program. We prefer a C program (faster),
2387 # so one script is as good as another. But avoid the broken or
2388 # incompatible versions:
2389 # SysV /etc/install, /usr/sbin/install
2390 # SunOS /usr/etc/install
2391 # IRIX /sbin/install
2392 # AIX /bin/install
2393 # AmigaOS /C/install, which installs bootblocks on floppy discs
2394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2397 # OS/2's system install, which has a completely different semantic
2398 # ./install, which can be erroneously created by make from ./install.sh.
2399 # Reject install programs that cannot install multiple files.
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2402 if test -z "$INSTALL"; then
2403 if test "${ac_cv_path_install+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 # Account for people who put trailing slashes in PATH elements.
2412 case $as_dir/ in #((
2413 ./ | .// | /[cC]/* | \
2414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2416 /usr/ucb/* ) ;;
2418 # OSF1 and SCO ODT 3.0 have their own names for install.
2419 # Don't use installbsd from OSF since it installs stuff as root
2420 # by default.
2421 for ac_prog in ginstall scoinst install; do
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2424 if test $ac_prog = install &&
2425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # AIX install. It has an incompatible calling convention.
2428 elif test $ac_prog = install &&
2429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430 # program-specific install script used by HP pwplus--don't use.
2432 else
2433 rm -rf conftest.one conftest.two conftest.dir
2434 echo one > conftest.one
2435 echo two > conftest.two
2436 mkdir conftest.dir
2437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2438 test -s conftest.one && test -s conftest.two &&
2439 test -s conftest.dir/conftest.one &&
2440 test -s conftest.dir/conftest.two
2441 then
2442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2443 break 3
2447 done
2448 done
2450 esac
2452 done
2453 IFS=$as_save_IFS
2455 rm -rf conftest.one conftest.two conftest.dir
2458 if test "${ac_cv_path_install+set}" = set; then
2459 INSTALL=$ac_cv_path_install
2460 else
2461 # As a last resort, use the slow shell script. Don't cache a
2462 # value for INSTALL within a source directory, because that will
2463 # break other packages using the cache if that directory is
2464 # removed, or if the value is a relative name.
2465 INSTALL=$ac_install_sh
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2469 $as_echo "$INSTALL" >&6; }
2471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2472 # It thinks the first close brace ends the variable substitution.
2473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2480 $as_echo_n "checking whether build environment is sane... " >&6; }
2481 # Just in case
2482 sleep 1
2483 echo timestamp > conftest.file
2484 # Reject unsafe characters in $srcdir or the absolute working directory
2485 # name. Accept space and tab only in the latter.
2486 am_lf='
2488 case `pwd` in
2489 *[\\\"\#\$\&\'\`$am_lf]*)
2490 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2491 esac
2492 case $srcdir in
2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2494 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2495 esac
2497 # Do `set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2504 if test "$*" = "X"; then
2505 # -L didn't work.
2506 set X `ls -t "$srcdir/configure" conftest.file`
2508 rm -f conftest.file
2509 if test "$*" != "X $srcdir/configure conftest.file" \
2510 && test "$*" != "X conftest.file $srcdir/configure"; then
2512 # If neither matched, then we have a broken ls. This can happen
2513 # if, for instance, CONFIG_SHELL is bash and it inherits a
2514 # broken ls alias from the environment. This has actually
2515 # happened. Such a system could not be considered "sane".
2516 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2517 alias in your environment" "$LINENO" 5
2520 test "$2" = conftest.file
2522 then
2523 # Ok.
2525 else
2526 as_fn_error "newly created file is older than distributed files!
2527 Check your system clock" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2531 test "$program_prefix" != NONE &&
2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541 # expand $ac_aux_dir to an absolute path
2542 am_aux_dir=`cd $ac_aux_dir && pwd`
2544 if test x"${MISSING+set}" != xset; then
2545 case $am_aux_dir in
2546 *\ * | *\ *)
2547 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2550 esac
2552 # Use eval to expand $SHELL
2553 if eval "$MISSING --run true"; then
2554 am_missing_run="$MISSING --run "
2555 else
2556 am_missing_run=
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2558 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2561 if test x"${install_sh}" != xset; then
2562 case $am_aux_dir in
2563 *\ * | *\ *)
2564 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566 install_sh="\${SHELL} $am_aux_dir/install-sh"
2567 esac
2570 # Installed binaries are usually stripped using `strip' when the user
2571 # run `make install-strip'. However `strip' might not be the right
2572 # tool to use in cross-compilation environments, therefore Automake
2573 # will honor the `STRIP' environment variable to overrule this program.
2574 if test "$cross_compiling" != no; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_STRIP+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2606 $as_echo "$STRIP" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2614 if test -z "$ac_cv_prog_STRIP"; then
2615 ac_ct_STRIP=$STRIP
2616 # Extract the first word of "strip", so it can be a program name with args.
2617 set dummy strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$ac_ct_STRIP"; then
2624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_ac_ct_STRIP="strip"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2639 IFS=$as_save_IFS
2643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644 if test -n "$ac_ct_STRIP"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2646 $as_echo "$ac_ct_STRIP" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2652 if test "x$ac_ct_STRIP" = x; then
2653 STRIP=":"
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 STRIP=$ac_ct_STRIP
2663 else
2664 STRIP="$ac_cv_prog_STRIP"
2668 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2671 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2672 if test -z "$MKDIR_P"; then
2673 if test "${ac_cv_path_mkdir+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_prog in mkdir gmkdir; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2684 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2685 'mkdir (GNU coreutils) '* | \
2686 'mkdir (coreutils) '* | \
2687 'mkdir (fileutils) '4.1*)
2688 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2689 break 3;;
2690 esac
2691 done
2692 done
2693 done
2694 IFS=$as_save_IFS
2698 if test "${ac_cv_path_mkdir+set}" = set; then
2699 MKDIR_P="$ac_cv_path_mkdir -p"
2700 else
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for MKDIR_P within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the value is a relative name.
2705 test -d ./--version && rmdir ./--version
2706 MKDIR_P="$ac_install_sh -d"
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2710 $as_echo "$MKDIR_P" >&6; }
2712 mkdir_p="$MKDIR_P"
2713 case $mkdir_p in
2714 [\\/$]* | ?:[\\/]*) ;;
2715 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2716 esac
2718 for ac_prog in gawk mawk nawk awk
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_AWK+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_AWK="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 AWK=$ac_cv_prog_AWK
2748 if test -n "$AWK"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750 $as_echo "$AWK" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$AWK" && break
2758 done
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2761 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2762 set x ${MAKE-make}
2763 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2764 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat >conftest.make <<\_ACEOF
2768 SHELL = /bin/sh
2769 all:
2770 @echo '@@@%%%=$(MAKE)=@@@%%%'
2771 _ACEOF
2772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2773 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2774 *@@@%%%=?*=@@@%%%*)
2775 eval ac_cv_prog_make_${ac_make}_set=yes;;
2777 eval ac_cv_prog_make_${ac_make}_set=no;;
2778 esac
2779 rm -f conftest.make
2781 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783 $as_echo "yes" >&6; }
2784 SET_MAKE=
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 SET_MAKE="MAKE=${MAKE-make}"
2791 rm -rf .tst 2>/dev/null
2792 mkdir .tst 2>/dev/null
2793 if test -d .tst; then
2794 am__leading_dot=.
2795 else
2796 am__leading_dot=_
2798 rmdir .tst 2>/dev/null
2800 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2801 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2802 # is not polluted with repeated "-I."
2803 am__isrc=' -I$(srcdir)'
2804 # test to see if srcdir already configured
2805 if test -f $srcdir/config.status; then
2806 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2810 # test whether we have cygpath
2811 if test -z "$CYGPATH_W"; then
2812 if (cygpath --version) >/dev/null 2>/dev/null; then
2813 CYGPATH_W='cygpath -w'
2814 else
2815 CYGPATH_W=echo
2820 # Define the identity of the package.
2821 PACKAGE='package-unused'
2822 VERSION='version-unused'
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE "$PACKAGE"
2827 _ACEOF
2830 cat >>confdefs.h <<_ACEOF
2831 #define VERSION "$VERSION"
2832 _ACEOF
2834 # Some tools Automake needs.
2836 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2839 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2842 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2845 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2848 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850 # We need awk for the "check" target. The system "awk" is bad on
2851 # some platforms.
2852 # Always define AMTAR for backward compatibility.
2854 AMTAR=${AMTAR-"${am_missing_run}tar"}
2856 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2862 # Default to --enable-multilib
2863 # Check whether --enable-multilib was given.
2864 if test "${enable_multilib+set}" = set; then :
2865 enableval=$enable_multilib; case "$enableval" in
2866 yes) multilib=yes ;;
2867 no) multilib=no ;;
2868 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2869 esac
2870 else
2871 multilib=yes
2875 # We may get other options which we leave undocumented:
2876 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2877 # See config-ml.in if you want the gory details.
2879 if test "$srcdir" = "."; then
2880 if test "$with_target_subdir" != "."; then
2881 multi_basedir="$srcdir/$with_multisrctop../.."
2882 else
2883 multi_basedir="$srcdir/$with_multisrctop.."
2885 else
2886 multi_basedir="$srcdir/.."
2890 # Even if the default multilib is not a cross compilation,
2891 # it may be that some of the other multilibs are.
2892 if test $cross_compiling = no && test $multilib = yes \
2893 && test "x${with_multisubdir}" != x ; then
2894 cross_compiling=maybe
2897 ac_config_commands="$ac_config_commands default-1"
2900 # Calculate toolexeclibdir
2901 # Also toolexecdir, though it's only used in toolexeclibdir
2902 case ${version_specific_libs} in
2903 yes)
2904 # Need the gcc compiler version to know where to install libraries
2905 # and header files if --enable-version-specific-runtime-libs option
2906 # is selected.
2907 toolexecdir='$(libdir)/gcc/$(target_alias)'
2908 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2911 if test -n "$with_cross_host" &&
2912 test x"$with_cross_host" != x"no"; then
2913 # Install a library built with a cross compiler in tooldir, not libdir.
2914 toolexecdir='$(exec_prefix)/$(target_alias)'
2915 toolexeclibdir='$(toolexecdir)/lib'
2916 else
2917 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2918 toolexeclibdir='$(libdir)'
2920 multi_os_directory=`$CC -print-multi-os-directory`
2921 case $multi_os_directory in
2922 .) ;; # Avoid trailing /.
2923 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2924 esac
2926 esac
2930 # Checks for programs.
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$ac_cv_prog_CC"; then
2976 ac_ct_CC=$CC
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 CC=$ac_ct_CC
3024 else
3025 CC="$ac_cv_prog_CC"
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_CC+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3090 continue
3092 ac_cv_prog_CC="cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3103 shift
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3108 shift
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3152 IFS=$as_save_IFS
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$CC" && break
3167 done
3169 if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$ac_ct_CC" && break
3211 done
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." "$LINENO" 5; }
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236 set X $ac_compile
3237 ac_compiler=$2
3238 for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247 ac_status=$?
3248 if test -s conftest.err; then
3249 sed '10a\
3250 ... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
3253 rm -f conftest.er1 conftest.err
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 done
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3274 # of exeext.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3276 $as_echo_n "checking for C compiler default output file name... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3282 ac_rmfiles=
3283 for ac_file in $ac_files
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 esac
3289 done
3290 rm -f $ac_rmfiles
3292 if { { ac_try="$ac_link_default"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link_default") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3307 # Autoconf.
3308 for ac_file in $ac_files ''
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3314 [ab].out )
3315 # We found the default executable, but exeext='' is most
3316 # certainly right.
3317 break;;
3318 *.* )
3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320 then :; else
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3327 # actually working.
3328 break;;
3330 break;;
3331 esac
3332 done
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335 else
3336 ac_file=''
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 if test -z "$ac_file"; then :
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 { as_fn_set_status 77
3347 as_fn_error "C compiler cannot create executables
3348 See \`config.log' for more details." "$LINENO" 5; }; }
3350 ac_exeext=$ac_cv_exeext
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3355 $as_echo_n "checking whether the C compiler works... " >&6; }
3356 # If not cross compiling, check that we can run a simple program.
3357 if test "$cross_compiling" != yes; then
3358 if { ac_try='./$ac_file'
3359 { { case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_try") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; }; then
3369 cross_compiling=no
3370 else
3371 if test "$cross_compiling" = maybe; then
3372 cross_compiling=yes
3373 else
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error "cannot run C compiled programs.
3377 If you meant to cross compile, use \`--host'.
3378 See \`config.log' for more details." "$LINENO" 5; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3386 ac_clean_files=$ac_clean_files_save
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 $as_echo_n "checking whether we are cross compiling... " >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3392 $as_echo "$cross_compiling" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3410 # `rm'.
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 break;;
3417 * ) break;;
3418 esac
3419 done
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details." "$LINENO" 5; }
3426 rm -f conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3432 ac_exeext=$EXEEXT
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3434 $as_echo_n "checking for suffix of object files... " >&6; }
3435 if test "${ac_cv_objext+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3442 main ()
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.o conftest.obj
3450 if { { ac_try="$ac_compile"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_compile") 2>&5
3458 ac_status=$?
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; then :
3461 for ac_file in conftest.o conftest.obj conftest.*; do
3462 test -f "$ac_file" || continue;
3463 case $ac_file in
3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3465 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3466 break;;
3467 esac
3468 done
3469 else
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error "cannot compute suffix of object files: cannot compile
3476 See \`config.log' for more details." "$LINENO" 5; }
3478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3481 $as_echo "$ac_cv_objext" >&6; }
3482 OBJEXT=$ac_cv_objext
3483 ac_objext=$OBJEXT
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3485 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3486 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3493 main ()
3495 #ifndef __GNUC__
3496 choke me
3497 #endif
3500 return 0;
3502 _ACEOF
3503 if ac_fn_c_try_compile "$LINENO"; then :
3504 ac_compiler_gnu=yes
3505 else
3506 ac_compiler_gnu=no
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3513 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514 if test $ac_compiler_gnu = yes; then
3515 GCC=yes
3516 else
3517 GCC=
3519 ac_test_CFLAGS=${CFLAGS+set}
3520 ac_save_CFLAGS=$CFLAGS
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3522 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3523 if test "${ac_cv_prog_cc_g+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 ac_save_c_werror_flag=$ac_c_werror_flag
3527 ac_c_werror_flag=yes
3528 ac_cv_prog_cc_g=no
3529 CFLAGS="-g"
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_cv_prog_cc_g=yes
3543 else
3544 CFLAGS=""
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3558 else
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3560 CFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3565 main ()
3569 return 0;
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_g=yes
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_c_werror_flag=$ac_save_c_werror_flag
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3583 $as_echo "$ac_cv_prog_cc_g" >&6; }
3584 if test "$ac_test_CFLAGS" = set; then
3585 CFLAGS=$ac_save_CFLAGS
3586 elif test $ac_cv_prog_cc_g = yes; then
3587 if test "$GCC" = yes; then
3588 CFLAGS="-g -O2"
3589 else
3590 CFLAGS="-g"
3592 else
3593 if test "$GCC" = yes; then
3594 CFLAGS="-O2"
3595 else
3596 CFLAGS=
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3601 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_cv_prog_cc_c89=no
3605 ac_save_CC=$CC
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <stdarg.h>
3609 #include <stdio.h>
3610 #include <sys/types.h>
3611 #include <sys/stat.h>
3612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3613 struct buf { int x; };
3614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3615 static char *e (p, i)
3616 char **p;
3617 int i;
3619 return p[i];
3621 static char *f (char * (*g) (char **, int), char **p, ...)
3623 char *s;
3624 va_list v;
3625 va_start (v,p);
3626 s = g (p, va_arg (v,int));
3627 va_end (v);
3628 return s;
3631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3632 function prototypes and stuff, but not '\xHH' hex character constants.
3633 These don't provoke an error unfortunately, instead are silently treated
3634 as 'x'. The following induces an error, until -std is added to get
3635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3636 array size at least. It's necessary to write '\x00'==0 to get something
3637 that's true only with -std. */
3638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641 inside strings and character constants. */
3642 #define FOO(x) 'x'
3643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3645 int test (int i, double x);
3646 struct s1 {int (*f) (int a);};
3647 struct s2 {int (*f) (double a);};
3648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649 int argc;
3650 char **argv;
3652 main ()
3654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 return 0;
3658 _ACEOF
3659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3662 CC="$ac_save_CC $ac_arg"
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664 ac_cv_prog_cc_c89=$ac_arg
3666 rm -f core conftest.err conftest.$ac_objext
3667 test "x$ac_cv_prog_cc_c89" != "xno" && break
3668 done
3669 rm -f conftest.$ac_ext
3670 CC=$ac_save_CC
3673 # AC_CACHE_VAL
3674 case "x$ac_cv_prog_cc_c89" in
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3677 $as_echo "none needed" >&6; } ;;
3678 xno)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3680 $as_echo "unsupported" >&6; } ;;
3682 CC="$CC $ac_cv_prog_cc_c89"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3684 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3685 esac
3686 if test "x$ac_cv_prog_cc_c89" != xno; then :
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 DEPDIR="${am__leading_dot}deps"
3697 ac_config_commands="$ac_config_commands depfiles"
3700 am_make=${MAKE-make}
3701 cat > confinc << 'END'
3702 am__doit:
3703 @echo this is the am__doit target
3704 .PHONY: am__doit
3706 # If we don't find an include directive, just comment out the code.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3708 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3709 am__include="#"
3710 am__quote=
3711 _am_result=none
3712 # First try GNU make style include.
3713 echo "include confinc" > confmf
3714 # Ignore all kinds of additional output from `make'.
3715 case `$am_make -s -f confmf 2> /dev/null` in #(
3716 *the\ am__doit\ target*)
3717 am__include=include
3718 am__quote=
3719 _am_result=GNU
3721 esac
3722 # Now try BSD make style include.
3723 if test "$am__include" = "#"; then
3724 echo '.include "confinc"' > confmf
3725 case `$am_make -s -f confmf 2> /dev/null` in #(
3726 *the\ am__doit\ target*)
3727 am__include=.include
3728 am__quote="\""
3729 _am_result=BSD
3731 esac
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3736 $as_echo "$_am_result" >&6; }
3737 rm -f confinc confmf
3739 # Check whether --enable-dependency-tracking was given.
3740 if test "${enable_dependency_tracking+set}" = set; then :
3741 enableval=$enable_dependency_tracking;
3744 if test "x$enable_dependency_tracking" != xno; then
3745 am_depcomp="$ac_aux_dir/depcomp"
3746 AMDEPBACKSLASH='\'
3748 if test "x$enable_dependency_tracking" != xno; then
3749 AMDEP_TRUE=
3750 AMDEP_FALSE='#'
3751 else
3752 AMDEP_TRUE='#'
3753 AMDEP_FALSE=
3758 depcc="$CC" am_compiler_list=
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761 $as_echo_n "checking dependency style of $depcc... " >&6; }
3762 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766 # We make a subdir and do the tests there. Otherwise we can end up
3767 # making bogus files that we don't know about and never remove. For
3768 # instance it was reported that on HP-UX the gcc test will end up
3769 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # in D'.
3771 mkdir conftest.dir
3772 # Copy depcomp to subdir because otherwise we won't find it if we're
3773 # using a relative directory.
3774 cp "$am_depcomp" conftest.dir
3775 cd conftest.dir
3776 # We will build objects and dependencies in a subdirectory because
3777 # it helps to detect inapplicable dependency modes. For instance
3778 # both Tru64's cc and ICC support -MD to output dependencies as a
3779 # side effect of compilation, but ICC will put the dependencies in
3780 # the current directory while Tru64 will put them in the object
3781 # directory.
3782 mkdir sub
3784 am_cv_CC_dependencies_compiler_type=none
3785 if test "$am_compiler_list" = ""; then
3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3788 am__universal=false
3789 case " $depcc " in #(
3790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 esac
3793 for depmode in $am_compiler_list; do
3794 # Setup a source with many dependencies, because some compilers
3795 # like to wrap large dependency lists on column 80 (with \), and
3796 # we should not choose a depcomp mode which is confused by this.
3798 # We need to recreate these files for each test, as the compiler may
3799 # overwrite some of them when testing with obscure command lines.
3800 # This happens at least with the AIX C compiler.
3801 : > sub/conftest.c
3802 for i in 1 2 3 4 5 6; do
3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3805 # Solaris 8's {/usr,}/bin/sh.
3806 touch sub/conftst$i.h
3807 done
3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3811 # mode. It turns out that the SunPro C++ compiler does not properly
3812 # handle `-M -o', and we need to detect this. Also, some Intel
3813 # versions had trouble with output in subdirs
3814 am__obj=sub/conftest.${OBJEXT-o}
3815 am__minus_obj="-o $am__obj"
3816 case $depmode in
3817 gcc)
3818 # This depmode causes a compiler race in universal mode.
3819 test "$am__universal" = false || continue
3821 nosideeffect)
3822 # after this tag, mechanisms are not by side-effect, so they'll
3823 # only be used when explicitly requested
3824 if test "x$enable_dependency_tracking" = xyes; then
3825 continue
3826 else
3827 break
3830 msvisualcpp | msvcmsys)
3831 # This compiler won't grok `-c -o', but also, the minuso test has
3832 # not run yet. These depmodes are late enough in the game, and
3833 # so weak that their functioning should not be impacted.
3834 am__obj=conftest.${OBJEXT-o}
3835 am__minus_obj=
3837 none) break ;;
3838 esac
3839 if depmode=$depmode \
3840 source=sub/conftest.c object=$am__obj \
3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3843 >/dev/null 2>conftest.err &&
3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848 # icc doesn't choke on unknown options, it will just issue warnings
3849 # or remarks (even with -Werror). So we grep stderr for any message
3850 # that says an option was ignored or not supported.
3851 # When given -MP, icc 7.0 and 7.1 complain thusly:
3852 # icc: Command line warning: ignoring option '-M'; no argument required
3853 # The diagnosis changed in icc 8.0:
3854 # icc: Command line remark: option '-MP' not supported
3855 if (grep 'ignoring option' conftest.err ||
3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857 am_cv_CC_dependencies_compiler_type=$depmode
3858 break
3861 done
3863 cd ..
3864 rm -rf conftest.dir
3865 else
3866 am_cv_CC_dependencies_compiler_type=none
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3875 test "x$enable_dependency_tracking" != xno \
3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3877 am__fastdepCC_TRUE=
3878 am__fastdepCC_FALSE='#'
3879 else
3880 am__fastdepCC_TRUE='#'
3881 am__fastdepCC_FALSE=
3885 ac_ext=cpp
3886 ac_cpp='$CXXCPP $CPPFLAGS'
3887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3890 if test -z "$CXX"; then
3891 if test -n "$CCC"; then
3892 CXX=$CCC
3893 else
3894 if test -n "$ac_tool_prefix"; then
3895 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_CXX+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$CXX"; then
3905 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3920 IFS=$as_save_IFS
3924 CXX=$ac_cv_prog_CXX
3925 if test -n "$CXX"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3927 $as_echo "$CXX" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3934 test -n "$CXX" && break
3935 done
3937 if test -z "$CXX"; then
3938 ac_ct_CXX=$CXX
3939 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3941 # Extract the first word of "$ac_prog", so it can be a program name with args.
3942 set dummy $ac_prog; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -n "$ac_ct_CXX"; then
3949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_CXX="$ac_prog"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3962 done
3963 done
3964 IFS=$as_save_IFS
3968 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3969 if test -n "$ac_ct_CXX"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3971 $as_echo "$ac_ct_CXX" >&6; }
3972 else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3978 test -n "$ac_ct_CXX" && break
3979 done
3981 if test "x$ac_ct_CXX" = x; then
3982 CXX="g++"
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985 yes:)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988 ac_tool_warned=yes ;;
3989 esac
3990 CXX=$ac_ct_CXX
3996 # Provide some information about the compiler.
3997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3998 set X $ac_compile
3999 ac_compiler=$2
4000 for ac_option in --version -v -V -qversion; do
4001 { { ac_try="$ac_compiler $ac_option >&5"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4009 ac_status=$?
4010 if test -s conftest.err; then
4011 sed '10a\
4012 ... rest of stderr output deleted ...
4013 10q' conftest.err >conftest.er1
4014 cat conftest.er1 >&5
4015 rm -f conftest.er1 conftest.err
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }
4019 done
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4022 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4023 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 main ()
4032 #ifndef __GNUC__
4033 choke me
4034 #endif
4037 return 0;
4039 _ACEOF
4040 if ac_fn_cxx_try_compile "$LINENO"; then :
4041 ac_compiler_gnu=yes
4042 else
4043 ac_compiler_gnu=no
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4050 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4051 if test $ac_compiler_gnu = yes; then
4052 GXX=yes
4053 else
4054 GXX=
4056 ac_test_CXXFLAGS=${CXXFLAGS+set}
4057 ac_save_CXXFLAGS=$CXXFLAGS
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4059 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4060 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4064 ac_cxx_werror_flag=yes
4065 ac_cv_prog_cxx_g=no
4066 CXXFLAGS="-g"
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4075 return 0;
4077 _ACEOF
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4079 ac_cv_prog_cxx_g=yes
4080 else
4081 CXXFLAGS=""
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 if ac_fn_cxx_try_compile "$LINENO"; then :
4095 else
4096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4097 CXXFLAGS="-g"
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 main ()
4106 return 0;
4108 _ACEOF
4109 if ac_fn_cxx_try_compile "$LINENO"; then :
4110 ac_cv_prog_cxx_g=yes
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4120 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4121 if test "$ac_test_CXXFLAGS" = set; then
4122 CXXFLAGS=$ac_save_CXXFLAGS
4123 elif test $ac_cv_prog_cxx_g = yes; then
4124 if test "$GXX" = yes; then
4125 CXXFLAGS="-g -O2"
4126 else
4127 CXXFLAGS="-g"
4129 else
4130 if test "$GXX" = yes; then
4131 CXXFLAGS="-O2"
4132 else
4133 CXXFLAGS=
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 depcc="$CXX" am_compiler_list=
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4145 $as_echo_n "checking dependency style of $depcc... " >&6; }
4146 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150 # We make a subdir and do the tests there. Otherwise we can end up
4151 # making bogus files that we don't know about and never remove. For
4152 # instance it was reported that on HP-UX the gcc test will end up
4153 # making a dummy file named `D' -- because `-MD' means `put the output
4154 # in D'.
4155 mkdir conftest.dir
4156 # Copy depcomp to subdir because otherwise we won't find it if we're
4157 # using a relative directory.
4158 cp "$am_depcomp" conftest.dir
4159 cd conftest.dir
4160 # We will build objects and dependencies in a subdirectory because
4161 # it helps to detect inapplicable dependency modes. For instance
4162 # both Tru64's cc and ICC support -MD to output dependencies as a
4163 # side effect of compilation, but ICC will put the dependencies in
4164 # the current directory while Tru64 will put them in the object
4165 # directory.
4166 mkdir sub
4168 am_cv_CXX_dependencies_compiler_type=none
4169 if test "$am_compiler_list" = ""; then
4170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4172 am__universal=false
4173 case " $depcc " in #(
4174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4175 esac
4177 for depmode in $am_compiler_list; do
4178 # Setup a source with many dependencies, because some compilers
4179 # like to wrap large dependency lists on column 80 (with \), and
4180 # we should not choose a depcomp mode which is confused by this.
4182 # We need to recreate these files for each test, as the compiler may
4183 # overwrite some of them when testing with obscure command lines.
4184 # This happens at least with the AIX C compiler.
4185 : > sub/conftest.c
4186 for i in 1 2 3 4 5 6; do
4187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4189 # Solaris 8's {/usr,}/bin/sh.
4190 touch sub/conftst$i.h
4191 done
4192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4195 # mode. It turns out that the SunPro C++ compiler does not properly
4196 # handle `-M -o', and we need to detect this. Also, some Intel
4197 # versions had trouble with output in subdirs
4198 am__obj=sub/conftest.${OBJEXT-o}
4199 am__minus_obj="-o $am__obj"
4200 case $depmode in
4201 gcc)
4202 # This depmode causes a compiler race in universal mode.
4203 test "$am__universal" = false || continue
4205 nosideeffect)
4206 # after this tag, mechanisms are not by side-effect, so they'll
4207 # only be used when explicitly requested
4208 if test "x$enable_dependency_tracking" = xyes; then
4209 continue
4210 else
4211 break
4214 msvisualcpp | msvcmsys)
4215 # This compiler won't grok `-c -o', but also, the minuso test has
4216 # not run yet. These depmodes are late enough in the game, and
4217 # so weak that their functioning should not be impacted.
4218 am__obj=conftest.${OBJEXT-o}
4219 am__minus_obj=
4221 none) break ;;
4222 esac
4223 if depmode=$depmode \
4224 source=sub/conftest.c object=$am__obj \
4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4227 >/dev/null 2>conftest.err &&
4228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4232 # icc doesn't choke on unknown options, it will just issue warnings
4233 # or remarks (even with -Werror). So we grep stderr for any message
4234 # that says an option was ignored or not supported.
4235 # When given -MP, icc 7.0 and 7.1 complain thusly:
4236 # icc: Command line warning: ignoring option '-M'; no argument required
4237 # The diagnosis changed in icc 8.0:
4238 # icc: Command line remark: option '-MP' not supported
4239 if (grep 'ignoring option' conftest.err ||
4240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4241 am_cv_CXX_dependencies_compiler_type=$depmode
4242 break
4245 done
4247 cd ..
4248 rm -rf conftest.dir
4249 else
4250 am_cv_CXX_dependencies_compiler_type=none
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4255 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4256 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4259 test "x$enable_dependency_tracking" != xno \
4260 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4261 am__fastdepCXX_TRUE=
4262 am__fastdepCXX_FALSE='#'
4263 else
4264 am__fastdepCXX_TRUE='#'
4265 am__fastdepCXX_FALSE=
4269 # By default we simply use the C compiler to build assembly code.
4271 test "${CCAS+set}" = set || CCAS=$CC
4272 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4276 depcc="$CCAS" am_compiler_list=
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4279 $as_echo_n "checking dependency style of $depcc... " >&6; }
4280 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4284 # We make a subdir and do the tests there. Otherwise we can end up
4285 # making bogus files that we don't know about and never remove. For
4286 # instance it was reported that on HP-UX the gcc test will end up
4287 # making a dummy file named `D' -- because `-MD' means `put the output
4288 # in D'.
4289 mkdir conftest.dir
4290 # Copy depcomp to subdir because otherwise we won't find it if we're
4291 # using a relative directory.
4292 cp "$am_depcomp" conftest.dir
4293 cd conftest.dir
4294 # We will build objects and dependencies in a subdirectory because
4295 # it helps to detect inapplicable dependency modes. For instance
4296 # both Tru64's cc and ICC support -MD to output dependencies as a
4297 # side effect of compilation, but ICC will put the dependencies in
4298 # the current directory while Tru64 will put them in the object
4299 # directory.
4300 mkdir sub
4302 am_cv_CCAS_dependencies_compiler_type=none
4303 if test "$am_compiler_list" = ""; then
4304 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4306 am__universal=false
4309 for depmode in $am_compiler_list; do
4310 # Setup a source with many dependencies, because some compilers
4311 # like to wrap large dependency lists on column 80 (with \), and
4312 # we should not choose a depcomp mode which is confused by this.
4314 # We need to recreate these files for each test, as the compiler may
4315 # overwrite some of them when testing with obscure command lines.
4316 # This happens at least with the AIX C compiler.
4317 : > sub/conftest.c
4318 for i in 1 2 3 4 5 6; do
4319 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4320 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4321 # Solaris 8's {/usr,}/bin/sh.
4322 touch sub/conftst$i.h
4323 done
4324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4326 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4327 # mode. It turns out that the SunPro C++ compiler does not properly
4328 # handle `-M -o', and we need to detect this. Also, some Intel
4329 # versions had trouble with output in subdirs
4330 am__obj=sub/conftest.${OBJEXT-o}
4331 am__minus_obj="-o $am__obj"
4332 case $depmode in
4333 gcc)
4334 # This depmode causes a compiler race in universal mode.
4335 test "$am__universal" = false || continue
4337 nosideeffect)
4338 # after this tag, mechanisms are not by side-effect, so they'll
4339 # only be used when explicitly requested
4340 if test "x$enable_dependency_tracking" = xyes; then
4341 continue
4342 else
4343 break
4346 msvisualcpp | msvcmsys)
4347 # This compiler won't grok `-c -o', but also, the minuso test has
4348 # not run yet. These depmodes are late enough in the game, and
4349 # so weak that their functioning should not be impacted.
4350 am__obj=conftest.${OBJEXT-o}
4351 am__minus_obj=
4353 none) break ;;
4354 esac
4355 if depmode=$depmode \
4356 source=sub/conftest.c object=$am__obj \
4357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4359 >/dev/null 2>conftest.err &&
4360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4364 # icc doesn't choke on unknown options, it will just issue warnings
4365 # or remarks (even with -Werror). So we grep stderr for any message
4366 # that says an option was ignored or not supported.
4367 # When given -MP, icc 7.0 and 7.1 complain thusly:
4368 # icc: Command line warning: ignoring option '-M'; no argument required
4369 # The diagnosis changed in icc 8.0:
4370 # icc: Command line remark: option '-MP' not supported
4371 if (grep 'ignoring option' conftest.err ||
4372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4373 am_cv_CCAS_dependencies_compiler_type=$depmode
4374 break
4377 done
4379 cd ..
4380 rm -rf conftest.dir
4381 else
4382 am_cv_CCAS_dependencies_compiler_type=none
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4387 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4388 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4391 test "x$enable_dependency_tracking" != xno \
4392 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4393 am__fastdepCCAS_TRUE=
4394 am__fastdepCCAS_FALSE='#'
4395 else
4396 am__fastdepCCAS_TRUE='#'
4397 am__fastdepCCAS_FALSE=
4402 enable_dlopen=yes
4406 case `pwd` in
4407 *\ * | *\ *)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4409 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4410 esac
4414 macro_version='2.2.7a'
4415 macro_revision='1.3134'
4429 ltmain="$ac_aux_dir/ltmain.sh"
4431 # Backslashify metacharacters that are still active within
4432 # double-quoted strings.
4433 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4435 # Same as above, but do not quote variable references.
4436 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4438 # Sed substitution to delay expansion of an escaped shell variable in a
4439 # double_quote_subst'ed string.
4440 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4442 # Sed substitution to delay expansion of an escaped single quote.
4443 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4445 # Sed substitution to avoid accidental globbing in evaled expressions
4446 no_glob_subst='s/\*/\\\*/g'
4448 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4449 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4450 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4453 $as_echo_n "checking how to print strings... " >&6; }
4454 # Test print first, because it will be a builtin if present.
4455 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4456 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4457 ECHO='print -r --'
4458 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4459 ECHO='printf %s\n'
4460 else
4461 # Use this function as a fallback that always works.
4462 func_fallback_echo ()
4464 eval 'cat <<_LTECHO_EOF
4466 _LTECHO_EOF'
4468 ECHO='func_fallback_echo'
4471 # func_echo_all arg...
4472 # Invoke $ECHO with all args, space-separated.
4473 func_echo_all ()
4475 $ECHO ""
4478 case "$ECHO" in
4479 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4480 $as_echo "printf" >&6; } ;;
4481 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4482 $as_echo "print -r" >&6; } ;;
4483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4484 $as_echo "cat" >&6; } ;;
4485 esac
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4501 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4502 if test "${ac_cv_path_SED+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4506 for ac_i in 1 2 3 4 5 6 7; do
4507 ac_script="$ac_script$as_nl$ac_script"
4508 done
4509 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4510 { ac_script=; unset ac_script;}
4511 if test -z "$SED"; then
4512 ac_path_SED_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in sed gsed; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4522 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4523 # Check for GNU ac_path_SED and select it if it is found.
4524 # Check for GNU $ac_path_SED
4525 case `"$ac_path_SED" --version 2>&1` in
4526 *GNU*)
4527 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4529 ac_count=0
4530 $as_echo_n 0123456789 >"conftest.in"
4531 while :
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 $as_echo '' >> "conftest.nl"
4537 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 as_fn_arith $ac_count + 1 && ac_count=$as_val
4540 if test $ac_count -gt ${ac_path_SED_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_SED="$ac_path_SED"
4543 ac_path_SED_max=$ac_count
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 esac
4551 $ac_path_SED_found && break 3
4552 done
4553 done
4554 done
4555 IFS=$as_save_IFS
4556 if test -z "$ac_cv_path_SED"; then
4557 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4559 else
4560 ac_cv_path_SED=$SED
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4565 $as_echo "$ac_cv_path_SED" >&6; }
4566 SED="$ac_cv_path_SED"
4567 rm -f conftest.sed
4569 test -z "$SED" && SED=sed
4570 Xsed="$SED -e 1s/^X//"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if test "${ac_cv_path_GREP+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$GREP"; then
4588 ac_path_GREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in grep ggrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600 # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'GREP' >> "conftest.nl"
4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_GREP="$ac_path_GREP"
4619 ac_path_GREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_GREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_GREP"; then
4633 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_GREP=$GREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642 GREP="$ac_cv_path_GREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if test "${ac_cv_path_EGREP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651 then ac_cv_path_EGREP="$GREP -E"
4652 else
4653 if test -z "$EGREP"; then
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4693 $ac_path_EGREP_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_EGREP"; then
4699 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 else
4702 ac_cv_path_EGREP=$EGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709 EGREP="$ac_cv_path_EGREP"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4713 $as_echo_n "checking for fgrep... " >&6; }
4714 if test "${ac_cv_path_FGREP+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4718 then ac_cv_path_FGREP="$GREP -F"
4719 else
4720 if test -z "$FGREP"; then
4721 ac_path_FGREP_found=false
4722 # Loop through the user's path and test for each of PROGNAME-LIST
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_prog in fgrep; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4731 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4732 # Check for GNU ac_path_FGREP and select it if it is found.
4733 # Check for GNU $ac_path_FGREP
4734 case `"$ac_path_FGREP" --version 2>&1` in
4735 *GNU*)
4736 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4738 ac_count=0
4739 $as_echo_n 0123456789 >"conftest.in"
4740 while :
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 $as_echo 'FGREP' >> "conftest.nl"
4746 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748 as_fn_arith $ac_count + 1 && ac_count=$as_val
4749 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_FGREP="$ac_path_FGREP"
4752 ac_path_FGREP_max=$ac_count
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4756 done
4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 esac
4760 $ac_path_FGREP_found && break 3
4761 done
4762 done
4763 done
4764 IFS=$as_save_IFS
4765 if test -z "$ac_cv_path_FGREP"; then
4766 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 else
4769 ac_cv_path_FGREP=$FGREP
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4775 $as_echo "$ac_cv_path_FGREP" >&6; }
4776 FGREP="$ac_cv_path_FGREP"
4779 test -z "$GREP" && GREP=grep
4799 # Check whether --with-gnu-ld was given.
4800 if test "${with_gnu_ld+set}" = set; then :
4801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4802 else
4803 with_gnu_ld=no
4806 ac_prog=ld
4807 if test "$GCC" = yes; then
4808 # Check if gcc -print-prog-name=ld gives a path.
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4810 $as_echo_n "checking for ld used by $CC... " >&6; }
4811 case $host in
4812 *-*-mingw*)
4813 # gcc leaves a trailing carriage return which upsets mingw
4814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4817 esac
4818 case $ac_prog in
4819 # Accept absolute paths.
4820 [\\/]* | ?:[\\/]*)
4821 re_direlt='/[^/][^/]*/\.\./'
4822 # Canonicalize the pathname of ld
4823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4826 done
4827 test -z "$LD" && LD="$ac_prog"
4830 # If it fails, then pretend we aren't using GCC.
4831 ac_prog=ld
4834 # If it is relative, then search for the first ld in PATH.
4835 with_gnu_ld=unknown
4837 esac
4838 elif test "$with_gnu_ld" = yes; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4840 $as_echo_n "checking for GNU ld... " >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4843 $as_echo_n "checking for non-GNU ld... " >&6; }
4845 if test "${lt_cv_path_LD+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -z "$LD"; then
4849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4850 for ac_dir in $PATH; do
4851 IFS="$lt_save_ifs"
4852 test -z "$ac_dir" && ac_dir=.
4853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4854 lt_cv_path_LD="$ac_dir/$ac_prog"
4855 # Check to see if the program is GNU ld. I'd rather use --version,
4856 # but apparently some variants of GNU ld only accept -v.
4857 # Break only if it was the GNU/non-GNU ld that we prefer.
4858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4859 *GNU* | *'with BFD'*)
4860 test "$with_gnu_ld" != no && break
4863 test "$with_gnu_ld" != yes && break
4865 esac
4867 done
4868 IFS="$lt_save_ifs"
4869 else
4870 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4874 LD="$lt_cv_path_LD"
4875 if test -n "$LD"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4877 $as_echo "$LD" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4882 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4884 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4885 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4889 case `$LD -v 2>&1 </dev/null` in
4890 *GNU* | *'with BFD'*)
4891 lt_cv_prog_gnu_ld=yes
4894 lt_cv_prog_gnu_ld=no
4896 esac
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4899 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4900 with_gnu_ld=$lt_cv_prog_gnu_ld
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4911 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4912 if test "${lt_cv_path_NM+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$NM"; then
4916 # Let the user override the test.
4917 lt_cv_path_NM="$NM"
4918 else
4919 lt_nm_to_check="${ac_tool_prefix}nm"
4920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4921 lt_nm_to_check="$lt_nm_to_check nm"
4923 for lt_tmp_nm in $lt_nm_to_check; do
4924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4926 IFS="$lt_save_ifs"
4927 test -z "$ac_dir" && ac_dir=.
4928 tmp_nm="$ac_dir/$lt_tmp_nm"
4929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4930 # Check to see if the nm accepts a BSD-compat flag.
4931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4932 # nm: unknown option "B" ignored
4933 # Tru64's nm complains that /dev/null is an invalid object file
4934 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4935 */dev/null* | *'Invalid file or object type'*)
4936 lt_cv_path_NM="$tmp_nm -B"
4937 break
4940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4941 */dev/null*)
4942 lt_cv_path_NM="$tmp_nm -p"
4943 break
4946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4947 continue # so that we can try to find one that supports BSD flags
4949 esac
4951 esac
4953 done
4954 IFS="$lt_save_ifs"
4955 done
4956 : ${lt_cv_path_NM=no}
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4960 $as_echo "$lt_cv_path_NM" >&6; }
4961 if test "$lt_cv_path_NM" != "no"; then
4962 NM="$lt_cv_path_NM"
4963 else
4964 # Didn't find any BSD compatible name lister, look for dumpbin.
4965 if test -n "$DUMPBIN"; then :
4966 # Let the user override the test.
4967 else
4968 if test -n "$ac_tool_prefix"; then
4969 for ac_prog in dumpbin "link -dump"
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$DUMPBIN"; then
4979 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 DUMPBIN=$ac_cv_prog_DUMPBIN
4999 if test -n "$DUMPBIN"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5001 $as_echo "$DUMPBIN" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 test -n "$DUMPBIN" && break
5009 done
5011 if test -z "$DUMPBIN"; then
5012 ac_ct_DUMPBIN=$DUMPBIN
5013 for ac_prog in dumpbin "link -dump"
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$ac_ct_DUMPBIN"; then
5023 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5043 if test -n "$ac_ct_DUMPBIN"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5045 $as_echo "$ac_ct_DUMPBIN" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 test -n "$ac_ct_DUMPBIN" && break
5053 done
5055 if test "x$ac_ct_DUMPBIN" = x; then
5056 DUMPBIN=":"
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064 DUMPBIN=$ac_ct_DUMPBIN
5068 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5069 *COFF*)
5070 DUMPBIN="$DUMPBIN -symbols"
5073 DUMPBIN=:
5075 esac
5078 if test "$DUMPBIN" != ":"; then
5079 NM="$DUMPBIN"
5082 test -z "$NM" && NM=nm
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5090 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5091 if test "${lt_cv_nm_interface+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 lt_cv_nm_interface="BSD nm"
5095 echo "int some_variable = 0;" > conftest.$ac_ext
5096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5097 (eval "$ac_compile" 2>conftest.err)
5098 cat conftest.err >&5
5099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5101 cat conftest.err >&5
5102 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5103 cat conftest.out >&5
5104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5105 lt_cv_nm_interface="MS dumpbin"
5107 rm -f conftest*
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5110 $as_echo "$lt_cv_nm_interface" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5113 $as_echo_n "checking whether ln -s works... " >&6; }
5114 LN_S=$as_ln_s
5115 if test "$LN_S" = "ln -s"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5117 $as_echo "yes" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5120 $as_echo "no, using $LN_S" >&6; }
5123 # find the maximum length of command line arguments
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5125 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5126 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5130 teststring="ABCD"
5132 case $build_os in
5133 msdosdjgpp*)
5134 # On DJGPP, this test can blow up pretty badly due to problems in libc
5135 # (any single argument exceeding 2000 bytes causes a buffer overrun
5136 # during glob expansion). Even if it were fixed, the result of this
5137 # check would be larger than it should be.
5138 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5141 gnu*)
5142 # Under GNU Hurd, this test is not required because there is
5143 # no limit to the length of command line arguments.
5144 # Libtool will interpret -1 as no limit whatsoever
5145 lt_cv_sys_max_cmd_len=-1;
5148 cygwin* | mingw* | cegcc*)
5149 # On Win9x/ME, this test blows up -- it succeeds, but takes
5150 # about 5 minutes as the teststring grows exponentially.
5151 # Worse, since 9x/ME are not pre-emptively multitasking,
5152 # you end up with a "frozen" computer, even though with patience
5153 # the test eventually succeeds (with a max line length of 256k).
5154 # Instead, let's just punt: use the minimum linelength reported by
5155 # all of the supported platforms: 8192 (on NT/2K/XP).
5156 lt_cv_sys_max_cmd_len=8192;
5159 mint*)
5160 # On MiNT this can take a long time and run out of memory.
5161 lt_cv_sys_max_cmd_len=8192;
5164 amigaos*)
5165 # On AmigaOS with pdksh, this test takes hours, literally.
5166 # So we just punt and use a minimum line length of 8192.
5167 lt_cv_sys_max_cmd_len=8192;
5170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5171 # This has been around since 386BSD, at least. Likely further.
5172 if test -x /sbin/sysctl; then
5173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5174 elif test -x /usr/sbin/sysctl; then
5175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5176 else
5177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5179 # And add a safety zone
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5184 interix*)
5185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5186 lt_cv_sys_max_cmd_len=196608
5189 osf*)
5190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5192 # nice to cause kernel panics so lets avoid the loop below.
5193 # First set a reasonable default.
5194 lt_cv_sys_max_cmd_len=16384
5196 if test -x /sbin/sysconfig; then
5197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5199 esac
5202 sco3.2v5*)
5203 lt_cv_sys_max_cmd_len=102400
5205 sysv5* | sco5v6* | sysv4.2uw2*)
5206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5207 if test -n "$kargmax"; then
5208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5209 else
5210 lt_cv_sys_max_cmd_len=32768
5214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5215 if test -n "$lt_cv_sys_max_cmd_len"; then
5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5218 else
5219 # Make teststring a little bigger before we do anything with it.
5220 # a 1K string should be a reasonable start.
5221 for i in 1 2 3 4 5 6 7 8 ; do
5222 teststring=$teststring$teststring
5223 done
5224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5225 # If test is not a shell built-in, we'll probably end up computing a
5226 # maximum length that is only half of the actual maximum length, but
5227 # we can't tell.
5228 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5229 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5230 test $i != 17 # 1/2 MB should be enough
5232 i=`expr $i + 1`
5233 teststring=$teststring$teststring
5234 done
5235 # Only check the string length outside the loop.
5236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5237 teststring=
5238 # Add a significant safety factor because C++ compilers can tack on
5239 # massive amounts of additional arguments before passing them to the
5240 # linker. It appears as though 1/2 is a usable value.
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5244 esac
5248 if test -n $lt_cv_sys_max_cmd_len ; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5253 $as_echo "none" >&6; }
5255 max_cmd_len=$lt_cv_sys_max_cmd_len
5262 : ${CP="cp -f"}
5263 : ${MV="mv -f"}
5264 : ${RM="rm -f"}
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5268 # Try some XSI features
5269 xsi_shell=no
5270 ( _lt_dummy="a/b/c"
5271 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5272 = c,a/b,, \
5273 && eval 'test $(( 1 + 1 )) -eq 2 \
5274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5275 && xsi_shell=yes
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5277 $as_echo "$xsi_shell" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5282 lt_shell_append=no
5283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5284 >/dev/null 2>&1 \
5285 && lt_shell_append=yes
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5287 $as_echo "$lt_shell_append" >&6; }
5290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5291 lt_unset=unset
5292 else
5293 lt_unset=false
5300 # test EBCDIC or ASCII
5301 case `echo X|tr X '\101'` in
5302 A) # ASCII based system
5303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5304 lt_SP2NL='tr \040 \012'
5305 lt_NL2SP='tr \015\012 \040\040'
5307 *) # EBCDIC based system
5308 lt_SP2NL='tr \100 \n'
5309 lt_NL2SP='tr \r\n \100\100'
5311 esac
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5322 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5323 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 lt_cv_ld_reload_flag='-r'
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5329 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5330 reload_flag=$lt_cv_ld_reload_flag
5331 case $reload_flag in
5332 "" | " "*) ;;
5333 *) reload_flag=" $reload_flag" ;;
5334 esac
5335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5336 case $host_os in
5337 darwin*)
5338 if test "$GCC" = yes; then
5339 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5340 else
5341 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344 esac
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$OBJDUMP"; then
5363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5382 OBJDUMP=$ac_cv_prog_OBJDUMP
5383 if test -n "$OBJDUMP"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5385 $as_echo "$OBJDUMP" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_OBJDUMP"; then
5394 ac_ct_OBJDUMP=$OBJDUMP
5395 # Extract the first word of "objdump", so it can be a program name with args.
5396 set dummy objdump; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_OBJDUMP"; then
5403 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5422 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5423 if test -n "$ac_ct_OBJDUMP"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5425 $as_echo "$ac_ct_OBJDUMP" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_OBJDUMP" = x; then
5432 OBJDUMP="false"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 OBJDUMP=$ac_ct_OBJDUMP
5442 else
5443 OBJDUMP="$ac_cv_prog_OBJDUMP"
5446 test -z "$OBJDUMP" && OBJDUMP=objdump
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5457 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5458 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 lt_cv_file_magic_cmd='$MAGIC_CMD'
5462 lt_cv_file_magic_test_file=
5463 lt_cv_deplibs_check_method='unknown'
5464 # Need to set the preceding variable on all platforms that support
5465 # interlibrary dependencies.
5466 # 'none' -- dependencies not supported.
5467 # `unknown' -- same as none, but documents that we really don't know.
5468 # 'pass_all' -- all dependencies passed with no checks.
5469 # 'test_compile' -- check by making test program.
5470 # 'file_magic [[regex]]' -- check by looking for files in library path
5471 # which responds to the $file_magic_cmd with a given extended regex.
5472 # If you have `file' or equivalent on your system and you're not sure
5473 # whether `pass_all' will *always* work, you probably want this one.
5475 case $host_os in
5476 aix[4-9]*)
5477 lt_cv_deplibs_check_method=pass_all
5480 beos*)
5481 lt_cv_deplibs_check_method=pass_all
5484 bsdi[45]*)
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486 lt_cv_file_magic_cmd='/usr/bin/file -L'
5487 lt_cv_file_magic_test_file=/shlib/libc.so
5490 cygwin*)
5491 # func_win32_libid is a shell function defined in ltmain.sh
5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493 lt_cv_file_magic_cmd='func_win32_libid'
5496 mingw* | pw32*)
5497 # Base MSYS/MinGW do not provide the 'file' command needed by
5498 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5499 # unless we find 'file', for example because we are cross-compiling.
5500 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5501 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5503 lt_cv_file_magic_cmd='func_win32_libid'
5504 else
5505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5506 lt_cv_file_magic_cmd='$OBJDUMP -f'
5510 cegcc*)
5511 # use the weaker test based on 'objdump'. See mingw*.
5512 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5513 lt_cv_file_magic_cmd='$OBJDUMP -f'
5516 darwin* | rhapsody*)
5517 lt_cv_deplibs_check_method=pass_all
5520 freebsd* | dragonfly*)
5521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522 case $host_cpu in
5523 i*86 )
5524 # Not sure whether the presence of OpenBSD here was a mistake.
5525 # Let's accept both of them until this is cleared up.
5526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530 esac
5531 else
5532 lt_cv_deplibs_check_method=pass_all
5536 gnu*)
5537 lt_cv_deplibs_check_method=pass_all
5540 haiku*)
5541 lt_cv_deplibs_check_method=pass_all
5544 hpux10.20* | hpux11*)
5545 lt_cv_file_magic_cmd=/usr/bin/file
5546 case $host_cpu in
5547 ia64*)
5548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5551 hppa*64*)
5552 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]'
5553 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5557 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5559 esac
5562 interix[3-9]*)
5563 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5567 irix5* | irix6* | nonstopux*)
5568 case $LD in
5569 *-32|*"-32 ") libmagic=32-bit;;
5570 *-n32|*"-n32 ") libmagic=N32;;
5571 *-64|*"-64 ") libmagic=64-bit;;
5572 *) libmagic=never-match;;
5573 esac
5574 lt_cv_deplibs_check_method=pass_all
5577 # This must be Linux ELF.
5578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5579 lt_cv_deplibs_check_method=pass_all
5582 netbsd*)
5583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5585 else
5586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5590 newos6*)
5591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5592 lt_cv_file_magic_cmd=/usr/bin/file
5593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5596 *nto* | *qnx*)
5597 lt_cv_deplibs_check_method=pass_all
5600 openbsd*)
5601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5603 else
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5608 osf3* | osf4* | osf5*)
5609 lt_cv_deplibs_check_method=pass_all
5612 rdos*)
5613 lt_cv_deplibs_check_method=pass_all
5616 solaris*)
5617 lt_cv_deplibs_check_method=pass_all
5620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5621 lt_cv_deplibs_check_method=pass_all
5624 sysv4 | sysv4.3*)
5625 case $host_vendor in
5626 motorola)
5627 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]'
5628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5630 ncr)
5631 lt_cv_deplibs_check_method=pass_all
5633 sequent)
5634 lt_cv_file_magic_cmd='/bin/file'
5635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5637 sni)
5638 lt_cv_file_magic_cmd='/bin/file'
5639 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5640 lt_cv_file_magic_test_file=/lib/libc.so
5642 siemens)
5643 lt_cv_deplibs_check_method=pass_all
5646 lt_cv_deplibs_check_method=pass_all
5648 esac
5651 tpf*)
5652 lt_cv_deplibs_check_method=pass_all
5654 esac
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5658 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5659 file_magic_cmd=$lt_cv_file_magic_cmd
5660 deplibs_check_method=$lt_cv_deplibs_check_method
5661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}ar; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if test "${ac_cv_prog_AR+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$AR"; then
5683 ac_cv_prog_AR="$AR" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_prog_AR="${ac_tool_prefix}ar"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 AR=$ac_cv_prog_AR
5703 if test -n "$AR"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5705 $as_echo "$AR" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_AR"; then
5714 ac_ct_AR=$AR
5715 # Extract the first word of "ar", so it can be a program name with args.
5716 set dummy ar; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_AR"; then
5723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_ac_ct_AR="ar"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5743 if test -n "$ac_ct_AR"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5745 $as_echo "$ac_ct_AR" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_AR" = x; then
5752 AR="false"
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760 AR=$ac_ct_AR
5762 else
5763 AR="$ac_cv_prog_AR"
5766 test -z "$AR" && AR=ar
5767 test -z "$AR_FLAGS" && AR_FLAGS=cru
5779 if test -n "$ac_tool_prefix"; then
5780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5781 set dummy ${ac_tool_prefix}strip; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if test "${ac_cv_prog_STRIP+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 if test -n "$STRIP"; then
5788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5803 IFS=$as_save_IFS
5807 STRIP=$ac_cv_prog_STRIP
5808 if test -n "$STRIP"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5810 $as_echo "$STRIP" >&6; }
5811 else
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5818 if test -z "$ac_cv_prog_STRIP"; then
5819 ac_ct_STRIP=$STRIP
5820 # Extract the first word of "strip", so it can be a program name with args.
5821 set dummy strip; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test -n "$ac_ct_STRIP"; then
5828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_ac_ct_STRIP="strip"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5841 done
5842 done
5843 IFS=$as_save_IFS
5847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5848 if test -n "$ac_ct_STRIP"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5850 $as_echo "$ac_ct_STRIP" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5856 if test "x$ac_ct_STRIP" = x; then
5857 STRIP=":"
5858 else
5859 case $cross_compiling:$ac_tool_warned in
5860 yes:)
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863 ac_tool_warned=yes ;;
5864 esac
5865 STRIP=$ac_ct_STRIP
5867 else
5868 STRIP="$ac_cv_prog_STRIP"
5871 test -z "$STRIP" && STRIP=:
5878 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$RANLIB"; then
5887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5900 done
5901 done
5902 IFS=$as_save_IFS
5906 RANLIB=$ac_cv_prog_RANLIB
5907 if test -n "$RANLIB"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5909 $as_echo "$RANLIB" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5917 if test -z "$ac_cv_prog_RANLIB"; then
5918 ac_ct_RANLIB=$RANLIB
5919 # Extract the first word of "ranlib", so it can be a program name with args.
5920 set dummy ranlib; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$ac_ct_RANLIB"; then
5927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_RANLIB="ranlib"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5947 if test -n "$ac_ct_RANLIB"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5949 $as_echo "$ac_ct_RANLIB" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5955 if test "x$ac_ct_RANLIB" = x; then
5956 RANLIB=":"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964 RANLIB=$ac_ct_RANLIB
5966 else
5967 RANLIB="$ac_cv_prog_RANLIB"
5970 test -z "$RANLIB" && RANLIB=:
5977 # Determine commands to create old-style static archives.
5978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5979 old_postinstall_cmds='chmod 644 $oldlib'
5980 old_postuninstall_cmds=
5982 if test -n "$RANLIB"; then
5983 case $host_os in
5984 openbsd*)
5985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5990 esac
5991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5994 case $host_os in
5995 darwin*)
5996 lock_old_archive_extraction=yes ;;
5998 lock_old_archive_extraction=no ;;
5999 esac
6039 # If no C compiler was specified, use CC.
6040 LTCC=${LTCC-"$CC"}
6042 # If no C compiler flags were specified, use CFLAGS.
6043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6045 # Allow CC to be a program name with arguments.
6046 compiler=$CC
6049 # Check for command to grab the raw symbol name followed by C symbol from nm.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6051 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6052 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6056 # These are sane defaults that work on at least a few old systems.
6057 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6059 # Character class describing NM global symbol codes.
6060 symcode='[BCDEGRST]'
6062 # Regexp to match symbols that can be accessed directly from C.
6063 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6065 # Define system-specific variables.
6066 case $host_os in
6067 aix*)
6068 symcode='[BCDT]'
6070 cygwin* | mingw* | pw32* | cegcc*)
6071 symcode='[ABCDGISTW]'
6073 hpux*)
6074 if test "$host_cpu" = ia64; then
6075 symcode='[ABCDEGRST]'
6078 irix* | nonstopux*)
6079 symcode='[BCDEGRST]'
6081 osf*)
6082 symcode='[BCDEGQRST]'
6084 solaris*)
6085 symcode='[BDRT]'
6087 sco3.2v5*)
6088 symcode='[DT]'
6090 sysv4.2uw2*)
6091 symcode='[DT]'
6093 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6094 symcode='[ABDT]'
6096 sysv4)
6097 symcode='[DFNSTU]'
6099 esac
6101 # If we're using GNU nm, then use its standard symbol codes.
6102 case `$NM -V 2>&1` in
6103 *GNU* | *'with BFD'*)
6104 symcode='[ABCDGIRSTW]' ;;
6105 esac
6107 # Transform an extracted symbol line into a proper C declaration.
6108 # Some systems (esp. on ia64) link data and code symbols differently,
6109 # so use this general approach.
6110 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6112 # Transform an extracted symbol line into symbol name and symbol address
6113 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6114 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'"
6116 # Handle CRLF in mingw tool chain
6117 opt_cr=
6118 case $build_os in
6119 mingw*)
6120 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6122 esac
6124 # Try without a prefix underscore, then with it.
6125 for ac_symprfx in "" "_"; do
6127 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6128 symxfrm="\\1 $ac_symprfx\\2 \\2"
6130 # Write the raw and C identifiers.
6131 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6132 # Fake it for dumpbin and say T for any non-static function
6133 # and D for any global variable.
6134 # Also find C++ and __fastcall symbols from MSVC++,
6135 # which start with @ or ?.
6136 lt_cv_sys_global_symbol_pipe="$AWK '"\
6137 " {last_section=section; section=\$ 3};"\
6138 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6139 " \$ 0!~/External *\|/{next};"\
6140 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6141 " {if(hide[section]) next};"\
6142 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6143 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6144 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6145 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6146 " ' prfx=^$ac_symprfx"
6147 else
6148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6151 # Check to see that the pipe works correctly.
6152 pipe_works=no
6154 rm -f conftest*
6155 cat > conftest.$ac_ext <<_LT_EOF
6156 #ifdef __cplusplus
6157 extern "C" {
6158 #endif
6159 char nm_test_var;
6160 void nm_test_func(void);
6161 void nm_test_func(void){}
6162 #ifdef __cplusplus
6164 #endif
6165 int main(){nm_test_var='a';nm_test_func();return(0);}
6166 _LT_EOF
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6169 (eval $ac_compile) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; }; then
6173 # Now try to grab the symbols.
6174 nlist=conftest.nm
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6176 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; } && test -s "$nlist"; then
6180 # Try sorting and uniquifying the output.
6181 if sort "$nlist" | uniq > "$nlist"T; then
6182 mv -f "$nlist"T "$nlist"
6183 else
6184 rm -f "$nlist"T
6187 # Make sure that we snagged all the symbols we need.
6188 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6189 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6190 cat <<_LT_EOF > conftest.$ac_ext
6191 #ifdef __cplusplus
6192 extern "C" {
6193 #endif
6195 _LT_EOF
6196 # Now generate the symbol file.
6197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6199 cat <<_LT_EOF >> conftest.$ac_ext
6201 /* The mapping between symbol names and symbols. */
6202 const struct {
6203 const char *name;
6204 void *address;
6206 lt__PROGRAM__LTX_preloaded_symbols[] =
6208 { "@PROGRAM@", (void *) 0 },
6209 _LT_EOF
6210 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6211 cat <<\_LT_EOF >> conftest.$ac_ext
6212 {0, (void *) 0}
6215 /* This works around a problem in FreeBSD linker */
6216 #ifdef FREEBSD_WORKAROUND
6217 static const void *lt_preloaded_setup() {
6218 return lt__PROGRAM__LTX_preloaded_symbols;
6220 #endif
6222 #ifdef __cplusplus
6224 #endif
6225 _LT_EOF
6226 # Now try linking the two files.
6227 mv conftest.$ac_objext conftstm.$ac_objext
6228 lt_save_LIBS="$LIBS"
6229 lt_save_CFLAGS="$CFLAGS"
6230 LIBS="conftstm.$ac_objext"
6231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6233 (eval $ac_link) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6237 pipe_works=yes
6239 LIBS="$lt_save_LIBS"
6240 CFLAGS="$lt_save_CFLAGS"
6241 else
6242 echo "cannot find nm_test_func in $nlist" >&5
6244 else
6245 echo "cannot find nm_test_var in $nlist" >&5
6247 else
6248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6250 else
6251 echo "$progname: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 rm -rf conftest* conftst*
6256 # Do not use the global_symbol_pipe unless it works.
6257 if test "$pipe_works" = yes; then
6258 break
6259 else
6260 lt_cv_sys_global_symbol_pipe=
6262 done
6266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6267 lt_cv_sys_global_symbol_to_cdecl=
6269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6271 $as_echo "failed" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6274 $as_echo "ok" >&6; }
6299 # Check whether --enable-libtool-lock was given.
6300 if test "${enable_libtool_lock+set}" = set; then :
6301 enableval=$enable_libtool_lock;
6304 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6306 # Some flags need to be propagated to the compiler or linker for good
6307 # libtool support.
6308 case $host in
6309 ia64-*-hpux*)
6310 # Find out which ABI we are using.
6311 echo 'int i;' > conftest.$ac_ext
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 case `/usr/bin/file conftest.$ac_objext` in
6318 *ELF-32*)
6319 HPUX_IA64_MODE="32"
6321 *ELF-64*)
6322 HPUX_IA64_MODE="64"
6324 esac
6326 rm -rf conftest*
6328 *-*-irix6*)
6329 # Find out which ABI we are using.
6330 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6333 ac_status=$?
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 if test "$lt_cv_prog_gnu_ld" = yes; then
6337 case `/usr/bin/file conftest.$ac_objext` in
6338 *32-bit*)
6339 LD="${LD-ld} -melf32bsmip"
6341 *N32*)
6342 LD="${LD-ld} -melf32bmipn32"
6344 *64-bit*)
6345 LD="${LD-ld} -melf64bmip"
6347 esac
6348 else
6349 case `/usr/bin/file conftest.$ac_objext` in
6350 *32-bit*)
6351 LD="${LD-ld} -32"
6353 *N32*)
6354 LD="${LD-ld} -n32"
6356 *64-bit*)
6357 LD="${LD-ld} -64"
6359 esac
6362 rm -rf conftest*
6365 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6366 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6367 # Find out which ABI we are using.
6368 echo 'int i;' > conftest.$ac_ext
6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6370 (eval $ac_compile) 2>&5
6371 ac_status=$?
6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373 test $ac_status = 0; }; then
6374 case `/usr/bin/file conftest.o` in
6375 *32-bit*)
6376 case $host in
6377 x86_64-*kfreebsd*-gnu)
6378 LD="${LD-ld} -m elf_i386_fbsd"
6380 x86_64-*linux*)
6381 case `/usr/bin/file conftest.o` in
6382 *x86-64*)
6383 LD="${LD-ld} -m elf32_x86_64"
6386 LD="${LD-ld} -m elf_i386"
6388 esac
6390 ppc64-*linux*|powerpc64-*linux*)
6391 LD="${LD-ld} -m elf32ppclinux"
6393 s390x-*linux*)
6394 LD="${LD-ld} -m elf_s390"
6396 sparc64-*linux*)
6397 LD="${LD-ld} -m elf32_sparc"
6399 esac
6401 *64-bit*)
6402 case $host in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_x86_64_fbsd"
6406 x86_64-*linux*)
6407 LD="${LD-ld} -m elf_x86_64"
6409 ppc*-*linux*|powerpc*-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6412 s390*-*linux*|s390*-*tpf*)
6413 LD="${LD-ld} -m elf64_s390"
6415 sparc*-*linux*)
6416 LD="${LD-ld} -m elf64_sparc"
6418 esac
6420 esac
6422 rm -rf conftest*
6425 *-*-sco3.2v5*)
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS="$CFLAGS"
6428 CFLAGS="$CFLAGS -belf"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6431 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6444 main ()
6448 return 0;
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"; then :
6452 lt_cv_cc_needs_belf=yes
6453 else
6454 lt_cv_cc_needs_belf=no
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6467 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469 CFLAGS="$SAVE_CFLAGS"
6472 sparc*-*solaris*)
6473 # Find out which ABI we are using.
6474 echo 'int i;' > conftest.$ac_ext
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476 (eval $ac_compile) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
6480 case `/usr/bin/file conftest.o` in
6481 *64-bit*)
6482 case $lt_cv_prog_gnu_ld in
6483 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6485 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486 LD="${LD-ld} -64"
6489 esac
6491 esac
6493 rm -rf conftest*
6495 esac
6497 need_locks="$enable_libtool_lock"
6500 case $host_os in
6501 rhapsody* | darwin*)
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$DSYMUTIL"; then
6511 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6526 IFS=$as_save_IFS
6530 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6531 if test -n "$DSYMUTIL"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6533 $as_echo "$DSYMUTIL" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6541 if test -z "$ac_cv_prog_DSYMUTIL"; then
6542 ac_ct_DSYMUTIL=$DSYMUTIL
6543 # Extract the first word of "dsymutil", so it can be a program name with args.
6544 set dummy dsymutil; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$ac_ct_DSYMUTIL"; then
6551 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6564 done
6565 done
6566 IFS=$as_save_IFS
6570 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6571 if test -n "$ac_ct_DSYMUTIL"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6573 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6579 if test "x$ac_ct_DSYMUTIL" = x; then
6580 DSYMUTIL=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 DSYMUTIL=$ac_ct_DSYMUTIL
6590 else
6591 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$NMEDIT"; then
6603 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6616 done
6617 done
6618 IFS=$as_save_IFS
6622 NMEDIT=$ac_cv_prog_NMEDIT
6623 if test -n "$NMEDIT"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6625 $as_echo "$NMEDIT" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6633 if test -z "$ac_cv_prog_NMEDIT"; then
6634 ac_ct_NMEDIT=$NMEDIT
6635 # Extract the first word of "nmedit", so it can be a program name with args.
6636 set dummy nmedit; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$ac_ct_NMEDIT"; then
6643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6656 done
6657 done
6658 IFS=$as_save_IFS
6662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6663 if test -n "$ac_ct_NMEDIT"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6665 $as_echo "$ac_ct_NMEDIT" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6671 if test "x$ac_ct_NMEDIT" = x; then
6672 NMEDIT=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 NMEDIT=$ac_ct_NMEDIT
6682 else
6683 NMEDIT="$ac_cv_prog_NMEDIT"
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_LIPO+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$LIPO"; then
6695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6708 done
6709 done
6710 IFS=$as_save_IFS
6714 LIPO=$ac_cv_prog_LIPO
6715 if test -n "$LIPO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6717 $as_echo "$LIPO" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6725 if test -z "$ac_cv_prog_LIPO"; then
6726 ac_ct_LIPO=$LIPO
6727 # Extract the first word of "lipo", so it can be a program name with args.
6728 set dummy lipo; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$ac_ct_LIPO"; then
6735 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_LIPO="lipo"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6754 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6755 if test -n "$ac_ct_LIPO"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6757 $as_echo "$ac_ct_LIPO" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6763 if test "x$ac_ct_LIPO" = x; then
6764 LIPO=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 LIPO=$ac_ct_LIPO
6774 else
6775 LIPO="$ac_cv_prog_LIPO"
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}otool; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$OTOOL"; then
6787 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6806 OTOOL=$ac_cv_prog_OTOOL
6807 if test -n "$OTOOL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6809 $as_echo "$OTOOL" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6817 if test -z "$ac_cv_prog_OTOOL"; then
6818 ac_ct_OTOOL=$OTOOL
6819 # Extract the first word of "otool", so it can be a program name with args.
6820 set dummy otool; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$ac_ct_OTOOL"; then
6827 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_OTOOL="otool"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6840 done
6841 done
6842 IFS=$as_save_IFS
6846 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6847 if test -n "$ac_ct_OTOOL"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6849 $as_echo "$ac_ct_OTOOL" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6855 if test "x$ac_ct_OTOOL" = x; then
6856 OTOOL=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 OTOOL=$ac_ct_OTOOL
6866 else
6867 OTOOL="$ac_cv_prog_OTOOL"
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$OTOOL64"; then
6879 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6892 done
6893 done
6894 IFS=$as_save_IFS
6898 OTOOL64=$ac_cv_prog_OTOOL64
6899 if test -n "$OTOOL64"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6901 $as_echo "$OTOOL64" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6909 if test -z "$ac_cv_prog_OTOOL64"; then
6910 ac_ct_OTOOL64=$OTOOL64
6911 # Extract the first word of "otool64", so it can be a program name with args.
6912 set dummy otool64; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 if test -n "$ac_ct_OTOOL64"; then
6919 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_OTOOL64="otool64"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6932 done
6933 done
6934 IFS=$as_save_IFS
6938 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6939 if test -n "$ac_ct_OTOOL64"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6941 $as_echo "$ac_ct_OTOOL64" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test "x$ac_ct_OTOOL64" = x; then
6948 OTOOL64=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956 OTOOL64=$ac_ct_OTOOL64
6958 else
6959 OTOOL64="$ac_cv_prog_OTOOL64"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6989 $as_echo_n "checking for -single_module linker flag... " >&6; }
6990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_apple_cc_single_mod=no
6994 if test -z "${LT_MULTI_MODULE}"; then
6995 # By default we will add the -single_module flag. You can override
6996 # by either setting the environment variable LT_MULTI_MODULE
6997 # non-empty at configure time, or by adding -multi_module to the
6998 # link flags.
6999 rm -rf libconftest.dylib*
7000 echo "int foo(void){return 1;}" > conftest.c
7001 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7002 -dynamiclib -Wl,-single_module conftest.c" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7005 _lt_result=$?
7006 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7007 lt_cv_apple_cc_single_mod=yes
7008 else
7009 cat conftest.err >&5
7011 rm -rf libconftest.dylib*
7012 rm -f conftest.*
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7016 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7018 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7019 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 lt_cv_ld_exported_symbols_list=no
7023 save_LDFLAGS=$LDFLAGS
7024 echo "_main" > conftest.sym
7025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7030 main ()
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 lt_cv_ld_exported_symbols_list=yes
7039 else
7040 lt_cv_ld_exported_symbols_list=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LDFLAGS="$save_LDFLAGS"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7048 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7050 $as_echo_n "checking for -force_load linker flag... " >&6; }
7051 if test "${lt_cv_ld_force_load+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 lt_cv_ld_force_load=no
7055 cat > conftest.c << _LT_EOF
7056 int forced_loaded() { return 2;}
7057 _LT_EOF
7058 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7059 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7060 echo "$AR cru libconftest.a conftest.o" >&5
7061 $AR cru libconftest.a conftest.o 2>&5
7062 cat > conftest.c << _LT_EOF
7063 int main() { return 0;}
7064 _LT_EOF
7065 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7066 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7067 _lt_result=$?
7068 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7069 lt_cv_ld_force_load=yes
7070 else
7071 cat conftest.err >&5
7073 rm -f conftest.err libconftest.a conftest conftest.c
7074 rm -rf conftest.dSYM
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7078 $as_echo "$lt_cv_ld_force_load" >&6; }
7079 case $host_os in
7080 rhapsody* | darwin1.[012])
7081 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7082 darwin1.*)
7083 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7084 darwin*) # darwin 5.x on
7085 # if running on 10.5 or later, the deployment target defaults
7086 # to the OS version, if on x86, and 10.4, the deployment
7087 # target defaults to 10.4. Don't you love it?
7088 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7089 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7090 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7091 10.[012]*)
7092 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7093 10.*)
7094 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7095 esac
7097 esac
7098 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7099 _lt_dar_single_mod='$single_module'
7101 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7102 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7103 else
7104 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7106 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7107 _lt_dsymutil='~$DSYMUTIL $lib || :'
7108 else
7109 _lt_dsymutil=
7112 esac
7114 ac_ext=c
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7121 # On Suns, sometimes $CPP names a directory.
7122 if test -n "$CPP" && test -d "$CPP"; then
7123 CPP=
7125 if test -z "$CPP"; then
7126 if test "${ac_cv_prog_CPP+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 # Double quotes because CPP needs to be expanded
7130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7132 ac_preproc_ok=false
7133 for ac_c_preproc_warn_flag in '' yes
7135 # Use a header file that comes with gcc, so configuring glibc
7136 # with a fresh cross-compiler works.
7137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7138 # <limits.h> exists even on freestanding compilers.
7139 # On the NeXT, cc -E runs the code through the compiler's parser,
7140 # not just through cpp. "Syntax error" is here to catch this case.
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #ifdef __STDC__
7144 # include <limits.h>
7145 #else
7146 # include <assert.h>
7147 #endif
7148 Syntax error
7149 _ACEOF
7150 if ac_fn_c_try_cpp "$LINENO"; then :
7152 else
7153 # Broken: fails on valid input.
7154 continue
7156 rm -f conftest.err conftest.$ac_ext
7158 # OK, works on sane cases. Now check whether nonexistent headers
7159 # can be detected and how.
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <ac_nonexistent.h>
7163 _ACEOF
7164 if ac_fn_c_try_cpp "$LINENO"; then :
7165 # Broken: success on invalid input.
7166 continue
7167 else
7168 # Passes both tests.
7169 ac_preproc_ok=:
7170 break
7172 rm -f conftest.err conftest.$ac_ext
7174 done
7175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7176 rm -f conftest.err conftest.$ac_ext
7177 if $ac_preproc_ok; then :
7178 break
7181 done
7182 ac_cv_prog_CPP=$CPP
7185 CPP=$ac_cv_prog_CPP
7186 else
7187 ac_cv_prog_CPP=$CPP
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7190 $as_echo "$CPP" >&6; }
7191 ac_preproc_ok=false
7192 for ac_c_preproc_warn_flag in '' yes
7194 # Use a header file that comes with gcc, so configuring glibc
7195 # with a fresh cross-compiler works.
7196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197 # <limits.h> exists even on freestanding compilers.
7198 # On the NeXT, cc -E runs the code through the compiler's parser,
7199 # not just through cpp. "Syntax error" is here to catch this case.
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #ifdef __STDC__
7203 # include <limits.h>
7204 #else
7205 # include <assert.h>
7206 #endif
7207 Syntax error
7208 _ACEOF
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7211 else
7212 # Broken: fails on valid input.
7213 continue
7215 rm -f conftest.err conftest.$ac_ext
7217 # OK, works on sane cases. Now check whether nonexistent headers
7218 # can be detected and how.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <ac_nonexistent.h>
7222 _ACEOF
7223 if ac_fn_c_try_cpp "$LINENO"; then :
7224 # Broken: success on invalid input.
7225 continue
7226 else
7227 # Passes both tests.
7228 ac_preproc_ok=:
7229 break
7231 rm -f conftest.err conftest.$ac_ext
7233 done
7234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7235 rm -f conftest.err conftest.$ac_ext
7236 if $ac_preproc_ok; then :
7238 else
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7242 See \`config.log' for more details." "$LINENO" 5; }
7245 ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7253 $as_echo_n "checking for ANSI C header files... " >&6; }
7254 if test "${ac_cv_header_stdc+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 #include <stdlib.h>
7260 #include <stdarg.h>
7261 #include <string.h>
7262 #include <float.h>
7265 main ()
7269 return 0;
7271 _ACEOF
7272 if ac_fn_c_try_compile "$LINENO"; then :
7273 ac_cv_header_stdc=yes
7274 else
7275 ac_cv_header_stdc=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 if test $ac_cv_header_stdc = yes; then
7280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 #include <string.h>
7285 _ACEOF
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then :
7289 else
7290 ac_cv_header_stdc=no
7292 rm -f conftest*
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <stdlib.h>
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "free" >/dev/null 2>&1; then :
7306 else
7307 ac_cv_header_stdc=no
7309 rm -f conftest*
7313 if test $ac_cv_header_stdc = yes; then
7314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7315 if test "$cross_compiling" = yes; then :
7317 else
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <ctype.h>
7321 #include <stdlib.h>
7322 #if ((' ' & 0x0FF) == 0x020)
7323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7325 #else
7326 # define ISLOWER(c) \
7327 (('a' <= (c) && (c) <= 'i') \
7328 || ('j' <= (c) && (c) <= 'r') \
7329 || ('s' <= (c) && (c) <= 'z'))
7330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7331 #endif
7333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7335 main ()
7337 int i;
7338 for (i = 0; i < 256; i++)
7339 if (XOR (islower (i), ISLOWER (i))
7340 || toupper (i) != TOUPPER (i))
7341 return 2;
7342 return 0;
7344 _ACEOF
7345 if ac_fn_c_try_run "$LINENO"; then :
7347 else
7348 ac_cv_header_stdc=no
7350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7351 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7357 $as_echo "$ac_cv_header_stdc" >&6; }
7358 if test $ac_cv_header_stdc = yes; then
7360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7366 inttypes.h stdint.h unistd.h
7367 do :
7368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7371 eval as_val=\$$as_ac_Header
7372 if test "x$as_val" = x""yes; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7379 done
7382 for ac_header in dlfcn.h
7383 do :
7384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7386 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7389 _ACEOF
7393 done
7400 # Set options
7405 enable_win32_dll=no
7408 # Check whether --enable-shared was given.
7409 if test "${enable_shared+set}" = set; then :
7410 enableval=$enable_shared; p=${PACKAGE-default}
7411 case $enableval in
7412 yes) enable_shared=yes ;;
7413 no) enable_shared=no ;;
7415 enable_shared=no
7416 # Look at the argument we got. We use all the common list separators.
7417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7418 for pkg in $enableval; do
7419 IFS="$lt_save_ifs"
7420 if test "X$pkg" = "X$p"; then
7421 enable_shared=yes
7423 done
7424 IFS="$lt_save_ifs"
7426 esac
7427 else
7428 enable_shared=yes
7439 # Check whether --enable-static was given.
7440 if test "${enable_static+set}" = set; then :
7441 enableval=$enable_static; p=${PACKAGE-default}
7442 case $enableval in
7443 yes) enable_static=yes ;;
7444 no) enable_static=no ;;
7446 enable_static=no
7447 # Look at the argument we got. We use all the common list separators.
7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449 for pkg in $enableval; do
7450 IFS="$lt_save_ifs"
7451 if test "X$pkg" = "X$p"; then
7452 enable_static=yes
7454 done
7455 IFS="$lt_save_ifs"
7457 esac
7458 else
7459 enable_static=yes
7471 # Check whether --with-pic was given.
7472 if test "${with_pic+set}" = set; then :
7473 withval=$with_pic; pic_mode="$withval"
7474 else
7475 pic_mode=default
7479 test -z "$pic_mode" && pic_mode=default
7487 # Check whether --enable-fast-install was given.
7488 if test "${enable_fast_install+set}" = set; then :
7489 enableval=$enable_fast_install; p=${PACKAGE-default}
7490 case $enableval in
7491 yes) enable_fast_install=yes ;;
7492 no) enable_fast_install=no ;;
7494 enable_fast_install=no
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7498 IFS="$lt_save_ifs"
7499 if test "X$pkg" = "X$p"; then
7500 enable_fast_install=yes
7502 done
7503 IFS="$lt_save_ifs"
7505 esac
7506 else
7507 enable_fast_install=yes
7520 # This can be used to rebuild libtool when needed
7521 LIBTOOL_DEPS="$ltmain"
7523 # Always use our own libtool.
7524 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7551 test -z "$LN_S" && LN_S="ln -s"
7566 if test -n "${ZSH_VERSION+set}" ; then
7567 setopt NO_GLOB_SUBST
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7571 $as_echo_n "checking for objdir... " >&6; }
7572 if test "${lt_cv_objdir+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 rm -f .libs 2>/dev/null
7576 mkdir .libs 2>/dev/null
7577 if test -d .libs; then
7578 lt_cv_objdir=.libs
7579 else
7580 # MS-DOS does not allow filenames that begin with a dot.
7581 lt_cv_objdir=_libs
7583 rmdir .libs 2>/dev/null
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7586 $as_echo "$lt_cv_objdir" >&6; }
7587 objdir=$lt_cv_objdir
7593 cat >>confdefs.h <<_ACEOF
7594 #define LT_OBJDIR "$lt_cv_objdir/"
7595 _ACEOF
7600 case $host_os in
7601 aix3*)
7602 # AIX sometimes has problems with the GCC collect2 program. For some
7603 # reason, if we set the COLLECT_NAMES environment variable, the problems
7604 # vanish in a puff of smoke.
7605 if test "X${COLLECT_NAMES+set}" != Xset; then
7606 COLLECT_NAMES=
7607 export COLLECT_NAMES
7610 esac
7612 # Global variables:
7613 ofile=libtool
7614 can_build_shared=yes
7616 # All known linkers require a `.a' archive for static linking (except MSVC,
7617 # which needs '.lib').
7618 libext=a
7620 with_gnu_ld="$lt_cv_prog_gnu_ld"
7622 old_CC="$CC"
7623 old_CFLAGS="$CFLAGS"
7625 # Set sane defaults for various variables
7626 test -z "$CC" && CC=cc
7627 test -z "$LTCC" && LTCC=$CC
7628 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7629 test -z "$LD" && LD=ld
7630 test -z "$ac_objext" && ac_objext=o
7632 for cc_temp in $compiler""; do
7633 case $cc_temp in
7634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7636 \-*) ;;
7637 *) break;;
7638 esac
7639 done
7640 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7643 # Only perform the check for file, if the check method requires it
7644 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7645 case $deplibs_check_method in
7646 file_magic*)
7647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7649 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 case $MAGIC_CMD in
7654 [\\/*] | ?:[\\/]*)
7655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658 lt_save_MAGIC_CMD="$MAGIC_CMD"
7659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661 for ac_dir in $ac_dummy; do
7662 IFS="$lt_save_ifs"
7663 test -z "$ac_dir" && ac_dir=.
7664 if test -f $ac_dir/${ac_tool_prefix}file; then
7665 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666 if test -n "$file_magic_test_file"; then
7667 case $deplibs_check_method in
7668 "file_magic "*)
7669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672 $EGREP "$file_magic_regex" > /dev/null; then
7674 else
7675 cat <<_LT_EOF 1>&2
7677 *** Warning: the command libtool uses to detect shared libraries,
7678 *** $file_magic_cmd, produces output that libtool cannot recognize.
7679 *** The result is that libtool may fail to recognize shared libraries
7680 *** as such. This will affect the creation of libtool libraries that
7681 *** depend on shared libraries, but programs linked with such libtool
7682 *** libraries will work regardless of this problem. Nevertheless, you
7683 *** may want to report the problem to your system manager and/or to
7684 *** bug-libtool@gnu.org
7686 _LT_EOF
7687 fi ;;
7688 esac
7690 break
7692 done
7693 IFS="$lt_save_ifs"
7694 MAGIC_CMD="$lt_save_MAGIC_CMD"
7696 esac
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if test -n "$MAGIC_CMD"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7702 $as_echo "$MAGIC_CMD" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7712 if test -z "$lt_cv_path_MAGIC_CMD"; then
7713 if test -n "$ac_tool_prefix"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7715 $as_echo_n "checking for file... " >&6; }
7716 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 case $MAGIC_CMD in
7720 [\\/*] | ?:[\\/]*)
7721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7724 lt_save_MAGIC_CMD="$MAGIC_CMD"
7725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7727 for ac_dir in $ac_dummy; do
7728 IFS="$lt_save_ifs"
7729 test -z "$ac_dir" && ac_dir=.
7730 if test -f $ac_dir/file; then
7731 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7732 if test -n "$file_magic_test_file"; then
7733 case $deplibs_check_method in
7734 "file_magic "*)
7735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7738 $EGREP "$file_magic_regex" > /dev/null; then
7740 else
7741 cat <<_LT_EOF 1>&2
7743 *** Warning: the command libtool uses to detect shared libraries,
7744 *** $file_magic_cmd, produces output that libtool cannot recognize.
7745 *** The result is that libtool may fail to recognize shared libraries
7746 *** as such. This will affect the creation of libtool libraries that
7747 *** depend on shared libraries, but programs linked with such libtool
7748 *** libraries will work regardless of this problem. Nevertheless, you
7749 *** may want to report the problem to your system manager and/or to
7750 *** bug-libtool@gnu.org
7752 _LT_EOF
7753 fi ;;
7754 esac
7756 break
7758 done
7759 IFS="$lt_save_ifs"
7760 MAGIC_CMD="$lt_save_MAGIC_CMD"
7762 esac
7765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766 if test -n "$MAGIC_CMD"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7768 $as_echo "$MAGIC_CMD" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7775 else
7776 MAGIC_CMD=:
7782 esac
7784 # Use C for the default configuration in the libtool script
7786 lt_save_CC="$CC"
7787 ac_ext=c
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794 # Source file extension for C test sources.
7795 ac_ext=c
7797 # Object file extension for compiled C test sources.
7798 objext=o
7799 objext=$objext
7801 # Code to be used in simple compile tests
7802 lt_simple_compile_test_code="int some_variable = 0;"
7804 # Code to be used in simple link tests
7805 lt_simple_link_test_code='int main(){return(0);}'
7813 # If no C compiler was specified, use CC.
7814 LTCC=${LTCC-"$CC"}
7816 # If no C compiler flags were specified, use CFLAGS.
7817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7819 # Allow CC to be a program name with arguments.
7820 compiler=$CC
7822 # Save the default compiler, since it gets overwritten when the other
7823 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7824 compiler_DEFAULT=$CC
7826 # save warnings/boilerplate of simple test code
7827 ac_outfile=conftest.$ac_objext
7828 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7829 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7830 _lt_compiler_boilerplate=`cat conftest.err`
7831 $RM conftest*
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7835 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7836 _lt_linker_boilerplate=`cat conftest.err`
7837 $RM -r conftest*
7840 ## CAVEAT EMPTOR:
7841 ## There is no encapsulation within the following macros, do not change
7842 ## the running order or otherwise move them around unless you know exactly
7843 ## what you are doing...
7844 if test -n "$compiler"; then
7846 lt_prog_compiler_no_builtin_flag=
7848 if test "$GCC" = yes; then
7849 case $cc_basename in
7850 nvcc*)
7851 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7853 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7854 esac
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7857 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7858 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 lt_cv_prog_compiler_rtti_exceptions=no
7862 ac_outfile=conftest.$ac_objext
7863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7864 lt_compiler_flag="-fno-rtti -fno-exceptions"
7865 # Insert the option either (1) after the last *FLAGS variable, or
7866 # (2) before a word containing "conftest.", or (3) at the end.
7867 # Note that $ac_compile itself does not contain backslashes and begins
7868 # with a dollar sign (not a hyphen), so the echo should work correctly.
7869 # The option is referenced via a variable to avoid confusing sed.
7870 lt_compile=`echo "$ac_compile" | $SED \
7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873 -e 's:$: $lt_compiler_flag:'`
7874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7875 (eval "$lt_compile" 2>conftest.err)
7876 ac_status=$?
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 if (exit $ac_status) && test -s "$ac_outfile"; then
7880 # The compiler can only warn and ignore the option if not recognized
7881 # So say no if there are warnings other than the usual output.
7882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7885 lt_cv_prog_compiler_rtti_exceptions=yes
7888 $RM conftest*
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7892 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7894 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7895 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7896 else
7907 lt_prog_compiler_wl=
7908 lt_prog_compiler_pic=
7909 lt_prog_compiler_static=
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7914 if test "$GCC" = yes; then
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_static='-static'
7918 case $host_os in
7919 aix*)
7920 # All AIX code is PIC.
7921 if test "$host_cpu" = ia64; then
7922 # AIX 5 now supports IA64 processor
7923 lt_prog_compiler_static='-Bstatic'
7925 lt_prog_compiler_pic='-fPIC'
7928 amigaos*)
7929 case $host_cpu in
7930 powerpc)
7931 # see comment about AmigaOS4 .so support
7932 lt_prog_compiler_pic='-fPIC'
7934 m68k)
7935 # FIXME: we need at least 68020 code to build shared libraries, but
7936 # adding the `-m68020' flag to GCC prevents building anything better,
7937 # like `-m68040'.
7938 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7940 esac
7943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7944 # PIC is the default for these OSes.
7947 mingw* | cygwin* | pw32* | os2* | cegcc*)
7948 # This hack is so that the source file can tell whether it is being
7949 # built for inclusion in a dll (and should export symbols for example).
7950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7951 # (--disable-auto-import) libraries
7952 lt_prog_compiler_pic='-DDLL_EXPORT'
7955 darwin* | rhapsody*)
7956 # PIC is the default on this platform
7957 # Common symbols not allowed in MH_DYLIB files
7958 lt_prog_compiler_pic='-fno-common'
7961 haiku*)
7962 # PIC is the default for Haiku.
7963 # The "-static" flag exists, but is broken.
7964 lt_prog_compiler_static=
7967 hpux*)
7968 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7969 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7970 # sets the default TLS model and affects inlining.
7971 case $host_cpu in
7972 hppa*64*)
7973 # +Z the default
7976 lt_prog_compiler_pic='-fPIC'
7978 esac
7981 interix[3-9]*)
7982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7983 # Instead, we relocate shared libraries at runtime.
7986 msdosdjgpp*)
7987 # Just because we use GCC doesn't mean we suddenly get shared libraries
7988 # on systems that don't support them.
7989 lt_prog_compiler_can_build_shared=no
7990 enable_shared=no
7993 *nto* | *qnx*)
7994 # QNX uses GNU C++, but need to define -shared option too, otherwise
7995 # it will coredump.
7996 lt_prog_compiler_pic='-fPIC -shared'
7999 sysv4*MP*)
8000 if test -d /usr/nec; then
8001 lt_prog_compiler_pic=-Kconform_pic
8006 lt_prog_compiler_pic='-fPIC'
8008 esac
8010 case $cc_basename in
8011 nvcc*) # Cuda Compiler Driver 2.2
8012 lt_prog_compiler_wl='-Xlinker '
8013 lt_prog_compiler_pic='-Xcompiler -fPIC'
8015 esac
8016 else
8017 # PORTME Check for flag to pass linker flags through the system compiler.
8018 case $host_os in
8019 aix*)
8020 lt_prog_compiler_wl='-Wl,'
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8024 else
8025 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8029 mingw* | cygwin* | pw32* | os2* | cegcc*)
8030 # This hack is so that the source file can tell whether it is being
8031 # built for inclusion in a dll (and should export symbols for example).
8032 lt_prog_compiler_pic='-DDLL_EXPORT'
8035 hpux9* | hpux10* | hpux11*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8038 # not for PA HP-UX.
8039 case $host_cpu in
8040 hppa*64*|ia64*)
8041 # +Z the default
8044 lt_prog_compiler_pic='+Z'
8046 esac
8047 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8048 lt_prog_compiler_static='${wl}-a ${wl}archive'
8051 irix5* | irix6* | nonstopux*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # PIC (with -KPIC) is the default.
8054 lt_prog_compiler_static='-non_shared'
8057 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8058 case $cc_basename in
8059 # old Intel for x86_64 which still supported -KPIC.
8060 ecc*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-static'
8065 # icc used to be incompatible with GCC.
8066 # ICC 10 doesn't accept -KPIC any more.
8067 icc* | ifort*)
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='-fPIC'
8070 lt_prog_compiler_static='-static'
8072 # Lahey Fortran 8.1.
8073 lf95*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='--shared'
8076 lt_prog_compiler_static='--static'
8078 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8079 # Portland Group compilers (*not* the Pentium gcc compiler,
8080 # which looks to be a dead project)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-fpic'
8083 lt_prog_compiler_static='-Bstatic'
8085 ccc*)
8086 lt_prog_compiler_wl='-Wl,'
8087 # All Alpha code is PIC.
8088 lt_prog_compiler_static='-non_shared'
8090 xl* | bgxl* | bgf* | mpixl*)
8091 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-qpic'
8094 lt_prog_compiler_static='-qstaticlink'
8097 case `$CC -V 2>&1 | sed 5q` in
8098 *Sun\ F* | *Sun*Fortran*)
8099 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_wl=''
8104 *Sun\ C*)
8105 # Sun C 5.9
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_wl='-Wl,'
8110 esac
8112 esac
8115 newsos6)
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8120 *nto* | *qnx*)
8121 # QNX uses GNU C++, but need to define -shared option too, otherwise
8122 # it will coredump.
8123 lt_prog_compiler_pic='-fPIC -shared'
8126 osf3* | osf4* | osf5*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # All OSF/1 code is PIC.
8129 lt_prog_compiler_static='-non_shared'
8132 rdos*)
8133 lt_prog_compiler_static='-non_shared'
8136 solaris*)
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 case $cc_basename in
8140 f77* | f90* | f95*)
8141 lt_prog_compiler_wl='-Qoption ld ';;
8143 lt_prog_compiler_wl='-Wl,';;
8144 esac
8147 sunos4*)
8148 lt_prog_compiler_wl='-Qoption ld '
8149 lt_prog_compiler_pic='-PIC'
8150 lt_prog_compiler_static='-Bstatic'
8153 sysv4 | sysv4.2uw2* | sysv4.3*)
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-KPIC'
8156 lt_prog_compiler_static='-Bstatic'
8159 sysv4*MP*)
8160 if test -d /usr/nec ;then
8161 lt_prog_compiler_pic='-Kconform_pic'
8162 lt_prog_compiler_static='-Bstatic'
8166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8172 unicos*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_can_build_shared=no
8177 uts4*)
8178 lt_prog_compiler_pic='-pic'
8179 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_can_build_shared=no
8185 esac
8188 case $host_os in
8189 # For platforms which do not support PIC, -DPIC is meaningless:
8190 *djgpp*)
8191 lt_prog_compiler_pic=
8194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8196 esac
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8198 $as_echo "$lt_prog_compiler_pic" >&6; }
8206 # Check to make sure the PIC flag actually works.
8208 if test -n "$lt_prog_compiler_pic"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8210 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8211 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 lt_cv_prog_compiler_pic_works=no
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 # The option is referenced via a variable to avoid confusing sed.
8223 lt_compile=`echo "$ac_compile" | $SED \
8224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226 -e 's:$: $lt_compiler_flag:'`
8227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8228 (eval "$lt_compile" 2>conftest.err)
8229 ac_status=$?
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 if (exit $ac_status) && test -s "$ac_outfile"; then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings other than the usual output.
8235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_pic_works=yes
8241 $RM conftest*
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8245 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8247 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8248 case $lt_prog_compiler_pic in
8249 "" | " "*) ;;
8250 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8251 esac
8252 else
8253 lt_prog_compiler_pic=
8254 lt_prog_compiler_can_build_shared=no
8265 # Check to make sure the static flag actually works.
8267 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8269 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8270 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_prog_compiler_static_works=no
8274 save_LDFLAGS="$LDFLAGS"
8275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8278 # The linker can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 if test -s conftest.err; then
8281 # Append any errors to the config.log.
8282 cat conftest.err 1>&5
8283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8285 if diff conftest.exp conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_static_works=yes
8288 else
8289 lt_cv_prog_compiler_static_works=yes
8292 $RM -r conftest*
8293 LDFLAGS="$save_LDFLAGS"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8297 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8299 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8301 else
8302 lt_prog_compiler_static=
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8313 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 lt_cv_prog_compiler_c_o=no
8317 $RM -r conftest 2>/dev/null
8318 mkdir conftest
8319 cd conftest
8320 mkdir out
8321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323 lt_compiler_flag="-o out/conftest2.$ac_objext"
8324 # Insert the option either (1) after the last *FLAGS variable, or
8325 # (2) before a word containing "conftest.", or (3) at the end.
8326 # Note that $ac_compile itself does not contain backslashes and begins
8327 # with a dollar sign (not a hyphen), so the echo should work correctly.
8328 lt_compile=`echo "$ac_compile" | $SED \
8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331 -e 's:$: $lt_compiler_flag:'`
8332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8333 (eval "$lt_compile" 2>out/conftest.err)
8334 ac_status=$?
8335 cat out/conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8338 then
8339 # The compiler can only warn and ignore the option if not recognized
8340 # So say no if there are warnings
8341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8344 lt_cv_prog_compiler_c_o=yes
8347 chmod u+w . 2>&5
8348 $RM conftest*
8349 # SGI C++ compiler will create directory out/ii_files/ for
8350 # template instantiation
8351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8352 $RM out/* && rmdir out
8353 cd ..
8354 $RM -r conftest
8355 $RM conftest*
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 lt_cv_prog_compiler_c_o=no
8372 $RM -r conftest 2>/dev/null
8373 mkdir conftest
8374 cd conftest
8375 mkdir out
8376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378 lt_compiler_flag="-o out/conftest2.$ac_objext"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
8387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8388 (eval "$lt_compile" 2>out/conftest.err)
8389 ac_status=$?
8390 cat out/conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8393 then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings
8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_c_o=yes
8402 chmod u+w . 2>&5
8403 $RM conftest*
8404 # SGI C++ compiler will create directory out/ii_files/ for
8405 # template instantiation
8406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8407 $RM out/* && rmdir out
8408 cd ..
8409 $RM -r conftest
8410 $RM conftest*
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8414 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419 hard_links="nottested"
8420 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8421 # do not overwrite the value of need_locks provided by the user
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8423 $as_echo_n "checking if we can lock with hard links... " >&6; }
8424 hard_links=yes
8425 $RM conftest*
8426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427 touch conftest.a
8428 ln conftest.a conftest.b 2>&5 || hard_links=no
8429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8431 $as_echo "$hard_links" >&6; }
8432 if test "$hard_links" = no; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8435 need_locks=warn
8437 else
8438 need_locks=no
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8447 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8449 runpath_var=
8450 allow_undefined_flag=
8451 always_export_symbols=no
8452 archive_cmds=
8453 archive_expsym_cmds=
8454 compiler_needs_object=no
8455 enable_shared_with_static_runtimes=no
8456 export_dynamic_flag_spec=
8457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8458 hardcode_automatic=no
8459 hardcode_direct=no
8460 hardcode_direct_absolute=no
8461 hardcode_libdir_flag_spec=
8462 hardcode_libdir_flag_spec_ld=
8463 hardcode_libdir_separator=
8464 hardcode_minus_L=no
8465 hardcode_shlibpath_var=unsupported
8466 inherit_rpath=no
8467 link_all_deplibs=unknown
8468 module_cmds=
8469 module_expsym_cmds=
8470 old_archive_from_new_cmds=
8471 old_archive_from_expsyms_cmds=
8472 thread_safe_flag_spec=
8473 whole_archive_flag_spec=
8474 # include_expsyms should be a list of space-separated symbols to be *always*
8475 # included in the symbol list
8476 include_expsyms=
8477 # exclude_expsyms can be an extended regexp of symbols to exclude
8478 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8480 # as well as any symbol that contains `d'.
8481 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8483 # platforms (ab)use it in PIC code, but their linkers get confused if
8484 # the symbol is explicitly referenced. Since portable code cannot
8485 # rely on this symbol name, it's probably fine to never include it in
8486 # preloaded symbol tables.
8487 # Exclude shared library initialization/finalization symbols.
8488 extract_expsyms_cmds=
8490 case $host_os in
8491 cygwin* | mingw* | pw32* | cegcc*)
8492 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8493 # When not using gcc, we currently assume that we are using
8494 # Microsoft Visual C++.
8495 if test "$GCC" != yes; then
8496 with_gnu_ld=no
8499 interix*)
8500 # we just hope/assume this is gcc and not c89 (= MSVC++)
8501 with_gnu_ld=yes
8503 openbsd*)
8504 with_gnu_ld=no
8506 esac
8508 ld_shlibs=yes
8510 # On some targets, GNU ld is compatible enough with the native linker
8511 # that we're better off using the native interface for both.
8512 lt_use_gnu_ld_interface=no
8513 if test "$with_gnu_ld" = yes; then
8514 case $host_os in
8515 aix*)
8516 # The AIX port of GNU ld has always aspired to compatibility
8517 # with the native linker. However, as the warning in the GNU ld
8518 # block says, versions before 2.19.5* couldn't really create working
8519 # shared libraries, regardless of the interface used.
8520 case `$LD -v 2>&1` in
8521 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8522 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8523 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8525 lt_use_gnu_ld_interface=yes
8527 esac
8530 lt_use_gnu_ld_interface=yes
8532 esac
8535 if test "$lt_use_gnu_ld_interface" = yes; then
8536 # If archive_cmds runs LD, not CC, wlarc should be empty
8537 wlarc='${wl}'
8539 # Set some defaults for GNU ld with shared library support. These
8540 # are reset later if shared libraries are not supported. Putting them
8541 # here allows them to be overridden if necessary.
8542 runpath_var=LD_RUN_PATH
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 export_dynamic_flag_spec='${wl}--export-dynamic'
8545 # ancient GNU ld didn't support --whole-archive et. al.
8546 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8547 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8548 else
8549 whole_archive_flag_spec=
8551 supports_anon_versioning=no
8552 case `$LD -v 2>&1` in
8553 *GNU\ gold*) supports_anon_versioning=yes ;;
8554 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8555 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8556 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8557 *\ 2.11.*) ;; # other 2.11 versions
8558 *) supports_anon_versioning=yes ;;
8559 esac
8561 # See if GNU ld supports shared libraries.
8562 case $host_os in
8563 aix[3-9]*)
8564 # On AIX/PPC, the GNU linker is very broken
8565 if test "$host_cpu" != ia64; then
8566 ld_shlibs=no
8567 cat <<_LT_EOF 1>&2
8569 *** Warning: the GNU linker, at least up to release 2.19, is reported
8570 *** to be unable to reliably create shared libraries on AIX.
8571 *** Therefore, libtool is disabling shared libraries support. If you
8572 *** really care for shared libraries, you may want to install binutils
8573 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8574 *** You will then need to restart the configuration process.
8576 _LT_EOF
8580 amigaos*)
8581 case $host_cpu in
8582 powerpc)
8583 # see comment about AmigaOS4 .so support
8584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585 archive_expsym_cmds=''
8587 m68k)
8588 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)'
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_minus_L=yes
8592 esac
8595 beos*)
8596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597 allow_undefined_flag=unsupported
8598 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8599 # support --undefined. This deserves some investigation. FIXME
8600 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601 else
8602 ld_shlibs=no
8606 cygwin* | mingw* | pw32* | cegcc*)
8607 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8608 # as there is no search path for DLLs.
8609 hardcode_libdir_flag_spec='-L$libdir'
8610 export_dynamic_flag_spec='${wl}--export-all-symbols'
8611 allow_undefined_flag=unsupported
8612 always_export_symbols=no
8613 enable_shared_with_static_runtimes=yes
8614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8616 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8618 # If the export-symbols file already is a .def file (1st line
8619 # is EXPORTS), use it as is; otherwise, prepend...
8620 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8621 cp $export_symbols $output_objdir/$soname.def;
8622 else
8623 echo EXPORTS > $output_objdir/$soname.def;
8624 cat $export_symbols >> $output_objdir/$soname.def;
8626 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627 else
8628 ld_shlibs=no
8632 haiku*)
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 link_all_deplibs=yes
8637 interix[3-9]*)
8638 hardcode_direct=no
8639 hardcode_shlibpath_var=no
8640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641 export_dynamic_flag_spec='${wl}-E'
8642 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8643 # Instead, shared libraries are loaded at an image base (0x10000000 by
8644 # default) and relocated if they conflict, which is a slow very memory
8645 # consuming and fragmenting process. To avoid this, we pick a random,
8646 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8647 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8649 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'
8652 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8653 tmp_diet=no
8654 if test "$host_os" = linux-dietlibc; then
8655 case $cc_basename in
8656 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8657 esac
8659 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8660 && test "$tmp_diet" = no
8661 then
8662 tmp_addflag=
8663 tmp_sharedflag='-shared'
8664 case $cc_basename,$host_cpu in
8665 pgcc*) # Portland Group C compiler
8666 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'
8667 tmp_addflag=' $pic_flag'
8669 pgf77* | pgf90* | pgf95* | pgfortran*)
8670 # Portland Group f77 and f90 compilers
8671 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'
8672 tmp_addflag=' $pic_flag -Mnomain' ;;
8673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8674 tmp_addflag=' -i_dynamic' ;;
8675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8676 tmp_addflag=' -i_dynamic -nofor_main' ;;
8677 ifc* | ifort*) # Intel Fortran compiler
8678 tmp_addflag=' -nofor_main' ;;
8679 lf95*) # Lahey Fortran 8.1
8680 whole_archive_flag_spec=
8681 tmp_sharedflag='--shared' ;;
8682 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8683 tmp_sharedflag='-qmkshrobj'
8684 tmp_addflag= ;;
8685 nvcc*) # Cuda Compiler Driver 2.2
8686 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'
8687 compiler_needs_object=yes
8689 esac
8690 case `$CC -V 2>&1 | sed 5q` in
8691 *Sun\ C*) # Sun C 5.9
8692 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'
8693 compiler_needs_object=yes
8694 tmp_sharedflag='-G' ;;
8695 *Sun\ F*) # Sun Fortran 8.3
8696 tmp_sharedflag='-G' ;;
8697 esac
8698 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 if test "x$supports_anon_versioning" = xyes; then
8701 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8703 echo "local: *; };" >> $output_objdir/$libname.ver~
8704 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8707 case $cc_basename in
8708 xlf* | bgf* | bgxlf* | mpixlf*)
8709 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8710 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8711 hardcode_libdir_flag_spec=
8712 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8713 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8714 if test "x$supports_anon_versioning" = xyes; then
8715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8717 echo "local: *; };" >> $output_objdir/$libname.ver~
8718 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8721 esac
8722 else
8723 ld_shlibs=no
8727 netbsd*)
8728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8730 wlarc=
8731 else
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737 solaris*)
8738 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8739 ld_shlibs=no
8740 cat <<_LT_EOF 1>&2
8742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8743 *** create shared libraries on Solaris systems. Therefore, libtool
8744 *** is disabling shared libraries support. We urge you to upgrade GNU
8745 *** binutils to release 2.9.1 or newer. Another option is to modify
8746 *** your PATH or compiler configuration so that the native linker is
8747 *** used, and then restart.
8749 _LT_EOF
8750 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 else
8754 ld_shlibs=no
8758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8759 case `$LD -v 2>&1` in
8760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8761 ld_shlibs=no
8762 cat <<_LT_EOF 1>&2
8764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8765 *** reliably create shared libraries on SCO systems. Therefore, libtool
8766 *** is disabling shared libraries support. We urge you to upgrade GNU
8767 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8768 *** your PATH or compiler configuration so that the native linker is
8769 *** used, and then restart.
8771 _LT_EOF
8774 # For security reasons, it is highly recommended that you always
8775 # use absolute paths for naming shared libraries, and exclude the
8776 # DT_RUNPATH tag from executables and libraries. But doing so
8777 # requires that you compile everything twice, which is a pain.
8778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
8786 esac
8789 sunos4*)
8790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 wlarc=
8792 hardcode_direct=yes
8793 hardcode_shlibpath_var=no
8797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 else
8801 ld_shlibs=no
8804 esac
8806 if test "$ld_shlibs" = no; then
8807 runpath_var=
8808 hardcode_libdir_flag_spec=
8809 export_dynamic_flag_spec=
8810 whole_archive_flag_spec=
8812 else
8813 # PORTME fill in a description of your system's linker (not GNU ld)
8814 case $host_os in
8815 aix3*)
8816 allow_undefined_flag=unsupported
8817 always_export_symbols=yes
8818 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'
8819 # Note: this linker hardcodes the directories in LIBPATH if there
8820 # are no directories specified by -L.
8821 hardcode_minus_L=yes
8822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8823 # Neither direct hardcoding nor static linking is supported with a
8824 # broken collect2.
8825 hardcode_direct=unsupported
8829 aix[4-9]*)
8830 if test "$host_cpu" = ia64; then
8831 # On IA64, the linker does run time linking by default, so we don't
8832 # have to do anything special.
8833 aix_use_runtimelinking=no
8834 exp_sym_flag='-Bexport'
8835 no_entry_flag=""
8836 else
8837 # If we're using GNU nm, then we don't want the "-C" option.
8838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8839 # Also, AIX nm treats weak defined symbols like other global
8840 # defined symbols, whereas GNU nm marks them as "W".
8841 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8842 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'
8843 else
8844 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'
8846 aix_use_runtimelinking=no
8848 # Test if we are trying to use run time linking or normal
8849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8850 # need to do runtime linking.
8851 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8852 for ld_flag in $LDFLAGS; do
8853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8854 aix_use_runtimelinking=yes
8855 break
8857 done
8859 esac
8861 exp_sym_flag='-bexport'
8862 no_entry_flag='-bnoentry'
8865 # When large executables or shared objects are built, AIX ld can
8866 # have problems creating the table of contents. If linking a library
8867 # or program results in "error TOC overflow" add -mminimal-toc to
8868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8871 archive_cmds=''
8872 hardcode_direct=yes
8873 hardcode_direct_absolute=yes
8874 hardcode_libdir_separator=':'
8875 link_all_deplibs=yes
8876 file_list_spec='${wl}-f,'
8878 if test "$GCC" = yes; then
8879 case $host_os in aix4.[012]|aix4.[012].*)
8880 # We only want to do this on AIX 4.2 and lower, the check
8881 # below for broken collect2 doesn't work under 4.3+
8882 collect2name=`${CC} -print-prog-name=collect2`
8883 if test -f "$collect2name" &&
8884 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8885 then
8886 # We have reworked collect2
8888 else
8889 # We have old collect2
8890 hardcode_direct=unsupported
8891 # It fails to find uninstalled libraries when the uninstalled
8892 # path is not listed in the libpath. Setting hardcode_minus_L
8893 # to unsupported forces relinking
8894 hardcode_minus_L=yes
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_libdir_separator=
8899 esac
8900 shared_flag='-shared'
8901 if test "$aix_use_runtimelinking" = yes; then
8902 shared_flag="$shared_flag "'${wl}-G'
8904 else
8905 # not using gcc
8906 if test "$host_cpu" = ia64; then
8907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8908 # chokes on -Wl,-G. The following line is correct:
8909 shared_flag='-G'
8910 else
8911 if test "$aix_use_runtimelinking" = yes; then
8912 shared_flag='${wl}-G'
8913 else
8914 shared_flag='${wl}-bM:SRE'
8919 export_dynamic_flag_spec='${wl}-bexpall'
8920 # It seems that -bexpall does not export symbols beginning with
8921 # underscore (_), so it is better to generate a list of symbols to export.
8922 always_export_symbols=yes
8923 if test "$aix_use_runtimelinking" = yes; then
8924 # Warning - without using the other runtime loading flags (-brtl),
8925 # -berok will link without error, but may produce a broken library.
8926 allow_undefined_flag='-berok'
8927 # Determine the default libpath from the value encoded in an
8928 # empty executable.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 main ()
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8942 lt_aix_libpath_sed='
8943 /Import File Strings/,/^$/ {
8944 /^0/ {
8945 s/^0 *\(.*\)$/\1/
8949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8950 # Check for a 64-bit object if we didn't find anything.
8951 if test -z "$aix_libpath"; then
8952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8960 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"
8961 else
8962 if test "$host_cpu" = ia64; then
8963 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8964 allow_undefined_flag="-z nodefs"
8965 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"
8966 else
8967 # Determine the default libpath from the value encoded in an
8968 # empty executable.
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8973 main ()
8977 return 0;
8979 _ACEOF
8980 if ac_fn_c_try_link "$LINENO"; then :
8982 lt_aix_libpath_sed='
8983 /Import File Strings/,/^$/ {
8984 /^0/ {
8985 s/^0 *\(.*\)$/\1/
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 # Check for a 64-bit object if we didn't find anything.
8991 if test -z "$aix_libpath"; then
8992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9000 # Warning - without using the other run time loading flags,
9001 # -berok will link without error, but may produce a broken library.
9002 no_undefined_flag=' ${wl}-bernotok'
9003 allow_undefined_flag=' ${wl}-berok'
9004 if test "$with_gnu_ld" = yes; then
9005 # We only use this code for GNU lds that support --whole-archive.
9006 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9007 else
9008 # Exported symbols can be pulled into shared objects from archives
9009 whole_archive_flag_spec='$convenience'
9011 archive_cmds_need_lc=yes
9012 # This is similar to how AIX traditionally builds its shared libraries.
9013 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'
9018 amigaos*)
9019 case $host_cpu in
9020 powerpc)
9021 # see comment about AmigaOS4 .so support
9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds=''
9025 m68k)
9026 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)'
9027 hardcode_libdir_flag_spec='-L$libdir'
9028 hardcode_minus_L=yes
9030 esac
9033 bsdi[45]*)
9034 export_dynamic_flag_spec=-rdynamic
9037 cygwin* | mingw* | pw32* | cegcc*)
9038 # When not using gcc, we currently assume that we are using
9039 # Microsoft Visual C++.
9040 # hardcode_libdir_flag_spec is actually meaningless, as there is
9041 # no search path for DLLs.
9042 hardcode_libdir_flag_spec=' '
9043 allow_undefined_flag=unsupported
9044 # Tell ltmain to make .lib files, not .a files.
9045 libext=lib
9046 # Tell ltmain to make .dll files, not .so files.
9047 shrext_cmds=".dll"
9048 # FIXME: Setting linknames here is a bad hack.
9049 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9050 # The linker will automatically build a .lib file if we build a DLL.
9051 old_archive_from_new_cmds='true'
9052 # FIXME: Should let the user specify the lib program.
9053 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9054 fix_srcfile_path='`cygpath -w "$srcfile"`'
9055 enable_shared_with_static_runtimes=yes
9058 darwin* | rhapsody*)
9061 archive_cmds_need_lc=no
9062 hardcode_direct=no
9063 hardcode_automatic=yes
9064 hardcode_shlibpath_var=unsupported
9065 if test "$lt_cv_ld_force_load" = "yes"; then
9066 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\"`'
9067 else
9068 whole_archive_flag_spec=''
9070 link_all_deplibs=yes
9071 allow_undefined_flag="$_lt_dar_allow_undefined"
9072 case $cc_basename in
9073 ifort*) _lt_dar_can_shared=yes ;;
9074 *) _lt_dar_can_shared=$GCC ;;
9075 esac
9076 if test "$_lt_dar_can_shared" = "yes"; then
9077 output_verbose_link_cmd=func_echo_all
9078 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9079 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9080 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}"
9081 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}"
9083 else
9084 ld_shlibs=no
9089 dgux*)
9090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 hardcode_shlibpath_var=no
9095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9096 # support. Future versions do this automatically, but an explicit c++rt0.o
9097 # does not break anything, and helps significantly (at the cost of a little
9098 # extra space).
9099 freebsd2.2*)
9100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9101 hardcode_libdir_flag_spec='-R$libdir'
9102 hardcode_direct=yes
9103 hardcode_shlibpath_var=no
9106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9107 freebsd2.*)
9108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_direct=yes
9110 hardcode_minus_L=yes
9111 hardcode_shlibpath_var=no
9114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9115 freebsd* | dragonfly*)
9116 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9117 hardcode_libdir_flag_spec='-R$libdir'
9118 hardcode_direct=yes
9119 hardcode_shlibpath_var=no
9122 hpux9*)
9123 if test "$GCC" = yes; then
9124 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'
9125 else
9126 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'
9128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9129 hardcode_libdir_separator=:
9130 hardcode_direct=yes
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9135 export_dynamic_flag_spec='${wl}-E'
9138 hpux10*)
9139 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9140 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 else
9142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9144 if test "$with_gnu_ld" = no; then
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_flag_spec_ld='+b $libdir'
9147 hardcode_libdir_separator=:
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 export_dynamic_flag_spec='${wl}-E'
9151 # hardcode_minus_L: Not really in the search PATH,
9152 # but as the default location of the library.
9153 hardcode_minus_L=yes
9157 hpux11*)
9158 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9159 case $host_cpu in
9160 hppa*64*)
9161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 ia64*)
9164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169 esac
9170 else
9171 case $host_cpu in
9172 hppa*64*)
9173 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 ia64*)
9176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9180 # Older versions of the 11.00 compiler do not understand -b yet
9181 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9183 $as_echo_n "checking if $CC understands -b... " >&6; }
9184 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 lt_cv_prog_compiler__b=no
9188 save_LDFLAGS="$LDFLAGS"
9189 LDFLAGS="$LDFLAGS -b"
9190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9192 # The linker can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 if test -s conftest.err; then
9195 # Append any errors to the config.log.
9196 cat conftest.err 1>&5
9197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9199 if diff conftest.exp conftest.er2 >/dev/null; then
9200 lt_cv_prog_compiler__b=yes
9202 else
9203 lt_cv_prog_compiler__b=yes
9206 $RM -r conftest*
9207 LDFLAGS="$save_LDFLAGS"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9211 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9213 if test x"$lt_cv_prog_compiler__b" = xyes; then
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 else
9216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9220 esac
9222 if test "$with_gnu_ld" = no; then
9223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9224 hardcode_libdir_separator=:
9226 case $host_cpu in
9227 hppa*64*|ia64*)
9228 hardcode_direct=no
9229 hardcode_shlibpath_var=no
9232 hardcode_direct=yes
9233 hardcode_direct_absolute=yes
9234 export_dynamic_flag_spec='${wl}-E'
9236 # hardcode_minus_L: Not really in the search PATH,
9237 # but as the default location of the library.
9238 hardcode_minus_L=yes
9240 esac
9244 irix5* | irix6* | nonstopux*)
9245 if test "$GCC" = yes; then
9246 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'
9247 # Try to use the -exported_symbol ld option, if it does not
9248 # work, assume that -exports_file does not work either and
9249 # implicitly export all symbols.
9250 save_LDFLAGS="$LDFLAGS"
9251 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 int foo(void) {}
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 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'
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LDFLAGS="$save_LDFLAGS"
9263 else
9264 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'
9265 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'
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9270 inherit_rpath=yes
9271 link_all_deplibs=yes
9274 netbsd*)
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9277 else
9278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9280 hardcode_libdir_flag_spec='-R$libdir'
9281 hardcode_direct=yes
9282 hardcode_shlibpath_var=no
9285 newsos6)
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_direct=yes
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 hardcode_shlibpath_var=no
9293 *nto* | *qnx*)
9296 openbsd*)
9297 if test -f /usr/libexec/ld.so; then
9298 hardcode_direct=yes
9299 hardcode_shlibpath_var=no
9300 hardcode_direct_absolute=yes
9301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9306 else
9307 case $host_os in
9308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-R$libdir'
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316 esac
9318 else
9319 ld_shlibs=no
9323 os2*)
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9327 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'
9328 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9331 osf3*)
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9335 else
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 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'
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 hardcode_libdir_separator=:
9344 osf4* | osf5*) # as osf3* with the addition of -msym flag
9345 if test "$GCC" = yes; then
9346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347 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'
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349 else
9350 allow_undefined_flag=' -expect_unresolved \*'
9351 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'
9352 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~
9353 $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'
9355 # Both c and cxx compiler support -rpath directly
9356 hardcode_libdir_flag_spec='-rpath $libdir'
9358 archive_cmds_need_lc='no'
9359 hardcode_libdir_separator=:
9362 solaris*)
9363 no_undefined_flag=' -z defs'
9364 if test "$GCC" = yes; then
9365 wlarc='${wl}'
9366 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369 else
9370 case `$CC -V 2>&1` in
9371 *"Compilers 5.0"*)
9372 wlarc=''
9373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9378 wlarc='${wl}'
9379 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9383 esac
9385 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9387 case $host_os in
9388 solaris2.[0-5] | solaris2.[0-5].*) ;;
9390 # The compiler driver will combine and reorder linker options,
9391 # but understands `-z linker_flag'. GCC discards it without `$wl',
9392 # but is careful enough not to reorder.
9393 # Supported since Solaris 2.6 (maybe 2.5.1?)
9394 if test "$GCC" = yes; then
9395 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9396 else
9397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9400 esac
9401 link_all_deplibs=yes
9404 sunos4*)
9405 if test "x$host_vendor" = xsequent; then
9406 # Use $CC to link under sequent, because it throws in some extra .o
9407 # files that make .init and .fini sections work.
9408 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409 else
9410 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_direct=yes
9414 hardcode_minus_L=yes
9415 hardcode_shlibpath_var=no
9418 sysv4)
9419 case $host_vendor in
9420 sni)
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_direct=yes # is this really true???
9424 siemens)
9425 ## LD is ld it makes a PLAMLIB
9426 ## CC just makes a GrossModule.
9427 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428 reload_cmds='$CC -r -o $output$reload_objs'
9429 hardcode_direct=no
9431 motorola)
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9435 esac
9436 runpath_var='LD_RUN_PATH'
9437 hardcode_shlibpath_var=no
9440 sysv4.3*)
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_shlibpath_var=no
9443 export_dynamic_flag_spec='-Bexport'
9446 sysv4*MP*)
9447 if test -d /usr/nec; then
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_shlibpath_var=no
9450 runpath_var=LD_RUN_PATH
9451 hardcode_runpath_var=yes
9452 ld_shlibs=yes
9456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9457 no_undefined_flag='${wl}-z,text'
9458 archive_cmds_need_lc=no
9459 hardcode_shlibpath_var=no
9460 runpath_var='LD_RUN_PATH'
9462 if test "$GCC" = yes; then
9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 else
9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 sysv5* | sco3.2v5* | sco5v6*)
9472 # Note: We can NOT use -z defs as we might desire, because we do not
9473 # link with -lc, and that would cause any symbols used from libc to
9474 # always be unresolved, which means just about no library would
9475 # ever link correctly. If we're not using GNU ld we use -z text
9476 # though, which does catch some bad symbols but isn't as heavy-handed
9477 # as -z defs.
9478 no_undefined_flag='${wl}-z,text'
9479 allow_undefined_flag='${wl}-z,nodefs'
9480 archive_cmds_need_lc=no
9481 hardcode_shlibpath_var=no
9482 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
9485 export_dynamic_flag_spec='${wl}-Bexport'
9486 runpath_var='LD_RUN_PATH'
9488 if test "$GCC" = yes; then
9489 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 uts4*)
9498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_shlibpath_var=no
9504 ld_shlibs=no
9506 esac
9508 if test x$host_vendor = xsni; then
9509 case $host in
9510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9511 export_dynamic_flag_spec='${wl}-Blargedynsym'
9513 esac
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no && can_build_shared=no
9521 with_gnu_ld=$with_gnu_ld
9538 # Do we need to explicitly link libc?
9540 case "x$archive_cmds_need_lc" in
9541 x|xyes)
9542 # Assume -lc should be added
9543 archive_cmds_need_lc=yes
9545 if test "$enable_shared" = yes && test "$GCC" = yes; then
9546 case $archive_cmds in
9547 *'~'*)
9548 # FIXME: we may have to deal with multi-command sequences.
9550 '$CC '*)
9551 # Test whether the compiler implicitly links with -lc since on some
9552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553 # to ld, don't add -lc before -lgcc.
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9556 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 $RM conftest*
9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9563 (eval $ac_compile) 2>&5
9564 ac_status=$?
9565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9566 test $ac_status = 0; } 2>conftest.err; then
9567 soname=conftest
9568 lib=conftest
9569 libobjs=conftest.$ac_objext
9570 deplibs=
9571 wl=$lt_prog_compiler_wl
9572 pic_flag=$lt_prog_compiler_pic
9573 compiler_flags=-v
9574 linker_flags=-v
9575 verstring=
9576 output_objdir=.
9577 libname=conftest
9578 lt_save_allow_undefined_flag=$allow_undefined_flag
9579 allow_undefined_flag=
9580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582 ac_status=$?
9583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9584 test $ac_status = 0; }
9585 then
9586 lt_cv_archive_cmds_need_lc=no
9587 else
9588 lt_cv_archive_cmds_need_lc=yes
9590 allow_undefined_flag=$lt_save_allow_undefined_flag
9591 else
9592 cat conftest.err 1>&5
9594 $RM conftest*
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9598 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9599 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9601 esac
9604 esac
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9763 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9765 if test "$GCC" = yes; then
9766 case $host_os in
9767 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9768 *) lt_awk_arg="/^libraries:/" ;;
9769 esac
9770 case $host_os in
9771 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9772 *) lt_sed_strip_eq="s,=/,/,g" ;;
9773 esac
9774 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9775 case $lt_search_path_spec in
9776 *\;*)
9777 # if the path contains ";" then we assume it to be the separator
9778 # otherwise default to the standard path separator (i.e. ":") - it is
9779 # assumed that no part of a normal pathname contains ";" but that should
9780 # okay in the real world where ";" in dirpaths is itself problematic.
9781 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9786 esac
9787 # Ok, now we have the path, separated by spaces, we can step through it
9788 # and add multilib dir if necessary.
9789 lt_tmp_lt_search_path_spec=
9790 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9791 for lt_sys_path in $lt_search_path_spec; do
9792 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9793 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9794 else
9795 test -d "$lt_sys_path" && \
9796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9798 done
9799 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9800 BEGIN {RS=" "; FS="/|\n";} {
9801 lt_foo="";
9802 lt_count=0;
9803 for (lt_i = NF; lt_i > 0; lt_i--) {
9804 if ($lt_i != "" && $lt_i != ".") {
9805 if ($lt_i == "..") {
9806 lt_count++;
9807 } else {
9808 if (lt_count == 0) {
9809 lt_foo="/" $lt_i lt_foo;
9810 } else {
9811 lt_count--;
9816 if (lt_foo != "") { lt_freq[lt_foo]++; }
9817 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9819 # AWK program above erroneously prepends '/' to C:/dos/paths
9820 # for these hosts.
9821 case $host_os in
9822 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9823 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9824 esac
9825 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9826 else
9827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9829 library_names_spec=
9830 libname_spec='lib$name'
9831 soname_spec=
9832 shrext_cmds=".so"
9833 postinstall_cmds=
9834 postuninstall_cmds=
9835 finish_cmds=
9836 finish_eval=
9837 shlibpath_var=
9838 shlibpath_overrides_runpath=unknown
9839 version_type=none
9840 dynamic_linker="$host_os ld.so"
9841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9842 need_lib_prefix=unknown
9843 hardcode_into_libs=no
9845 # when you set need_version to no, make sure it does not cause -set_version
9846 # flags to be left without arguments
9847 need_version=unknown
9849 case $host_os in
9850 aix3*)
9851 version_type=linux
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9853 shlibpath_var=LIBPATH
9855 # AIX 3 has no versioning support, so we append a major version to the name.
9856 soname_spec='${libname}${release}${shared_ext}$major'
9859 aix[4-9]*)
9860 version_type=linux
9861 need_lib_prefix=no
9862 need_version=no
9863 hardcode_into_libs=yes
9864 if test "$host_cpu" = ia64; then
9865 # AIX 5 supports IA64
9866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 else
9869 # With GCC up to 2.95.x, collect2 would create an import file
9870 # for dependence libraries. The import file would start with
9871 # the line `#! .'. This would cause the generated library to
9872 # depend on `.', always an invalid library. This was fixed in
9873 # development snapshots of GCC prior to 3.0.
9874 case $host_os in
9875 aix4 | aix4.[01] | aix4.[01].*)
9876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9877 echo ' yes '
9878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9880 else
9881 can_build_shared=no
9884 esac
9885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9886 # soname into executable. Probably we can add versioning support to
9887 # collect2, so additional links can be useful in future.
9888 if test "$aix_use_runtimelinking" = yes; then
9889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9890 # instead of lib<name>.a to let people know that these are not
9891 # typical AIX shared libraries.
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 else
9894 # We preserve .a as extension for shared libraries through AIX4.2
9895 # and later when we are not doing run time linking.
9896 library_names_spec='${libname}${release}.a $libname.a'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9899 shlibpath_var=LIBPATH
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # Since July 2007 AmigaOS4 officially supports .so libraries.
9907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 m68k)
9911 library_names_spec='$libname.ixlibrary $libname.a'
9912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9913 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'
9915 esac
9918 beos*)
9919 library_names_spec='${libname}${shared_ext}'
9920 dynamic_linker="$host_os ld.so"
9921 shlibpath_var=LIBRARY_PATH
9924 bsdi[45]*)
9925 version_type=linux
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9933 # the default ld.so.conf also contains /usr/contrib/lib and
9934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9935 # libtool to hard-code these into programs
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 version_type=windows
9940 shrext_cmds=".dll"
9941 need_version=no
9942 need_lib_prefix=no
9944 case $GCC,$host_os in
9945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9946 library_names_spec='$libname.dll.a'
9947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9948 postinstall_cmds='base_file=`basename \${file}`~
9949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9950 dldir=$destdir/`dirname \$dlpath`~
9951 test -d \$dldir || mkdir -p \$dldir~
9952 $install_prog $dir/$dlname \$dldir/$dlname~
9953 chmod a+x \$dldir/$dlname~
9954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9958 dlpath=$dir/\$dldll~
9959 $RM \$dlpath'
9960 shlibpath_overrides_runpath=yes
9962 case $host_os in
9963 cygwin*)
9964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9969 mingw* | cegcc*)
9970 # MinGW DLLs use traditional 'lib' prefix
9971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 pw32*)
9974 # pw32 DLLs use 'pw' prefix rather than 'lib'
9975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977 esac
9981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9983 esac
9984 dynamic_linker='Win32 ld.exe'
9985 # FIXME: first we should search . and the directory the executable is in
9986 shlibpath_var=PATH
9989 darwin* | rhapsody*)
9990 dynamic_linker="$host_os dyld"
9991 version_type=darwin
9992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9995 soname_spec='${libname}${release}${major}$shared_ext'
9996 shlibpath_overrides_runpath=yes
9997 shlibpath_var=DYLD_LIBRARY_PATH
9998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10004 dgux*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10013 freebsd* | dragonfly*)
10014 # DragonFly does not have aout. When/if they implement a new
10015 # versioning mechanism, adjust this.
10016 if test -x /usr/bin/objformat; then
10017 objformat=`/usr/bin/objformat`
10018 else
10019 case $host_os in
10020 freebsd[23].*) objformat=aout ;;
10021 *) objformat=elf ;;
10022 esac
10024 version_type=freebsd-$objformat
10025 case $version_type in
10026 freebsd-elf*)
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 need_version=no
10029 need_lib_prefix=no
10031 freebsd-*)
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10033 need_version=yes
10035 esac
10036 shlibpath_var=LD_LIBRARY_PATH
10037 case $host_os in
10038 freebsd2.*)
10039 shlibpath_overrides_runpath=yes
10041 freebsd3.[01]* | freebsdelf3.[01]*)
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10054 esac
10057 gnu*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 hardcode_into_libs=yes
10067 haiku*)
10068 version_type=linux
10069 need_lib_prefix=no
10070 need_version=no
10071 dynamic_linker="$host_os runtime_loader"
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10077 hardcode_into_libs=yes
10080 hpux9* | hpux10* | hpux11*)
10081 # Give a soname corresponding to the major version so that dld.sl refuses to
10082 # link against other versions.
10083 version_type=sunos
10084 need_lib_prefix=no
10085 need_version=no
10086 case $host_cpu in
10087 ia64*)
10088 shrext_cmds='.so'
10089 hardcode_into_libs=yes
10090 dynamic_linker="$host_os dld.so"
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 if test "X$HPUX_IA64_MODE" = X32; then
10096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10097 else
10098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102 hppa*64*)
10103 shrext_cmds='.sl'
10104 hardcode_into_libs=yes
10105 dynamic_linker="$host_os dld.sl"
10106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10114 shrext_cmds='.sl'
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=SHLIB_PATH
10117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10121 esac
10122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10123 postinstall_cmds='chmod 555 $lib'
10124 # or fails outright, so override atomically:
10125 install_override_mode=555
10128 interix[3-9]*)
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10140 irix5* | irix6* | nonstopux*)
10141 case $host_os in
10142 nonstopux*) version_type=nonstopux ;;
10144 if test "$lt_cv_prog_gnu_ld" = yes; then
10145 version_type=linux
10146 else
10147 version_type=irix
10148 fi ;;
10149 esac
10150 need_lib_prefix=no
10151 need_version=no
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10154 case $host_os in
10155 irix5* | nonstopux*)
10156 libsuff= shlibsuff=
10159 case $LD in # libtool.m4 will add one of these switches to LD
10160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161 libsuff= shlibsuff= libmagic=32-bit;;
10162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163 libsuff=32 shlibsuff=N32 libmagic=N32;;
10164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166 *) libsuff= shlibsuff= libmagic=never-match;;
10167 esac
10169 esac
10170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174 hardcode_into_libs=yes
10177 # No shared lib support for Linux oldld, aout, or coff.
10178 linux*oldld* | linux*aout* | linux*coff*)
10179 dynamic_linker=no
10182 # This must be Linux ELF.
10183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10193 # Some binutils ld are patched to set DT_RUNPATH
10194 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 lt_cv_shlibpath_overrides_runpath=no
10198 save_LDFLAGS=$LDFLAGS
10199 save_libdir=$libdir
10200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10206 main ()
10210 return 0;
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10215 lt_cv_shlibpath_overrides_runpath=yes
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LDFLAGS=$save_LDFLAGS
10221 libdir=$save_libdir
10225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10227 # This implies no fast_install, which is unacceptable.
10228 # Some rework will be needed to allow for fast_install
10229 # before this can be enabled.
10230 hardcode_into_libs=yes
10232 # Append ld.so.conf contents to the search path
10233 if test -f /etc/ld.so.conf; then
10234 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' ' '`
10235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10238 # We used to test for /lib/ld.so.1 and disable shared libraries on
10239 # powerpc, because MkLinux only supported shared libraries with the
10240 # GNU dynamic linker. Since this was broken with cross compilers,
10241 # most powerpc-linux boxes support dynamic linking these days and
10242 # people can always --disable-shared, the test was removed, and we
10243 # assume the GNU/Linux dynamic linker is in use.
10244 dynamic_linker='GNU/Linux ld.so'
10247 netbsd*)
10248 version_type=sunos
10249 need_lib_prefix=no
10250 need_version=no
10251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 dynamic_linker='NetBSD (a.out) ld.so'
10255 else
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 dynamic_linker='NetBSD ld.elf_so'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10265 newsos6)
10266 version_type=linux
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10272 *nto* | *qnx*)
10273 version_type=qnx
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10281 dynamic_linker='ldqnx.so'
10284 openbsd*)
10285 version_type=sunos
10286 sys_lib_dlsearch_path_spec="/usr/lib"
10287 need_lib_prefix=no
10288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10289 case $host_os in
10290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10291 *) need_version=no ;;
10292 esac
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 case $host_os in
10298 openbsd2.[89] | openbsd2.[89].*)
10299 shlibpath_overrides_runpath=no
10302 shlibpath_overrides_runpath=yes
10304 esac
10305 else
10306 shlibpath_overrides_runpath=yes
10310 os2*)
10311 libname_spec='$name'
10312 shrext_cmds=".dll"
10313 need_lib_prefix=no
10314 library_names_spec='$libname${shared_ext} $libname.a'
10315 dynamic_linker='OS/2 ld.exe'
10316 shlibpath_var=LIBPATH
10319 osf3* | osf4* | osf5*)
10320 version_type=osf
10321 need_lib_prefix=no
10322 need_version=no
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10330 rdos*)
10331 dynamic_linker=no
10334 solaris*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10343 # ldd complains unless libraries are executable
10344 postinstall_cmds='chmod +x $lib'
10347 sunos4*)
10348 version_type=sunos
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 if test "$with_gnu_ld" = yes; then
10354 need_lib_prefix=no
10356 need_version=yes
10359 sysv4 | sysv4.3*)
10360 version_type=linux
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 case $host_vendor in
10365 sni)
10366 shlibpath_overrides_runpath=no
10367 need_lib_prefix=no
10368 runpath_var=LD_RUN_PATH
10370 siemens)
10371 need_lib_prefix=no
10373 motorola)
10374 need_lib_prefix=no
10375 need_version=no
10376 shlibpath_overrides_runpath=no
10377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10379 esac
10382 sysv4*MP*)
10383 if test -d /usr/nec ;then
10384 version_type=linux
10385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386 soname_spec='$libname${shared_ext}.$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10392 version_type=freebsd-elf
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10400 if test "$with_gnu_ld" = yes; then
10401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10402 else
10403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10404 case $host_os in
10405 sco3.2v5*)
10406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10408 esac
10410 sys_lib_dlsearch_path_spec='/usr/lib'
10413 tpf*)
10414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10424 uts4*)
10425 version_type=linux
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10432 dynamic_linker=no
10434 esac
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10436 $as_echo "$dynamic_linker" >&6; }
10437 test "$dynamic_linker" = no && can_build_shared=no
10439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440 if test "$GCC" = yes; then
10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10444 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10447 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10543 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10544 hardcode_action=
10545 if test -n "$hardcode_libdir_flag_spec" ||
10546 test -n "$runpath_var" ||
10547 test "X$hardcode_automatic" = "Xyes" ; then
10549 # We can hardcode non-existent directories.
10550 if test "$hardcode_direct" != no &&
10551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10552 # have to relink, otherwise we might link with an installed library
10553 # when we should be linking with a yet-to-be-installed one
10554 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10555 test "$hardcode_minus_L" != no; then
10556 # Linking always hardcodes the temporary library directory.
10557 hardcode_action=relink
10558 else
10559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10560 hardcode_action=immediate
10562 else
10563 # We cannot hardcode anything, or else we can only hardcode existing
10564 # directories.
10565 hardcode_action=unsupported
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10568 $as_echo "$hardcode_action" >&6; }
10570 if test "$hardcode_action" = relink ||
10571 test "$inherit_rpath" = yes; then
10572 # Fast installation is not supported
10573 enable_fast_install=no
10574 elif test "$shlibpath_overrides_runpath" = yes ||
10575 test "$enable_shared" = no; then
10576 # Fast installation is not necessary
10577 enable_fast_install=needless
10585 if test "x$enable_dlopen" != xyes; then
10586 enable_dlopen=unknown
10587 enable_dlopen_self=unknown
10588 enable_dlopen_self_static=unknown
10589 else
10590 lt_cv_dlopen=no
10591 lt_cv_dlopen_libs=
10593 case $host_os in
10594 beos*)
10595 lt_cv_dlopen="load_add_on"
10596 lt_cv_dlopen_libs=
10597 lt_cv_dlopen_self=yes
10600 mingw* | pw32* | cegcc*)
10601 lt_cv_dlopen="LoadLibrary"
10602 lt_cv_dlopen_libs=
10605 cygwin*)
10606 lt_cv_dlopen="dlopen"
10607 lt_cv_dlopen_libs=
10610 darwin*)
10611 # if libdl is installed we need to link against it
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-ldl $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dlopen ();
10630 main ()
10632 return dlopen ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_dl_dlopen=yes
10639 else
10640 ac_cv_lib_dl_dlopen=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650 else
10652 lt_cv_dlopen="dyld"
10653 lt_cv_dlopen_libs=
10654 lt_cv_dlopen_self=yes
10661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10662 if test "x$ac_cv_func_shl_load" = x""yes; then :
10663 lt_cv_dlopen="shl_load"
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10667 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char shl_load ();
10683 main ()
10685 return shl_load ();
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dld_shl_load=yes
10692 else
10693 ac_cv_lib_dld_shl_load=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10701 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10703 else
10704 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10705 if test "x$ac_cv_func_dlopen" = x""yes; then :
10706 lt_cv_dlopen="dlopen"
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-ldl $LIBS"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10718 /* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 char dlopen ();
10726 main ()
10728 return dlopen ();
10730 return 0;
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"; then :
10734 ac_cv_lib_dl_dlopen=yes
10735 else
10736 ac_cv_lib_dl_dlopen=no
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10744 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10749 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 ac_check_lib_save_LIBS=$LIBS
10753 LIBS="-lsvld $LIBS"
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char dlopen ();
10765 main ()
10767 return dlopen ();
10769 return 0;
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 ac_cv_lib_svld_dlopen=yes
10774 else
10775 ac_cv_lib_svld_dlopen=no
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10783 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10788 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char dld_link ();
10804 main ()
10806 return dld_link ();
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_dld_link=yes
10813 else
10814 ac_cv_lib_dld_dld_link=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10822 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10823 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10842 esac
10844 if test "x$lt_cv_dlopen" != xno; then
10845 enable_dlopen=yes
10846 else
10847 enable_dlopen=no
10850 case $lt_cv_dlopen in
10851 dlopen)
10852 save_CPPFLAGS="$CPPFLAGS"
10853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10855 save_LDFLAGS="$LDFLAGS"
10856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10858 save_LIBS="$LIBS"
10859 LIBS="$lt_cv_dlopen_libs $LIBS"
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10863 if test "${lt_cv_dlopen_self+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self=cross
10868 else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
10872 #line 10872 "configure"
10873 #include "confdefs.h"
10875 #if HAVE_DLFCN_H
10876 #include <dlfcn.h>
10877 #endif
10879 #include <stdio.h>
10881 #ifdef RTLD_GLOBAL
10882 # define LT_DLGLOBAL RTLD_GLOBAL
10883 #else
10884 # ifdef DL_GLOBAL
10885 # define LT_DLGLOBAL DL_GLOBAL
10886 # else
10887 # define LT_DLGLOBAL 0
10888 # endif
10889 #endif
10891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893 #ifndef LT_DLLAZY_OR_NOW
10894 # ifdef RTLD_LAZY
10895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10896 # else
10897 # ifdef DL_LAZY
10898 # define LT_DLLAZY_OR_NOW DL_LAZY
10899 # else
10900 # ifdef RTLD_NOW
10901 # define LT_DLLAZY_OR_NOW RTLD_NOW
10902 # else
10903 # ifdef DL_NOW
10904 # define LT_DLLAZY_OR_NOW DL_NOW
10905 # else
10906 # define LT_DLLAZY_OR_NOW 0
10907 # endif
10908 # endif
10909 # endif
10910 # endif
10911 #endif
10913 /* When -fvisbility=hidden is used, assume the code has been annotated
10914 correspondingly for the symbols needed. */
10915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10916 void fnord () __attribute__((visibility("default")));
10917 #endif
10919 void fnord () { int i=42; }
10920 int main ()
10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10923 int status = $lt_dlunknown;
10925 if (self)
10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10928 else
10930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10931 else puts (dlerror ());
10933 /* dlclose (self); */
10935 else
10936 puts (dlerror ());
10938 return status;
10940 _LT_EOF
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10942 (eval $ac_link) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10946 (./conftest; exit; ) >&5 2>/dev/null
10947 lt_status=$?
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10952 esac
10953 else :
10954 # compilation failed
10955 lt_cv_dlopen_self=no
10958 rm -fr conftest*
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10963 $as_echo "$lt_cv_dlopen_self" >&6; }
10965 if test "x$lt_cv_dlopen_self" = xyes; then
10966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10969 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 if test "$cross_compiling" = yes; then :
10973 lt_cv_dlopen_self_static=cross
10974 else
10975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10976 lt_status=$lt_dlunknown
10977 cat > conftest.$ac_ext <<_LT_EOF
10978 #line 10978 "configure"
10979 #include "confdefs.h"
10981 #if HAVE_DLFCN_H
10982 #include <dlfcn.h>
10983 #endif
10985 #include <stdio.h>
10987 #ifdef RTLD_GLOBAL
10988 # define LT_DLGLOBAL RTLD_GLOBAL
10989 #else
10990 # ifdef DL_GLOBAL
10991 # define LT_DLGLOBAL DL_GLOBAL
10992 # else
10993 # define LT_DLGLOBAL 0
10994 # endif
10995 #endif
10997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10998 find out it does not work in some platform. */
10999 #ifndef LT_DLLAZY_OR_NOW
11000 # ifdef RTLD_LAZY
11001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11002 # else
11003 # ifdef DL_LAZY
11004 # define LT_DLLAZY_OR_NOW DL_LAZY
11005 # else
11006 # ifdef RTLD_NOW
11007 # define LT_DLLAZY_OR_NOW RTLD_NOW
11008 # else
11009 # ifdef DL_NOW
11010 # define LT_DLLAZY_OR_NOW DL_NOW
11011 # else
11012 # define LT_DLLAZY_OR_NOW 0
11013 # endif
11014 # endif
11015 # endif
11016 # endif
11017 #endif
11019 /* When -fvisbility=hidden is used, assume the code has been annotated
11020 correspondingly for the symbols needed. */
11021 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11022 void fnord () __attribute__((visibility("default")));
11023 #endif
11025 void fnord () { int i=42; }
11026 int main ()
11028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11029 int status = $lt_dlunknown;
11031 if (self)
11033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11034 else
11036 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11037 else puts (dlerror ());
11039 /* dlclose (self); */
11041 else
11042 puts (dlerror ());
11044 return status;
11046 _LT_EOF
11047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11048 (eval $ac_link) 2>&5
11049 ac_status=$?
11050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11052 (./conftest; exit; ) >&5 2>/dev/null
11053 lt_status=$?
11054 case x$lt_status in
11055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11058 esac
11059 else :
11060 # compilation failed
11061 lt_cv_dlopen_self_static=no
11064 rm -fr conftest*
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11072 CPPFLAGS="$save_CPPFLAGS"
11073 LDFLAGS="$save_LDFLAGS"
11074 LIBS="$save_LIBS"
11076 esac
11078 case $lt_cv_dlopen_self in
11079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11080 *) enable_dlopen_self=unknown ;;
11081 esac
11083 case $lt_cv_dlopen_self_static in
11084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11085 *) enable_dlopen_self_static=unknown ;;
11086 esac
11105 striplib=
11106 old_striplib=
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else
11115 # FIXME - insert some real tests, host_os isn't really good enough
11116 case $host_os in
11117 darwin*)
11118 if test -n "$STRIP" ; then
11119 striplib="$STRIP -x"
11120 old_striplib="$STRIP -S"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11132 esac
11146 # Report which library types will actually be built
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11150 $as_echo "$can_build_shared" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11153 $as_echo_n "checking whether to build shared libraries... " >&6; }
11154 test "$can_build_shared" = "no" && enable_shared=no
11156 # On AIX, shared libraries and static libraries use the same namespace, and
11157 # are all built from PIC.
11158 case $host_os in
11159 aix3*)
11160 test "$enable_shared" = yes && enable_static=no
11161 if test -n "$RANLIB"; then
11162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11163 postinstall_cmds='$RANLIB $lib'
11167 aix[4-9]*)
11168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11169 test "$enable_shared" = yes && enable_static=no
11172 esac
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11174 $as_echo "$enable_shared" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11177 $as_echo_n "checking whether to build static libraries... " >&6; }
11178 # Make sure either enable_shared or enable_static is yes.
11179 test "$enable_shared" = yes || enable_static=yes
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11181 $as_echo "$enable_static" >&6; }
11187 ac_ext=c
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193 CC="$lt_save_CC"
11195 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11196 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11197 (test "X$CXX" != "Xg++"))) ; then
11198 ac_ext=cpp
11199 ac_cpp='$CXXCPP $CPPFLAGS'
11200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11204 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11205 if test -z "$CXXCPP"; then
11206 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 # Double quotes because CXXCPP needs to be expanded
11210 for CXXCPP in "$CXX -E" "/lib/cpp"
11212 ac_preproc_ok=false
11213 for ac_cxx_preproc_warn_flag in '' yes
11215 # Use a header file that comes with gcc, so configuring glibc
11216 # with a fresh cross-compiler works.
11217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 # <limits.h> exists even on freestanding compilers.
11219 # On the NeXT, cc -E runs the code through the compiler's parser,
11220 # not just through cpp. "Syntax error" is here to catch this case.
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11223 #ifdef __STDC__
11224 # include <limits.h>
11225 #else
11226 # include <assert.h>
11227 #endif
11228 Syntax error
11229 _ACEOF
11230 if ac_fn_cxx_try_cpp "$LINENO"; then :
11232 else
11233 # Broken: fails on valid input.
11234 continue
11236 rm -f conftest.err conftest.$ac_ext
11238 # OK, works on sane cases. Now check whether nonexistent headers
11239 # can be detected and how.
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242 #include <ac_nonexistent.h>
11243 _ACEOF
11244 if ac_fn_cxx_try_cpp "$LINENO"; then :
11245 # Broken: success on invalid input.
11246 continue
11247 else
11248 # Passes both tests.
11249 ac_preproc_ok=:
11250 break
11252 rm -f conftest.err conftest.$ac_ext
11254 done
11255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11256 rm -f conftest.err conftest.$ac_ext
11257 if $ac_preproc_ok; then :
11258 break
11261 done
11262 ac_cv_prog_CXXCPP=$CXXCPP
11265 CXXCPP=$ac_cv_prog_CXXCPP
11266 else
11267 ac_cv_prog_CXXCPP=$CXXCPP
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11270 $as_echo "$CXXCPP" >&6; }
11271 ac_preproc_ok=false
11272 for ac_cxx_preproc_warn_flag in '' yes
11274 # Use a header file that comes with gcc, so configuring glibc
11275 # with a fresh cross-compiler works.
11276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11277 # <limits.h> exists even on freestanding compilers.
11278 # On the NeXT, cc -E runs the code through the compiler's parser,
11279 # not just through cpp. "Syntax error" is here to catch this case.
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 #ifdef __STDC__
11283 # include <limits.h>
11284 #else
11285 # include <assert.h>
11286 #endif
11287 Syntax error
11288 _ACEOF
11289 if ac_fn_cxx_try_cpp "$LINENO"; then :
11291 else
11292 # Broken: fails on valid input.
11293 continue
11295 rm -f conftest.err conftest.$ac_ext
11297 # OK, works on sane cases. Now check whether nonexistent headers
11298 # can be detected and how.
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 #include <ac_nonexistent.h>
11302 _ACEOF
11303 if ac_fn_cxx_try_cpp "$LINENO"; then :
11304 # Broken: success on invalid input.
11305 continue
11306 else
11307 # Passes both tests.
11308 ac_preproc_ok=:
11309 break
11311 rm -f conftest.err conftest.$ac_ext
11313 done
11314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11315 rm -f conftest.err conftest.$ac_ext
11316 if $ac_preproc_ok; then :
11318 else
11319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11321 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11322 See \`config.log' for more details." "$LINENO" 5; }
11325 ac_ext=c
11326 ac_cpp='$CPP $CPPFLAGS'
11327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331 else
11332 _lt_caught_CXX_error=yes
11335 ac_ext=cpp
11336 ac_cpp='$CXXCPP $CPPFLAGS'
11337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11341 archive_cmds_need_lc_CXX=no
11342 allow_undefined_flag_CXX=
11343 always_export_symbols_CXX=no
11344 archive_expsym_cmds_CXX=
11345 compiler_needs_object_CXX=no
11346 export_dynamic_flag_spec_CXX=
11347 hardcode_direct_CXX=no
11348 hardcode_direct_absolute_CXX=no
11349 hardcode_libdir_flag_spec_CXX=
11350 hardcode_libdir_flag_spec_ld_CXX=
11351 hardcode_libdir_separator_CXX=
11352 hardcode_minus_L_CXX=no
11353 hardcode_shlibpath_var_CXX=unsupported
11354 hardcode_automatic_CXX=no
11355 inherit_rpath_CXX=no
11356 module_cmds_CXX=
11357 module_expsym_cmds_CXX=
11358 link_all_deplibs_CXX=unknown
11359 old_archive_cmds_CXX=$old_archive_cmds
11360 reload_flag_CXX=$reload_flag
11361 reload_cmds_CXX=$reload_cmds
11362 no_undefined_flag_CXX=
11363 whole_archive_flag_spec_CXX=
11364 enable_shared_with_static_runtimes_CXX=no
11366 # Source file extension for C++ test sources.
11367 ac_ext=cpp
11369 # Object file extension for compiled C++ test sources.
11370 objext=o
11371 objext_CXX=$objext
11373 # No sense in running all these tests if we already determined that
11374 # the CXX compiler isn't working. Some variables (like enable_shared)
11375 # are currently assumed to apply to all compilers on this platform,
11376 # and will be corrupted by setting them based on a non-working compiler.
11377 if test "$_lt_caught_CXX_error" != yes; then
11378 # Code to be used in simple compile tests
11379 lt_simple_compile_test_code="int some_variable = 0;"
11381 # Code to be used in simple link tests
11382 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11384 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11391 # If no C compiler was specified, use CC.
11392 LTCC=${LTCC-"$CC"}
11394 # If no C compiler flags were specified, use CFLAGS.
11395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11397 # Allow CC to be a program name with arguments.
11398 compiler=$CC
11401 # save warnings/boilerplate of simple test code
11402 ac_outfile=conftest.$ac_objext
11403 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11405 _lt_compiler_boilerplate=`cat conftest.err`
11406 $RM conftest*
11408 ac_outfile=conftest.$ac_objext
11409 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11411 _lt_linker_boilerplate=`cat conftest.err`
11412 $RM -r conftest*
11415 # Allow CC to be a program name with arguments.
11416 lt_save_CC=$CC
11417 lt_save_LD=$LD
11418 lt_save_GCC=$GCC
11419 GCC=$GXX
11420 lt_save_with_gnu_ld=$with_gnu_ld
11421 lt_save_path_LD=$lt_cv_path_LD
11422 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11423 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11424 else
11425 $as_unset lt_cv_prog_gnu_ld
11427 if test -n "${lt_cv_path_LDCXX+set}"; then
11428 lt_cv_path_LD=$lt_cv_path_LDCXX
11429 else
11430 $as_unset lt_cv_path_LD
11432 test -z "${LDCXX+set}" || LD=$LDCXX
11433 CC=${CXX-"c++"}
11434 compiler=$CC
11435 compiler_CXX=$CC
11436 for cc_temp in $compiler""; do
11437 case $cc_temp in
11438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11440 \-*) ;;
11441 *) break;;
11442 esac
11443 done
11444 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11447 if test -n "$compiler"; then
11448 # We don't want -fno-exception when compiling C++ code, so set the
11449 # no_builtin_flag separately
11450 if test "$GXX" = yes; then
11451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11452 else
11453 lt_prog_compiler_no_builtin_flag_CXX=
11456 if test "$GXX" = yes; then
11457 # Set up default GNU C++ configuration
11461 # Check whether --with-gnu-ld was given.
11462 if test "${with_gnu_ld+set}" = set; then :
11463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11464 else
11465 with_gnu_ld=no
11468 ac_prog=ld
11469 if test "$GCC" = yes; then
11470 # Check if gcc -print-prog-name=ld gives a path.
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11472 $as_echo_n "checking for ld used by $CC... " >&6; }
11473 case $host in
11474 *-*-mingw*)
11475 # gcc leaves a trailing carriage return which upsets mingw
11476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11479 esac
11480 case $ac_prog in
11481 # Accept absolute paths.
11482 [\\/]* | ?:[\\/]*)
11483 re_direlt='/[^/][^/]*/\.\./'
11484 # Canonicalize the pathname of ld
11485 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11486 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11487 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11488 done
11489 test -z "$LD" && LD="$ac_prog"
11492 # If it fails, then pretend we aren't using GCC.
11493 ac_prog=ld
11496 # If it is relative, then search for the first ld in PATH.
11497 with_gnu_ld=unknown
11499 esac
11500 elif test "$with_gnu_ld" = yes; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11502 $as_echo_n "checking for GNU ld... " >&6; }
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11505 $as_echo_n "checking for non-GNU ld... " >&6; }
11507 if test "${lt_cv_path_LD+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -z "$LD"; then
11511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11512 for ac_dir in $PATH; do
11513 IFS="$lt_save_ifs"
11514 test -z "$ac_dir" && ac_dir=.
11515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11516 lt_cv_path_LD="$ac_dir/$ac_prog"
11517 # Check to see if the program is GNU ld. I'd rather use --version,
11518 # but apparently some variants of GNU ld only accept -v.
11519 # Break only if it was the GNU/non-GNU ld that we prefer.
11520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11521 *GNU* | *'with BFD'*)
11522 test "$with_gnu_ld" != no && break
11525 test "$with_gnu_ld" != yes && break
11527 esac
11529 done
11530 IFS="$lt_save_ifs"
11531 else
11532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11536 LD="$lt_cv_path_LD"
11537 if test -n "$LD"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11539 $as_echo "$LD" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11544 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11547 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11551 case `$LD -v 2>&1 </dev/null` in
11552 *GNU* | *'with BFD'*)
11553 lt_cv_prog_gnu_ld=yes
11556 lt_cv_prog_gnu_ld=no
11558 esac
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11561 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11562 with_gnu_ld=$lt_cv_prog_gnu_ld
11570 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11571 # archiving commands below assume that GNU ld is being used.
11572 if test "$with_gnu_ld" = yes; then
11573 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 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'
11576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11579 # If archive_cmds runs LD, not CC, wlarc should be empty
11580 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11581 # investigate it a little bit more. (MM)
11582 wlarc='${wl}'
11584 # ancient GNU ld didn't support --whole-archive et. al.
11585 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11586 $GREP 'no-whole-archive' > /dev/null; then
11587 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11588 else
11589 whole_archive_flag_spec_CXX=
11591 else
11592 with_gnu_ld=no
11593 wlarc=
11595 # A generic and very simple default shared library creation
11596 # command for GNU C++ for the case where it uses the native
11597 # linker, instead of GNU ld. If possible, this setting should
11598 # overridden to take advantage of the native linker features on
11599 # the platform it is being used on.
11600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11608 else
11609 GXX=no
11610 with_gnu_ld=no
11611 wlarc=
11614 # PORTME: fill in a description of your system's C++ link characteristics
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11616 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11617 ld_shlibs_CXX=yes
11618 case $host_os in
11619 aix3*)
11620 # FIXME: insert proper C++ library support
11621 ld_shlibs_CXX=no
11623 aix[4-9]*)
11624 if test "$host_cpu" = ia64; then
11625 # On IA64, the linker does run time linking by default, so we don't
11626 # have to do anything special.
11627 aix_use_runtimelinking=no
11628 exp_sym_flag='-Bexport'
11629 no_entry_flag=""
11630 else
11631 aix_use_runtimelinking=no
11633 # Test if we are trying to use run time linking or normal
11634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11635 # need to do runtime linking.
11636 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11637 for ld_flag in $LDFLAGS; do
11638 case $ld_flag in
11639 *-brtl*)
11640 aix_use_runtimelinking=yes
11641 break
11643 esac
11644 done
11646 esac
11648 exp_sym_flag='-bexport'
11649 no_entry_flag='-bnoentry'
11652 # When large executables or shared objects are built, AIX ld can
11653 # have problems creating the table of contents. If linking a library
11654 # or program results in "error TOC overflow" add -mminimal-toc to
11655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11658 archive_cmds_CXX=''
11659 hardcode_direct_CXX=yes
11660 hardcode_direct_absolute_CXX=yes
11661 hardcode_libdir_separator_CXX=':'
11662 link_all_deplibs_CXX=yes
11663 file_list_spec_CXX='${wl}-f,'
11665 if test "$GXX" = yes; then
11666 case $host_os in aix4.[012]|aix4.[012].*)
11667 # We only want to do this on AIX 4.2 and lower, the check
11668 # below for broken collect2 doesn't work under 4.3+
11669 collect2name=`${CC} -print-prog-name=collect2`
11670 if test -f "$collect2name" &&
11671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11672 then
11673 # We have reworked collect2
11675 else
11676 # We have old collect2
11677 hardcode_direct_CXX=unsupported
11678 # It fails to find uninstalled libraries when the uninstalled
11679 # path is not listed in the libpath. Setting hardcode_minus_L
11680 # to unsupported forces relinking
11681 hardcode_minus_L_CXX=yes
11682 hardcode_libdir_flag_spec_CXX='-L$libdir'
11683 hardcode_libdir_separator_CXX=
11685 esac
11686 shared_flag='-shared'
11687 if test "$aix_use_runtimelinking" = yes; then
11688 shared_flag="$shared_flag "'${wl}-G'
11690 else
11691 # not using gcc
11692 if test "$host_cpu" = ia64; then
11693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11694 # chokes on -Wl,-G. The following line is correct:
11695 shared_flag='-G'
11696 else
11697 if test "$aix_use_runtimelinking" = yes; then
11698 shared_flag='${wl}-G'
11699 else
11700 shared_flag='${wl}-bM:SRE'
11705 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11706 # It seems that -bexpall does not export symbols beginning with
11707 # underscore (_), so it is better to generate a list of symbols to
11708 # export.
11709 always_export_symbols_CXX=yes
11710 if test "$aix_use_runtimelinking" = yes; then
11711 # Warning - without using the other runtime loading flags (-brtl),
11712 # -berok will link without error, but may produce a broken library.
11713 allow_undefined_flag_CXX='-berok'
11714 # Determine the default libpath from the value encoded in an empty
11715 # executable.
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11720 main ()
11724 return 0;
11726 _ACEOF
11727 if ac_fn_cxx_try_link "$LINENO"; then :
11729 lt_aix_libpath_sed='
11730 /Import File Strings/,/^$/ {
11731 /^0/ {
11732 s/^0 *\(.*\)$/\1/
11736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737 # Check for a 64-bit object if we didn't find anything.
11738 if test -z "$aix_libpath"; then
11739 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11748 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"
11749 else
11750 if test "$host_cpu" = ia64; then
11751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11752 allow_undefined_flag_CXX="-z nodefs"
11753 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"
11754 else
11755 # Determine the default libpath from the value encoded in an
11756 # empty executable.
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11761 main ()
11765 return 0;
11767 _ACEOF
11768 if ac_fn_cxx_try_link "$LINENO"; then :
11770 lt_aix_libpath_sed='
11771 /Import File Strings/,/^$/ {
11772 /^0/ {
11773 s/^0 *\(.*\)$/\1/
11777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11778 # Check for a 64-bit object if we didn't find anything.
11779 if test -z "$aix_libpath"; then
11780 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11787 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11788 # Warning - without using the other run time loading flags,
11789 # -berok will link without error, but may produce a broken library.
11790 no_undefined_flag_CXX=' ${wl}-bernotok'
11791 allow_undefined_flag_CXX=' ${wl}-berok'
11792 if test "$with_gnu_ld" = yes; then
11793 # We only use this code for GNU lds that support --whole-archive.
11794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11795 else
11796 # Exported symbols can be pulled into shared objects from archives
11797 whole_archive_flag_spec_CXX='$convenience'
11799 archive_cmds_need_lc_CXX=yes
11800 # This is similar to how AIX traditionally builds its shared
11801 # libraries.
11802 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'
11807 beos*)
11808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11809 allow_undefined_flag_CXX=unsupported
11810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11811 # support --undefined. This deserves some investigation. FIXME
11812 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813 else
11814 ld_shlibs_CXX=no
11818 chorus*)
11819 case $cc_basename in
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11824 esac
11827 cygwin* | mingw* | pw32* | cegcc*)
11828 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11829 # as there is no search path for DLLs.
11830 hardcode_libdir_flag_spec_CXX='-L$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11832 allow_undefined_flag_CXX=unsupported
11833 always_export_symbols_CXX=no
11834 enable_shared_with_static_runtimes_CXX=yes
11836 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11837 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'
11838 # If the export-symbols file already is a .def file (1st line
11839 # is EXPORTS), use it as is; otherwise, prepend...
11840 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11841 cp $export_symbols $output_objdir/$soname.def;
11842 else
11843 echo EXPORTS > $output_objdir/$soname.def;
11844 cat $export_symbols >> $output_objdir/$soname.def;
11846 $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'
11847 else
11848 ld_shlibs_CXX=no
11851 darwin* | rhapsody*)
11854 archive_cmds_need_lc_CXX=no
11855 hardcode_direct_CXX=no
11856 hardcode_automatic_CXX=yes
11857 hardcode_shlibpath_var_CXX=unsupported
11858 if test "$lt_cv_ld_force_load" = "yes"; then
11859 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\"`'
11860 else
11861 whole_archive_flag_spec_CXX=''
11863 link_all_deplibs_CXX=yes
11864 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11865 case $cc_basename in
11866 ifort*) _lt_dar_can_shared=yes ;;
11867 *) _lt_dar_can_shared=$GCC ;;
11868 esac
11869 if test "$_lt_dar_can_shared" = "yes"; then
11870 output_verbose_link_cmd=func_echo_all
11871 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}"
11872 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11873 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}"
11874 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}"
11875 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11876 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}"
11877 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}"
11880 else
11881 ld_shlibs_CXX=no
11886 dgux*)
11887 case $cc_basename in
11888 ec++*)
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11892 ghcx*)
11893 # Green Hills C++ Compiler
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11898 # FIXME: insert proper C++ library support
11899 ld_shlibs_CXX=no
11901 esac
11904 freebsd2.*)
11905 # C++ shared libraries reported to be fairly broken before
11906 # switch to ELF
11907 ld_shlibs_CXX=no
11910 freebsd-elf*)
11911 archive_cmds_need_lc_CXX=no
11914 freebsd* | dragonfly*)
11915 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11916 # conventions
11917 ld_shlibs_CXX=yes
11920 gnu*)
11923 haiku*)
11924 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925 link_all_deplibs_CXX=yes
11928 hpux9*)
11929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11930 hardcode_libdir_separator_CXX=:
11931 export_dynamic_flag_spec_CXX='${wl}-E'
11932 hardcode_direct_CXX=yes
11933 hardcode_minus_L_CXX=yes # Not in the search PATH,
11934 # but as the default
11935 # location of the library.
11937 case $cc_basename in
11938 CC*)
11939 # FIXME: insert proper C++ library support
11940 ld_shlibs_CXX=no
11942 aCC*)
11943 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'
11944 # Commands to make compiler produce verbose output that lists
11945 # what "hidden" libraries, object files and flags are used when
11946 # linking a shared library.
11948 # There doesn't appear to be a way to prevent this compiler from
11949 # explicitly linking system object files so we need to strip them
11950 # from the output so that they don't get included in the library
11951 # dependencies.
11952 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"'
11955 if test "$GXX" = yes; then
11956 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'
11957 else
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11962 esac
11965 hpux10*|hpux11*)
11966 if test $with_gnu_ld = no; then
11967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11970 case $host_cpu in
11971 hppa*64*|ia64*)
11974 export_dynamic_flag_spec_CXX='${wl}-E'
11976 esac
11978 case $host_cpu in
11979 hppa*64*|ia64*)
11980 hardcode_direct_CXX=no
11981 hardcode_shlibpath_var_CXX=no
11984 hardcode_direct_CXX=yes
11985 hardcode_direct_absolute_CXX=yes
11986 hardcode_minus_L_CXX=yes # Not in the search PATH,
11987 # but as the default
11988 # location of the library.
11990 esac
11992 case $cc_basename in
11993 CC*)
11994 # FIXME: insert proper C++ library support
11995 ld_shlibs_CXX=no
11997 aCC*)
11998 case $host_cpu in
11999 hppa*64*)
12000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12002 ia64*)
12003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12006 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12008 esac
12009 # Commands to make compiler produce verbose output that lists
12010 # what "hidden" libraries, object files and flags are used when
12011 # linking a shared library.
12013 # There doesn't appear to be a way to prevent this compiler from
12014 # explicitly linking system object files so we need to strip them
12015 # from the output so that they don't get included in the library
12016 # dependencies.
12017 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"'
12020 if test "$GXX" = yes; then
12021 if test $with_gnu_ld = no; then
12022 case $host_cpu in
12023 hppa*64*)
12024 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12026 ia64*)
12027 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12030 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'
12032 esac
12034 else
12035 # FIXME: insert proper C++ library support
12036 ld_shlibs_CXX=no
12039 esac
12042 interix[3-9]*)
12043 hardcode_direct_CXX=no
12044 hardcode_shlibpath_var_CXX=no
12045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12048 # Instead, shared libraries are loaded at an image base (0x10000000 by
12049 # default) and relocated if they conflict, which is a slow very memory
12050 # consuming and fragmenting process. To avoid this, we pick a random,
12051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12052 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12053 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'
12054 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'
12056 irix5* | irix6*)
12057 case $cc_basename in
12058 CC*)
12059 # SGI C++
12060 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'
12062 # Archives containing C++ object files must be created using
12063 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12064 # necessary to make sure instantiated templates are included
12065 # in the archive.
12066 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12069 if test "$GXX" = yes; then
12070 if test "$with_gnu_ld" = no; then
12071 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'
12072 else
12073 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'
12076 link_all_deplibs_CXX=yes
12078 esac
12079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12080 hardcode_libdir_separator_CXX=:
12081 inherit_rpath_CXX=yes
12084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12085 case $cc_basename in
12086 KCC*)
12087 # Kuck and Associates, Inc. (KAI) C++ Compiler
12089 # KCC will only create a shared library if the output file
12090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12091 # to its proper name (with version) after linking.
12092 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'
12093 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'
12094 # Commands to make compiler produce verbose output that lists
12095 # what "hidden" libraries, object files and flags are used when
12096 # linking a shared library.
12098 # There doesn't appear to be a way to prevent this compiler from
12099 # explicitly linking system object files so we need to strip them
12100 # from the output so that they don't get included in the library
12101 # dependencies.
12102 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"'
12104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12107 # Archives containing C++ object files must be created using
12108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12111 icpc* | ecpc* )
12112 # Intel C++
12113 with_gnu_ld=yes
12114 # version 8.0 and above of icpc choke on multiply defined symbols
12115 # if we add $predep_objects and $postdep_objects, however 7.1 and
12116 # earlier do not add the objects themselves.
12117 case `$CC -V 2>&1` in
12118 *"Version 7."*)
12119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12120 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'
12122 *) # Version 8.0 or newer
12123 tmp_idyn=
12124 case $host_cpu in
12125 ia64*) tmp_idyn=' -i_dynamic';;
12126 esac
12127 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12128 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'
12130 esac
12131 archive_cmds_need_lc_CXX=no
12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12134 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12136 pgCC* | pgcpp*)
12137 # Portland Group C++ compiler
12138 case `$CC -V` in
12139 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12140 prelink_cmds_CXX='tpldir=Template.dir~
12141 rm -rf $tpldir~
12142 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12143 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12144 old_archive_cmds_CXX='tpldir=Template.dir~
12145 rm -rf $tpldir~
12146 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12147 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12148 $RANLIB $oldlib'
12149 archive_cmds_CXX='tpldir=Template.dir~
12150 rm -rf $tpldir~
12151 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12152 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12153 archive_expsym_cmds_CXX='tpldir=Template.dir~
12154 rm -rf $tpldir~
12155 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12156 $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'
12158 *) # Version 6 and above use weak symbols
12159 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12160 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'
12162 esac
12164 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12166 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'
12168 cxx*)
12169 # Compaq C++
12170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12171 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'
12173 runpath_var=LD_RUN_PATH
12174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12175 hardcode_libdir_separator_CXX=:
12177 # Commands to make compiler produce verbose output that lists
12178 # what "hidden" libraries, object files and flags are used when
12179 # linking a shared library.
12181 # There doesn't appear to be a way to prevent this compiler from
12182 # explicitly linking system object files so we need to strip them
12183 # from the output so that they don't get included in the library
12184 # dependencies.
12185 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'
12187 xl* | mpixl* | bgxl*)
12188 # IBM XL 8.0 on PPC, with GNU ld
12189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12191 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 if test "x$supports_anon_versioning" = xyes; then
12193 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12195 echo "local: *; };" >> $output_objdir/$libname.ver~
12196 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12200 case `$CC -V 2>&1 | sed 5q` in
12201 *Sun\ C*)
12202 # Sun C++ 5.9
12203 no_undefined_flag_CXX=' -zdefs'
12204 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12205 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'
12206 hardcode_libdir_flag_spec_CXX='-R$libdir'
12207 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'
12208 compiler_needs_object_CXX=yes
12210 # Not sure whether something based on
12211 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12212 # would be better.
12213 output_verbose_link_cmd='func_echo_all'
12215 # Archives containing C++ object files must be created using
12216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12217 # necessary to make sure instantiated templates are included
12218 # in the archive.
12219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12221 esac
12223 esac
12226 lynxos*)
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12231 m88k*)
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12236 mvs*)
12237 case $cc_basename in
12238 cxx*)
12239 # FIXME: insert proper C++ library support
12240 ld_shlibs_CXX=no
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12246 esac
12249 netbsd*)
12250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12251 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12252 wlarc=
12253 hardcode_libdir_flag_spec_CXX='-R$libdir'
12254 hardcode_direct_CXX=yes
12255 hardcode_shlibpath_var_CXX=no
12257 # Workaround some broken pre-1.5 toolchains
12258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12261 *nto* | *qnx*)
12262 ld_shlibs_CXX=yes
12265 openbsd2*)
12266 # C++ shared libraries are fairly broken
12267 ld_shlibs_CXX=no
12270 openbsd*)
12271 if test -f /usr/libexec/ld.so; then
12272 hardcode_direct_CXX=yes
12273 hardcode_shlibpath_var_CXX=no
12274 hardcode_direct_absolute_CXX=yes
12275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12278 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12279 export_dynamic_flag_spec_CXX='${wl}-E'
12280 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12282 output_verbose_link_cmd=func_echo_all
12283 else
12284 ld_shlibs_CXX=no
12288 osf3* | osf4* | osf5*)
12289 case $cc_basename in
12290 KCC*)
12291 # Kuck and Associates, Inc. (KAI) C++ Compiler
12293 # KCC will only create a shared library if the output file
12294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12295 # to its proper name (with version) after linking.
12296 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'
12298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12299 hardcode_libdir_separator_CXX=:
12301 # Archives containing C++ object files must be created using
12302 # the KAI C++ compiler.
12303 case $host in
12304 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12305 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12306 esac
12308 RCC*)
12309 # Rational C++ 2.4.1
12310 # FIXME: insert proper C++ library support
12311 ld_shlibs_CXX=no
12313 cxx*)
12314 case $host in
12315 osf3*)
12316 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12317 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'
12318 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12321 allow_undefined_flag_CXX=' -expect_unresolved \*'
12322 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'
12323 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12324 echo "-hidden">> $lib.exp~
12325 $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~
12326 $RM $lib.exp'
12327 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12329 esac
12331 hardcode_libdir_separator_CXX=:
12333 # Commands to make compiler produce verbose output that lists
12334 # what "hidden" libraries, object files and flags are used when
12335 # linking a shared library.
12337 # There doesn't appear to be a way to prevent this compiler from
12338 # explicitly linking system object files so we need to strip them
12339 # from the output so that they don't get included in the library
12340 # dependencies.
12341 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"'
12344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12346 case $host in
12347 osf3*)
12348 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'
12351 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'
12353 esac
12355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12356 hardcode_libdir_separator_CXX=:
12358 # Commands to make compiler produce verbose output that lists
12359 # what "hidden" libraries, object files and flags are used when
12360 # linking a shared library.
12361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12363 else
12364 # FIXME: insert proper C++ library support
12365 ld_shlibs_CXX=no
12368 esac
12371 psos*)
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12376 sunos4*)
12377 case $cc_basename in
12378 CC*)
12379 # Sun C++ 4.x
12380 # FIXME: insert proper C++ library support
12381 ld_shlibs_CXX=no
12383 lcc*)
12384 # Lucid
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12392 esac
12395 solaris*)
12396 case $cc_basename in
12397 CC*)
12398 # Sun C++ 4.2, 5.x and Centerline C++
12399 archive_cmds_need_lc_CXX=yes
12400 no_undefined_flag_CXX=' -zdefs'
12401 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12402 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12403 $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'
12405 hardcode_libdir_flag_spec_CXX='-R$libdir'
12406 hardcode_shlibpath_var_CXX=no
12407 case $host_os in
12408 solaris2.[0-5] | solaris2.[0-5].*) ;;
12410 # The compiler driver will combine and reorder linker options,
12411 # but understands `-z linker_flag'.
12412 # Supported since Solaris 2.6 (maybe 2.5.1?)
12413 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12415 esac
12416 link_all_deplibs_CXX=yes
12418 output_verbose_link_cmd='func_echo_all'
12420 # Archives containing C++ object files must be created using
12421 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12422 # necessary to make sure instantiated templates are included
12423 # in the archive.
12424 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12426 gcx*)
12427 # Green Hills C++ Compiler
12428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12430 # The C++ compiler must be used to create the archive.
12431 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12434 # GNU C++ compiler with Solaris linker
12435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12436 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12437 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12438 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12439 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12440 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12442 # Commands to make compiler produce verbose output that lists
12443 # what "hidden" libraries, object files and flags are used when
12444 # linking a shared library.
12445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12446 else
12447 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12448 # platform.
12449 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12450 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12451 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12453 # Commands to make compiler produce verbose output that lists
12454 # what "hidden" libraries, object files and flags are used when
12455 # linking a shared library.
12456 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12459 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12460 case $host_os in
12461 solaris2.[0-5] | solaris2.[0-5].*) ;;
12463 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12465 esac
12468 esac
12471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12472 no_undefined_flag_CXX='${wl}-z,text'
12473 archive_cmds_need_lc_CXX=no
12474 hardcode_shlibpath_var_CXX=no
12475 runpath_var='LD_RUN_PATH'
12477 case $cc_basename in
12478 CC*)
12479 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12480 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12483 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12484 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486 esac
12489 sysv5* | sco3.2v5* | sco5v6*)
12490 # Note: We can NOT use -z defs as we might desire, because we do not
12491 # link with -lc, and that would cause any symbols used from libc to
12492 # always be unresolved, which means just about no library would
12493 # ever link correctly. If we're not using GNU ld we use -z text
12494 # though, which does catch some bad symbols but isn't as heavy-handed
12495 # as -z defs.
12496 no_undefined_flag_CXX='${wl}-z,text'
12497 allow_undefined_flag_CXX='${wl}-z,nodefs'
12498 archive_cmds_need_lc_CXX=no
12499 hardcode_shlibpath_var_CXX=no
12500 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12501 hardcode_libdir_separator_CXX=':'
12502 link_all_deplibs_CXX=yes
12503 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12504 runpath_var='LD_RUN_PATH'
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 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12511 '"$old_archive_cmds_CXX"
12512 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12513 '"$reload_cmds_CXX"
12516 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12517 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12519 esac
12522 tandem*)
12523 case $cc_basename in
12524 NCC*)
12525 # NonStop-UX NCC 3.20
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12530 # FIXME: insert proper C++ library support
12531 ld_shlibs_CXX=no
12533 esac
12536 vxworks*)
12537 # FIXME: insert proper C++ library support
12538 ld_shlibs_CXX=no
12542 # FIXME: insert proper C++ library support
12543 ld_shlibs_CXX=no
12545 esac
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12548 $as_echo "$ld_shlibs_CXX" >&6; }
12549 test "$ld_shlibs_CXX" = no && can_build_shared=no
12551 GCC_CXX="$GXX"
12552 LD_CXX="$LD"
12554 ## CAVEAT EMPTOR:
12555 ## There is no encapsulation within the following macros, do not change
12556 ## the running order or otherwise move them around unless you know exactly
12557 ## what you are doing...
12558 # Dependencies to place before and after the object being linked:
12559 predep_objects_CXX=
12560 postdep_objects_CXX=
12561 predeps_CXX=
12562 postdeps_CXX=
12563 compiler_lib_search_path_CXX=
12565 cat > conftest.$ac_ext <<_LT_EOF
12566 class Foo
12568 public:
12569 Foo (void) { a = 0; }
12570 private:
12571 int a;
12573 _LT_EOF
12575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12576 (eval $ac_compile) 2>&5
12577 ac_status=$?
12578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579 test $ac_status = 0; }; then
12580 # Parse the compiler output and extract the necessary
12581 # objects, libraries and library flags.
12583 # Sentinel used to keep track of whether or not we are before
12584 # the conftest object file.
12585 pre_test_object_deps_done=no
12587 for p in `eval "$output_verbose_link_cmd"`; do
12588 case $p in
12590 -L* | -R* | -l*)
12591 # Some compilers place space between "-{L,R}" and the path.
12592 # Remove the space.
12593 if test $p = "-L" ||
12594 test $p = "-R"; then
12595 prev=$p
12596 continue
12597 else
12598 prev=
12601 if test "$pre_test_object_deps_done" = no; then
12602 case $p in
12603 -L* | -R*)
12604 # Internal compiler library paths should come after those
12605 # provided the user. The postdeps already come after the
12606 # user supplied libs so there is no need to process them.
12607 if test -z "$compiler_lib_search_path_CXX"; then
12608 compiler_lib_search_path_CXX="${prev}${p}"
12609 else
12610 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12613 # The "-l" case would never come before the object being
12614 # linked, so don't bother handling this case.
12615 esac
12616 else
12617 if test -z "$postdeps_CXX"; then
12618 postdeps_CXX="${prev}${p}"
12619 else
12620 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12625 *.$objext)
12626 # This assumes that the test object file only shows up
12627 # once in the compiler output.
12628 if test "$p" = "conftest.$objext"; then
12629 pre_test_object_deps_done=yes
12630 continue
12633 if test "$pre_test_object_deps_done" = no; then
12634 if test -z "$predep_objects_CXX"; then
12635 predep_objects_CXX="$p"
12636 else
12637 predep_objects_CXX="$predep_objects_CXX $p"
12639 else
12640 if test -z "$postdep_objects_CXX"; then
12641 postdep_objects_CXX="$p"
12642 else
12643 postdep_objects_CXX="$postdep_objects_CXX $p"
12648 *) ;; # Ignore the rest.
12650 esac
12651 done
12653 # Clean up.
12654 rm -f a.out a.exe
12655 else
12656 echo "libtool.m4: error: problem compiling CXX test program"
12659 $RM -f confest.$objext
12661 # PORTME: override above test on systems where it is broken
12662 case $host_os in
12663 interix[3-9]*)
12664 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12665 # hack all around it, let's just trust "g++" to DTRT.
12666 predep_objects_CXX=
12667 postdep_objects_CXX=
12668 postdeps_CXX=
12671 linux*)
12672 case `$CC -V 2>&1 | sed 5q` in
12673 *Sun\ C*)
12674 # Sun C++ 5.9
12676 # The more standards-conforming stlport4 library is
12677 # incompatible with the Cstd library. Avoid specifying
12678 # it if it's in CXXFLAGS. Ignore libCrun as
12679 # -library=stlport4 depends on it.
12680 case " $CXX $CXXFLAGS " in
12681 *" -library=stlport4 "*)
12682 solaris_use_stlport4=yes
12684 esac
12686 if test "$solaris_use_stlport4" != yes; then
12687 postdeps_CXX='-library=Cstd -library=Crun'
12690 esac
12693 solaris*)
12694 case $cc_basename in
12695 CC*)
12696 # The more standards-conforming stlport4 library is
12697 # incompatible with the Cstd library. Avoid specifying
12698 # it if it's in CXXFLAGS. Ignore libCrun as
12699 # -library=stlport4 depends on it.
12700 case " $CXX $CXXFLAGS " in
12701 *" -library=stlport4 "*)
12702 solaris_use_stlport4=yes
12704 esac
12706 # Adding this requires a known-good setup of shared libraries for
12707 # Sun compiler versions before 5.6, else PIC objects from an old
12708 # archive will be linked into the output, leading to subtle bugs.
12709 if test "$solaris_use_stlport4" != yes; then
12710 postdeps_CXX='-library=Cstd -library=Crun'
12713 esac
12715 esac
12718 case " $postdeps_CXX " in
12719 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12720 esac
12721 compiler_lib_search_dirs_CXX=
12722 if test -n "${compiler_lib_search_path_CXX}"; then
12723 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12756 lt_prog_compiler_wl_CXX=
12757 lt_prog_compiler_pic_CXX=
12758 lt_prog_compiler_static_CXX=
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12761 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12763 # C++ specific cases for pic, static, wl, etc.
12764 if test "$GXX" = yes; then
12765 lt_prog_compiler_wl_CXX='-Wl,'
12766 lt_prog_compiler_static_CXX='-static'
12768 case $host_os in
12769 aix*)
12770 # All AIX code is PIC.
12771 if test "$host_cpu" = ia64; then
12772 # AIX 5 now supports IA64 processor
12773 lt_prog_compiler_static_CXX='-Bstatic'
12775 lt_prog_compiler_pic_CXX='-fPIC'
12778 amigaos*)
12779 case $host_cpu in
12780 powerpc)
12781 # see comment about AmigaOS4 .so support
12782 lt_prog_compiler_pic_CXX='-fPIC'
12784 m68k)
12785 # FIXME: we need at least 68020 code to build shared libraries, but
12786 # adding the `-m68020' flag to GCC prevents building anything better,
12787 # like `-m68040'.
12788 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12790 esac
12793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12794 # PIC is the default for these OSes.
12796 mingw* | cygwin* | os2* | pw32* | cegcc*)
12797 # This hack is so that the source file can tell whether it is being
12798 # built for inclusion in a dll (and should export symbols for example).
12799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12800 # (--disable-auto-import) libraries
12801 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12803 darwin* | rhapsody*)
12804 # PIC is the default on this platform
12805 # Common symbols not allowed in MH_DYLIB files
12806 lt_prog_compiler_pic_CXX='-fno-common'
12808 *djgpp*)
12809 # DJGPP does not support shared libraries at all
12810 lt_prog_compiler_pic_CXX=
12812 haiku*)
12813 # PIC is the default for Haiku.
12814 # The "-static" flag exists, but is broken.
12815 lt_prog_compiler_static_CXX=
12817 interix[3-9]*)
12818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12819 # Instead, we relocate shared libraries at runtime.
12821 sysv4*MP*)
12822 if test -d /usr/nec; then
12823 lt_prog_compiler_pic_CXX=-Kconform_pic
12826 hpux*)
12827 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12828 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12829 # sets the default TLS model and affects inlining.
12830 case $host_cpu in
12831 hppa*64*)
12834 lt_prog_compiler_pic_CXX='-fPIC'
12836 esac
12838 *qnx* | *nto*)
12839 # QNX uses GNU C++, but need to define -shared option too, otherwise
12840 # it will coredump.
12841 lt_prog_compiler_pic_CXX='-fPIC -shared'
12844 lt_prog_compiler_pic_CXX='-fPIC'
12846 esac
12847 else
12848 case $host_os in
12849 aix[4-9]*)
12850 # All AIX code is PIC.
12851 if test "$host_cpu" = ia64; then
12852 # AIX 5 now supports IA64 processor
12853 lt_prog_compiler_static_CXX='-Bstatic'
12854 else
12855 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12858 chorus*)
12859 case $cc_basename in
12860 cxch68*)
12861 # Green Hills C++ Compiler
12862 # _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"
12864 esac
12866 dgux*)
12867 case $cc_basename in
12868 ec++*)
12869 lt_prog_compiler_pic_CXX='-KPIC'
12871 ghcx*)
12872 # Green Hills C++ Compiler
12873 lt_prog_compiler_pic_CXX='-pic'
12877 esac
12879 freebsd* | dragonfly*)
12880 # FreeBSD uses GNU C++
12882 hpux9* | hpux10* | hpux11*)
12883 case $cc_basename in
12884 CC*)
12885 lt_prog_compiler_wl_CXX='-Wl,'
12886 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12887 if test "$host_cpu" != ia64; then
12888 lt_prog_compiler_pic_CXX='+Z'
12891 aCC*)
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12894 case $host_cpu in
12895 hppa*64*|ia64*)
12896 # +Z the default
12899 lt_prog_compiler_pic_CXX='+Z'
12901 esac
12905 esac
12907 interix*)
12908 # This is c89, which is MS Visual C++ (no shared libs)
12909 # Anyone wants to do a port?
12911 irix5* | irix6* | nonstopux*)
12912 case $cc_basename in
12913 CC*)
12914 lt_prog_compiler_wl_CXX='-Wl,'
12915 lt_prog_compiler_static_CXX='-non_shared'
12916 # CC pic flag -KPIC is the default.
12920 esac
12922 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12923 case $cc_basename in
12924 KCC*)
12925 # KAI C++ Compiler
12926 lt_prog_compiler_wl_CXX='--backend -Wl,'
12927 lt_prog_compiler_pic_CXX='-fPIC'
12929 ecpc* )
12930 # old Intel C++ for x86_64 which still supported -KPIC.
12931 lt_prog_compiler_wl_CXX='-Wl,'
12932 lt_prog_compiler_pic_CXX='-KPIC'
12933 lt_prog_compiler_static_CXX='-static'
12935 icpc* )
12936 # Intel C++, used to be incompatible with GCC.
12937 # ICC 10 doesn't accept -KPIC any more.
12938 lt_prog_compiler_wl_CXX='-Wl,'
12939 lt_prog_compiler_pic_CXX='-fPIC'
12940 lt_prog_compiler_static_CXX='-static'
12942 pgCC* | pgcpp*)
12943 # Portland Group C++ compiler
12944 lt_prog_compiler_wl_CXX='-Wl,'
12945 lt_prog_compiler_pic_CXX='-fpic'
12946 lt_prog_compiler_static_CXX='-Bstatic'
12948 cxx*)
12949 # Compaq C++
12950 # Make sure the PIC flag is empty. It appears that all Alpha
12951 # Linux and Compaq Tru64 Unix objects are PIC.
12952 lt_prog_compiler_pic_CXX=
12953 lt_prog_compiler_static_CXX='-non_shared'
12955 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12956 # IBM XL 8.0, 9.0 on PPC and BlueGene
12957 lt_prog_compiler_wl_CXX='-Wl,'
12958 lt_prog_compiler_pic_CXX='-qpic'
12959 lt_prog_compiler_static_CXX='-qstaticlink'
12962 case `$CC -V 2>&1 | sed 5q` in
12963 *Sun\ C*)
12964 # Sun C++ 5.9
12965 lt_prog_compiler_pic_CXX='-KPIC'
12966 lt_prog_compiler_static_CXX='-Bstatic'
12967 lt_prog_compiler_wl_CXX='-Qoption ld '
12969 esac
12971 esac
12973 lynxos*)
12975 m88k*)
12977 mvs*)
12978 case $cc_basename in
12979 cxx*)
12980 lt_prog_compiler_pic_CXX='-W c,exportall'
12984 esac
12986 netbsd*)
12988 *qnx* | *nto*)
12989 # QNX uses GNU C++, but need to define -shared option too, otherwise
12990 # it will coredump.
12991 lt_prog_compiler_pic_CXX='-fPIC -shared'
12993 osf3* | osf4* | osf5*)
12994 case $cc_basename in
12995 KCC*)
12996 lt_prog_compiler_wl_CXX='--backend -Wl,'
12998 RCC*)
12999 # Rational C++ 2.4.1
13000 lt_prog_compiler_pic_CXX='-pic'
13002 cxx*)
13003 # Digital/Compaq C++
13004 lt_prog_compiler_wl_CXX='-Wl,'
13005 # Make sure the PIC flag is empty. It appears that all Alpha
13006 # Linux and Compaq Tru64 Unix objects are PIC.
13007 lt_prog_compiler_pic_CXX=
13008 lt_prog_compiler_static_CXX='-non_shared'
13012 esac
13014 psos*)
13016 solaris*)
13017 case $cc_basename in
13018 CC*)
13019 # Sun C++ 4.2, 5.x and Centerline C++
13020 lt_prog_compiler_pic_CXX='-KPIC'
13021 lt_prog_compiler_static_CXX='-Bstatic'
13022 lt_prog_compiler_wl_CXX='-Qoption ld '
13024 gcx*)
13025 # Green Hills C++ Compiler
13026 lt_prog_compiler_pic_CXX='-PIC'
13030 esac
13032 sunos4*)
13033 case $cc_basename in
13034 CC*)
13035 # Sun C++ 4.x
13036 lt_prog_compiler_pic_CXX='-pic'
13037 lt_prog_compiler_static_CXX='-Bstatic'
13039 lcc*)
13040 # Lucid
13041 lt_prog_compiler_pic_CXX='-pic'
13045 esac
13047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13048 case $cc_basename in
13049 CC*)
13050 lt_prog_compiler_wl_CXX='-Wl,'
13051 lt_prog_compiler_pic_CXX='-KPIC'
13052 lt_prog_compiler_static_CXX='-Bstatic'
13054 esac
13056 tandem*)
13057 case $cc_basename in
13058 NCC*)
13059 # NonStop-UX NCC 3.20
13060 lt_prog_compiler_pic_CXX='-KPIC'
13064 esac
13066 vxworks*)
13069 lt_prog_compiler_can_build_shared_CXX=no
13071 esac
13074 case $host_os in
13075 # For platforms which do not support PIC, -DPIC is meaningless:
13076 *djgpp*)
13077 lt_prog_compiler_pic_CXX=
13080 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13082 esac
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13084 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13089 # Check to make sure the PIC flag actually works.
13091 if test -n "$lt_prog_compiler_pic_CXX"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13093 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13094 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 lt_cv_prog_compiler_pic_works_CXX=no
13098 ac_outfile=conftest.$ac_objext
13099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13100 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13101 # Insert the option either (1) after the last *FLAGS variable, or
13102 # (2) before a word containing "conftest.", or (3) at the end.
13103 # Note that $ac_compile itself does not contain backslashes and begins
13104 # with a dollar sign (not a hyphen), so the echo should work correctly.
13105 # The option is referenced via a variable to avoid confusing sed.
13106 lt_compile=`echo "$ac_compile" | $SED \
13107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13109 -e 's:$: $lt_compiler_flag:'`
13110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13111 (eval "$lt_compile" 2>conftest.err)
13112 ac_status=$?
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 if (exit $ac_status) && test -s "$ac_outfile"; then
13116 # The compiler can only warn and ignore the option if not recognized
13117 # So say no if there are warnings other than the usual output.
13118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13121 lt_cv_prog_compiler_pic_works_CXX=yes
13124 $RM conftest*
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13128 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13130 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13131 case $lt_prog_compiler_pic_CXX in
13132 "" | " "*) ;;
13133 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13134 esac
13135 else
13136 lt_prog_compiler_pic_CXX=
13137 lt_prog_compiler_can_build_shared_CXX=no
13145 # Check to make sure the static flag actually works.
13147 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13149 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13150 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 lt_cv_prog_compiler_static_works_CXX=no
13154 save_LDFLAGS="$LDFLAGS"
13155 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13156 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13157 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13158 # The linker can only warn and ignore the option if not recognized
13159 # So say no if there are warnings
13160 if test -s conftest.err; then
13161 # Append any errors to the config.log.
13162 cat conftest.err 1>&5
13163 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13165 if diff conftest.exp conftest.er2 >/dev/null; then
13166 lt_cv_prog_compiler_static_works_CXX=yes
13168 else
13169 lt_cv_prog_compiler_static_works_CXX=yes
13172 $RM -r conftest*
13173 LDFLAGS="$save_LDFLAGS"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13177 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13179 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13181 else
13182 lt_prog_compiler_static_CXX=
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13190 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 lt_cv_prog_compiler_c_o_CXX=no
13194 $RM -r conftest 2>/dev/null
13195 mkdir conftest
13196 cd conftest
13197 mkdir out
13198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13200 lt_compiler_flag="-o out/conftest2.$ac_objext"
13201 # Insert the option either (1) after the last *FLAGS variable, or
13202 # (2) before a word containing "conftest.", or (3) at the end.
13203 # Note that $ac_compile itself does not contain backslashes and begins
13204 # with a dollar sign (not a hyphen), so the echo should work correctly.
13205 lt_compile=`echo "$ac_compile" | $SED \
13206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13208 -e 's:$: $lt_compiler_flag:'`
13209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13210 (eval "$lt_compile" 2>out/conftest.err)
13211 ac_status=$?
13212 cat out/conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13215 then
13216 # The compiler can only warn and ignore the option if not recognized
13217 # So say no if there are warnings
13218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13221 lt_cv_prog_compiler_c_o_CXX=yes
13224 chmod u+w . 2>&5
13225 $RM conftest*
13226 # SGI C++ compiler will create directory out/ii_files/ for
13227 # template instantiation
13228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13229 $RM out/* && rmdir out
13230 cd ..
13231 $RM -r conftest
13232 $RM conftest*
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13236 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13242 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 lt_cv_prog_compiler_c_o_CXX=no
13246 $RM -r conftest 2>/dev/null
13247 mkdir conftest
13248 cd conftest
13249 mkdir out
13250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13252 lt_compiler_flag="-o out/conftest2.$ac_objext"
13253 # Insert the option either (1) after the last *FLAGS variable, or
13254 # (2) before a word containing "conftest.", or (3) at the end.
13255 # Note that $ac_compile itself does not contain backslashes and begins
13256 # with a dollar sign (not a hyphen), so the echo should work correctly.
13257 lt_compile=`echo "$ac_compile" | $SED \
13258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13260 -e 's:$: $lt_compiler_flag:'`
13261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13262 (eval "$lt_compile" 2>out/conftest.err)
13263 ac_status=$?
13264 cat out/conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13267 then
13268 # The compiler can only warn and ignore the option if not recognized
13269 # So say no if there are warnings
13270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13273 lt_cv_prog_compiler_c_o_CXX=yes
13276 chmod u+w . 2>&5
13277 $RM conftest*
13278 # SGI C++ compiler will create directory out/ii_files/ for
13279 # template instantiation
13280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13281 $RM out/* && rmdir out
13282 cd ..
13283 $RM -r conftest
13284 $RM conftest*
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13288 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13293 hard_links="nottested"
13294 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13295 # do not overwrite the value of need_locks provided by the user
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13297 $as_echo_n "checking if we can lock with hard links... " >&6; }
13298 hard_links=yes
13299 $RM conftest*
13300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13301 touch conftest.a
13302 ln conftest.a conftest.b 2>&5 || hard_links=no
13303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13305 $as_echo "$hard_links" >&6; }
13306 if test "$hard_links" = no; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13308 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13309 need_locks=warn
13311 else
13312 need_locks=no
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13320 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13321 case $host_os in
13322 aix[4-9]*)
13323 # If we're using GNU nm, then we don't want the "-C" option.
13324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13325 # Also, AIX nm treats weak defined symbols like other global defined
13326 # symbols, whereas GNU nm marks them as "W".
13327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13328 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'
13329 else
13330 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'
13333 pw32*)
13334 export_symbols_cmds_CXX="$ltdll_cmds"
13336 cygwin* | mingw* | cegcc*)
13337 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'
13340 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13342 esac
13343 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13346 $as_echo "$ld_shlibs_CXX" >&6; }
13347 test "$ld_shlibs_CXX" = no && can_build_shared=no
13349 with_gnu_ld_CXX=$with_gnu_ld
13357 # Do we need to explicitly link libc?
13359 case "x$archive_cmds_need_lc_CXX" in
13360 x|xyes)
13361 # Assume -lc should be added
13362 archive_cmds_need_lc_CXX=yes
13364 if test "$enable_shared" = yes && test "$GCC" = yes; then
13365 case $archive_cmds_CXX in
13366 *'~'*)
13367 # FIXME: we may have to deal with multi-command sequences.
13369 '$CC '*)
13370 # Test whether the compiler implicitly links with -lc since on some
13371 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13372 # to ld, don't add -lc before -lgcc.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13374 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13375 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 $RM conftest*
13379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13382 (eval $ac_compile) 2>&5
13383 ac_status=$?
13384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13385 test $ac_status = 0; } 2>conftest.err; then
13386 soname=conftest
13387 lib=conftest
13388 libobjs=conftest.$ac_objext
13389 deplibs=
13390 wl=$lt_prog_compiler_wl_CXX
13391 pic_flag=$lt_prog_compiler_pic_CXX
13392 compiler_flags=-v
13393 linker_flags=-v
13394 verstring=
13395 output_objdir=.
13396 libname=conftest
13397 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13398 allow_undefined_flag_CXX=
13399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13400 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13401 ac_status=$?
13402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13403 test $ac_status = 0; }
13404 then
13405 lt_cv_archive_cmds_need_lc_CXX=no
13406 else
13407 lt_cv_archive_cmds_need_lc_CXX=yes
13409 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13410 else
13411 cat conftest.err 1>&5
13413 $RM conftest*
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13417 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13418 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13420 esac
13423 esac
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13489 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13491 library_names_spec=
13492 libname_spec='lib$name'
13493 soname_spec=
13494 shrext_cmds=".so"
13495 postinstall_cmds=
13496 postuninstall_cmds=
13497 finish_cmds=
13498 finish_eval=
13499 shlibpath_var=
13500 shlibpath_overrides_runpath=unknown
13501 version_type=none
13502 dynamic_linker="$host_os ld.so"
13503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13504 need_lib_prefix=unknown
13505 hardcode_into_libs=no
13507 # when you set need_version to no, make sure it does not cause -set_version
13508 # flags to be left without arguments
13509 need_version=unknown
13511 case $host_os in
13512 aix3*)
13513 version_type=linux
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13515 shlibpath_var=LIBPATH
13517 # AIX 3 has no versioning support, so we append a major version to the name.
13518 soname_spec='${libname}${release}${shared_ext}$major'
13521 aix[4-9]*)
13522 version_type=linux
13523 need_lib_prefix=no
13524 need_version=no
13525 hardcode_into_libs=yes
13526 if test "$host_cpu" = ia64; then
13527 # AIX 5 supports IA64
13528 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 else
13531 # With GCC up to 2.95.x, collect2 would create an import file
13532 # for dependence libraries. The import file would start with
13533 # the line `#! .'. This would cause the generated library to
13534 # depend on `.', always an invalid library. This was fixed in
13535 # development snapshots of GCC prior to 3.0.
13536 case $host_os in
13537 aix4 | aix4.[01] | aix4.[01].*)
13538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13539 echo ' yes '
13540 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13542 else
13543 can_build_shared=no
13546 esac
13547 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13548 # soname into executable. Probably we can add versioning support to
13549 # collect2, so additional links can be useful in future.
13550 if test "$aix_use_runtimelinking" = yes; then
13551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13552 # instead of lib<name>.a to let people know that these are not
13553 # typical AIX shared libraries.
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555 else
13556 # We preserve .a as extension for shared libraries through AIX4.2
13557 # and later when we are not doing run time linking.
13558 library_names_spec='${libname}${release}.a $libname.a'
13559 soname_spec='${libname}${release}${shared_ext}$major'
13561 shlibpath_var=LIBPATH
13565 amigaos*)
13566 case $host_cpu in
13567 powerpc)
13568 # Since July 2007 AmigaOS4 officially supports .so libraries.
13569 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572 m68k)
13573 library_names_spec='$libname.ixlibrary $libname.a'
13574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13575 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'
13577 esac
13580 beos*)
13581 library_names_spec='${libname}${shared_ext}'
13582 dynamic_linker="$host_os ld.so"
13583 shlibpath_var=LIBRARY_PATH
13586 bsdi[45]*)
13587 version_type=linux
13588 need_version=no
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13595 # the default ld.so.conf also contains /usr/contrib/lib and
13596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13597 # libtool to hard-code these into programs
13600 cygwin* | mingw* | pw32* | cegcc*)
13601 version_type=windows
13602 shrext_cmds=".dll"
13603 need_version=no
13604 need_lib_prefix=no
13606 case $GCC,$host_os in
13607 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13608 library_names_spec='$libname.dll.a'
13609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13610 postinstall_cmds='base_file=`basename \${file}`~
13611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13612 dldir=$destdir/`dirname \$dlpath`~
13613 test -d \$dldir || mkdir -p \$dldir~
13614 $install_prog $dir/$dlname \$dldir/$dlname~
13615 chmod a+x \$dldir/$dlname~
13616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13620 dlpath=$dir/\$dldll~
13621 $RM \$dlpath'
13622 shlibpath_overrides_runpath=yes
13624 case $host_os in
13625 cygwin*)
13626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13630 mingw* | cegcc*)
13631 # MinGW DLLs use traditional 'lib' prefix
13632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13634 pw32*)
13635 # pw32 DLLs use 'pw' prefix rather than 'lib'
13636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13638 esac
13642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13644 esac
13645 dynamic_linker='Win32 ld.exe'
13646 # FIXME: first we should search . and the directory the executable is in
13647 shlibpath_var=PATH
13650 darwin* | rhapsody*)
13651 dynamic_linker="$host_os dyld"
13652 version_type=darwin
13653 need_lib_prefix=no
13654 need_version=no
13655 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13656 soname_spec='${libname}${release}${major}$shared_ext'
13657 shlibpath_overrides_runpath=yes
13658 shlibpath_var=DYLD_LIBRARY_PATH
13659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13664 dgux*)
13665 version_type=linux
13666 need_lib_prefix=no
13667 need_version=no
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 shlibpath_var=LD_LIBRARY_PATH
13673 freebsd* | dragonfly*)
13674 # DragonFly does not have aout. When/if they implement a new
13675 # versioning mechanism, adjust this.
13676 if test -x /usr/bin/objformat; then
13677 objformat=`/usr/bin/objformat`
13678 else
13679 case $host_os in
13680 freebsd[23].*) objformat=aout ;;
13681 *) objformat=elf ;;
13682 esac
13684 version_type=freebsd-$objformat
13685 case $version_type in
13686 freebsd-elf*)
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13688 need_version=no
13689 need_lib_prefix=no
13691 freebsd-*)
13692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13693 need_version=yes
13695 esac
13696 shlibpath_var=LD_LIBRARY_PATH
13697 case $host_os in
13698 freebsd2.*)
13699 shlibpath_overrides_runpath=yes
13701 freebsd3.[01]* | freebsdelf3.[01]*)
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13707 shlibpath_overrides_runpath=no
13708 hardcode_into_libs=yes
13710 *) # from 4.6 on, and DragonFly
13711 shlibpath_overrides_runpath=yes
13712 hardcode_into_libs=yes
13714 esac
13717 gnu*)
13718 version_type=linux
13719 need_lib_prefix=no
13720 need_version=no
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13722 soname_spec='${libname}${release}${shared_ext}$major'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 hardcode_into_libs=yes
13727 haiku*)
13728 version_type=linux
13729 need_lib_prefix=no
13730 need_version=no
13731 dynamic_linker="$host_os runtime_loader"
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13733 soname_spec='${libname}${release}${shared_ext}$major'
13734 shlibpath_var=LIBRARY_PATH
13735 shlibpath_overrides_runpath=yes
13736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13737 hardcode_into_libs=yes
13740 hpux9* | hpux10* | hpux11*)
13741 # Give a soname corresponding to the major version so that dld.sl refuses to
13742 # link against other versions.
13743 version_type=sunos
13744 need_lib_prefix=no
13745 need_version=no
13746 case $host_cpu in
13747 ia64*)
13748 shrext_cmds='.so'
13749 hardcode_into_libs=yes
13750 dynamic_linker="$host_os dld.so"
13751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 if test "X$HPUX_IA64_MODE" = X32; then
13756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13757 else
13758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13762 hppa*64*)
13763 shrext_cmds='.sl'
13764 hardcode_into_libs=yes
13765 dynamic_linker="$host_os dld.sl"
13766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13774 shrext_cmds='.sl'
13775 dynamic_linker="$host_os dld.sl"
13776 shlibpath_var=SHLIB_PATH
13777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13781 esac
13782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13783 postinstall_cmds='chmod 555 $lib'
13784 # or fails outright, so override atomically:
13785 install_override_mode=555
13788 interix[3-9]*)
13789 version_type=linux
13790 need_lib_prefix=no
13791 need_version=no
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13793 soname_spec='${libname}${release}${shared_ext}$major'
13794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 shlibpath_overrides_runpath=no
13797 hardcode_into_libs=yes
13800 irix5* | irix6* | nonstopux*)
13801 case $host_os in
13802 nonstopux*) version_type=nonstopux ;;
13804 if test "$lt_cv_prog_gnu_ld" = yes; then
13805 version_type=linux
13806 else
13807 version_type=irix
13808 fi ;;
13809 esac
13810 need_lib_prefix=no
13811 need_version=no
13812 soname_spec='${libname}${release}${shared_ext}$major'
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13814 case $host_os in
13815 irix5* | nonstopux*)
13816 libsuff= shlibsuff=
13819 case $LD in # libtool.m4 will add one of these switches to LD
13820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13821 libsuff= shlibsuff= libmagic=32-bit;;
13822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13823 libsuff=32 shlibsuff=N32 libmagic=N32;;
13824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13826 *) libsuff= shlibsuff= libmagic=never-match;;
13827 esac
13829 esac
13830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13831 shlibpath_overrides_runpath=no
13832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13834 hardcode_into_libs=yes
13837 # No shared lib support for Linux oldld, aout, or coff.
13838 linux*oldld* | linux*aout* | linux*coff*)
13839 dynamic_linker=no
13842 # This must be Linux ELF.
13843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13844 version_type=linux
13845 need_lib_prefix=no
13846 need_version=no
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848 soname_spec='${libname}${release}${shared_ext}$major'
13849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 shlibpath_overrides_runpath=no
13853 # Some binutils ld are patched to set DT_RUNPATH
13854 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 lt_cv_shlibpath_overrides_runpath=no
13858 save_LDFLAGS=$LDFLAGS
13859 save_libdir=$libdir
13860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13866 main ()
13870 return 0;
13872 _ACEOF
13873 if ac_fn_cxx_try_link "$LINENO"; then :
13874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13875 lt_cv_shlibpath_overrides_runpath=yes
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 LDFLAGS=$save_LDFLAGS
13881 libdir=$save_libdir
13885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13887 # This implies no fast_install, which is unacceptable.
13888 # Some rework will be needed to allow for fast_install
13889 # before this can be enabled.
13890 hardcode_into_libs=yes
13892 # Append ld.so.conf contents to the search path
13893 if test -f /etc/ld.so.conf; then
13894 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' ' '`
13895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13898 # We used to test for /lib/ld.so.1 and disable shared libraries on
13899 # powerpc, because MkLinux only supported shared libraries with the
13900 # GNU dynamic linker. Since this was broken with cross compilers,
13901 # most powerpc-linux boxes support dynamic linking these days and
13902 # people can always --disable-shared, the test was removed, and we
13903 # assume the GNU/Linux dynamic linker is in use.
13904 dynamic_linker='GNU/Linux ld.so'
13907 netbsd*)
13908 version_type=sunos
13909 need_lib_prefix=no
13910 need_version=no
13911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13914 dynamic_linker='NetBSD (a.out) ld.so'
13915 else
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 dynamic_linker='NetBSD ld.elf_so'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=yes
13922 hardcode_into_libs=yes
13925 newsos6)
13926 version_type=linux
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928 shlibpath_var=LD_LIBRARY_PATH
13929 shlibpath_overrides_runpath=yes
13932 *nto* | *qnx*)
13933 version_type=qnx
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 shlibpath_overrides_runpath=no
13940 hardcode_into_libs=yes
13941 dynamic_linker='ldqnx.so'
13944 openbsd*)
13945 version_type=sunos
13946 sys_lib_dlsearch_path_spec="/usr/lib"
13947 need_lib_prefix=no
13948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13949 case $host_os in
13950 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13951 *) need_version=no ;;
13952 esac
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13957 case $host_os in
13958 openbsd2.[89] | openbsd2.[89].*)
13959 shlibpath_overrides_runpath=no
13962 shlibpath_overrides_runpath=yes
13964 esac
13965 else
13966 shlibpath_overrides_runpath=yes
13970 os2*)
13971 libname_spec='$name'
13972 shrext_cmds=".dll"
13973 need_lib_prefix=no
13974 library_names_spec='$libname${shared_ext} $libname.a'
13975 dynamic_linker='OS/2 ld.exe'
13976 shlibpath_var=LIBPATH
13979 osf3* | osf4* | osf5*)
13980 version_type=osf
13981 need_lib_prefix=no
13982 need_version=no
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 shlibpath_var=LD_LIBRARY_PATH
13986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13990 rdos*)
13991 dynamic_linker=no
13994 solaris*)
13995 version_type=linux
13996 need_lib_prefix=no
13997 need_version=no
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13999 soname_spec='${libname}${release}${shared_ext}$major'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14002 hardcode_into_libs=yes
14003 # ldd complains unless libraries are executable
14004 postinstall_cmds='chmod +x $lib'
14007 sunos4*)
14008 version_type=sunos
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14011 shlibpath_var=LD_LIBRARY_PATH
14012 shlibpath_overrides_runpath=yes
14013 if test "$with_gnu_ld" = yes; then
14014 need_lib_prefix=no
14016 need_version=yes
14019 sysv4 | sysv4.3*)
14020 version_type=linux
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 shlibpath_var=LD_LIBRARY_PATH
14024 case $host_vendor in
14025 sni)
14026 shlibpath_overrides_runpath=no
14027 need_lib_prefix=no
14028 runpath_var=LD_RUN_PATH
14030 siemens)
14031 need_lib_prefix=no
14033 motorola)
14034 need_lib_prefix=no
14035 need_version=no
14036 shlibpath_overrides_runpath=no
14037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14039 esac
14042 sysv4*MP*)
14043 if test -d /usr/nec ;then
14044 version_type=linux
14045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14046 soname_spec='$libname${shared_ext}.$major'
14047 shlibpath_var=LD_LIBRARY_PATH
14051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14052 version_type=freebsd-elf
14053 need_lib_prefix=no
14054 need_version=no
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14056 soname_spec='${libname}${release}${shared_ext}$major'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=yes
14059 hardcode_into_libs=yes
14060 if test "$with_gnu_ld" = yes; then
14061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14062 else
14063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14064 case $host_os in
14065 sco3.2v5*)
14066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14068 esac
14070 sys_lib_dlsearch_path_spec='/usr/lib'
14073 tpf*)
14074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=no
14081 hardcode_into_libs=yes
14084 uts4*)
14085 version_type=linux
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 shlibpath_var=LD_LIBRARY_PATH
14092 dynamic_linker=no
14094 esac
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14096 $as_echo "$dynamic_linker" >&6; }
14097 test "$dynamic_linker" = no && can_build_shared=no
14099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14100 if test "$GCC" = yes; then
14101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14150 hardcode_action_CXX=
14151 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14152 test -n "$runpath_var_CXX" ||
14153 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14155 # We can hardcode non-existent directories.
14156 if test "$hardcode_direct_CXX" != no &&
14157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14158 # have to relink, otherwise we might link with an installed library
14159 # when we should be linking with a yet-to-be-installed one
14160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14161 test "$hardcode_minus_L_CXX" != no; then
14162 # Linking always hardcodes the temporary library directory.
14163 hardcode_action_CXX=relink
14164 else
14165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14166 hardcode_action_CXX=immediate
14168 else
14169 # We cannot hardcode anything, or else we can only hardcode existing
14170 # directories.
14171 hardcode_action_CXX=unsupported
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14174 $as_echo "$hardcode_action_CXX" >&6; }
14176 if test "$hardcode_action_CXX" = relink ||
14177 test "$inherit_rpath_CXX" = yes; then
14178 # Fast installation is not supported
14179 enable_fast_install=no
14180 elif test "$shlibpath_overrides_runpath" = yes ||
14181 test "$enable_shared" = no; then
14182 # Fast installation is not necessary
14183 enable_fast_install=needless
14192 fi # test -n "$compiler"
14194 CC=$lt_save_CC
14195 LDCXX=$LD
14196 LD=$lt_save_LD
14197 GCC=$lt_save_GCC
14198 with_gnu_ld=$lt_save_with_gnu_ld
14199 lt_cv_path_LDCXX=$lt_cv_path_LD
14200 lt_cv_path_LD=$lt_save_path_LD
14201 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14202 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14203 fi # test "$_lt_caught_CXX_error" != yes
14205 ac_ext=c
14206 ac_cpp='$CPP $CPPFLAGS'
14207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14223 ac_config_commands="$ac_config_commands libtool"
14228 # Only expand once:
14235 if test "${multilib}" = "yes"; then
14236 multilib_arg="--enable-multilib"
14237 else
14238 multilib_arg=
14241 ac_config_files="$ac_config_files Makefile"
14244 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14247 cat >confcache <<\_ACEOF
14248 # This file is a shell script that caches the results of configure
14249 # tests run on this system so they can be shared between configure
14250 # scripts and configure runs, see configure's option --config-cache.
14251 # It is not useful on other systems. If it contains results you don't
14252 # want to keep, you may remove or edit it.
14254 # config.status only pays attention to the cache file if you give it
14255 # the --recheck option to rerun configure.
14257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14259 # following values.
14261 _ACEOF
14263 # The following way of writing the cache mishandles newlines in values,
14264 # but we know of no workaround that is simple, portable, and efficient.
14265 # So, we kill variables containing newlines.
14266 # Ultrix sh set writes to stderr and can't be redirected directly,
14267 # and sets the high bit in the cache file unless we assign to the vars.
14269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14270 eval ac_val=\$$ac_var
14271 case $ac_val in #(
14272 *${as_nl}*)
14273 case $ac_var in #(
14274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14276 esac
14277 case $ac_var in #(
14278 _ | IFS | as_nl) ;; #(
14279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14280 *) { eval $ac_var=; unset $ac_var;} ;;
14281 esac ;;
14282 esac
14283 done
14285 (set) 2>&1 |
14286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14287 *${as_nl}ac_space=\ *)
14288 # `set' does not quote correctly, so add quotes: double-quote
14289 # substitution turns \\\\ into \\, and sed turns \\ into \.
14290 sed -n \
14291 "s/'/'\\\\''/g;
14292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14293 ;; #(
14295 # `set' quotes correctly as required by POSIX, so do not add quotes.
14296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14298 esac |
14299 sort
14301 sed '
14302 /^ac_cv_env_/b end
14303 t clear
14304 :clear
14305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14306 t end
14307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14308 :end' >>confcache
14309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14310 if test -w "$cache_file"; then
14311 test "x$cache_file" != "x/dev/null" &&
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14313 $as_echo "$as_me: updating cache $cache_file" >&6;}
14314 cat confcache >$cache_file
14315 else
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14320 rm -f confcache
14322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14323 # Let make expand exec_prefix.
14324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14326 # Transform confdefs.h into DEFS.
14327 # Protect against shell expansion while executing Makefile rules.
14328 # Protect against Makefile macro expansion.
14330 # If the first sed substitution is executed (which looks for macros that
14331 # take arguments), then branch to the quote section. Otherwise,
14332 # look for a macro that doesn't take arguments.
14333 ac_script='
14334 :mline
14335 /\\$/{
14337 s,\\\n,,
14338 b mline
14340 t clear
14341 :clear
14342 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14343 t quote
14344 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14345 t quote
14346 b any
14347 :quote
14348 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14349 s/\[/\\&/g
14350 s/\]/\\&/g
14351 s/\$/$$/g
14353 :any
14356 s/^\n//
14357 s/\n/ /g
14361 DEFS=`sed -n "$ac_script" confdefs.h`
14364 ac_libobjs=
14365 ac_ltlibobjs=
14366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14367 # 1. Remove the extension, and $U if already installed.
14368 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14369 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14370 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14371 # will be set to the directory where LIBOBJS objects are built.
14372 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14373 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14374 done
14375 LIBOBJS=$ac_libobjs
14377 LTLIBOBJS=$ac_ltlibobjs
14380 if test -n "$EXEEXT"; then
14381 am__EXEEXT_TRUE=
14382 am__EXEEXT_FALSE='#'
14383 else
14384 am__EXEEXT_TRUE='#'
14385 am__EXEEXT_FALSE=
14388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14389 as_fn_error "conditional \"AMDEP\" was never defined.
14390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14392 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14393 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14396 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14397 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14400 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14401 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14405 : ${CONFIG_STATUS=./config.status}
14406 ac_write_fail=0
14407 ac_clean_files_save=$ac_clean_files
14408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14410 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14411 as_write_fail=0
14412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14413 #! $SHELL
14414 # Generated by $as_me.
14415 # Run this file to recreate the current configuration.
14416 # Compiler output produced by configure, useful for debugging
14417 # configure, is in config.log if it exists.
14419 debug=false
14420 ac_cs_recheck=false
14421 ac_cs_silent=false
14423 SHELL=\${CONFIG_SHELL-$SHELL}
14424 export SHELL
14425 _ASEOF
14426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14427 ## -------------------- ##
14428 ## M4sh Initialization. ##
14429 ## -------------------- ##
14431 # Be more Bourne compatible
14432 DUALCASE=1; export DUALCASE # for MKS sh
14433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14434 emulate sh
14435 NULLCMD=:
14436 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14437 # is contrary to our usage. Disable this feature.
14438 alias -g '${1+"$@"}'='"$@"'
14439 setopt NO_GLOB_SUBST
14440 else
14441 case `(set -o) 2>/dev/null` in #(
14442 *posix*) :
14443 set -o posix ;; #(
14444 *) :
14446 esac
14450 as_nl='
14452 export as_nl
14453 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14454 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14456 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14457 # Prefer a ksh shell builtin over an external printf program on Solaris,
14458 # but without wasting forks for bash or zsh.
14459 if test -z "$BASH_VERSION$ZSH_VERSION" \
14460 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14461 as_echo='print -r --'
14462 as_echo_n='print -rn --'
14463 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14464 as_echo='printf %s\n'
14465 as_echo_n='printf %s'
14466 else
14467 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14468 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14469 as_echo_n='/usr/ucb/echo -n'
14470 else
14471 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14472 as_echo_n_body='eval
14473 arg=$1;
14474 case $arg in #(
14475 *"$as_nl"*)
14476 expr "X$arg" : "X\\(.*\\)$as_nl";
14477 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14478 esac;
14479 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14481 export as_echo_n_body
14482 as_echo_n='sh -c $as_echo_n_body as_echo'
14484 export as_echo_body
14485 as_echo='sh -c $as_echo_body as_echo'
14488 # The user is always right.
14489 if test "${PATH_SEPARATOR+set}" != set; then
14490 PATH_SEPARATOR=:
14491 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14492 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14493 PATH_SEPARATOR=';'
14498 # IFS
14499 # We need space, tab and new line, in precisely that order. Quoting is
14500 # there to prevent editors from complaining about space-tab.
14501 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14502 # splitting by setting IFS to empty value.)
14503 IFS=" "" $as_nl"
14505 # Find who we are. Look in the path if we contain no directory separator.
14506 case $0 in #((
14507 *[\\/]* ) as_myself=$0 ;;
14508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14514 done
14515 IFS=$as_save_IFS
14518 esac
14519 # We did not find ourselves, most probably we were run as `sh COMMAND'
14520 # in which case we are not to be found in the path.
14521 if test "x$as_myself" = x; then
14522 as_myself=$0
14524 if test ! -f "$as_myself"; then
14525 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14526 exit 1
14529 # Unset variables that we do not need and which cause bugs (e.g. in
14530 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14531 # suppresses any "Segmentation fault" message there. '((' could
14532 # trigger a bug in pdksh 5.2.14.
14533 for as_var in BASH_ENV ENV MAIL MAILPATH
14534 do eval test x\${$as_var+set} = xset \
14535 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14536 done
14537 PS1='$ '
14538 PS2='> '
14539 PS4='+ '
14541 # NLS nuisances.
14542 LC_ALL=C
14543 export LC_ALL
14544 LANGUAGE=C
14545 export LANGUAGE
14547 # CDPATH.
14548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14551 # as_fn_error ERROR [LINENO LOG_FD]
14552 # ---------------------------------
14553 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14554 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14555 # script with status $?, using 1 if that was 0.
14556 as_fn_error ()
14558 as_status=$?; test $as_status -eq 0 && as_status=1
14559 if test "$3"; then
14560 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14561 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14563 $as_echo "$as_me: error: $1" >&2
14564 as_fn_exit $as_status
14565 } # as_fn_error
14568 # as_fn_set_status STATUS
14569 # -----------------------
14570 # Set $? to STATUS, without forking.
14571 as_fn_set_status ()
14573 return $1
14574 } # as_fn_set_status
14576 # as_fn_exit STATUS
14577 # -----------------
14578 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14579 as_fn_exit ()
14581 set +e
14582 as_fn_set_status $1
14583 exit $1
14584 } # as_fn_exit
14586 # as_fn_unset VAR
14587 # ---------------
14588 # Portably unset VAR.
14589 as_fn_unset ()
14591 { eval $1=; unset $1;}
14593 as_unset=as_fn_unset
14594 # as_fn_append VAR VALUE
14595 # ----------------------
14596 # Append the text in VALUE to the end of the definition contained in VAR. Take
14597 # advantage of any shell optimizations that allow amortized linear growth over
14598 # repeated appends, instead of the typical quadratic growth present in naive
14599 # implementations.
14600 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14601 eval 'as_fn_append ()
14603 eval $1+=\$2
14605 else
14606 as_fn_append ()
14608 eval $1=\$$1\$2
14610 fi # as_fn_append
14612 # as_fn_arith ARG...
14613 # ------------------
14614 # Perform arithmetic evaluation on the ARGs, and store the result in the
14615 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14616 # must be portable across $(()) and expr.
14617 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14618 eval 'as_fn_arith ()
14620 as_val=$(( $* ))
14622 else
14623 as_fn_arith ()
14625 as_val=`expr "$@" || test $? -eq 1`
14627 fi # as_fn_arith
14630 if expr a : '\(a\)' >/dev/null 2>&1 &&
14631 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14632 as_expr=expr
14633 else
14634 as_expr=false
14637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14638 as_basename=basename
14639 else
14640 as_basename=false
14643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14644 as_dirname=dirname
14645 else
14646 as_dirname=false
14649 as_me=`$as_basename -- "$0" ||
14650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14651 X"$0" : 'X\(//\)$' \| \
14652 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14653 $as_echo X/"$0" |
14654 sed '/^.*\/\([^/][^/]*\)\/*$/{
14655 s//\1/
14658 /^X\/\(\/\/\)$/{
14659 s//\1/
14662 /^X\/\(\/\).*/{
14663 s//\1/
14666 s/.*/./; q'`
14668 # Avoid depending upon Character Ranges.
14669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14672 as_cr_digits='0123456789'
14673 as_cr_alnum=$as_cr_Letters$as_cr_digits
14675 ECHO_C= ECHO_N= ECHO_T=
14676 case `echo -n x` in #(((((
14677 -n*)
14678 case `echo 'xy\c'` in
14679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14680 xy) ECHO_C='\c';;
14681 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14682 ECHO_T=' ';;
14683 esac;;
14685 ECHO_N='-n';;
14686 esac
14688 rm -f conf$$ conf$$.exe conf$$.file
14689 if test -d conf$$.dir; then
14690 rm -f conf$$.dir/conf$$.file
14691 else
14692 rm -f conf$$.dir
14693 mkdir conf$$.dir 2>/dev/null
14695 if (echo >conf$$.file) 2>/dev/null; then
14696 if ln -s conf$$.file conf$$ 2>/dev/null; then
14697 as_ln_s='ln -s'
14698 # ... but there are two gotchas:
14699 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14700 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14701 # In both cases, we have to default to `cp -p'.
14702 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14703 as_ln_s='cp -p'
14704 elif ln conf$$.file conf$$ 2>/dev/null; then
14705 as_ln_s=ln
14706 else
14707 as_ln_s='cp -p'
14709 else
14710 as_ln_s='cp -p'
14712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14713 rmdir conf$$.dir 2>/dev/null
14716 # as_fn_mkdir_p
14717 # -------------
14718 # Create "$as_dir" as a directory, including parents if necessary.
14719 as_fn_mkdir_p ()
14722 case $as_dir in #(
14723 -*) as_dir=./$as_dir;;
14724 esac
14725 test -d "$as_dir" || eval $as_mkdir_p || {
14726 as_dirs=
14727 while :; do
14728 case $as_dir in #(
14729 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14730 *) as_qdir=$as_dir;;
14731 esac
14732 as_dirs="'$as_qdir' $as_dirs"
14733 as_dir=`$as_dirname -- "$as_dir" ||
14734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14735 X"$as_dir" : 'X\(//\)[^/]' \| \
14736 X"$as_dir" : 'X\(//\)$' \| \
14737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14738 $as_echo X"$as_dir" |
14739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14740 s//\1/
14743 /^X\(\/\/\)[^/].*/{
14744 s//\1/
14747 /^X\(\/\/\)$/{
14748 s//\1/
14751 /^X\(\/\).*/{
14752 s//\1/
14755 s/.*/./; q'`
14756 test -d "$as_dir" && break
14757 done
14758 test -z "$as_dirs" || eval "mkdir $as_dirs"
14759 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14762 } # as_fn_mkdir_p
14763 if mkdir -p . 2>/dev/null; then
14764 as_mkdir_p='mkdir -p "$as_dir"'
14765 else
14766 test -d ./-p && rmdir ./-p
14767 as_mkdir_p=false
14770 if test -x / >/dev/null 2>&1; then
14771 as_test_x='test -x'
14772 else
14773 if ls -dL / >/dev/null 2>&1; then
14774 as_ls_L_option=L
14775 else
14776 as_ls_L_option=
14778 as_test_x='
14779 eval sh -c '\''
14780 if test -d "$1"; then
14781 test -d "$1/.";
14782 else
14783 case $1 in #(
14784 -*)set "./$1";;
14785 esac;
14786 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14787 ???[sx]*):;;*)false;;esac;fi
14788 '\'' sh
14791 as_executable_p=$as_test_x
14793 # Sed expression to map a string onto a valid CPP name.
14794 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14796 # Sed expression to map a string onto a valid variable name.
14797 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14800 exec 6>&1
14801 ## ----------------------------------- ##
14802 ## Main body of $CONFIG_STATUS script. ##
14803 ## ----------------------------------- ##
14804 _ASEOF
14805 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808 # Save the log message, to keep $0 and so on meaningful, and to
14809 # report actual input values of CONFIG_FILES etc. instead of their
14810 # values after options handling.
14811 ac_log="
14812 This file was extended by package-unused $as_me version-unused, which was
14813 generated by GNU Autoconf 2.64. Invocation command line was
14815 CONFIG_FILES = $CONFIG_FILES
14816 CONFIG_HEADERS = $CONFIG_HEADERS
14817 CONFIG_LINKS = $CONFIG_LINKS
14818 CONFIG_COMMANDS = $CONFIG_COMMANDS
14819 $ $0 $@
14821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14824 _ACEOF
14826 case $ac_config_files in *"
14827 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14828 esac
14832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14833 # Files that config.status was made for.
14834 config_files="$ac_config_files"
14835 config_commands="$ac_config_commands"
14837 _ACEOF
14839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14840 ac_cs_usage="\
14841 \`$as_me' instantiates files and other configuration actions
14842 from templates according to the current configuration. Unless the files
14843 and actions are specified as TAGs, all are instantiated by default.
14845 Usage: $0 [OPTION]... [TAG]...
14847 -h, --help print this help, then exit
14848 -V, --version print version number and configuration settings, then exit
14849 -q, --quiet, --silent
14850 do not print progress messages
14851 -d, --debug don't remove temporary files
14852 --recheck update $as_me by reconfiguring in the same conditions
14853 --file=FILE[:TEMPLATE]
14854 instantiate the configuration file FILE
14856 Configuration files:
14857 $config_files
14859 Configuration commands:
14860 $config_commands
14862 Report bugs to <libsanitizer>."
14864 _ACEOF
14865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14866 ac_cs_version="\\
14867 package-unused config.status version-unused
14868 configured by $0, generated by GNU Autoconf 2.64,
14869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14871 Copyright (C) 2009 Free Software Foundation, Inc.
14872 This config.status script is free software; the Free Software Foundation
14873 gives unlimited permission to copy, distribute and modify it."
14875 ac_pwd='$ac_pwd'
14876 srcdir='$srcdir'
14877 INSTALL='$INSTALL'
14878 MKDIR_P='$MKDIR_P'
14879 AWK='$AWK'
14880 test -n "\$AWK" || AWK=awk
14881 _ACEOF
14883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14884 # The default lists apply if the user does not specify any file.
14885 ac_need_defaults=:
14886 while test $# != 0
14888 case $1 in
14889 --*=*)
14890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14891 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14892 ac_shift=:
14895 ac_option=$1
14896 ac_optarg=$2
14897 ac_shift=shift
14899 esac
14901 case $ac_option in
14902 # Handling of the options.
14903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14904 ac_cs_recheck=: ;;
14905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14906 $as_echo "$ac_cs_version"; exit ;;
14907 --debug | --debu | --deb | --de | --d | -d )
14908 debug=: ;;
14909 --file | --fil | --fi | --f )
14910 $ac_shift
14911 case $ac_optarg in
14912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14913 esac
14914 as_fn_append CONFIG_FILES " '$ac_optarg'"
14915 ac_need_defaults=false;;
14916 --he | --h | --help | --hel | -h )
14917 $as_echo "$ac_cs_usage"; exit ;;
14918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14920 ac_cs_silent=: ;;
14922 # This is an error.
14923 -*) as_fn_error "unrecognized option: \`$1'
14924 Try \`$0 --help' for more information." ;;
14926 *) as_fn_append ac_config_targets " $1"
14927 ac_need_defaults=false ;;
14929 esac
14930 shift
14931 done
14933 ac_configure_extra_args=
14935 if $ac_cs_silent; then
14936 exec 6>/dev/null
14937 ac_configure_extra_args="$ac_configure_extra_args --silent"
14940 _ACEOF
14941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14942 if \$ac_cs_recheck; then
14943 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14944 shift
14945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14946 CONFIG_SHELL='$SHELL'
14947 export CONFIG_SHELL
14948 exec "\$@"
14951 _ACEOF
14952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14953 exec 5>>config.log
14955 echo
14956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14957 ## Running $as_me. ##
14958 _ASBOX
14959 $as_echo "$ac_log"
14960 } >&5
14962 _ACEOF
14963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14965 # INIT-COMMANDS
14968 srcdir="$srcdir"
14969 host="$host"
14970 target="$target"
14971 with_multisubdir="$with_multisubdir"
14972 with_multisrctop="$with_multisrctop"
14973 with_target_subdir="$with_target_subdir"
14974 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14975 multi_basedir="$multi_basedir"
14976 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14977 CC="$CC"
14978 CXX="$CXX"
14979 GFORTRAN="$GFORTRAN"
14980 GCJ="$GCJ"
14981 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14984 # The HP-UX ksh and POSIX shell print the target directory to stdout
14985 # if CDPATH is set.
14986 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14988 sed_quote_subst='$sed_quote_subst'
14989 double_quote_subst='$double_quote_subst'
14990 delay_variable_subst='$delay_variable_subst'
14991 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14992 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14993 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14994 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14995 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14996 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14997 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14998 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14999 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15000 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15001 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15002 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15003 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15004 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15005 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15006 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15007 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15008 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15009 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15010 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15011 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15012 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15013 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15014 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15015 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15016 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15017 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15018 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15019 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15020 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15021 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15022 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15023 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15024 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15025 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15026 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15027 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15028 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15029 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15030 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15031 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15032 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15033 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15034 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15035 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15036 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15037 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15039 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"`'
15040 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15041 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15042 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15043 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15044 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15045 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15046 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15047 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15048 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15049 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15050 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15051 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15052 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15053 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15054 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15055 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15056 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15057 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15058 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15059 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15060 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15061 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15062 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15063 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15064 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15065 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15066 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15067 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15068 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15069 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15070 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15071 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15072 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15073 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15074 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15075 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15076 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15077 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15078 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15079 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15080 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15081 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15082 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15083 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15084 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15085 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15086 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15087 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15088 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15089 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15090 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15091 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15092 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15093 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15094 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15095 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15096 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15097 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15098 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15099 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15100 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15101 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15102 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15103 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15104 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15105 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15106 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15107 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15108 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15109 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15110 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15111 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15112 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15113 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15114 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15115 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15116 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15117 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15118 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15119 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15120 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15121 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15122 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15123 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15124 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15125 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15126 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15127 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15128 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15129 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15130 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15131 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15132 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15133 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15134 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15135 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15136 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15137 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15138 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15139 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15140 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15141 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15142 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15143 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15144 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15145 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15146 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15147 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15148 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15149 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15150 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15151 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15152 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15153 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15154 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15155 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15156 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15157 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15158 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15159 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15160 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15161 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15162 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15163 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15164 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15165 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15167 LTCC='$LTCC'
15168 LTCFLAGS='$LTCFLAGS'
15169 compiler='$compiler_DEFAULT'
15171 # A function that is used when there is no print builtin or printf.
15172 func_fallback_echo ()
15174 eval 'cat <<_LTECHO_EOF
15176 _LTECHO_EOF'
15179 # Quote evaled strings.
15180 for var in SHELL \
15181 ECHO \
15182 SED \
15183 GREP \
15184 EGREP \
15185 FGREP \
15186 LD \
15187 NM \
15188 LN_S \
15189 lt_SP2NL \
15190 lt_NL2SP \
15191 reload_flag \
15192 OBJDUMP \
15193 deplibs_check_method \
15194 file_magic_cmd \
15195 AR \
15196 AR_FLAGS \
15197 STRIP \
15198 RANLIB \
15199 CC \
15200 CFLAGS \
15201 compiler \
15202 lt_cv_sys_global_symbol_pipe \
15203 lt_cv_sys_global_symbol_to_cdecl \
15204 lt_cv_sys_global_symbol_to_c_name_address \
15205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15206 lt_prog_compiler_no_builtin_flag \
15207 lt_prog_compiler_wl \
15208 lt_prog_compiler_pic \
15209 lt_prog_compiler_static \
15210 lt_cv_prog_compiler_c_o \
15211 need_locks \
15212 DSYMUTIL \
15213 NMEDIT \
15214 LIPO \
15215 OTOOL \
15216 OTOOL64 \
15217 shrext_cmds \
15218 export_dynamic_flag_spec \
15219 whole_archive_flag_spec \
15220 compiler_needs_object \
15221 with_gnu_ld \
15222 allow_undefined_flag \
15223 no_undefined_flag \
15224 hardcode_libdir_flag_spec \
15225 hardcode_libdir_flag_spec_ld \
15226 hardcode_libdir_separator \
15227 fix_srcfile_path \
15228 exclude_expsyms \
15229 include_expsyms \
15230 file_list_spec \
15231 variables_saved_for_relink \
15232 libname_spec \
15233 library_names_spec \
15234 soname_spec \
15235 install_override_mode \
15236 finish_eval \
15237 old_striplib \
15238 striplib \
15239 compiler_lib_search_dirs \
15240 predep_objects \
15241 postdep_objects \
15242 predeps \
15243 postdeps \
15244 compiler_lib_search_path \
15245 LD_CXX \
15246 reload_flag_CXX \
15247 compiler_CXX \
15248 lt_prog_compiler_no_builtin_flag_CXX \
15249 lt_prog_compiler_wl_CXX \
15250 lt_prog_compiler_pic_CXX \
15251 lt_prog_compiler_static_CXX \
15252 lt_cv_prog_compiler_c_o_CXX \
15253 export_dynamic_flag_spec_CXX \
15254 whole_archive_flag_spec_CXX \
15255 compiler_needs_object_CXX \
15256 with_gnu_ld_CXX \
15257 allow_undefined_flag_CXX \
15258 no_undefined_flag_CXX \
15259 hardcode_libdir_flag_spec_CXX \
15260 hardcode_libdir_flag_spec_ld_CXX \
15261 hardcode_libdir_separator_CXX \
15262 fix_srcfile_path_CXX \
15263 exclude_expsyms_CXX \
15264 include_expsyms_CXX \
15265 file_list_spec_CXX \
15266 compiler_lib_search_dirs_CXX \
15267 predep_objects_CXX \
15268 postdep_objects_CXX \
15269 predeps_CXX \
15270 postdeps_CXX \
15271 compiler_lib_search_path_CXX; do
15272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15273 *[\\\\\\\`\\"\\\$]*)
15274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15279 esac
15280 done
15282 # Double-quote double-evaled strings.
15283 for var in reload_cmds \
15284 old_postinstall_cmds \
15285 old_postuninstall_cmds \
15286 old_archive_cmds \
15287 extract_expsyms_cmds \
15288 old_archive_from_new_cmds \
15289 old_archive_from_expsyms_cmds \
15290 archive_cmds \
15291 archive_expsym_cmds \
15292 module_cmds \
15293 module_expsym_cmds \
15294 export_symbols_cmds \
15295 prelink_cmds \
15296 postinstall_cmds \
15297 postuninstall_cmds \
15298 finish_cmds \
15299 sys_lib_search_path_spec \
15300 sys_lib_dlsearch_path_spec \
15301 reload_cmds_CXX \
15302 old_archive_cmds_CXX \
15303 old_archive_from_new_cmds_CXX \
15304 old_archive_from_expsyms_cmds_CXX \
15305 archive_cmds_CXX \
15306 archive_expsym_cmds_CXX \
15307 module_cmds_CXX \
15308 module_expsym_cmds_CXX \
15309 export_symbols_cmds_CXX \
15310 prelink_cmds_CXX; do
15311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15312 *[\\\\\\\`\\"\\\$]*)
15313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15318 esac
15319 done
15321 ac_aux_dir='$ac_aux_dir'
15322 xsi_shell='$xsi_shell'
15323 lt_shell_append='$lt_shell_append'
15325 # See if we are running on zsh, and set the options which allow our
15326 # commands through without removal of \ escapes INIT.
15327 if test -n "\${ZSH_VERSION+set}" ; then
15328 setopt NO_GLOB_SUBST
15332 PACKAGE='$PACKAGE'
15333 VERSION='$VERSION'
15334 TIMESTAMP='$TIMESTAMP'
15335 RM='$RM'
15336 ofile='$ofile'
15343 _ACEOF
15345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15347 # Handling of arguments.
15348 for ac_config_target in $ac_config_targets
15350 case $ac_config_target in
15351 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15353 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15354 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15355 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15356 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15357 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15359 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15360 esac
15361 done
15364 # If the user did not use the arguments to specify the items to instantiate,
15365 # then the envvar interface is used. Set only those that are not.
15366 # We use the long form for the default assignment because of an extremely
15367 # bizarre bug on SunOS 4.1.3.
15368 if $ac_need_defaults; then
15369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15370 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15373 # Have a temporary directory for convenience. Make it in the build tree
15374 # simply because there is no reason against having it here, and in addition,
15375 # creating and moving files from /tmp can sometimes cause problems.
15376 # Hook for its removal unless debugging.
15377 # Note that there is a small window in which the directory will not be cleaned:
15378 # after its creation but before its name has been assigned to `$tmp'.
15379 $debug ||
15381 tmp=
15382 trap 'exit_status=$?
15383 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15385 trap 'as_fn_exit 1' 1 2 13 15
15387 # Create a (secure) tmp directory for tmp files.
15390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15391 test -n "$tmp" && test -d "$tmp"
15392 } ||
15394 tmp=./conf$$-$RANDOM
15395 (umask 077 && mkdir "$tmp")
15396 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15398 # Set up the scripts for CONFIG_FILES section.
15399 # No need to generate them if there are no CONFIG_FILES.
15400 # This happens for instance with `./config.status config.h'.
15401 if test -n "$CONFIG_FILES"; then
15404 ac_cr=`echo X | tr X '\015'`
15405 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15406 # But we know of no other shell where ac_cr would be empty at this
15407 # point, so we can use a bashism as a fallback.
15408 if test "x$ac_cr" = x; then
15409 eval ac_cr=\$\'\\r\'
15411 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15412 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15413 ac_cs_awk_cr='\r'
15414 else
15415 ac_cs_awk_cr=$ac_cr
15418 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15419 _ACEOF
15423 echo "cat >conf$$subs.awk <<_ACEOF" &&
15424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15425 echo "_ACEOF"
15426 } >conf$$subs.sh ||
15427 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15429 ac_delim='%!_!# '
15430 for ac_last_try in false false false false false :; do
15431 . ./conf$$subs.sh ||
15432 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15435 if test $ac_delim_n = $ac_delim_num; then
15436 break
15437 elif $ac_last_try; then
15438 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15439 else
15440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15442 done
15443 rm -f conf$$subs.sh
15445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15447 _ACEOF
15448 sed -n '
15450 s/^/S["/; s/!.*/"]=/
15453 s/^[^!]*!//
15454 :repl
15455 t repl
15456 s/'"$ac_delim"'$//
15457 t delim
15460 s/\(.\{148\}\).*/\1/
15461 t more1
15462 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15465 b repl
15466 :more1
15467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15470 s/.\{148\}//
15471 t nl
15472 :delim
15474 s/\(.\{148\}\).*/\1/
15475 t more2
15476 s/["\\]/\\&/g; s/^/"/; s/$/"/
15479 :more2
15480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15483 s/.\{148\}//
15484 t delim
15485 ' <conf$$subs.awk | sed '
15486 /^[^""]/{
15488 s/\n//
15490 ' >>$CONFIG_STATUS || ac_write_fail=1
15491 rm -f conf$$subs.awk
15492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15493 _ACAWK
15494 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15495 for (key in S) S_is_set[key] = 1
15496 FS = "\a"
15500 line = $ 0
15501 nfields = split(line, field, "@")
15502 substed = 0
15503 len = length(field[1])
15504 for (i = 2; i < nfields; i++) {
15505 key = field[i]
15506 keylen = length(key)
15507 if (S_is_set[key]) {
15508 value = S[key]
15509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15510 len += length(value) + length(field[++i])
15511 substed = 1
15512 } else
15513 len += 1 + keylen
15516 print line
15519 _ACAWK
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15523 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15524 else
15526 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15527 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15528 _ACEOF
15530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15532 # trailing colons and then remove the whole line if VPATH becomes empty
15533 # (actually we leave an empty line to preserve line numbers).
15534 if test "x$srcdir" = x.; then
15535 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15536 s/:*\$(srcdir):*/:/
15537 s/:*\${srcdir}:*/:/
15538 s/:*@srcdir@:*/:/
15539 s/^\([^=]*=[ ]*\):*/\1/
15540 s/:*$//
15541 s/^[^=]*=[ ]*$//
15545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546 fi # test -n "$CONFIG_FILES"
15549 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15550 shift
15551 for ac_tag
15553 case $ac_tag in
15554 :[FHLC]) ac_mode=$ac_tag; continue;;
15555 esac
15556 case $ac_mode$ac_tag in
15557 :[FHL]*:*);;
15558 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15559 :[FH]-) ac_tag=-:-;;
15560 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15561 esac
15562 ac_save_IFS=$IFS
15563 IFS=:
15564 set x $ac_tag
15565 IFS=$ac_save_IFS
15566 shift
15567 ac_file=$1
15568 shift
15570 case $ac_mode in
15571 :L) ac_source=$1;;
15572 :[FH])
15573 ac_file_inputs=
15574 for ac_f
15576 case $ac_f in
15577 -) ac_f="$tmp/stdin";;
15578 *) # Look for the file first in the build tree, then in the source tree
15579 # (if the path is not absolute). The absolute path cannot be DOS-style,
15580 # because $ac_f cannot contain `:'.
15581 test -f "$ac_f" ||
15582 case $ac_f in
15583 [\\/$]*) false;;
15584 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15585 esac ||
15586 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15587 esac
15588 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15589 as_fn_append ac_file_inputs " '$ac_f'"
15590 done
15592 # Let's still pretend it is `configure' which instantiates (i.e., don't
15593 # use $as_me), people would be surprised to read:
15594 # /* config.h. Generated by config.status. */
15595 configure_input='Generated from '`
15596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15597 `' by configure.'
15598 if test x"$ac_file" != x-; then
15599 configure_input="$ac_file. $configure_input"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15601 $as_echo "$as_me: creating $ac_file" >&6;}
15603 # Neutralize special characters interpreted by sed in replacement strings.
15604 case $configure_input in #(
15605 *\&* | *\|* | *\\* )
15606 ac_sed_conf_input=`$as_echo "$configure_input" |
15607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15608 *) ac_sed_conf_input=$configure_input;;
15609 esac
15611 case $ac_tag in
15612 *:-:* | *:-) cat >"$tmp/stdin" \
15613 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15614 esac
15616 esac
15618 ac_dir=`$as_dirname -- "$ac_file" ||
15619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15620 X"$ac_file" : 'X\(//\)[^/]' \| \
15621 X"$ac_file" : 'X\(//\)$' \| \
15622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15623 $as_echo X"$ac_file" |
15624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15625 s//\1/
15628 /^X\(\/\/\)[^/].*/{
15629 s//\1/
15632 /^X\(\/\/\)$/{
15633 s//\1/
15636 /^X\(\/\).*/{
15637 s//\1/
15640 s/.*/./; q'`
15641 as_dir="$ac_dir"; as_fn_mkdir_p
15642 ac_builddir=.
15644 case "$ac_dir" in
15645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15648 # A ".." for each directory in $ac_dir_suffix.
15649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15650 case $ac_top_builddir_sub in
15651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15653 esac ;;
15654 esac
15655 ac_abs_top_builddir=$ac_pwd
15656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15657 # for backward compatibility:
15658 ac_top_builddir=$ac_top_build_prefix
15660 case $srcdir in
15661 .) # We are building in place.
15662 ac_srcdir=.
15663 ac_top_srcdir=$ac_top_builddir_sub
15664 ac_abs_top_srcdir=$ac_pwd ;;
15665 [\\/]* | ?:[\\/]* ) # Absolute name.
15666 ac_srcdir=$srcdir$ac_dir_suffix;
15667 ac_top_srcdir=$srcdir
15668 ac_abs_top_srcdir=$srcdir ;;
15669 *) # Relative name.
15670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15671 ac_top_srcdir=$ac_top_build_prefix$srcdir
15672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15673 esac
15674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15677 case $ac_mode in
15680 # CONFIG_FILE
15683 case $INSTALL in
15684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15685 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15686 esac
15687 ac_MKDIR_P=$MKDIR_P
15688 case $MKDIR_P in
15689 [\\/$]* | ?:[\\/]* ) ;;
15690 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15691 esac
15692 _ACEOF
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695 # If the template does not know about datarootdir, expand it.
15696 # FIXME: This hack should be removed a few years after 2.60.
15697 ac_datarootdir_hack=; ac_datarootdir_seen=
15698 ac_sed_dataroot='
15699 /datarootdir/ {
15703 /@datadir@/p
15704 /@docdir@/p
15705 /@infodir@/p
15706 /@localedir@/p
15707 /@mandir@/p'
15708 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15709 *datarootdir*) ac_datarootdir_seen=yes;;
15710 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15712 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15713 _ACEOF
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 ac_datarootdir_hack='
15716 s&@datadir@&$datadir&g
15717 s&@docdir@&$docdir&g
15718 s&@infodir@&$infodir&g
15719 s&@localedir@&$localedir&g
15720 s&@mandir@&$mandir&g
15721 s&\\\${datarootdir}&$datarootdir&g' ;;
15722 esac
15723 _ACEOF
15725 # Neutralize VPATH when `$srcdir' = `.'.
15726 # Shell code in configure.ac might set extrasub.
15727 # FIXME: do we really want to maintain this feature?
15728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729 ac_sed_extra="$ac_vpsub
15730 $extrasub
15731 _ACEOF
15732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15735 s|@configure_input@|$ac_sed_conf_input|;t t
15736 s&@top_builddir@&$ac_top_builddir_sub&;t t
15737 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15738 s&@srcdir@&$ac_srcdir&;t t
15739 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15740 s&@top_srcdir@&$ac_top_srcdir&;t t
15741 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15742 s&@builddir@&$ac_builddir&;t t
15743 s&@abs_builddir@&$ac_abs_builddir&;t t
15744 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15745 s&@INSTALL@&$ac_INSTALL&;t t
15746 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15747 $ac_datarootdir_hack
15749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15750 || as_fn_error "could not create $ac_file" "$LINENO" 5
15752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15753 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15756 which seems to be undefined. Please make sure it is defined." >&5
15757 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15758 which seems to be undefined. Please make sure it is defined." >&2;}
15760 rm -f "$tmp/stdin"
15761 case $ac_file in
15762 -) cat "$tmp/out" && rm -f "$tmp/out";;
15763 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15764 esac \
15765 || as_fn_error "could not create $ac_file" "$LINENO" 5
15769 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15770 $as_echo "$as_me: executing $ac_file commands" >&6;}
15772 esac
15775 case $ac_file$ac_mode in
15776 "default-1":C)
15777 # Only add multilib support code if we just rebuilt the top-level
15778 # Makefile.
15779 case " $CONFIG_FILES " in
15780 *" Makefile "*)
15781 ac_file=Makefile . ${multi_basedir}/config-ml.in
15783 esac ;;
15784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15785 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15786 # are listed without --file. Let's play safe and only enable the eval
15787 # if we detect the quoting.
15788 case $CONFIG_FILES in
15789 *\'*) eval set x "$CONFIG_FILES" ;;
15790 *) set x $CONFIG_FILES ;;
15791 esac
15792 shift
15793 for mf
15795 # Strip MF so we end up with the name of the file.
15796 mf=`echo "$mf" | sed -e 's/:.*$//'`
15797 # Check whether this is an Automake generated Makefile or not.
15798 # We used to match only the files named `Makefile.in', but
15799 # some people rename them; so instead we look at the file content.
15800 # Grep'ing the first line is not enough: some people post-process
15801 # each Makefile.in and add a new line on top of each file to say so.
15802 # Grep'ing the whole file is not good either: AIX grep has a line
15803 # limit of 2048, but all sed's we know have understand at least 4000.
15804 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15805 dirpart=`$as_dirname -- "$mf" ||
15806 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15807 X"$mf" : 'X\(//\)[^/]' \| \
15808 X"$mf" : 'X\(//\)$' \| \
15809 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15810 $as_echo X"$mf" |
15811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15812 s//\1/
15815 /^X\(\/\/\)[^/].*/{
15816 s//\1/
15819 /^X\(\/\/\)$/{
15820 s//\1/
15823 /^X\(\/\).*/{
15824 s//\1/
15827 s/.*/./; q'`
15828 else
15829 continue
15831 # Extract the definition of DEPDIR, am__include, and am__quote
15832 # from the Makefile without running `make'.
15833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15834 test -z "$DEPDIR" && continue
15835 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15836 test -z "am__include" && continue
15837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15838 # When using ansi2knr, U may be empty or an underscore; expand it
15839 U=`sed -n 's/^U = //p' < "$mf"`
15840 # Find all dependency output files, they are included files with
15841 # $(DEPDIR) in their names. We invoke sed twice because it is the
15842 # simplest approach to changing $(DEPDIR) to its actual value in the
15843 # expansion.
15844 for file in `sed -n "
15845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15847 # Make sure the directory exists.
15848 test -f "$dirpart/$file" && continue
15849 fdir=`$as_dirname -- "$file" ||
15850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15851 X"$file" : 'X\(//\)[^/]' \| \
15852 X"$file" : 'X\(//\)$' \| \
15853 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15854 $as_echo X"$file" |
15855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15856 s//\1/
15859 /^X\(\/\/\)[^/].*/{
15860 s//\1/
15863 /^X\(\/\/\)$/{
15864 s//\1/
15867 /^X\(\/\).*/{
15868 s//\1/
15871 s/.*/./; q'`
15872 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15873 # echo "creating $dirpart/$file"
15874 echo '# dummy' > "$dirpart/$file"
15875 done
15876 done
15879 "libtool":C)
15881 # See if we are running on zsh, and set the options which allow our
15882 # commands through without removal of \ escapes.
15883 if test -n "${ZSH_VERSION+set}" ; then
15884 setopt NO_GLOB_SUBST
15887 cfgfile="${ofile}T"
15888 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15889 $RM "$cfgfile"
15891 cat <<_LT_EOF >> "$cfgfile"
15892 #! $SHELL
15894 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15895 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15897 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15899 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15900 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15901 # Written by Gordon Matzigkeit, 1996
15903 # This file is part of GNU Libtool.
15905 # GNU Libtool is free software; you can redistribute it and/or
15906 # modify it under the terms of the GNU General Public License as
15907 # published by the Free Software Foundation; either version 2 of
15908 # the License, or (at your option) any later version.
15910 # As a special exception to the GNU General Public License,
15911 # if you distribute this file as part of a program or library that
15912 # is built using GNU Libtool, you may include this file under the
15913 # same distribution terms that you use for the rest of that program.
15915 # GNU Libtool is distributed in the hope that it will be useful,
15916 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15917 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15918 # GNU General Public License for more details.
15920 # You should have received a copy of the GNU General Public License
15921 # along with GNU Libtool; see the file COPYING. If not, a copy
15922 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15923 # obtained by writing to the Free Software Foundation, Inc.,
15924 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15927 # The names of the tagged configurations supported by this script.
15928 available_tags="CXX "
15930 # ### BEGIN LIBTOOL CONFIG
15932 # Which release of libtool.m4 was used?
15933 macro_version=$macro_version
15934 macro_revision=$macro_revision
15936 # Whether or not to build shared libraries.
15937 build_libtool_libs=$enable_shared
15939 # Whether or not to build static libraries.
15940 build_old_libs=$enable_static
15942 # What type of objects to build.
15943 pic_mode=$pic_mode
15945 # Whether or not to optimize for fast installation.
15946 fast_install=$enable_fast_install
15948 # Shell to use when invoking shell scripts.
15949 SHELL=$lt_SHELL
15951 # An echo program that protects backslashes.
15952 ECHO=$lt_ECHO
15954 # The host system.
15955 host_alias=$host_alias
15956 host=$host
15957 host_os=$host_os
15959 # The build system.
15960 build_alias=$build_alias
15961 build=$build
15962 build_os=$build_os
15964 # A sed program that does not truncate output.
15965 SED=$lt_SED
15967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15968 Xsed="\$SED -e 1s/^X//"
15970 # A grep program that handles long lines.
15971 GREP=$lt_GREP
15973 # An ERE matcher.
15974 EGREP=$lt_EGREP
15976 # A literal string matcher.
15977 FGREP=$lt_FGREP
15979 # A BSD- or MS-compatible name lister.
15980 NM=$lt_NM
15982 # Whether we need soft or hard links.
15983 LN_S=$lt_LN_S
15985 # What is the maximum length of a command?
15986 max_cmd_len=$max_cmd_len
15988 # Object file suffix (normally "o").
15989 objext=$ac_objext
15991 # Executable file suffix (normally "").
15992 exeext=$exeext
15994 # whether the shell understands "unset".
15995 lt_unset=$lt_unset
15997 # turn spaces into newlines.
15998 SP2NL=$lt_lt_SP2NL
16000 # turn newlines into spaces.
16001 NL2SP=$lt_lt_NL2SP
16003 # An object symbol dumper.
16004 OBJDUMP=$lt_OBJDUMP
16006 # Method to check whether dependent libraries are shared objects.
16007 deplibs_check_method=$lt_deplibs_check_method
16009 # Command to use when deplibs_check_method == "file_magic".
16010 file_magic_cmd=$lt_file_magic_cmd
16012 # The archiver.
16013 AR=$lt_AR
16014 AR_FLAGS=$lt_AR_FLAGS
16016 # A symbol stripping program.
16017 STRIP=$lt_STRIP
16019 # Commands used to install an old-style archive.
16020 RANLIB=$lt_RANLIB
16021 old_postinstall_cmds=$lt_old_postinstall_cmds
16022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16024 # Whether to use a lock for old archive extraction.
16025 lock_old_archive_extraction=$lock_old_archive_extraction
16027 # A C compiler.
16028 LTCC=$lt_CC
16030 # LTCC compiler flags.
16031 LTCFLAGS=$lt_CFLAGS
16033 # Take the output of nm and produce a listing of raw symbols and C names.
16034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16036 # Transform the output of nm in a proper C declaration.
16037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16039 # Transform the output of nm in a C name address pair.
16040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16042 # Transform the output of nm in a C name address pair when lib prefix is needed.
16043 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16045 # The name of the directory that contains temporary libtool files.
16046 objdir=$objdir
16048 # Used to examine libraries when file_magic_cmd begins with "file".
16049 MAGIC_CMD=$MAGIC_CMD
16051 # Must we lock files when doing compilation?
16052 need_locks=$lt_need_locks
16054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16055 DSYMUTIL=$lt_DSYMUTIL
16057 # Tool to change global to local symbols on Mac OS X.
16058 NMEDIT=$lt_NMEDIT
16060 # Tool to manipulate fat objects and archives on Mac OS X.
16061 LIPO=$lt_LIPO
16063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16064 OTOOL=$lt_OTOOL
16066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16067 OTOOL64=$lt_OTOOL64
16069 # Old archive suffix (normally "a").
16070 libext=$libext
16072 # Shared library suffix (normally ".so").
16073 shrext_cmds=$lt_shrext_cmds
16075 # The commands to extract the exported symbol list from a shared archive.
16076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16078 # Variables whose values should be saved in libtool wrapper scripts and
16079 # restored at link time.
16080 variables_saved_for_relink=$lt_variables_saved_for_relink
16082 # Do we need the "lib" prefix for modules?
16083 need_lib_prefix=$need_lib_prefix
16085 # Do we need a version for libraries?
16086 need_version=$need_version
16088 # Library versioning type.
16089 version_type=$version_type
16091 # Shared library runtime path variable.
16092 runpath_var=$runpath_var
16094 # Shared library path variable.
16095 shlibpath_var=$shlibpath_var
16097 # Is shlibpath searched before the hard-coded library search path?
16098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16100 # Format of library name prefix.
16101 libname_spec=$lt_libname_spec
16103 # List of archive names. First name is the real one, the rest are links.
16104 # The last name is the one that the linker finds with -lNAME
16105 library_names_spec=$lt_library_names_spec
16107 # The coded name of the library, if different from the real name.
16108 soname_spec=$lt_soname_spec
16110 # Permission mode override for installation of shared libraries.
16111 install_override_mode=$lt_install_override_mode
16113 # Command to use after installation of a shared archive.
16114 postinstall_cmds=$lt_postinstall_cmds
16116 # Command to use after uninstallation of a shared archive.
16117 postuninstall_cmds=$lt_postuninstall_cmds
16119 # Commands used to finish a libtool library installation in a directory.
16120 finish_cmds=$lt_finish_cmds
16122 # As "finish_cmds", except a single script fragment to be evaled but
16123 # not shown.
16124 finish_eval=$lt_finish_eval
16126 # Whether we should hardcode library paths into libraries.
16127 hardcode_into_libs=$hardcode_into_libs
16129 # Compile-time system search path for libraries.
16130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16132 # Run-time system search path for libraries.
16133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16135 # Whether dlopen is supported.
16136 dlopen_support=$enable_dlopen
16138 # Whether dlopen of programs is supported.
16139 dlopen_self=$enable_dlopen_self
16141 # Whether dlopen of statically linked programs is supported.
16142 dlopen_self_static=$enable_dlopen_self_static
16144 # Commands to strip libraries.
16145 old_striplib=$lt_old_striplib
16146 striplib=$lt_striplib
16149 # The linker used to build libraries.
16150 LD=$lt_LD
16152 # How to create reloadable object files.
16153 reload_flag=$lt_reload_flag
16154 reload_cmds=$lt_reload_cmds
16156 # Commands used to build an old-style archive.
16157 old_archive_cmds=$lt_old_archive_cmds
16159 # A language specific compiler.
16160 CC=$lt_compiler
16162 # Is the compiler the GNU compiler?
16163 with_gcc=$GCC
16165 # Compiler flag to turn off builtin functions.
16166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16168 # How to pass a linker flag through the compiler.
16169 wl=$lt_lt_prog_compiler_wl
16171 # Additional compiler flags for building library objects.
16172 pic_flag=$lt_lt_prog_compiler_pic
16174 # Compiler flag to prevent dynamic linking.
16175 link_static_flag=$lt_lt_prog_compiler_static
16177 # Does compiler simultaneously support -c and -o options?
16178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16180 # Whether or not to add -lc for building shared libraries.
16181 build_libtool_need_lc=$archive_cmds_need_lc
16183 # Whether or not to disallow shared libs when runtime libs are static.
16184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16186 # Compiler flag to allow reflexive dlopens.
16187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16189 # Compiler flag to generate shared objects directly from archives.
16190 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16192 # Whether the compiler copes with passing no objects directly.
16193 compiler_needs_object=$lt_compiler_needs_object
16195 # Create an old-style archive from a shared archive.
16196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16198 # Create a temporary old-style archive to link instead of a shared archive.
16199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16201 # Commands used to build a shared archive.
16202 archive_cmds=$lt_archive_cmds
16203 archive_expsym_cmds=$lt_archive_expsym_cmds
16205 # Commands used to build a loadable module if different from building
16206 # a shared archive.
16207 module_cmds=$lt_module_cmds
16208 module_expsym_cmds=$lt_module_expsym_cmds
16210 # Whether we are building with GNU ld or not.
16211 with_gnu_ld=$lt_with_gnu_ld
16213 # Flag that allows shared libraries with undefined symbols to be built.
16214 allow_undefined_flag=$lt_allow_undefined_flag
16216 # Flag that enforces no undefined symbols.
16217 no_undefined_flag=$lt_no_undefined_flag
16219 # Flag to hardcode \$libdir into a binary during linking.
16220 # This must work even if \$libdir does not exist
16221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16223 # If ld is used when linking, flag to hardcode \$libdir into a binary
16224 # during linking. This must work even if \$libdir does not exist.
16225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16227 # Whether we need a single "-rpath" flag with a separated argument.
16228 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16231 # DIR into the resulting binary.
16232 hardcode_direct=$hardcode_direct
16234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16235 # DIR into the resulting binary and the resulting library dependency is
16236 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16237 # library is relocated.
16238 hardcode_direct_absolute=$hardcode_direct_absolute
16240 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16241 # into the resulting binary.
16242 hardcode_minus_L=$hardcode_minus_L
16244 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16245 # into the resulting binary.
16246 hardcode_shlibpath_var=$hardcode_shlibpath_var
16248 # Set to "yes" if building a shared library automatically hardcodes DIR
16249 # into the library and all subsequent libraries and executables linked
16250 # against it.
16251 hardcode_automatic=$hardcode_automatic
16253 # Set to yes if linker adds runtime paths of dependent libraries
16254 # to runtime path list.
16255 inherit_rpath=$inherit_rpath
16257 # Whether libtool must link a program against all its dependency libraries.
16258 link_all_deplibs=$link_all_deplibs
16260 # Fix the shell variable \$srcfile for the compiler.
16261 fix_srcfile_path=$lt_fix_srcfile_path
16263 # Set to "yes" if exported symbols are required.
16264 always_export_symbols=$always_export_symbols
16266 # The commands to list exported symbols.
16267 export_symbols_cmds=$lt_export_symbols_cmds
16269 # Symbols that should not be listed in the preloaded symbols.
16270 exclude_expsyms=$lt_exclude_expsyms
16272 # Symbols that must always be exported.
16273 include_expsyms=$lt_include_expsyms
16275 # Commands necessary for linking programs (against libraries) with templates.
16276 prelink_cmds=$lt_prelink_cmds
16278 # Specify filename containing input files.
16279 file_list_spec=$lt_file_list_spec
16281 # How to hardcode a shared library path into an executable.
16282 hardcode_action=$hardcode_action
16284 # The directories searched by this compiler when creating a shared library.
16285 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16287 # Dependencies to place before and after the objects being linked to
16288 # create a shared library.
16289 predep_objects=$lt_predep_objects
16290 postdep_objects=$lt_postdep_objects
16291 predeps=$lt_predeps
16292 postdeps=$lt_postdeps
16294 # The library search path used internally by the compiler when linking
16295 # a shared library.
16296 compiler_lib_search_path=$lt_compiler_lib_search_path
16298 # ### END LIBTOOL CONFIG
16300 _LT_EOF
16302 case $host_os in
16303 aix3*)
16304 cat <<\_LT_EOF >> "$cfgfile"
16305 # AIX sometimes has problems with the GCC collect2 program. For some
16306 # reason, if we set the COLLECT_NAMES environment variable, the problems
16307 # vanish in a puff of smoke.
16308 if test "X${COLLECT_NAMES+set}" != Xset; then
16309 COLLECT_NAMES=
16310 export COLLECT_NAMES
16312 _LT_EOF
16314 esac
16317 ltmain="$ac_aux_dir/ltmain.sh"
16320 # We use sed instead of cat because bash on DJGPP gets confused if
16321 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16322 # text mode, it properly converts lines to CR/LF. This bash problem
16323 # is reportedly fixed, but why not run on old versions too?
16324 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16325 || (rm -f "$cfgfile"; exit 1)
16327 case $xsi_shell in
16328 yes)
16329 cat << \_LT_EOF >> "$cfgfile"
16331 # func_dirname file append nondir_replacement
16332 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16333 # otherwise set result to NONDIR_REPLACEMENT.
16334 func_dirname ()
16336 case ${1} in
16337 */*) func_dirname_result="${1%/*}${2}" ;;
16338 * ) func_dirname_result="${3}" ;;
16339 esac
16342 # func_basename file
16343 func_basename ()
16345 func_basename_result="${1##*/}"
16348 # func_dirname_and_basename file append nondir_replacement
16349 # perform func_basename and func_dirname in a single function
16350 # call:
16351 # dirname: Compute the dirname of FILE. If nonempty,
16352 # add APPEND to the result, otherwise set result
16353 # to NONDIR_REPLACEMENT.
16354 # value returned in "$func_dirname_result"
16355 # basename: Compute filename of FILE.
16356 # value retuned in "$func_basename_result"
16357 # Implementation must be kept synchronized with func_dirname
16358 # and func_basename. For efficiency, we do not delegate to
16359 # those functions but instead duplicate the functionality here.
16360 func_dirname_and_basename ()
16362 case ${1} in
16363 */*) func_dirname_result="${1%/*}${2}" ;;
16364 * ) func_dirname_result="${3}" ;;
16365 esac
16366 func_basename_result="${1##*/}"
16369 # func_stripname prefix suffix name
16370 # strip PREFIX and SUFFIX off of NAME.
16371 # PREFIX and SUFFIX must not contain globbing or regex special
16372 # characters, hashes, percent signs, but SUFFIX may contain a leading
16373 # dot (in which case that matches only a dot).
16374 func_stripname ()
16376 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16377 # positional parameters, so assign one to ordinary parameter first.
16378 func_stripname_result=${3}
16379 func_stripname_result=${func_stripname_result#"${1}"}
16380 func_stripname_result=${func_stripname_result%"${2}"}
16383 # func_opt_split
16384 func_opt_split ()
16386 func_opt_split_opt=${1%%=*}
16387 func_opt_split_arg=${1#*=}
16390 # func_lo2o object
16391 func_lo2o ()
16393 case ${1} in
16394 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16395 *) func_lo2o_result=${1} ;;
16396 esac
16399 # func_xform libobj-or-source
16400 func_xform ()
16402 func_xform_result=${1%.*}.lo
16405 # func_arith arithmetic-term...
16406 func_arith ()
16408 func_arith_result=$(( $* ))
16411 # func_len string
16412 # STRING may not start with a hyphen.
16413 func_len ()
16415 func_len_result=${#1}
16418 _LT_EOF
16420 *) # Bourne compatible functions.
16421 cat << \_LT_EOF >> "$cfgfile"
16423 # func_dirname file append nondir_replacement
16424 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16425 # otherwise set result to NONDIR_REPLACEMENT.
16426 func_dirname ()
16428 # Extract subdirectory from the argument.
16429 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16430 if test "X$func_dirname_result" = "X${1}"; then
16431 func_dirname_result="${3}"
16432 else
16433 func_dirname_result="$func_dirname_result${2}"
16437 # func_basename file
16438 func_basename ()
16440 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16444 # func_stripname prefix suffix name
16445 # strip PREFIX and SUFFIX off of NAME.
16446 # PREFIX and SUFFIX must not contain globbing or regex special
16447 # characters, hashes, percent signs, but SUFFIX may contain a leading
16448 # dot (in which case that matches only a dot).
16449 # func_strip_suffix prefix name
16450 func_stripname ()
16452 case ${2} in
16453 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16454 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16455 esac
16458 # sed scripts:
16459 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16460 my_sed_long_arg='1s/^-[^=]*=//'
16462 # func_opt_split
16463 func_opt_split ()
16465 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16466 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16469 # func_lo2o object
16470 func_lo2o ()
16472 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16475 # func_xform libobj-or-source
16476 func_xform ()
16478 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16481 # func_arith arithmetic-term...
16482 func_arith ()
16484 func_arith_result=`expr "$@"`
16487 # func_len string
16488 # STRING may not start with a hyphen.
16489 func_len ()
16491 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16494 _LT_EOF
16495 esac
16497 case $lt_shell_append in
16498 yes)
16499 cat << \_LT_EOF >> "$cfgfile"
16501 # func_append var value
16502 # Append VALUE to the end of shell variable VAR.
16503 func_append ()
16505 eval "$1+=\$2"
16507 _LT_EOF
16510 cat << \_LT_EOF >> "$cfgfile"
16512 # func_append var value
16513 # Append VALUE to the end of shell variable VAR.
16514 func_append ()
16516 eval "$1=\$$1\$2"
16519 _LT_EOF
16521 esac
16524 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16525 || (rm -f "$cfgfile"; exit 1)
16527 mv -f "$cfgfile" "$ofile" ||
16528 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16529 chmod +x "$ofile"
16532 cat <<_LT_EOF >> "$ofile"
16534 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16536 # The linker used to build libraries.
16537 LD=$lt_LD_CXX
16539 # How to create reloadable object files.
16540 reload_flag=$lt_reload_flag_CXX
16541 reload_cmds=$lt_reload_cmds_CXX
16543 # Commands used to build an old-style archive.
16544 old_archive_cmds=$lt_old_archive_cmds_CXX
16546 # A language specific compiler.
16547 CC=$lt_compiler_CXX
16549 # Is the compiler the GNU compiler?
16550 with_gcc=$GCC_CXX
16552 # Compiler flag to turn off builtin functions.
16553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16555 # How to pass a linker flag through the compiler.
16556 wl=$lt_lt_prog_compiler_wl_CXX
16558 # Additional compiler flags for building library objects.
16559 pic_flag=$lt_lt_prog_compiler_pic_CXX
16561 # Compiler flag to prevent dynamic linking.
16562 link_static_flag=$lt_lt_prog_compiler_static_CXX
16564 # Does compiler simultaneously support -c and -o options?
16565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16567 # Whether or not to add -lc for building shared libraries.
16568 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16570 # Whether or not to disallow shared libs when runtime libs are static.
16571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16573 # Compiler flag to allow reflexive dlopens.
16574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16576 # Compiler flag to generate shared objects directly from archives.
16577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16579 # Whether the compiler copes with passing no objects directly.
16580 compiler_needs_object=$lt_compiler_needs_object_CXX
16582 # Create an old-style archive from a shared archive.
16583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16585 # Create a temporary old-style archive to link instead of a shared archive.
16586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16588 # Commands used to build a shared archive.
16589 archive_cmds=$lt_archive_cmds_CXX
16590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16592 # Commands used to build a loadable module if different from building
16593 # a shared archive.
16594 module_cmds=$lt_module_cmds_CXX
16595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16597 # Whether we are building with GNU ld or not.
16598 with_gnu_ld=$lt_with_gnu_ld_CXX
16600 # Flag that allows shared libraries with undefined symbols to be built.
16601 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16603 # Flag that enforces no undefined symbols.
16604 no_undefined_flag=$lt_no_undefined_flag_CXX
16606 # Flag to hardcode \$libdir into a binary during linking.
16607 # This must work even if \$libdir does not exist
16608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16610 # If ld is used when linking, flag to hardcode \$libdir into a binary
16611 # during linking. This must work even if \$libdir does not exist.
16612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16614 # Whether we need a single "-rpath" flag with a separated argument.
16615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16618 # DIR into the resulting binary.
16619 hardcode_direct=$hardcode_direct_CXX
16621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16622 # DIR into the resulting binary and the resulting library dependency is
16623 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16624 # library is relocated.
16625 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16627 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16628 # into the resulting binary.
16629 hardcode_minus_L=$hardcode_minus_L_CXX
16631 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16632 # into the resulting binary.
16633 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16635 # Set to "yes" if building a shared library automatically hardcodes DIR
16636 # into the library and all subsequent libraries and executables linked
16637 # against it.
16638 hardcode_automatic=$hardcode_automatic_CXX
16640 # Set to yes if linker adds runtime paths of dependent libraries
16641 # to runtime path list.
16642 inherit_rpath=$inherit_rpath_CXX
16644 # Whether libtool must link a program against all its dependency libraries.
16645 link_all_deplibs=$link_all_deplibs_CXX
16647 # Fix the shell variable \$srcfile for the compiler.
16648 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16650 # Set to "yes" if exported symbols are required.
16651 always_export_symbols=$always_export_symbols_CXX
16653 # The commands to list exported symbols.
16654 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16656 # Symbols that should not be listed in the preloaded symbols.
16657 exclude_expsyms=$lt_exclude_expsyms_CXX
16659 # Symbols that must always be exported.
16660 include_expsyms=$lt_include_expsyms_CXX
16662 # Commands necessary for linking programs (against libraries) with templates.
16663 prelink_cmds=$lt_prelink_cmds_CXX
16665 # Specify filename containing input files.
16666 file_list_spec=$lt_file_list_spec_CXX
16668 # How to hardcode a shared library path into an executable.
16669 hardcode_action=$hardcode_action_CXX
16671 # The directories searched by this compiler when creating a shared library.
16672 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16674 # Dependencies to place before and after the objects being linked to
16675 # create a shared library.
16676 predep_objects=$lt_predep_objects_CXX
16677 postdep_objects=$lt_postdep_objects_CXX
16678 predeps=$lt_predeps_CXX
16679 postdeps=$lt_postdeps_CXX
16681 # The library search path used internally by the compiler when linking
16682 # a shared library.
16683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16685 # ### END LIBTOOL TAG CONFIG: CXX
16686 _LT_EOF
16689 "interception/Makefile":F) cat > vpsed$$ << \_EOF
16690 s!`test -f '$<' || echo '$(srcdir)/'`!!
16691 _EOF
16692 sed -f vpsed$$ $ac_file > tmp$$
16693 mv tmp$$ $ac_file
16694 rm vpsed$$
16695 echo 'MULTISUBDIR =' >> $ac_file
16696 ml_norecursion=yes
16697 . ${multi_basedir}/config-ml.in
16698 { ml_norecursion=; unset ml_norecursion;}
16700 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
16701 s!`test -f '$<' || echo '$(srcdir)/'`!!
16702 _EOF
16703 sed -f vpsed$$ $ac_file > tmp$$
16704 mv tmp$$ $ac_file
16705 rm vpsed$$
16706 echo 'MULTISUBDIR =' >> $ac_file
16707 ml_norecursion=yes
16708 . ${multi_basedir}/config-ml.in
16709 { ml_norecursion=; unset ml_norecursion;}
16711 "asan/Makefile":F) cat > vpsed$$ << \_EOF
16712 s!`test -f '$<' || echo '$(srcdir)/'`!!
16713 _EOF
16714 sed -f vpsed$$ $ac_file > tmp$$
16715 mv tmp$$ $ac_file
16716 rm vpsed$$
16717 echo 'MULTISUBDIR =' >> $ac_file
16718 ml_norecursion=yes
16719 . ${multi_basedir}/config-ml.in
16720 { ml_norecursion=; unset ml_norecursion;}
16723 esac
16724 done # for ac_tag
16727 as_fn_exit 0
16728 _ACEOF
16729 ac_clean_files=$ac_clean_files_save
16731 test $ac_write_fail = 0 ||
16732 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16735 # configure is writing to config.log, and then calls config.status.
16736 # config.status does its own redirection, appending to config.log.
16737 # Unfortunately, on DOS this fails, as config.log is still kept open
16738 # by configure, so config.status won't be able to write to it; its
16739 # output is simply discarded. So we exec the FD to /dev/null,
16740 # effectively closing config.log, so it can be properly (re)opened and
16741 # appended to by config.status. When coming back to configure, we
16742 # need to make the FD available again.
16743 if test "$no_create" != yes; then
16744 ac_cs_success=:
16745 ac_config_status_args=
16746 test "$silent" = yes &&
16747 ac_config_status_args="$ac_config_status_args --quiet"
16748 exec 5>/dev/null
16749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16750 exec 5>>config.log
16751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16752 # would make configure fail if this is the last instruction.
16753 $ac_cs_success || as_fn_exit $?
16755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}