* configure.ac: Change target-libasan to target-libsanitizer.
[official-gcc.git] / libsanitizer / configure
blobb16c6a72204e40772688d5e460e1a5e1490a6269
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
250 $0: your system, including any error possibly output before
251 $0: this message. Then install a modern shell, or manually
252 $0: run the script under such a shell if you do have one."
254 exit 1
258 SHELL=${CONFIG_SHELL-/bin/sh}
259 export SHELL
260 # Unset more variables known to interfere with behavior of common tools.
261 CLICOLOR_FORCE= GREP_OPTIONS=
262 unset CLICOLOR_FORCE GREP_OPTIONS
264 ## --------------------- ##
265 ## M4sh Shell Functions. ##
266 ## --------------------- ##
267 # as_fn_unset VAR
268 # ---------------
269 # Portably unset VAR.
270 as_fn_unset ()
272 { eval $1=; unset $1;}
274 as_unset=as_fn_unset
276 # as_fn_set_status STATUS
277 # -----------------------
278 # Set $? to STATUS, without forking.
279 as_fn_set_status ()
281 return $1
282 } # as_fn_set_status
284 # as_fn_exit STATUS
285 # -----------------
286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 as_fn_exit ()
289 set +e
290 as_fn_set_status $1
291 exit $1
292 } # as_fn_exit
294 # as_fn_mkdir_p
295 # -------------
296 # Create "$as_dir" as a directory, including parents if necessary.
297 as_fn_mkdir_p ()
300 case $as_dir in #(
301 -*) as_dir=./$as_dir;;
302 esac
303 test -d "$as_dir" || eval $as_mkdir_p || {
304 as_dirs=
305 while :; do
306 case $as_dir in #(
307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 *) as_qdir=$as_dir;;
309 esac
310 as_dirs="'$as_qdir' $as_dirs"
311 as_dir=`$as_dirname -- "$as_dir" ||
312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316 $as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 s//\1/
321 /^X\(\/\/\)[^/].*/{
322 s//\1/
325 /^X\(\/\/\)$/{
326 s//\1/
329 /^X\(\/\).*/{
330 s//\1/
333 s/.*/./; q'`
334 test -d "$as_dir" && break
335 done
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340 } # as_fn_mkdir_p
341 # as_fn_append VAR VALUE
342 # ----------------------
343 # Append the text in VALUE to the end of the definition contained in VAR. Take
344 # advantage of any shell optimizations that allow amortized linear growth over
345 # repeated appends, instead of the typical quadratic growth present in naive
346 # implementations.
347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
348 eval 'as_fn_append ()
350 eval $1+=\$2
352 else
353 as_fn_append ()
355 eval $1=\$$1\$2
357 fi # as_fn_append
359 # as_fn_arith ARG...
360 # ------------------
361 # Perform arithmetic evaluation on the ARGs, and store the result in the
362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
363 # must be portable across $(()) and expr.
364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 eval 'as_fn_arith ()
367 as_val=$(( $* ))
369 else
370 as_fn_arith ()
372 as_val=`expr "$@" || test $? -eq 1`
374 fi # as_fn_arith
377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
378 # ----------------------------------------
379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
381 # script with STATUS, using 1 if that was 0.
382 as_fn_error ()
384 as_status=$1; test $as_status -eq 0 && as_status=1
385 if test "$4"; then
386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 $as_echo "$as_me: error: $2" >&2
390 as_fn_exit $as_status
391 } # as_fn_error
393 if expr a : '\(a\)' >/dev/null 2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
395 as_expr=expr
396 else
397 as_expr=false
400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401 as_basename=basename
402 else
403 as_basename=false
406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407 as_dirname=dirname
408 else
409 as_dirname=false
412 as_me=`$as_basename -- "$0" ||
413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
416 $as_echo X/"$0" |
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 s//\1/
421 /^X\/\(\/\/\)$/{
422 s//\1/
425 /^X\/\(\/\).*/{
426 s//\1/
429 s/.*/./; q'`
431 # Avoid depending upon Character Ranges.
432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
435 as_cr_digits='0123456789'
436 as_cr_alnum=$as_cr_Letters$as_cr_digits
439 as_lineno_1=$LINENO as_lineno_1a=$LINENO
440 as_lineno_2=$LINENO as_lineno_2a=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
452 :lineno
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in #(((((
472 -n*)
473 case `echo 'xy\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 xy) ECHO_C='\c';;
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 ECHO_T=' ';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 rm -f conf$$ conf$$.exe conf$$.file
484 if test -d conf$$.dir; then
485 rm -f conf$$.dir/conf$$.file
486 else
487 rm -f conf$$.dir
488 mkdir conf$$.dir 2>/dev/null
490 if (echo >conf$$.file) 2>/dev/null; then
491 if ln -s conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s='ln -s'
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
499 elif ln conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s=ln
501 else
502 as_ln_s='cp -p'
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p='mkdir -p "$as_dir"'
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
519 else
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
538 as_executable_p=$as_test_x
540 # Sed expression to map a string onto a valid CPP name.
541 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543 # Sed expression to map a string onto a valid variable name.
544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546 SHELL=${CONFIG_SHELL-/bin/sh}
549 test -n "$DJDIR" || exec 7<&0 </dev/null
550 exec 6>&1
552 # Name of the host.
553 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
554 # so uname gets run too.
555 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 # Initializations.
560 ac_default_prefix=/usr/local
561 ac_clean_files=
562 ac_config_libobj_dir=.
563 LIBOBJS=
564 cross_compiling=no
565 subdirs=
566 MFLAGS=
567 MAKEFLAGS=
569 # Identity of this package.
570 PACKAGE_NAME='package-unused'
571 PACKAGE_TARNAME='package-unused'
572 PACKAGE_VERSION='version-unused'
573 PACKAGE_STRING='package-unused version-unused'
574 PACKAGE_BUGREPORT='libsanitizer'
575 PACKAGE_URL=''
577 ac_unique_file="include/sanitizer/common_interface_defs.h"
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 enable_static
621 enable_shared
622 CXXCPP
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 MANIFEST_TOOL
630 RANLIB
631 ac_ct_AR
633 DLLTOOL
634 OBJDUMP
635 LN_S
637 ac_ct_DUMPBIN
638 DUMPBIN
640 FGREP
641 EGREP
642 GREP
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 LIBTOOL
653 am__fastdepCCAS_FALSE
654 am__fastdepCCAS_TRUE
655 CCASDEPMODE
656 CCASFLAGS
657 CCAS
658 am__fastdepCXX_FALSE
659 am__fastdepCXX_TRUE
660 CXXDEPMODE
661 ac_ct_CXX
662 CXXFLAGS
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_dependency_tracking
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 with_sysroot
752 enable_libtool_lock
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
763 CXXFLAGS
765 CCAS
766 CCASFLAGS
768 CXXCPP'
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
819 ac_prev=
820 ac_dashdash=
821 for ac_option
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used" >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1263 /^X\(\/\/\)$/{
1264 s//\1/
1267 /^X\(\/\).*/{
1268 s//\1/
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1276 else
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1366 cat <<\_ACEOF
1368 Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of package-unused version-unused:";;
1382 esac
1383 cat <<\_ACEOF
1385 Optional Features:
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1401 both]
1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1403 --with-sysroot=DIR Search for dependent libraries within DIR
1404 (or the compiler's sysroot if not specified).
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CCAS assembler compiler command (defaults to CC)
1417 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1418 CPP C preprocessor
1419 CXXCPP C++ preprocessor
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to <libsanitizer>.
1425 _ACEOF
1426 ac_status=$?
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1477 else
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 fi || ac_status=$?
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1481 done
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486 cat <<\_ACEOF
1487 package-unused configure version-unused
1488 generated by GNU Autoconf 2.68
1490 Copyright (C) 2010 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1532 ac_retval=1
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_cxx_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_cxx_try_compile
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_link ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest$ac_exeext
1584 if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest$ac_exeext && {
1603 test "$cross_compiling" = yes ||
1604 $as_test_x conftest$ac_exeext
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_link
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 eval "$3=yes"
1642 else
1643 eval "$3=no"
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 } # ac_fn_c_check_header_compile
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=1
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1689 } # ac_fn_c_try_cpp
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_run
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below.
1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753 <limits.h> exists even on freestanding compilers. */
1755 #ifdef __STDC__
1756 # include <limits.h>
1757 #else
1758 # include <assert.h>
1759 #endif
1761 #undef $2
1763 /* Override any GCC internal prototype to avoid an error.
1764 Use char because int might match the return type of a GCC
1765 builtin and then its argument prototype would still apply. */
1766 #ifdef __cplusplus
1767 extern "C"
1768 #endif
1769 char $2 ();
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined __stub_$2 || defined __stub___$2
1774 choke me
1775 #endif
1778 main ()
1780 return $2 ();
1782 return 0;
1784 _ACEOF
1785 if ac_fn_c_try_link "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext \
1791 conftest$ac_exeext conftest.$ac_ext
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_func
1800 # ac_fn_cxx_try_cpp LINENO
1801 # ------------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_cpp ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_cxx_try_cpp
1837 # ac_fn_cxx_try_link LINENO
1838 # -------------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_link ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 $as_test_x conftest$ac_exeext
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_cxx_try_link
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by package-unused $as_me version-unused, which was
1887 generated by GNU Autoconf 2.68. Invocation command line was
1889 $ $0 $@
1891 _ACEOF
1892 exec 5>>config.log
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 _ASUNAME
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1924 done
1925 IFS=$as_save_IFS
1927 } >&5
1929 cat >&5 <<_ACEOF
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1936 _ACEOF
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1950 for ac_arg
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 esac
1960 case $ac_pass in
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1979 as_fn_append ac_configure_args " '$ac_arg'"
1981 esac
1982 done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1995 echo
1997 $as_echo "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 esac |
2029 sort
2031 echo
2033 $as_echo "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2036 echo
2037 for ac_var in $ac_subst_vars
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2047 if test -n "$ac_subst_files"; then
2048 $as_echo "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2051 echo
2052 for ac_var in $ac_subst_files
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2063 if test -s confdefs.h; then
2064 $as_echo "## ----------- ##
2065 ## confdefs.h. ##
2066 ## ----------- ##"
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 # We do not want a PATH search for config.site.
2122 case $CONFIG_SITE in #((
2123 -*) ac_site_file1=./$CONFIG_SITE;;
2124 */*) ac_site_file1=$CONFIG_SITE;;
2125 *) ac_site_file1=./$CONFIG_SITE;;
2126 esac
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file" \
2142 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 as_fn_error $? "failed to load site script $ac_site_file
2145 See \`config.log' for more details" "$LINENO" 5; }
2147 done
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special files
2151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2175 set,)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,set)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,);;
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213 esac
2215 done
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 ac_aux_dir=
2236 for ac_dir in . "$srcdir"/.; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264 am__api_version='1.11'
2266 # Find a good install program. We prefer a C program (faster),
2267 # so one script is as good as another. But avoid the broken or
2268 # incompatible versions:
2269 # SysV /etc/install, /usr/sbin/install
2270 # SunOS /usr/etc/install
2271 # IRIX /sbin/install
2272 # AIX /bin/install
2273 # AmigaOS /C/install, which installs bootblocks on floppy discs
2274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277 # OS/2's system install, which has a completely different semantic
2278 # ./install, which can be erroneously created by make from ./install.sh.
2279 # Reject install programs that cannot install multiple files.
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2282 if test -z "$INSTALL"; then
2283 if ${ac_cv_path_install+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 # Account for people who put trailing slashes in PATH elements.
2292 case $as_dir/ in #((
2293 ./ | .// | /[cC]/* | \
2294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2296 /usr/ucb/* ) ;;
2298 # OSF1 and SCO ODT 3.0 have their own names for install.
2299 # Don't use installbsd from OSF since it installs stuff as root
2300 # by default.
2301 for ac_prog in ginstall scoinst install; do
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2308 elif test $ac_prog = install &&
2309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2312 else
2313 rm -rf conftest.one conftest.two conftest.dir
2314 echo one > conftest.one
2315 echo two > conftest.two
2316 mkdir conftest.dir
2317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318 test -s conftest.one && test -s conftest.two &&
2319 test -s conftest.dir/conftest.one &&
2320 test -s conftest.dir/conftest.two
2321 then
2322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2323 break 3
2327 done
2328 done
2330 esac
2332 done
2333 IFS=$as_save_IFS
2335 rm -rf conftest.one conftest.two conftest.dir
2338 if test "${ac_cv_path_install+set}" = set; then
2339 INSTALL=$ac_cv_path_install
2340 else
2341 # As a last resort, use the slow shell script. Don't cache a
2342 # value for INSTALL within a source directory, because that will
2343 # break other packages using the cache if that directory is
2344 # removed, or if the value is a relative name.
2345 INSTALL=$ac_install_sh
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2349 $as_echo "$INSTALL" >&6; }
2351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352 # It thinks the first close brace ends the variable substitution.
2353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2360 $as_echo_n "checking whether build environment is sane... " >&6; }
2361 # Just in case
2362 sleep 1
2363 echo timestamp > conftest.file
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2375 esac
2377 # Do `set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2384 if test "$*" = "X"; then
2385 # -L didn't work.
2386 set X `ls -t "$srcdir/configure" conftest.file`
2388 rm -f conftest.file
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2400 test "$2" = conftest.file
2402 then
2403 # Ok.
2405 else
2406 as_fn_error $? "newly created file is older than distributed files!
2407 Check your system clock" "$LINENO" 5
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410 $as_echo "yes" >&6; }
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2421 # expand $ac_aux_dir to an absolute path
2422 am_aux_dir=`cd $ac_aux_dir && pwd`
2424 if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2432 # Use eval to expand $SHELL
2433 if eval "$MISSING --run true"; then
2434 am_missing_run="$MISSING --run "
2435 else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2438 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2441 if test x"${install_sh}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2450 # Installed binaries are usually stripped using `strip' when the user
2451 # run `make install-strip'. However `strip' might not be the right
2452 # tool to use in cross-compilation environments, therefore Automake
2453 # will honor the `STRIP' environment variable to overrule this program.
2454 if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2477 done
2478 done
2479 IFS=$as_save_IFS
2483 STRIP=$ac_cv_prog_STRIP
2484 if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486 $as_echo "$STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2494 if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497 set dummy strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2517 done
2518 done
2519 IFS=$as_save_IFS
2523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524 if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526 $as_echo "$ac_ct_STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 STRIP=$ac_ct_STRIP
2543 else
2544 STRIP="$ac_cv_prog_STRIP"
2548 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552 if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574 IFS=$as_save_IFS
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590 $as_echo "$MKDIR_P" >&6; }
2592 mkdir_p="$MKDIR_P"
2593 case $mkdir_p in
2594 [\\/$]* | ?:[\\/]*) ;;
2595 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2596 esac
2598 for ac_prog in gawk mawk nawk awk
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2621 done
2622 done
2623 IFS=$as_save_IFS
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2637 test -n "$AWK" && break
2638 done
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2678 rmdir .tst 2>/dev/null
2680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2682 # is not polluted with repeated "-I."
2683 am__isrc=' -I$(srcdir)'
2684 # test to see if srcdir already configured
2685 if test -f $srcdir/config.status; then
2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2694 else
2695 CYGPATH_W=echo
2700 # Define the identity of the package.
2701 PACKAGE='package-unused'
2702 VERSION='version-unused'
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2707 _ACEOF
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2712 _ACEOF
2714 # Some tools Automake needs.
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2730 # We need awk for the "check" target. The system "awk" is bad on
2731 # some platforms.
2732 # Always define AMTAR for backward compatibility. Yes, it's still used
2733 # in the wild :-( We should find a proper way to deprecate it ...
2734 AMTAR='$${TAR-tar}'
2736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2743 # Checks for programs.
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2773 IFS=$as_save_IFS
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2837 else
2838 CC="$ac_cv_prog_CC"
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2905 ac_cv_prog_CC="cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$CC" && break
2980 done
2982 if test -z "$CC"; then
2983 ac_ct_CC=$CC
2984 for ac_prog in cl.exe
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$ac_ct_CC" && break
3024 done
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 ac_status=$?
3061 if test -s conftest.err; then
3062 sed '10a\
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3067 rm -f conftest.er1 conftest.err
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 done
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3076 main ()
3080 return 0;
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3089 $as_echo_n "checking whether the C compiler works... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148 else
3149 ac_file=''
3151 if test -z "$ac_file"; then :
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error 77 "C compiler cannot create executables
3160 See \`config.log' for more details" "$LINENO" 5; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3189 # `rm'.
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 break;;
3196 * ) break;;
3197 esac
3198 done
3199 else
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3211 ac_exeext=$EXEEXT
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214 #include <stdio.h>
3216 main ()
3218 FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
3222 return 0;
3224 _ACEOF
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3253 cross_compiling=no
3254 else
3255 if test "$cross_compiling" = maybe; then
3256 cross_compiling=yes
3257 else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details" "$LINENO" 5; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if ${ac_cv_objext+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 break;;
3305 esac
3306 done
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details" "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if ${ac_cv_c_compiler_gnu+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3333 #ifndef __GNUC__
3334 choke me
3335 #endif
3338 return 0;
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_compiler_gnu=yes
3343 else
3344 ac_compiler_gnu=no
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354 else
3355 GCC=
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if ${ac_cv_prog_cc_g+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381 else
3382 CFLAGS=""
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3396 else
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if ${ac_cv_prog_cc_c89+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3457 return p[i];
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3516 xno)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 DEPDIR="${am__leading_dot}deps"
3535 ac_config_commands="$ac_config_commands depfiles"
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541 @echo this is the am__doit target
3542 .PHONY: am__doit
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from `make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3569 esac
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then :
3579 enableval=$enable_dependency_tracking;
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 am__nodep='_no'
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3597 depcc="$CC" am_compiler_list=
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named `D' -- because `-MD' means `put the output
3609 # in D'.
3610 rm -rf conftest.dir
3611 mkdir conftest.dir
3612 # Copy depcomp to subdir because otherwise we won't find it if we're
3613 # using a relative directory.
3614 cp "$am_depcomp" conftest.dir
3615 cd conftest.dir
3616 # We will build objects and dependencies in a subdirectory because
3617 # it helps to detect inapplicable dependency modes. For instance
3618 # both Tru64's cc and ICC support -MD to output dependencies as a
3619 # side effect of compilation, but ICC will put the dependencies in
3620 # the current directory while Tru64 will put them in the object
3621 # directory.
3622 mkdir sub
3624 am_cv_CC_dependencies_compiler_type=none
3625 if test "$am_compiler_list" = ""; then
3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3628 am__universal=false
3629 case " $depcc " in #(
3630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3631 esac
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3651 # mode. It turns out that the SunPro C++ compiler does not properly
3652 # handle `-M -o', and we need to detect this. Also, some Intel
3653 # versions had trouble with output in subdirs
3654 am__obj=sub/conftest.${OBJEXT-o}
3655 am__minus_obj="-o $am__obj"
3656 case $depmode in
3657 gcc)
3658 # This depmode causes a compiler race in universal mode.
3659 test "$am__universal" = false || continue
3661 nosideeffect)
3662 # after this tag, mechanisms are not by side-effect, so they'll
3663 # only be used when explicitly requested
3664 if test "x$enable_dependency_tracking" = xyes; then
3665 continue
3666 else
3667 break
3670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3671 # This compiler won't grok `-c -o', but also, the minuso test has
3672 # not run yet. These depmodes are late enough in the game, and
3673 # so weak that their functioning should not be impacted.
3674 am__obj=conftest.${OBJEXT-o}
3675 am__minus_obj=
3677 none) break ;;
3678 esac
3679 if depmode=$depmode \
3680 source=sub/conftest.c object=$am__obj \
3681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3683 >/dev/null 2>conftest.err &&
3684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688 # icc doesn't choke on unknown options, it will just issue warnings
3689 # or remarks (even with -Werror). So we grep stderr for any message
3690 # that says an option was ignored or not supported.
3691 # When given -MP, icc 7.0 and 7.1 complain thusly:
3692 # icc: Command line warning: ignoring option '-M'; no argument required
3693 # The diagnosis changed in icc 8.0:
3694 # icc: Command line remark: option '-MP' not supported
3695 if (grep 'ignoring option' conftest.err ||
3696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697 am_cv_CC_dependencies_compiler_type=$depmode
3698 break
3701 done
3703 cd ..
3704 rm -rf conftest.dir
3705 else
3706 am_cv_CC_dependencies_compiler_type=none
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3711 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715 test "x$enable_dependency_tracking" != xno \
3716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3717 am__fastdepCC_TRUE=
3718 am__fastdepCC_FALSE='#'
3719 else
3720 am__fastdepCC_TRUE='#'
3721 am__fastdepCC_FALSE=
3725 ac_ext=cpp
3726 ac_cpp='$CXXCPP $CPPFLAGS'
3727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3730 if test -z "$CXX"; then
3731 if test -n "$CCC"; then
3732 CXX=$CCC
3733 else
3734 if test -n "$ac_tool_prefix"; then
3735 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_CXX+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test -n "$CXX"; then
3745 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3758 done
3759 done
3760 IFS=$as_save_IFS
3764 CXX=$ac_cv_prog_CXX
3765 if test -n "$CXX"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3767 $as_echo "$CXX" >&6; }
3768 else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3774 test -n "$CXX" && break
3775 done
3777 if test -z "$CXX"; then
3778 ac_ct_CXX=$CXX
3779 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782 set dummy $ac_prog; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$ac_ct_CXX"; then
3789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 ac_cv_prog_ac_ct_CXX="$ac_prog"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3802 done
3803 done
3804 IFS=$as_save_IFS
3808 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3809 if test -n "$ac_ct_CXX"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3811 $as_echo "$ac_ct_CXX" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3818 test -n "$ac_ct_CXX" && break
3819 done
3821 if test "x$ac_ct_CXX" = x; then
3822 CXX="g++"
3823 else
3824 case $cross_compiling:$ac_tool_warned in
3825 yes:)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3829 esac
3830 CXX=$ac_ct_CXX
3836 # Provide some information about the compiler.
3837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3838 set X $ac_compile
3839 ac_compiler=$2
3840 for ac_option in --version -v -V -qversion; do
3841 { { ac_try="$ac_compiler $ac_option >&5"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3849 ac_status=$?
3850 if test -s conftest.err; then
3851 sed '10a\
3852 ... rest of stderr output deleted ...
3853 10q' conftest.err >conftest.er1
3854 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 done
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3862 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3863 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 main ()
3872 #ifndef __GNUC__
3873 choke me
3874 #endif
3877 return 0;
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 ac_compiler_gnu=yes
3882 else
3883 ac_compiler_gnu=no
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3890 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3891 if test $ac_compiler_gnu = yes; then
3892 GXX=yes
3893 else
3894 GXX=
3896 ac_test_CXXFLAGS=${CXXFLAGS+set}
3897 ac_save_CXXFLAGS=$CXXFLAGS
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3899 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3900 if ${ac_cv_prog_cxx_g+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3904 ac_cxx_werror_flag=yes
3905 ac_cv_prog_cxx_g=no
3906 CXXFLAGS="-g"
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 if ac_fn_cxx_try_compile "$LINENO"; then :
3919 ac_cv_prog_cxx_g=yes
3920 else
3921 CXXFLAGS=""
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3926 main ()
3930 return 0;
3932 _ACEOF
3933 if ac_fn_cxx_try_compile "$LINENO"; then :
3935 else
3936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937 CXXFLAGS="-g"
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3942 main ()
3946 return 0;
3948 _ACEOF
3949 if ac_fn_cxx_try_compile "$LINENO"; then :
3950 ac_cv_prog_cxx_g=yes
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3960 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3961 if test "$ac_test_CXXFLAGS" = set; then
3962 CXXFLAGS=$ac_save_CXXFLAGS
3963 elif test $ac_cv_prog_cxx_g = yes; then
3964 if test "$GXX" = yes; then
3965 CXXFLAGS="-g -O2"
3966 else
3967 CXXFLAGS="-g"
3969 else
3970 if test "$GXX" = yes; then
3971 CXXFLAGS="-O2"
3972 else
3973 CXXFLAGS=
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 depcc="$CXX" am_compiler_list=
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3985 $as_echo_n "checking dependency style of $depcc... " >&6; }
3986 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3990 # We make a subdir and do the tests there. Otherwise we can end up
3991 # making bogus files that we don't know about and never remove. For
3992 # instance it was reported that on HP-UX the gcc test will end up
3993 # making a dummy file named `D' -- because `-MD' means `put the output
3994 # in D'.
3995 rm -rf conftest.dir
3996 mkdir conftest.dir
3997 # Copy depcomp to subdir because otherwise we won't find it if we're
3998 # using a relative directory.
3999 cp "$am_depcomp" conftest.dir
4000 cd conftest.dir
4001 # We will build objects and dependencies in a subdirectory because
4002 # it helps to detect inapplicable dependency modes. For instance
4003 # both Tru64's cc and ICC support -MD to output dependencies as a
4004 # side effect of compilation, but ICC will put the dependencies in
4005 # the current directory while Tru64 will put them in the object
4006 # directory.
4007 mkdir sub
4009 am_cv_CXX_dependencies_compiler_type=none
4010 if test "$am_compiler_list" = ""; then
4011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013 am__universal=false
4014 case " $depcc " in #(
4015 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4016 esac
4018 for depmode in $am_compiler_list; do
4019 # Setup a source with many dependencies, because some compilers
4020 # like to wrap large dependency lists on column 80 (with \), and
4021 # we should not choose a depcomp mode which is confused by this.
4023 # We need to recreate these files for each test, as the compiler may
4024 # overwrite some of them when testing with obscure command lines.
4025 # This happens at least with the AIX C compiler.
4026 : > sub/conftest.c
4027 for i in 1 2 3 4 5 6; do
4028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4030 # Solaris 8's {/usr,}/bin/sh.
4031 touch sub/conftst$i.h
4032 done
4033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4036 # mode. It turns out that the SunPro C++ compiler does not properly
4037 # handle `-M -o', and we need to detect this. Also, some Intel
4038 # versions had trouble with output in subdirs
4039 am__obj=sub/conftest.${OBJEXT-o}
4040 am__minus_obj="-o $am__obj"
4041 case $depmode in
4042 gcc)
4043 # This depmode causes a compiler race in universal mode.
4044 test "$am__universal" = false || continue
4046 nosideeffect)
4047 # after this tag, mechanisms are not by side-effect, so they'll
4048 # only be used when explicitly requested
4049 if test "x$enable_dependency_tracking" = xyes; then
4050 continue
4051 else
4052 break
4055 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4056 # This compiler won't grok `-c -o', but also, the minuso test has
4057 # not run yet. These depmodes are late enough in the game, and
4058 # so weak that their functioning should not be impacted.
4059 am__obj=conftest.${OBJEXT-o}
4060 am__minus_obj=
4062 none) break ;;
4063 esac
4064 if depmode=$depmode \
4065 source=sub/conftest.c object=$am__obj \
4066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4068 >/dev/null 2>conftest.err &&
4069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073 # icc doesn't choke on unknown options, it will just issue warnings
4074 # or remarks (even with -Werror). So we grep stderr for any message
4075 # that says an option was ignored or not supported.
4076 # When given -MP, icc 7.0 and 7.1 complain thusly:
4077 # icc: Command line warning: ignoring option '-M'; no argument required
4078 # The diagnosis changed in icc 8.0:
4079 # icc: Command line remark: option '-MP' not supported
4080 if (grep 'ignoring option' conftest.err ||
4081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082 am_cv_CXX_dependencies_compiler_type=$depmode
4083 break
4086 done
4088 cd ..
4089 rm -rf conftest.dir
4090 else
4091 am_cv_CXX_dependencies_compiler_type=none
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4096 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4097 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4100 test "x$enable_dependency_tracking" != xno \
4101 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4102 am__fastdepCXX_TRUE=
4103 am__fastdepCXX_FALSE='#'
4104 else
4105 am__fastdepCXX_TRUE='#'
4106 am__fastdepCXX_FALSE=
4110 # By default we simply use the C compiler to build assembly code.
4112 test "${CCAS+set}" = set || CCAS=$CC
4113 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4117 depcc="$CCAS" am_compiler_list=
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4120 $as_echo_n "checking dependency style of $depcc... " >&6; }
4121 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4125 # We make a subdir and do the tests there. Otherwise we can end up
4126 # making bogus files that we don't know about and never remove. For
4127 # instance it was reported that on HP-UX the gcc test will end up
4128 # making a dummy file named `D' -- because `-MD' means `put the output
4129 # in D'.
4130 rm -rf conftest.dir
4131 mkdir conftest.dir
4132 # Copy depcomp to subdir because otherwise we won't find it if we're
4133 # using a relative directory.
4134 cp "$am_depcomp" conftest.dir
4135 cd conftest.dir
4136 # We will build objects and dependencies in a subdirectory because
4137 # it helps to detect inapplicable dependency modes. For instance
4138 # both Tru64's cc and ICC support -MD to output dependencies as a
4139 # side effect of compilation, but ICC will put the dependencies in
4140 # the current directory while Tru64 will put them in the object
4141 # directory.
4142 mkdir sub
4144 am_cv_CCAS_dependencies_compiler_type=none
4145 if test "$am_compiler_list" = ""; then
4146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4148 am__universal=false
4151 for depmode in $am_compiler_list; do
4152 # Setup a source with many dependencies, because some compilers
4153 # like to wrap large dependency lists on column 80 (with \), and
4154 # we should not choose a depcomp mode which is confused by this.
4156 # We need to recreate these files for each test, as the compiler may
4157 # overwrite some of them when testing with obscure command lines.
4158 # This happens at least with the AIX C compiler.
4159 : > sub/conftest.c
4160 for i in 1 2 3 4 5 6; do
4161 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4162 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4163 # Solaris 8's {/usr,}/bin/sh.
4164 touch sub/conftst$i.h
4165 done
4166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4168 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4169 # mode. It turns out that the SunPro C++ compiler does not properly
4170 # handle `-M -o', and we need to detect this. Also, some Intel
4171 # versions had trouble with output in subdirs
4172 am__obj=sub/conftest.${OBJEXT-o}
4173 am__minus_obj="-o $am__obj"
4174 case $depmode in
4175 gcc)
4176 # This depmode causes a compiler race in universal mode.
4177 test "$am__universal" = false || continue
4179 nosideeffect)
4180 # after this tag, mechanisms are not by side-effect, so they'll
4181 # only be used when explicitly requested
4182 if test "x$enable_dependency_tracking" = xyes; then
4183 continue
4184 else
4185 break
4188 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4189 # This compiler won't grok `-c -o', but also, the minuso test has
4190 # not run yet. These depmodes are late enough in the game, and
4191 # so weak that their functioning should not be impacted.
4192 am__obj=conftest.${OBJEXT-o}
4193 am__minus_obj=
4195 none) break ;;
4196 esac
4197 if depmode=$depmode \
4198 source=sub/conftest.c object=$am__obj \
4199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4200 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4201 >/dev/null 2>conftest.err &&
4202 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4204 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4206 # icc doesn't choke on unknown options, it will just issue warnings
4207 # or remarks (even with -Werror). So we grep stderr for any message
4208 # that says an option was ignored or not supported.
4209 # When given -MP, icc 7.0 and 7.1 complain thusly:
4210 # icc: Command line warning: ignoring option '-M'; no argument required
4211 # The diagnosis changed in icc 8.0:
4212 # icc: Command line remark: option '-MP' not supported
4213 if (grep 'ignoring option' conftest.err ||
4214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4215 am_cv_CCAS_dependencies_compiler_type=$depmode
4216 break
4219 done
4221 cd ..
4222 rm -rf conftest.dir
4223 else
4224 am_cv_CCAS_dependencies_compiler_type=none
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4229 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4230 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4233 test "x$enable_dependency_tracking" != xno \
4234 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4235 am__fastdepCCAS_TRUE=
4236 am__fastdepCCAS_FALSE='#'
4237 else
4238 am__fastdepCCAS_TRUE='#'
4239 am__fastdepCCAS_FALSE=
4244 enable_dlopen=yes
4248 case `pwd` in
4249 *\ * | *\ *)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4251 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4252 esac
4256 macro_version='2.4.2'
4257 macro_revision='1.3337'
4271 ltmain="$ac_aux_dir/ltmain.sh"
4273 # Make sure we can run config.sub.
4274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4275 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4278 $as_echo_n "checking build system type... " >&6; }
4279 if ${ac_cv_build+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 ac_build_alias=$build_alias
4283 test "x$ac_build_alias" = x &&
4284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4285 test "x$ac_build_alias" = x &&
4286 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4288 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4292 $as_echo "$ac_cv_build" >&6; }
4293 case $ac_cv_build in
4294 *-*-*) ;;
4295 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4296 esac
4297 build=$ac_cv_build
4298 ac_save_IFS=$IFS; IFS='-'
4299 set x $ac_cv_build
4300 shift
4301 build_cpu=$1
4302 build_vendor=$2
4303 shift; shift
4304 # Remember, the first character of IFS is used to create $*,
4305 # except with old shells:
4306 build_os=$*
4307 IFS=$ac_save_IFS
4308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4312 $as_echo_n "checking host system type... " >&6; }
4313 if ${ac_cv_host+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test "x$host_alias" = x; then
4317 ac_cv_host=$ac_cv_build
4318 else
4319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4325 $as_echo "$ac_cv_host" >&6; }
4326 case $ac_cv_host in
4327 *-*-*) ;;
4328 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4329 esac
4330 host=$ac_cv_host
4331 ac_save_IFS=$IFS; IFS='-'
4332 set x $ac_cv_host
4333 shift
4334 host_cpu=$1
4335 host_vendor=$2
4336 shift; shift
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4339 host_os=$*
4340 IFS=$ac_save_IFS
4341 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4344 # Backslashify metacharacters that are still active within
4345 # double-quoted strings.
4346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4348 # Same as above, but do not quote variable references.
4349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4351 # Sed substitution to delay expansion of an escaped shell variable in a
4352 # double_quote_subst'ed string.
4353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4355 # Sed substitution to delay expansion of an escaped single quote.
4356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4358 # Sed substitution to avoid accidental globbing in evaled expressions
4359 no_glob_subst='s/\*/\\\*/g'
4361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4366 $as_echo_n "checking how to print strings... " >&6; }
4367 # Test print first, because it will be a builtin if present.
4368 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4369 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4370 ECHO='print -r --'
4371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4372 ECHO='printf %s\n'
4373 else
4374 # Use this function as a fallback that always works.
4375 func_fallback_echo ()
4377 eval 'cat <<_LTECHO_EOF
4379 _LTECHO_EOF'
4381 ECHO='func_fallback_echo'
4384 # func_echo_all arg...
4385 # Invoke $ECHO with all args, space-separated.
4386 func_echo_all ()
4388 $ECHO ""
4391 case "$ECHO" in
4392 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4393 $as_echo "printf" >&6; } ;;
4394 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4395 $as_echo "print -r" >&6; } ;;
4396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4397 $as_echo "cat" >&6; } ;;
4398 esac
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4415 if ${ac_cv_path_SED+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4419 for ac_i in 1 2 3 4 5 6 7; do
4420 ac_script="$ac_script$as_nl$ac_script"
4421 done
4422 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4423 { ac_script=; unset ac_script;}
4424 if test -z "$SED"; then
4425 ac_path_SED_found=false
4426 # Loop through the user's path and test for each of PROGNAME-LIST
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_prog in sed gsed; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4435 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4436 # Check for GNU ac_path_SED and select it if it is found.
4437 # Check for GNU $ac_path_SED
4438 case `"$ac_path_SED" --version 2>&1` in
4439 *GNU*)
4440 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4442 ac_count=0
4443 $as_echo_n 0123456789 >"conftest.in"
4444 while :
4446 cat "conftest.in" "conftest.in" >"conftest.tmp"
4447 mv "conftest.tmp" "conftest.in"
4448 cp "conftest.in" "conftest.nl"
4449 $as_echo '' >> "conftest.nl"
4450 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452 as_fn_arith $ac_count + 1 && ac_count=$as_val
4453 if test $ac_count -gt ${ac_path_SED_max-0}; then
4454 # Best one so far, save it but keep looking for a better one
4455 ac_cv_path_SED="$ac_path_SED"
4456 ac_path_SED_max=$ac_count
4458 # 10*(2^10) chars as input seems more than enough
4459 test $ac_count -gt 10 && break
4460 done
4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462 esac
4464 $ac_path_SED_found && break 3
4465 done
4466 done
4467 done
4468 IFS=$as_save_IFS
4469 if test -z "$ac_cv_path_SED"; then
4470 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4472 else
4473 ac_cv_path_SED=$SED
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4478 $as_echo "$ac_cv_path_SED" >&6; }
4479 SED="$ac_cv_path_SED"
4480 rm -f conftest.sed
4482 test -z "$SED" && SED=sed
4483 Xsed="$SED -e 1s/^X//"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -z "$GREP"; then
4501 ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_prog in grep ggrep; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4515 *GNU*)
4516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4518 ac_count=0
4519 $as_echo_n 0123456789 >"conftest.in"
4520 while :
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 $as_echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528 as_fn_arith $ac_count + 1 && ac_count=$as_val
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP="$ac_path_GREP"
4532 ac_path_GREP_max=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4536 done
4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4540 $ac_path_GREP_found && break 3
4541 done
4542 done
4543 done
4544 IFS=$as_save_IFS
4545 if test -z "$ac_cv_path_GREP"; then
4546 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4548 else
4549 ac_cv_path_GREP=$GREP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP="$ac_cv_path_GREP"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564 then ac_cv_path_EGREP="$GREP -E"
4565 else
4566 if test -z "$EGREP"; then
4567 ac_path_EGREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in egrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579 # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4581 *GNU*)
4582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584 ac_count=0
4585 $as_echo_n 0123456789 >"conftest.in"
4586 while :
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'EGREP' >> "conftest.nl"
4592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_EGREP="$ac_path_EGREP"
4598 ac_path_EGREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4606 $ac_path_EGREP_found && break 3
4607 done
4608 done
4609 done
4610 IFS=$as_save_IFS
4611 if test -z "$ac_cv_path_EGREP"; then
4612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614 else
4615 ac_cv_path_EGREP=$EGREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP="$ac_cv_path_EGREP"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4626 $as_echo_n "checking for fgrep... " >&6; }
4627 if ${ac_cv_path_FGREP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4631 then ac_cv_path_FGREP="$GREP -F"
4632 else
4633 if test -z "$FGREP"; then
4634 ac_path_FGREP_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in fgrep; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4644 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4645 # Check for GNU ac_path_FGREP and select it if it is found.
4646 # Check for GNU $ac_path_FGREP
4647 case `"$ac_path_FGREP" --version 2>&1` in
4648 *GNU*)
4649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo 'FGREP' >> "conftest.nl"
4659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_FGREP="$ac_path_FGREP"
4665 ac_path_FGREP_max=$ac_count
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4669 done
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4673 $ac_path_FGREP_found && break 3
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_FGREP"; then
4679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 else
4682 ac_cv_path_FGREP=$FGREP
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4688 $as_echo "$ac_cv_path_FGREP" >&6; }
4689 FGREP="$ac_cv_path_FGREP"
4692 test -z "$GREP" && GREP=grep
4712 # Check whether --with-gnu-ld was given.
4713 if test "${with_gnu_ld+set}" = set; then :
4714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4715 else
4716 with_gnu_ld=no
4719 ac_prog=ld
4720 if test "$GCC" = yes; then
4721 # Check if gcc -print-prog-name=ld gives a path.
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4723 $as_echo_n "checking for ld used by $CC... " >&6; }
4724 case $host in
4725 *-*-mingw*)
4726 # gcc leaves a trailing carriage return which upsets mingw
4727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4730 esac
4731 case $ac_prog in
4732 # Accept absolute paths.
4733 [\\/]* | ?:[\\/]*)
4734 re_direlt='/[^/][^/]*/\.\./'
4735 # Canonicalize the pathname of ld
4736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4739 done
4740 test -z "$LD" && LD="$ac_prog"
4743 # If it fails, then pretend we aren't using GCC.
4744 ac_prog=ld
4747 # If it is relative, then search for the first ld in PATH.
4748 with_gnu_ld=unknown
4750 esac
4751 elif test "$with_gnu_ld" = yes; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4753 $as_echo_n "checking for GNU ld... " >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4756 $as_echo_n "checking for non-GNU ld... " >&6; }
4758 if ${lt_cv_path_LD+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -z "$LD"; then
4762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4763 for ac_dir in $PATH; do
4764 IFS="$lt_save_ifs"
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4767 lt_cv_path_LD="$ac_dir/$ac_prog"
4768 # Check to see if the program is GNU ld. I'd rather use --version,
4769 # but apparently some variants of GNU ld only accept -v.
4770 # Break only if it was the GNU/non-GNU ld that we prefer.
4771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4772 *GNU* | *'with BFD'*)
4773 test "$with_gnu_ld" != no && break
4776 test "$with_gnu_ld" != yes && break
4778 esac
4780 done
4781 IFS="$lt_save_ifs"
4782 else
4783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4787 LD="$lt_cv_path_LD"
4788 if test -n "$LD"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4790 $as_echo "$LD" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4798 if ${lt_cv_prog_gnu_ld+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4802 case `$LD -v 2>&1 </dev/null` in
4803 *GNU* | *'with BFD'*)
4804 lt_cv_prog_gnu_ld=yes
4807 lt_cv_prog_gnu_ld=no
4809 esac
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4813 with_gnu_ld=$lt_cv_prog_gnu_ld
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4825 if ${lt_cv_path_NM+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$NM"; then
4829 # Let the user override the test.
4830 lt_cv_path_NM="$NM"
4831 else
4832 lt_nm_to_check="${ac_tool_prefix}nm"
4833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4834 lt_nm_to_check="$lt_nm_to_check nm"
4836 for lt_tmp_nm in $lt_nm_to_check; do
4837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4839 IFS="$lt_save_ifs"
4840 test -z "$ac_dir" && ac_dir=.
4841 tmp_nm="$ac_dir/$lt_tmp_nm"
4842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4843 # Check to see if the nm accepts a BSD-compat flag.
4844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4845 # nm: unknown option "B" ignored
4846 # Tru64's nm complains that /dev/null is an invalid object file
4847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4848 */dev/null* | *'Invalid file or object type'*)
4849 lt_cv_path_NM="$tmp_nm -B"
4850 break
4853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4854 */dev/null*)
4855 lt_cv_path_NM="$tmp_nm -p"
4856 break
4859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4860 continue # so that we can try to find one that supports BSD flags
4862 esac
4864 esac
4866 done
4867 IFS="$lt_save_ifs"
4868 done
4869 : ${lt_cv_path_NM=no}
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4873 $as_echo "$lt_cv_path_NM" >&6; }
4874 if test "$lt_cv_path_NM" != "no"; then
4875 NM="$lt_cv_path_NM"
4876 else
4877 # Didn't find any BSD compatible name lister, look for dumpbin.
4878 if test -n "$DUMPBIN"; then :
4879 # Let the user override the test.
4880 else
4881 if test -n "$ac_tool_prefix"; then
4882 for ac_prog in dumpbin "link -dump"
4884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_DUMPBIN+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$DUMPBIN"; then
4892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 DUMPBIN=$ac_cv_prog_DUMPBIN
4912 if test -n "$DUMPBIN"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4914 $as_echo "$DUMPBIN" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 test -n "$DUMPBIN" && break
4922 done
4924 if test -z "$DUMPBIN"; then
4925 ac_ct_DUMPBIN=$DUMPBIN
4926 for ac_prog in dumpbin "link -dump"
4928 # Extract the first word of "$ac_prog", so it can be a program name with args.
4929 set dummy $ac_prog; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_DUMPBIN"; then
4936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4956 if test -n "$ac_ct_DUMPBIN"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4958 $as_echo "$ac_ct_DUMPBIN" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4965 test -n "$ac_ct_DUMPBIN" && break
4966 done
4968 if test "x$ac_ct_DUMPBIN" = x; then
4969 DUMPBIN=":"
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 DUMPBIN=$ac_ct_DUMPBIN
4981 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4982 *COFF*)
4983 DUMPBIN="$DUMPBIN -symbols"
4986 DUMPBIN=:
4988 esac
4991 if test "$DUMPBIN" != ":"; then
4992 NM="$DUMPBIN"
4995 test -z "$NM" && NM=nm
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5003 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5004 if ${lt_cv_nm_interface+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 lt_cv_nm_interface="BSD nm"
5008 echo "int some_variable = 0;" > conftest.$ac_ext
5009 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5010 (eval "$ac_compile" 2>conftest.err)
5011 cat conftest.err >&5
5012 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5013 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5014 cat conftest.err >&5
5015 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5016 cat conftest.out >&5
5017 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5018 lt_cv_nm_interface="MS dumpbin"
5020 rm -f conftest*
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5023 $as_echo "$lt_cv_nm_interface" >&6; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5026 $as_echo_n "checking whether ln -s works... " >&6; }
5027 LN_S=$as_ln_s
5028 if test "$LN_S" = "ln -s"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030 $as_echo "yes" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5033 $as_echo "no, using $LN_S" >&6; }
5036 # find the maximum length of command line arguments
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5039 if ${lt_cv_sys_max_cmd_len+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5043 teststring="ABCD"
5045 case $build_os in
5046 msdosdjgpp*)
5047 # On DJGPP, this test can blow up pretty badly due to problems in libc
5048 # (any single argument exceeding 2000 bytes causes a buffer overrun
5049 # during glob expansion). Even if it were fixed, the result of this
5050 # check would be larger than it should be.
5051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5054 gnu*)
5055 # Under GNU Hurd, this test is not required because there is
5056 # no limit to the length of command line arguments.
5057 # Libtool will interpret -1 as no limit whatsoever
5058 lt_cv_sys_max_cmd_len=-1;
5061 cygwin* | mingw* | cegcc*)
5062 # On Win9x/ME, this test blows up -- it succeeds, but takes
5063 # about 5 minutes as the teststring grows exponentially.
5064 # Worse, since 9x/ME are not pre-emptively multitasking,
5065 # you end up with a "frozen" computer, even though with patience
5066 # the test eventually succeeds (with a max line length of 256k).
5067 # Instead, let's just punt: use the minimum linelength reported by
5068 # all of the supported platforms: 8192 (on NT/2K/XP).
5069 lt_cv_sys_max_cmd_len=8192;
5072 mint*)
5073 # On MiNT this can take a long time and run out of memory.
5074 lt_cv_sys_max_cmd_len=8192;
5077 amigaos*)
5078 # On AmigaOS with pdksh, this test takes hours, literally.
5079 # So we just punt and use a minimum line length of 8192.
5080 lt_cv_sys_max_cmd_len=8192;
5083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5084 # This has been around since 386BSD, at least. Likely further.
5085 if test -x /sbin/sysctl; then
5086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5087 elif test -x /usr/sbin/sysctl; then
5088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5089 else
5090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5092 # And add a safety zone
5093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5097 interix*)
5098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5099 lt_cv_sys_max_cmd_len=196608
5102 os2*)
5103 # The test takes a long time on OS/2.
5104 lt_cv_sys_max_cmd_len=8192
5107 osf*)
5108 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5109 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5110 # nice to cause kernel panics so lets avoid the loop below.
5111 # First set a reasonable default.
5112 lt_cv_sys_max_cmd_len=16384
5114 if test -x /sbin/sysconfig; then
5115 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5116 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5117 esac
5120 sco3.2v5*)
5121 lt_cv_sys_max_cmd_len=102400
5123 sysv5* | sco5v6* | sysv4.2uw2*)
5124 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5125 if test -n "$kargmax"; then
5126 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5127 else
5128 lt_cv_sys_max_cmd_len=32768
5132 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5133 if test -n "$lt_cv_sys_max_cmd_len"; then
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5136 else
5137 # Make teststring a little bigger before we do anything with it.
5138 # a 1K string should be a reasonable start.
5139 for i in 1 2 3 4 5 6 7 8 ; do
5140 teststring=$teststring$teststring
5141 done
5142 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5143 # If test is not a shell built-in, we'll probably end up computing a
5144 # maximum length that is only half of the actual maximum length, but
5145 # we can't tell.
5146 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5147 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5148 test $i != 17 # 1/2 MB should be enough
5150 i=`expr $i + 1`
5151 teststring=$teststring$teststring
5152 done
5153 # Only check the string length outside the loop.
5154 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5155 teststring=
5156 # Add a significant safety factor because C++ compilers can tack on
5157 # massive amounts of additional arguments before passing them to the
5158 # linker. It appears as though 1/2 is a usable value.
5159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5162 esac
5166 if test -n $lt_cv_sys_max_cmd_len ; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5168 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5171 $as_echo "none" >&6; }
5173 max_cmd_len=$lt_cv_sys_max_cmd_len
5180 : ${CP="cp -f"}
5181 : ${MV="mv -f"}
5182 : ${RM="rm -f"}
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5185 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5186 # Try some XSI features
5187 xsi_shell=no
5188 ( _lt_dummy="a/b/c"
5189 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5190 = c,a/b,b/c, \
5191 && eval 'test $(( 1 + 1 )) -eq 2 \
5192 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5193 && xsi_shell=yes
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5195 $as_echo "$xsi_shell" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5199 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5200 lt_shell_append=no
5201 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5202 >/dev/null 2>&1 \
5203 && lt_shell_append=yes
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5205 $as_echo "$lt_shell_append" >&6; }
5208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5209 lt_unset=unset
5210 else
5211 lt_unset=false
5218 # test EBCDIC or ASCII
5219 case `echo X|tr X '\101'` in
5220 A) # ASCII based system
5221 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5222 lt_SP2NL='tr \040 \012'
5223 lt_NL2SP='tr \015\012 \040\040'
5225 *) # EBCDIC based system
5226 lt_SP2NL='tr \100 \n'
5227 lt_NL2SP='tr \r\n \100\100'
5229 esac
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5240 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5241 if ${lt_cv_to_host_file_cmd+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 case $host in
5245 *-*-mingw* )
5246 case $build in
5247 *-*-mingw* ) # actually msys
5248 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5250 *-*-cygwin* )
5251 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5253 * ) # otherwise, assume *nix
5254 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5256 esac
5258 *-*-cygwin* )
5259 case $build in
5260 *-*-mingw* ) # actually msys
5261 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5263 *-*-cygwin* )
5264 lt_cv_to_host_file_cmd=func_convert_file_noop
5266 * ) # otherwise, assume *nix
5267 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5269 esac
5271 * ) # unhandled hosts (and "normal" native builds)
5272 lt_cv_to_host_file_cmd=func_convert_file_noop
5274 esac
5278 to_host_file_cmd=$lt_cv_to_host_file_cmd
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5280 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5287 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5288 if ${lt_cv_to_tool_file_cmd+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 #assume ordinary cross tools, or native build.
5292 lt_cv_to_tool_file_cmd=func_convert_file_noop
5293 case $host in
5294 *-*-mingw* )
5295 case $build in
5296 *-*-mingw* ) # actually msys
5297 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5299 esac
5301 esac
5305 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5307 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5314 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5315 if ${lt_cv_ld_reload_flag+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 lt_cv_ld_reload_flag='-r'
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5321 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5322 reload_flag=$lt_cv_ld_reload_flag
5323 case $reload_flag in
5324 "" | " "*) ;;
5325 *) reload_flag=" $reload_flag" ;;
5326 esac
5327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5328 case $host_os in
5329 cygwin* | mingw* | pw32* | cegcc*)
5330 if test "$GCC" != yes; then
5331 reload_cmds=false
5334 darwin*)
5335 if test "$GCC" = yes; then
5336 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5337 else
5338 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5341 esac
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_OBJDUMP+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$OBJDUMP"; then
5360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5373 done
5374 done
5375 IFS=$as_save_IFS
5379 OBJDUMP=$ac_cv_prog_OBJDUMP
5380 if test -n "$OBJDUMP"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5382 $as_echo "$OBJDUMP" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5390 if test -z "$ac_cv_prog_OBJDUMP"; then
5391 ac_ct_OBJDUMP=$OBJDUMP
5392 # Extract the first word of "objdump", so it can be a program name with args.
5393 set dummy objdump; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$ac_ct_OBJDUMP"; then
5400 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5413 done
5414 done
5415 IFS=$as_save_IFS
5419 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5420 if test -n "$ac_ct_OBJDUMP"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5422 $as_echo "$ac_ct_OBJDUMP" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5428 if test "x$ac_ct_OBJDUMP" = x; then
5429 OBJDUMP="false"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432 yes:)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned=yes ;;
5436 esac
5437 OBJDUMP=$ac_ct_OBJDUMP
5439 else
5440 OBJDUMP="$ac_cv_prog_OBJDUMP"
5443 test -z "$OBJDUMP" && OBJDUMP=objdump
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5454 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5455 if ${lt_cv_deplibs_check_method+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 lt_cv_file_magic_cmd='$MAGIC_CMD'
5459 lt_cv_file_magic_test_file=
5460 lt_cv_deplibs_check_method='unknown'
5461 # Need to set the preceding variable on all platforms that support
5462 # interlibrary dependencies.
5463 # 'none' -- dependencies not supported.
5464 # `unknown' -- same as none, but documents that we really don't know.
5465 # 'pass_all' -- all dependencies passed with no checks.
5466 # 'test_compile' -- check by making test program.
5467 # 'file_magic [[regex]]' -- check by looking for files in library path
5468 # which responds to the $file_magic_cmd with a given extended regex.
5469 # If you have `file' or equivalent on your system and you're not sure
5470 # whether `pass_all' will *always* work, you probably want this one.
5472 case $host_os in
5473 aix[4-9]*)
5474 lt_cv_deplibs_check_method=pass_all
5477 beos*)
5478 lt_cv_deplibs_check_method=pass_all
5481 bsdi[45]*)
5482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5483 lt_cv_file_magic_cmd='/usr/bin/file -L'
5484 lt_cv_file_magic_test_file=/shlib/libc.so
5487 cygwin*)
5488 # func_win32_libid is a shell function defined in ltmain.sh
5489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490 lt_cv_file_magic_cmd='func_win32_libid'
5493 mingw* | pw32*)
5494 # Base MSYS/MinGW do not provide the 'file' command needed by
5495 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5496 # unless we find 'file', for example because we are cross-compiling.
5497 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5498 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5500 lt_cv_file_magic_cmd='func_win32_libid'
5501 else
5502 # Keep this pattern in sync with the one in func_win32_libid.
5503 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5504 lt_cv_file_magic_cmd='$OBJDUMP -f'
5508 cegcc*)
5509 # use the weaker test based on 'objdump'. See mingw*.
5510 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5511 lt_cv_file_magic_cmd='$OBJDUMP -f'
5514 darwin* | rhapsody*)
5515 lt_cv_deplibs_check_method=pass_all
5518 freebsd* | dragonfly*)
5519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 case $host_cpu in
5521 i*86 )
5522 # Not sure whether the presence of OpenBSD here was a mistake.
5523 # Let's accept both of them until this is cleared up.
5524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5525 lt_cv_file_magic_cmd=/usr/bin/file
5526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5528 esac
5529 else
5530 lt_cv_deplibs_check_method=pass_all
5534 gnu*)
5535 lt_cv_deplibs_check_method=pass_all
5538 haiku*)
5539 lt_cv_deplibs_check_method=pass_all
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5544 case $host_cpu in
5545 ia64*)
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5549 hppa*64*)
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5557 esac
5560 interix[3-9]*)
5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5565 irix5* | irix6* | nonstopux*)
5566 case $LD in
5567 *-32|*"-32 ") libmagic=32-bit;;
5568 *-n32|*"-n32 ") libmagic=N32;;
5569 *-64|*"-64 ") libmagic=64-bit;;
5570 *) libmagic=never-match;;
5571 esac
5572 lt_cv_deplibs_check_method=pass_all
5575 # This must be glibc/ELF.
5576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5577 lt_cv_deplibs_check_method=pass_all
5580 netbsd* | netbsdelf*-gnu)
5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5583 else
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5588 newos6*)
5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5590 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5594 *nto* | *qnx*)
5595 lt_cv_deplibs_check_method=pass_all
5598 openbsd*)
5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5601 else
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606 osf3* | osf4* | osf5*)
5607 lt_cv_deplibs_check_method=pass_all
5610 rdos*)
5611 lt_cv_deplibs_check_method=pass_all
5614 solaris*)
5615 lt_cv_deplibs_check_method=pass_all
5618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5619 lt_cv_deplibs_check_method=pass_all
5622 sysv4 | sysv4.3*)
5623 case $host_vendor in
5624 motorola)
5625 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]'
5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5628 ncr)
5629 lt_cv_deplibs_check_method=pass_all
5631 sequent)
5632 lt_cv_file_magic_cmd='/bin/file'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5635 sni)
5636 lt_cv_file_magic_cmd='/bin/file'
5637 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5638 lt_cv_file_magic_test_file=/lib/libc.so
5640 siemens)
5641 lt_cv_deplibs_check_method=pass_all
5644 lt_cv_deplibs_check_method=pass_all
5646 esac
5649 tpf*)
5650 lt_cv_deplibs_check_method=pass_all
5652 esac
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5656 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5658 file_magic_glob=
5659 want_nocaseglob=no
5660 if test "$build" = "$host"; then
5661 case $host_os in
5662 mingw* | pw32*)
5663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5664 want_nocaseglob=yes
5665 else
5666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5669 esac
5672 file_magic_cmd=$lt_cv_file_magic_cmd
5673 deplibs_check_method=$lt_cv_deplibs_check_method
5674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_DLLTOOL+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$DLLTOOL"; then
5706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5725 DLLTOOL=$ac_cv_prog_DLLTOOL
5726 if test -n "$DLLTOOL"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5728 $as_echo "$DLLTOOL" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5736 if test -z "$ac_cv_prog_DLLTOOL"; then
5737 ac_ct_DLLTOOL=$DLLTOOL
5738 # Extract the first word of "dlltool", so it can be a program name with args.
5739 set dummy dlltool; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -n "$ac_ct_DLLTOOL"; then
5746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5759 done
5760 done
5761 IFS=$as_save_IFS
5765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5766 if test -n "$ac_ct_DLLTOOL"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5768 $as_echo "$ac_ct_DLLTOOL" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 if test "x$ac_ct_DLLTOOL" = x; then
5775 DLLTOOL="false"
5776 else
5777 case $cross_compiling:$ac_tool_warned in
5778 yes:)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5782 esac
5783 DLLTOOL=$ac_ct_DLLTOOL
5785 else
5786 DLLTOOL="$ac_cv_prog_DLLTOOL"
5789 test -z "$DLLTOOL" && DLLTOOL=dlltool
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5801 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5802 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 lt_cv_sharedlib_from_linklib_cmd='unknown'
5807 case $host_os in
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 # two different shell functions defined in ltmain.sh
5810 # decide which to use based on capabilities of $DLLTOOL
5811 case `$DLLTOOL --help 2>&1` in
5812 *--identify-strict*)
5813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5818 esac
5821 # fallback: assume linklib IS sharedlib
5822 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5824 esac
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5828 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5829 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5830 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5839 if test -n "$ac_tool_prefix"; then
5840 for ac_prog in ar
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_prog_AR+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$AR"; then
5850 ac_cv_prog_AR="$AR" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5863 done
5864 done
5865 IFS=$as_save_IFS
5869 AR=$ac_cv_prog_AR
5870 if test -n "$AR"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5872 $as_echo "$AR" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5879 test -n "$AR" && break
5880 done
5882 if test -z "$AR"; then
5883 ac_ct_AR=$AR
5884 for ac_prog in ar
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$ac_ct_AR"; then
5894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_ac_ct_AR="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5913 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5914 if test -n "$ac_ct_AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5916 $as_echo "$ac_ct_AR" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5923 test -n "$ac_ct_AR" && break
5924 done
5926 if test "x$ac_ct_AR" = x; then
5927 AR="false"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930 yes:)
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933 ac_tool_warned=yes ;;
5934 esac
5935 AR=$ac_ct_AR
5939 : ${AR=ar}
5940 : ${AR_FLAGS=cru}
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5953 $as_echo_n "checking for archiver @FILE support... " >&6; }
5954 if ${lt_cv_ar_at_file+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 lt_cv_ar_at_file=no
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5962 main ()
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 echo conftest.$ac_objext > conftest.lst
5971 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5973 (eval $lt_ar_try) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976 test $ac_status = 0; }
5977 if test "$ac_status" -eq 0; then
5978 # Ensure the archiver fails upon bogus file names.
5979 rm -f conftest.$ac_objext libconftest.a
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5981 (eval $lt_ar_try) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }
5985 if test "$ac_status" -ne 0; then
5986 lt_cv_ar_at_file=@
5989 rm -f conftest.* libconftest.a
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5996 $as_echo "$lt_cv_ar_at_file" >&6; }
5998 if test "x$lt_cv_ar_at_file" = xno; then
5999 archiver_list_spec=
6000 else
6001 archiver_list_spec=$lt_cv_ar_at_file
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}strip; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_STRIP+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 STRIP=$ac_cv_prog_STRIP
6039 if test -n "$STRIP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6041 $as_echo "$STRIP" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6049 if test -z "$ac_cv_prog_STRIP"; then
6050 ac_ct_STRIP=$STRIP
6051 # Extract the first word of "strip", so it can be a program name with args.
6052 set dummy strip; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_STRIP="strip"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079 if test -n "$ac_ct_STRIP"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6081 $as_echo "$ac_ct_STRIP" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6087 if test "x$ac_ct_STRIP" = x; then
6088 STRIP=":"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096 STRIP=$ac_ct_STRIP
6098 else
6099 STRIP="$ac_cv_prog_STRIP"
6102 test -z "$STRIP" && STRIP=:
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_RANLIB+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6133 IFS=$as_save_IFS
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6171 done
6172 done
6173 IFS=$as_save_IFS
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6186 if test "x$ac_ct_RANLIB" = x; then
6187 RANLIB=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 RANLIB=$ac_ct_RANLIB
6197 else
6198 RANLIB="$ac_cv_prog_RANLIB"
6201 test -z "$RANLIB" && RANLIB=:
6208 # Determine commands to create old-style static archives.
6209 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6210 old_postinstall_cmds='chmod 644 $oldlib'
6211 old_postuninstall_cmds=
6213 if test -n "$RANLIB"; then
6214 case $host_os in
6215 openbsd*)
6216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6221 esac
6222 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6225 case $host_os in
6226 darwin*)
6227 lock_old_archive_extraction=yes ;;
6229 lock_old_archive_extraction=no ;;
6230 esac
6270 # If no C compiler was specified, use CC.
6271 LTCC=${LTCC-"$CC"}
6273 # If no C compiler flags were specified, use CFLAGS.
6274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276 # Allow CC to be a program name with arguments.
6277 compiler=$CC
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296 # Define system-specific variables.
6297 case $host_os in
6298 aix*)
6299 symcode='[BCDT]'
6301 cygwin* | mingw* | pw32* | cegcc*)
6302 symcode='[ABCDGISTW]'
6304 hpux*)
6305 if test "$host_cpu" = ia64; then
6306 symcode='[ABCDEGRST]'
6309 irix* | nonstopux*)
6310 symcode='[BCDEGRST]'
6312 osf*)
6313 symcode='[BCDEGQRST]'
6315 solaris*)
6316 symcode='[BDRT]'
6318 sco3.2v5*)
6319 symcode='[DT]'
6321 sysv4.2uw2*)
6322 symcode='[DT]'
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6325 symcode='[ABDT]'
6327 sysv4)
6328 symcode='[DFNSTU]'
6330 esac
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6336 esac
6338 # Transform an extracted symbol line into a proper C declaration.
6339 # Some systems (esp. on ia64) link data and code symbols differently,
6340 # so use this general approach.
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6343 # Transform an extracted symbol line into symbol name and symbol address
6344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6345 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'"
6347 # Handle CRLF in mingw tool chain
6348 opt_cr=
6349 case $build_os in
6350 mingw*)
6351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6353 esac
6355 # Try without a prefix underscore, then with it.
6356 for ac_symprfx in "" "_"; do
6358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6359 symxfrm="\\1 $ac_symprfx\\2 \\2"
6361 # Write the raw and C identifiers.
6362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6363 # Fake it for dumpbin and say T for any non-static function
6364 # and D for any global variable.
6365 # Also find C++ and __fastcall symbols from MSVC++,
6366 # which start with @ or ?.
6367 lt_cv_sys_global_symbol_pipe="$AWK '"\
6368 " {last_section=section; section=\$ 3};"\
6369 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6370 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6371 " \$ 0!~/External *\|/{next};"\
6372 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6373 " {if(hide[section]) next};"\
6374 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6375 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6376 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6377 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6378 " ' prfx=^$ac_symprfx"
6379 else
6380 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6382 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6384 # Check to see that the pipe works correctly.
6385 pipe_works=no
6387 rm -f conftest*
6388 cat > conftest.$ac_ext <<_LT_EOF
6389 #ifdef __cplusplus
6390 extern "C" {
6391 #endif
6392 char nm_test_var;
6393 void nm_test_func(void);
6394 void nm_test_func(void){}
6395 #ifdef __cplusplus
6397 #endif
6398 int main(){nm_test_var='a';nm_test_func();return(0);}
6399 _LT_EOF
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }; then
6406 # Now try to grab the symbols.
6407 nlist=conftest.nm
6408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6409 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6410 ac_status=$?
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; } && test -s "$nlist"; then
6413 # Try sorting and uniquifying the output.
6414 if sort "$nlist" | uniq > "$nlist"T; then
6415 mv -f "$nlist"T "$nlist"
6416 else
6417 rm -f "$nlist"T
6420 # Make sure that we snagged all the symbols we need.
6421 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6422 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6423 cat <<_LT_EOF > conftest.$ac_ext
6424 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6425 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6426 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6427 relocations are performed -- see ld's documentation on pseudo-relocs. */
6428 # define LT_DLSYM_CONST
6429 #elif defined(__osf__)
6430 /* This system does not cope well with relocations in const data. */
6431 # define LT_DLSYM_CONST
6432 #else
6433 # define LT_DLSYM_CONST const
6434 #endif
6436 #ifdef __cplusplus
6437 extern "C" {
6438 #endif
6440 _LT_EOF
6441 # Now generate the symbol file.
6442 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6444 cat <<_LT_EOF >> conftest.$ac_ext
6446 /* The mapping between symbol names and symbols. */
6447 LT_DLSYM_CONST struct {
6448 const char *name;
6449 void *address;
6451 lt__PROGRAM__LTX_preloaded_symbols[] =
6453 { "@PROGRAM@", (void *) 0 },
6454 _LT_EOF
6455 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6456 cat <<\_LT_EOF >> conftest.$ac_ext
6457 {0, (void *) 0}
6460 /* This works around a problem in FreeBSD linker */
6461 #ifdef FREEBSD_WORKAROUND
6462 static const void *lt_preloaded_setup() {
6463 return lt__PROGRAM__LTX_preloaded_symbols;
6465 #endif
6467 #ifdef __cplusplus
6469 #endif
6470 _LT_EOF
6471 # Now try linking the two files.
6472 mv conftest.$ac_objext conftstm.$ac_objext
6473 lt_globsym_save_LIBS=$LIBS
6474 lt_globsym_save_CFLAGS=$CFLAGS
6475 LIBS="conftstm.$ac_objext"
6476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6478 (eval $ac_link) 2>&5
6479 ac_status=$?
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6482 pipe_works=yes
6484 LIBS=$lt_globsym_save_LIBS
6485 CFLAGS=$lt_globsym_save_CFLAGS
6486 else
6487 echo "cannot find nm_test_func in $nlist" >&5
6489 else
6490 echo "cannot find nm_test_var in $nlist" >&5
6492 else
6493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6495 else
6496 echo "$progname: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 rm -rf conftest* conftst*
6501 # Do not use the global_symbol_pipe unless it works.
6502 if test "$pipe_works" = yes; then
6503 break
6504 else
6505 lt_cv_sys_global_symbol_pipe=
6507 done
6511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512 lt_cv_sys_global_symbol_to_cdecl=
6514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6516 $as_echo "failed" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6519 $as_echo "ok" >&6; }
6522 # Response file support.
6523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6524 nm_file_list_spec='@'
6525 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6526 nm_file_list_spec='@'
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6556 $as_echo_n "checking for sysroot... " >&6; }
6558 # Check whether --with-sysroot was given.
6559 if test "${with_sysroot+set}" = set; then :
6560 withval=$with_sysroot;
6561 else
6562 with_sysroot=no
6566 lt_sysroot=
6567 case ${with_sysroot} in #(
6568 yes)
6569 if test "$GCC" = yes; then
6570 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6572 ;; #(
6574 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6575 ;; #(
6576 no|'')
6577 ;; #(
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6580 $as_echo "${with_sysroot}" >&6; }
6581 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6583 esac
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6586 $as_echo "${lt_sysroot:-no}" >&6; }
6592 # Check whether --enable-libtool-lock was given.
6593 if test "${enable_libtool_lock+set}" = set; then :
6594 enableval=$enable_libtool_lock;
6597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6599 # Some flags need to be propagated to the compiler or linker for good
6600 # libtool support.
6601 case $host in
6602 ia64-*-hpux*)
6603 # Find out which ABI we are using.
6604 echo 'int i;' > conftest.$ac_ext
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606 (eval $ac_compile) 2>&5
6607 ac_status=$?
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 case `/usr/bin/file conftest.$ac_objext` in
6611 *ELF-32*)
6612 HPUX_IA64_MODE="32"
6614 *ELF-64*)
6615 HPUX_IA64_MODE="64"
6617 esac
6619 rm -rf conftest*
6621 *-*-irix6*)
6622 # Find out which ABI we are using.
6623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 if test "$lt_cv_prog_gnu_ld" = yes; then
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 LD="${LD-ld} -melf32bsmip"
6634 *N32*)
6635 LD="${LD-ld} -melf32bmipn32"
6637 *64-bit*)
6638 LD="${LD-ld} -melf64bmip"
6640 esac
6641 else
6642 case `/usr/bin/file conftest.$ac_objext` in
6643 *32-bit*)
6644 LD="${LD-ld} -32"
6646 *N32*)
6647 LD="${LD-ld} -n32"
6649 *64-bit*)
6650 LD="${LD-ld} -64"
6652 esac
6655 rm -rf conftest*
6658 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6659 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6660 # Find out which ABI we are using.
6661 echo 'int i;' > conftest.$ac_ext
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 case `/usr/bin/file conftest.o` in
6668 *32-bit*)
6669 case $host in
6670 x86_64-*kfreebsd*-gnu)
6671 LD="${LD-ld} -m elf_i386_fbsd"
6673 x86_64-*linux*)
6674 LD="${LD-ld} -m elf_i386"
6676 ppc64-*linux*|powerpc64-*linux*)
6677 LD="${LD-ld} -m elf32ppclinux"
6679 s390x-*linux*)
6680 LD="${LD-ld} -m elf_s390"
6682 sparc64-*linux*)
6683 LD="${LD-ld} -m elf32_sparc"
6685 esac
6687 *64-bit*)
6688 case $host in
6689 x86_64-*kfreebsd*-gnu)
6690 LD="${LD-ld} -m elf_x86_64_fbsd"
6692 x86_64-*linux*)
6693 LD="${LD-ld} -m elf_x86_64"
6695 ppc*-*linux*|powerpc*-*linux*)
6696 LD="${LD-ld} -m elf64ppc"
6698 s390*-*linux*|s390*-*tpf*)
6699 LD="${LD-ld} -m elf64_s390"
6701 sparc*-*linux*)
6702 LD="${LD-ld} -m elf64_sparc"
6704 esac
6706 esac
6708 rm -rf conftest*
6711 *-*-sco3.2v5*)
6712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6713 SAVE_CFLAGS="$CFLAGS"
6714 CFLAGS="$CFLAGS -belf"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6716 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6717 if ${lt_cv_cc_needs_belf+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 ac_ext=c
6721 ac_cpp='$CPP $CPPFLAGS'
6722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6730 main ()
6734 return 0;
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 lt_cv_cc_needs_belf=yes
6739 else
6740 lt_cv_cc_needs_belf=no
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 ac_ext=c
6745 ac_cpp='$CPP $CPPFLAGS'
6746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6752 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6753 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6754 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6755 CFLAGS="$SAVE_CFLAGS"
6758 *-*solaris*)
6759 # Find out which ABI we are using.
6760 echo 'int i;' > conftest.$ac_ext
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762 (eval $ac_compile) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }; then
6766 case `/usr/bin/file conftest.o` in
6767 *64-bit*)
6768 case $lt_cv_prog_gnu_ld in
6769 yes*)
6770 case $host in
6771 i?86-*-solaris*)
6772 LD="${LD-ld} -m elf_x86_64"
6774 sparc*-*-solaris*)
6775 LD="${LD-ld} -m elf64_sparc"
6777 esac
6778 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6779 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6780 LD="${LD-ld}_sol2"
6784 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6785 LD="${LD-ld} -64"
6788 esac
6790 esac
6792 rm -rf conftest*
6794 esac
6796 need_locks="$enable_libtool_lock"
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}mt; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 if test -n "$MANIFEST_TOOL"; then
6807 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6820 done
6821 done
6822 IFS=$as_save_IFS
6826 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6827 if test -n "$MANIFEST_TOOL"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6829 $as_echo "$MANIFEST_TOOL" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6837 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6838 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6839 # Extract the first word of "mt", so it can be a program name with args.
6840 set dummy mt; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$ac_ct_MANIFEST_TOOL"; then
6847 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6866 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6867 if test -n "$ac_ct_MANIFEST_TOOL"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6869 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6875 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6876 MANIFEST_TOOL=":"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6883 esac
6884 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6886 else
6887 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6890 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6892 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6893 if ${lt_cv_path_mainfest_tool+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 lt_cv_path_mainfest_tool=no
6897 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6898 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6899 cat conftest.err >&5
6900 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6901 lt_cv_path_mainfest_tool=yes
6903 rm -f conftest*
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6906 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6907 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6908 MANIFEST_TOOL=:
6916 case $host_os in
6917 rhapsody* | darwin*)
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$DSYMUTIL"; then
6927 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6947 if test -n "$DSYMUTIL"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6949 $as_echo "$DSYMUTIL" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6957 if test -z "$ac_cv_prog_DSYMUTIL"; then
6958 ac_ct_DSYMUTIL=$DSYMUTIL
6959 # Extract the first word of "dsymutil", so it can be a program name with args.
6960 set dummy dsymutil; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 if test -n "$ac_ct_DSYMUTIL"; then
6967 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6980 done
6981 done
6982 IFS=$as_save_IFS
6986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6987 if test -n "$ac_ct_DSYMUTIL"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6989 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6995 if test "x$ac_ct_DSYMUTIL" = x; then
6996 DSYMUTIL=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 DSYMUTIL=$ac_ct_DSYMUTIL
7006 else
7007 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_NMEDIT+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 if test -n "$NMEDIT"; then
7019 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7032 done
7033 done
7034 IFS=$as_save_IFS
7038 NMEDIT=$ac_cv_prog_NMEDIT
7039 if test -n "$NMEDIT"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7041 $as_echo "$NMEDIT" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7049 if test -z "$ac_cv_prog_NMEDIT"; then
7050 ac_ct_NMEDIT=$NMEDIT
7051 # Extract the first word of "nmedit", so it can be a program name with args.
7052 set dummy nmedit; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test -n "$ac_ct_NMEDIT"; then
7059 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7072 done
7073 done
7074 IFS=$as_save_IFS
7078 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7079 if test -n "$ac_ct_NMEDIT"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7081 $as_echo "$ac_ct_NMEDIT" >&6; }
7082 else
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7087 if test "x$ac_ct_NMEDIT" = x; then
7088 NMEDIT=":"
7089 else
7090 case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096 NMEDIT=$ac_ct_NMEDIT
7098 else
7099 NMEDIT="$ac_cv_prog_NMEDIT"
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_LIPO+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 if test -n "$LIPO"; then
7111 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7126 IFS=$as_save_IFS
7130 LIPO=$ac_cv_prog_LIPO
7131 if test -n "$LIPO"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7133 $as_echo "$LIPO" >&6; }
7134 else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7141 if test -z "$ac_cv_prog_LIPO"; then
7142 ac_ct_LIPO=$LIPO
7143 # Extract the first word of "lipo", so it can be a program name with args.
7144 set dummy lipo; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 if test -n "$ac_ct_LIPO"; then
7151 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_LIPO="lipo"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7164 done
7165 done
7166 IFS=$as_save_IFS
7170 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7171 if test -n "$ac_ct_LIPO"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7173 $as_echo "$ac_ct_LIPO" >&6; }
7174 else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7179 if test "x$ac_ct_LIPO" = x; then
7180 LIPO=":"
7181 else
7182 case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7187 esac
7188 LIPO=$ac_ct_LIPO
7190 else
7191 LIPO="$ac_cv_prog_LIPO"
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}otool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_OTOOL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$OTOOL"; then
7203 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7216 done
7217 done
7218 IFS=$as_save_IFS
7222 OTOOL=$ac_cv_prog_OTOOL
7223 if test -n "$OTOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7225 $as_echo "$OTOOL" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_prog_OTOOL"; then
7234 ac_ct_OTOOL=$OTOOL
7235 # Extract the first word of "otool", so it can be a program name with args.
7236 set dummy otool; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_OTOOL"; then
7243 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_OTOOL="otool"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7256 done
7257 done
7258 IFS=$as_save_IFS
7262 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7263 if test -n "$ac_ct_OTOOL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7265 $as_echo "$ac_ct_OTOOL" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7271 if test "x$ac_ct_OTOOL" = x; then
7272 OTOOL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 OTOOL=$ac_ct_OTOOL
7282 else
7283 OTOOL="$ac_cv_prog_OTOOL"
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_OTOOL64+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$OTOOL64"; then
7295 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7308 done
7309 done
7310 IFS=$as_save_IFS
7314 OTOOL64=$ac_cv_prog_OTOOL64
7315 if test -n "$OTOOL64"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7317 $as_echo "$OTOOL64" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_OTOOL64"; then
7326 ac_ct_OTOOL64=$OTOOL64
7327 # Extract the first word of "otool64", so it can be a program name with args.
7328 set dummy otool64; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$ac_ct_OTOOL64"; then
7335 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_ac_ct_OTOOL64="otool64"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7348 done
7349 done
7350 IFS=$as_save_IFS
7354 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7355 if test -n "$ac_ct_OTOOL64"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7357 $as_echo "$ac_ct_OTOOL64" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_OTOOL64" = x; then
7364 OTOOL64=":"
7365 else
7366 case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372 OTOOL64=$ac_ct_OTOOL64
7374 else
7375 OTOOL64="$ac_cv_prog_OTOOL64"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7405 $as_echo_n "checking for -single_module linker flag... " >&6; }
7406 if ${lt_cv_apple_cc_single_mod+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 lt_cv_apple_cc_single_mod=no
7410 if test -z "${LT_MULTI_MODULE}"; then
7411 # By default we will add the -single_module flag. You can override
7412 # by either setting the environment variable LT_MULTI_MODULE
7413 # non-empty at configure time, or by adding -multi_module to the
7414 # link flags.
7415 rm -rf libconftest.dylib*
7416 echo "int foo(void){return 1;}" > conftest.c
7417 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7418 -dynamiclib -Wl,-single_module conftest.c" >&5
7419 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7420 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7421 _lt_result=$?
7422 # If there is a non-empty error log, and "single_module"
7423 # appears in it, assume the flag caused a linker warning
7424 if test -s conftest.err && $GREP single_module conftest.err; then
7425 cat conftest.err >&5
7426 # Otherwise, if the output was created with a 0 exit code from
7427 # the compiler, it worked.
7428 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7429 lt_cv_apple_cc_single_mod=yes
7430 else
7431 cat conftest.err >&5
7433 rm -rf libconftest.dylib*
7434 rm -f conftest.*
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7438 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7441 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7442 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 lt_cv_ld_exported_symbols_list=no
7446 save_LDFLAGS=$LDFLAGS
7447 echo "_main" > conftest.sym
7448 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 main ()
7457 return 0;
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 lt_cv_ld_exported_symbols_list=yes
7462 else
7463 lt_cv_ld_exported_symbols_list=no
7465 rm -f core conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LDFLAGS="$save_LDFLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7471 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7474 $as_echo_n "checking for -force_load linker flag... " >&6; }
7475 if ${lt_cv_ld_force_load+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 lt_cv_ld_force_load=no
7479 cat > conftest.c << _LT_EOF
7480 int forced_loaded() { return 2;}
7481 _LT_EOF
7482 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7483 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7484 echo "$AR cru libconftest.a conftest.o" >&5
7485 $AR cru libconftest.a conftest.o 2>&5
7486 echo "$RANLIB libconftest.a" >&5
7487 $RANLIB libconftest.a 2>&5
7488 cat > conftest.c << _LT_EOF
7489 int main() { return 0;}
7490 _LT_EOF
7491 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7492 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7493 _lt_result=$?
7494 if test -s conftest.err && $GREP force_load conftest.err; then
7495 cat conftest.err >&5
7496 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7497 lt_cv_ld_force_load=yes
7498 else
7499 cat conftest.err >&5
7501 rm -f conftest.err libconftest.a conftest conftest.c
7502 rm -rf conftest.dSYM
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7506 $as_echo "$lt_cv_ld_force_load" >&6; }
7507 case $host_os in
7508 rhapsody* | darwin1.[012])
7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7510 darwin1.*)
7511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7512 darwin*) # darwin 5.x on
7513 # if running on 10.5 or later, the deployment target defaults
7514 # to the OS version, if on x86, and 10.4, the deployment
7515 # target defaults to 10.4. Don't you love it?
7516 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7517 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7519 10.[012]*)
7520 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7521 10.*)
7522 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7523 esac
7525 esac
7526 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7527 _lt_dar_single_mod='$single_module'
7529 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7530 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7531 else
7532 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7534 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7535 _lt_dsymutil='~$DSYMUTIL $lib || :'
7536 else
7537 _lt_dsymutil=
7540 esac
7542 ac_ext=c
7543 ac_cpp='$CPP $CPPFLAGS'
7544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7548 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7549 # On Suns, sometimes $CPP names a directory.
7550 if test -n "$CPP" && test -d "$CPP"; then
7551 CPP=
7553 if test -z "$CPP"; then
7554 if ${ac_cv_prog_CPP+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 # Double quotes because CPP needs to be expanded
7558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7560 ac_preproc_ok=false
7561 for ac_c_preproc_warn_flag in '' yes
7563 # Use a header file that comes with gcc, so configuring glibc
7564 # with a fresh cross-compiler works.
7565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 # <limits.h> exists even on freestanding compilers.
7567 # On the NeXT, cc -E runs the code through the compiler's parser,
7568 # not just through cpp. "Syntax error" is here to catch this case.
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 #ifdef __STDC__
7572 # include <limits.h>
7573 #else
7574 # include <assert.h>
7575 #endif
7576 Syntax error
7577 _ACEOF
7578 if ac_fn_c_try_cpp "$LINENO"; then :
7580 else
7581 # Broken: fails on valid input.
7582 continue
7584 rm -f conftest.err conftest.i conftest.$ac_ext
7586 # OK, works on sane cases. Now check whether nonexistent headers
7587 # can be detected and how.
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 #include <ac_nonexistent.h>
7591 _ACEOF
7592 if ac_fn_c_try_cpp "$LINENO"; then :
7593 # Broken: success on invalid input.
7594 continue
7595 else
7596 # Passes both tests.
7597 ac_preproc_ok=:
7598 break
7600 rm -f conftest.err conftest.i conftest.$ac_ext
7602 done
7603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7604 rm -f conftest.i conftest.err conftest.$ac_ext
7605 if $ac_preproc_ok; then :
7606 break
7609 done
7610 ac_cv_prog_CPP=$CPP
7613 CPP=$ac_cv_prog_CPP
7614 else
7615 ac_cv_prog_CPP=$CPP
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7618 $as_echo "$CPP" >&6; }
7619 ac_preproc_ok=false
7620 for ac_c_preproc_warn_flag in '' yes
7622 # Use a header file that comes with gcc, so configuring glibc
7623 # with a fresh cross-compiler works.
7624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7625 # <limits.h> exists even on freestanding compilers.
7626 # On the NeXT, cc -E runs the code through the compiler's parser,
7627 # not just through cpp. "Syntax error" is here to catch this case.
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 #ifdef __STDC__
7631 # include <limits.h>
7632 #else
7633 # include <assert.h>
7634 #endif
7635 Syntax error
7636 _ACEOF
7637 if ac_fn_c_try_cpp "$LINENO"; then :
7639 else
7640 # Broken: fails on valid input.
7641 continue
7643 rm -f conftest.err conftest.i conftest.$ac_ext
7645 # OK, works on sane cases. Now check whether nonexistent headers
7646 # can be detected and how.
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <ac_nonexistent.h>
7650 _ACEOF
7651 if ac_fn_c_try_cpp "$LINENO"; then :
7652 # Broken: success on invalid input.
7653 continue
7654 else
7655 # Passes both tests.
7656 ac_preproc_ok=:
7657 break
7659 rm -f conftest.err conftest.i conftest.$ac_ext
7661 done
7662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7663 rm -f conftest.i conftest.err conftest.$ac_ext
7664 if $ac_preproc_ok; then :
7666 else
7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7669 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7670 See \`config.log' for more details" "$LINENO" 5; }
7673 ac_ext=c
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7681 $as_echo_n "checking for ANSI C header files... " >&6; }
7682 if ${ac_cv_header_stdc+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <stdlib.h>
7688 #include <stdarg.h>
7689 #include <string.h>
7690 #include <float.h>
7693 main ()
7697 return 0;
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"; then :
7701 ac_cv_header_stdc=yes
7702 else
7703 ac_cv_header_stdc=no
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 if test $ac_cv_header_stdc = yes; then
7708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <string.h>
7713 _ACEOF
7714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7715 $EGREP "memchr" >/dev/null 2>&1; then :
7717 else
7718 ac_cv_header_stdc=no
7720 rm -f conftest*
7724 if test $ac_cv_header_stdc = yes; then
7725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #include <stdlib.h>
7730 _ACEOF
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 $EGREP "free" >/dev/null 2>&1; then :
7734 else
7735 ac_cv_header_stdc=no
7737 rm -f conftest*
7741 if test $ac_cv_header_stdc = yes; then
7742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7743 if test "$cross_compiling" = yes; then :
7745 else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <ctype.h>
7749 #include <stdlib.h>
7750 #if ((' ' & 0x0FF) == 0x020)
7751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7753 #else
7754 # define ISLOWER(c) \
7755 (('a' <= (c) && (c) <= 'i') \
7756 || ('j' <= (c) && (c) <= 'r') \
7757 || ('s' <= (c) && (c) <= 'z'))
7758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7759 #endif
7761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7763 main ()
7765 int i;
7766 for (i = 0; i < 256; i++)
7767 if (XOR (islower (i), ISLOWER (i))
7768 || toupper (i) != TOUPPER (i))
7769 return 2;
7770 return 0;
7772 _ACEOF
7773 if ac_fn_c_try_run "$LINENO"; then :
7775 else
7776 ac_cv_header_stdc=no
7778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7779 conftest.$ac_objext conftest.beam conftest.$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7785 $as_echo "$ac_cv_header_stdc" >&6; }
7786 if test $ac_cv_header_stdc = yes; then
7788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7792 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7794 inttypes.h stdint.h unistd.h
7795 do :
7796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7800 cat >>confdefs.h <<_ACEOF
7801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7802 _ACEOF
7806 done
7809 for ac_header in dlfcn.h
7810 do :
7811 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7813 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7814 cat >>confdefs.h <<_ACEOF
7815 #define HAVE_DLFCN_H 1
7816 _ACEOF
7820 done
7825 func_stripname_cnf ()
7827 case ${2} in
7828 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7829 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7830 esac
7831 } # func_stripname_cnf
7837 # Set options
7842 enable_win32_dll=no
7845 # Check whether --enable-shared was given.
7846 if test "${enable_shared+set}" = set; then :
7847 enableval=$enable_shared; p=${PACKAGE-default}
7848 case $enableval in
7849 yes) enable_shared=yes ;;
7850 no) enable_shared=no ;;
7852 enable_shared=no
7853 # Look at the argument we got. We use all the common list separators.
7854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7855 for pkg in $enableval; do
7856 IFS="$lt_save_ifs"
7857 if test "X$pkg" = "X$p"; then
7858 enable_shared=yes
7860 done
7861 IFS="$lt_save_ifs"
7863 esac
7864 else
7865 enable_shared=yes
7876 # Check whether --enable-static was given.
7877 if test "${enable_static+set}" = set; then :
7878 enableval=$enable_static; p=${PACKAGE-default}
7879 case $enableval in
7880 yes) enable_static=yes ;;
7881 no) enable_static=no ;;
7883 enable_static=no
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886 for pkg in $enableval; do
7887 IFS="$lt_save_ifs"
7888 if test "X$pkg" = "X$p"; then
7889 enable_static=yes
7891 done
7892 IFS="$lt_save_ifs"
7894 esac
7895 else
7896 enable_static=yes
7908 # Check whether --with-pic was given.
7909 if test "${with_pic+set}" = set; then :
7910 withval=$with_pic; lt_p=${PACKAGE-default}
7911 case $withval in
7912 yes|no) pic_mode=$withval ;;
7914 pic_mode=default
7915 # Look at the argument we got. We use all the common list separators.
7916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7917 for lt_pkg in $withval; do
7918 IFS="$lt_save_ifs"
7919 if test "X$lt_pkg" = "X$lt_p"; then
7920 pic_mode=yes
7922 done
7923 IFS="$lt_save_ifs"
7925 esac
7926 else
7927 pic_mode=default
7931 test -z "$pic_mode" && pic_mode=default
7939 # Check whether --enable-fast-install was given.
7940 if test "${enable_fast_install+set}" = set; then :
7941 enableval=$enable_fast_install; p=${PACKAGE-default}
7942 case $enableval in
7943 yes) enable_fast_install=yes ;;
7944 no) enable_fast_install=no ;;
7946 enable_fast_install=no
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7949 for pkg in $enableval; do
7950 IFS="$lt_save_ifs"
7951 if test "X$pkg" = "X$p"; then
7952 enable_fast_install=yes
7954 done
7955 IFS="$lt_save_ifs"
7957 esac
7958 else
7959 enable_fast_install=yes
7972 # This can be used to rebuild libtool when needed
7973 LIBTOOL_DEPS="$ltmain"
7975 # Always use our own libtool.
7976 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8007 test -z "$LN_S" && LN_S="ln -s"
8022 if test -n "${ZSH_VERSION+set}" ; then
8023 setopt NO_GLOB_SUBST
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8027 $as_echo_n "checking for objdir... " >&6; }
8028 if ${lt_cv_objdir+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 rm -f .libs 2>/dev/null
8032 mkdir .libs 2>/dev/null
8033 if test -d .libs; then
8034 lt_cv_objdir=.libs
8035 else
8036 # MS-DOS does not allow filenames that begin with a dot.
8037 lt_cv_objdir=_libs
8039 rmdir .libs 2>/dev/null
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8042 $as_echo "$lt_cv_objdir" >&6; }
8043 objdir=$lt_cv_objdir
8049 cat >>confdefs.h <<_ACEOF
8050 #define LT_OBJDIR "$lt_cv_objdir/"
8051 _ACEOF
8056 case $host_os in
8057 aix3*)
8058 # AIX sometimes has problems with the GCC collect2 program. For some
8059 # reason, if we set the COLLECT_NAMES environment variable, the problems
8060 # vanish in a puff of smoke.
8061 if test "X${COLLECT_NAMES+set}" != Xset; then
8062 COLLECT_NAMES=
8063 export COLLECT_NAMES
8066 esac
8068 # Global variables:
8069 ofile=libtool
8070 can_build_shared=yes
8072 # All known linkers require a `.a' archive for static linking (except MSVC,
8073 # which needs '.lib').
8074 libext=a
8076 with_gnu_ld="$lt_cv_prog_gnu_ld"
8078 old_CC="$CC"
8079 old_CFLAGS="$CFLAGS"
8081 # Set sane defaults for various variables
8082 test -z "$CC" && CC=cc
8083 test -z "$LTCC" && LTCC=$CC
8084 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8085 test -z "$LD" && LD=ld
8086 test -z "$ac_objext" && ac_objext=o
8088 for cc_temp in $compiler""; do
8089 case $cc_temp in
8090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8092 \-*) ;;
8093 *) break;;
8094 esac
8095 done
8096 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8099 # Only perform the check for file, if the check method requires it
8100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8101 case $deplibs_check_method in
8102 file_magic*)
8103 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8105 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 case $MAGIC_CMD in
8110 [\\/*] | ?:[\\/]*)
8111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8114 lt_save_MAGIC_CMD="$MAGIC_CMD"
8115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8117 for ac_dir in $ac_dummy; do
8118 IFS="$lt_save_ifs"
8119 test -z "$ac_dir" && ac_dir=.
8120 if test -f $ac_dir/${ac_tool_prefix}file; then
8121 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8122 if test -n "$file_magic_test_file"; then
8123 case $deplibs_check_method in
8124 "file_magic "*)
8125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8128 $EGREP "$file_magic_regex" > /dev/null; then
8130 else
8131 cat <<_LT_EOF 1>&2
8133 *** Warning: the command libtool uses to detect shared libraries,
8134 *** $file_magic_cmd, produces output that libtool cannot recognize.
8135 *** The result is that libtool may fail to recognize shared libraries
8136 *** as such. This will affect the creation of libtool libraries that
8137 *** depend on shared libraries, but programs linked with such libtool
8138 *** libraries will work regardless of this problem. Nevertheless, you
8139 *** may want to report the problem to your system manager and/or to
8140 *** bug-libtool@gnu.org
8142 _LT_EOF
8143 fi ;;
8144 esac
8146 break
8148 done
8149 IFS="$lt_save_ifs"
8150 MAGIC_CMD="$lt_save_MAGIC_CMD"
8152 esac
8155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8156 if test -n "$MAGIC_CMD"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8158 $as_echo "$MAGIC_CMD" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8168 if test -z "$lt_cv_path_MAGIC_CMD"; then
8169 if test -n "$ac_tool_prefix"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8171 $as_echo_n "checking for file... " >&6; }
8172 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 case $MAGIC_CMD in
8176 [\\/*] | ?:[\\/]*)
8177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8180 lt_save_MAGIC_CMD="$MAGIC_CMD"
8181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8183 for ac_dir in $ac_dummy; do
8184 IFS="$lt_save_ifs"
8185 test -z "$ac_dir" && ac_dir=.
8186 if test -f $ac_dir/file; then
8187 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8188 if test -n "$file_magic_test_file"; then
8189 case $deplibs_check_method in
8190 "file_magic "*)
8191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8194 $EGREP "$file_magic_regex" > /dev/null; then
8196 else
8197 cat <<_LT_EOF 1>&2
8199 *** Warning: the command libtool uses to detect shared libraries,
8200 *** $file_magic_cmd, produces output that libtool cannot recognize.
8201 *** The result is that libtool may fail to recognize shared libraries
8202 *** as such. This will affect the creation of libtool libraries that
8203 *** depend on shared libraries, but programs linked with such libtool
8204 *** libraries will work regardless of this problem. Nevertheless, you
8205 *** may want to report the problem to your system manager and/or to
8206 *** bug-libtool@gnu.org
8208 _LT_EOF
8209 fi ;;
8210 esac
8212 break
8214 done
8215 IFS="$lt_save_ifs"
8216 MAGIC_CMD="$lt_save_MAGIC_CMD"
8218 esac
8221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222 if test -n "$MAGIC_CMD"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8224 $as_echo "$MAGIC_CMD" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8231 else
8232 MAGIC_CMD=:
8238 esac
8240 # Use C for the default configuration in the libtool script
8242 lt_save_CC="$CC"
8243 ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250 # Source file extension for C test sources.
8251 ac_ext=c
8253 # Object file extension for compiled C test sources.
8254 objext=o
8255 objext=$objext
8257 # Code to be used in simple compile tests
8258 lt_simple_compile_test_code="int some_variable = 0;"
8260 # Code to be used in simple link tests
8261 lt_simple_link_test_code='int main(){return(0);}'
8269 # If no C compiler was specified, use CC.
8270 LTCC=${LTCC-"$CC"}
8272 # If no C compiler flags were specified, use CFLAGS.
8273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8275 # Allow CC to be a program name with arguments.
8276 compiler=$CC
8278 # Save the default compiler, since it gets overwritten when the other
8279 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8280 compiler_DEFAULT=$CC
8282 # save warnings/boilerplate of simple test code
8283 ac_outfile=conftest.$ac_objext
8284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8286 _lt_compiler_boilerplate=`cat conftest.err`
8287 $RM conftest*
8289 ac_outfile=conftest.$ac_objext
8290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_linker_boilerplate=`cat conftest.err`
8293 $RM -r conftest*
8296 if test -n "$compiler"; then
8298 lt_prog_compiler_no_builtin_flag=
8300 if test "$GCC" = yes; then
8301 case $cc_basename in
8302 nvcc*)
8303 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8305 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8306 esac
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8309 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8310 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 lt_cv_prog_compiler_rtti_exceptions=no
8314 ac_outfile=conftest.$ac_objext
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316 lt_compiler_flag="-fno-rtti -fno-exceptions"
8317 # Insert the option either (1) after the last *FLAGS variable, or
8318 # (2) before a word containing "conftest.", or (3) at the end.
8319 # Note that $ac_compile itself does not contain backslashes and begins
8320 # with a dollar sign (not a hyphen), so the echo should work correctly.
8321 # The option is referenced via a variable to avoid confusing sed.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>conftest.err)
8328 ac_status=$?
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s "$ac_outfile"; then
8332 # The compiler can only warn and ignore the option if not recognized
8333 # So say no if there are warnings other than the usual output.
8334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8337 lt_cv_prog_compiler_rtti_exceptions=yes
8340 $RM conftest*
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8344 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8348 else
8359 lt_prog_compiler_wl=
8360 lt_prog_compiler_pic=
8361 lt_prog_compiler_static=
8364 if test "$GCC" = yes; then
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_static='-static'
8368 case $host_os in
8369 aix*)
8370 # All AIX code is PIC.
8371 if test "$host_cpu" = ia64; then
8372 # AIX 5 now supports IA64 processor
8373 lt_prog_compiler_static='-Bstatic'
8377 amigaos*)
8378 case $host_cpu in
8379 powerpc)
8380 # see comment about AmigaOS4 .so support
8381 lt_prog_compiler_pic='-fPIC'
8383 m68k)
8384 # FIXME: we need at least 68020 code to build shared libraries, but
8385 # adding the `-m68020' flag to GCC prevents building anything better,
8386 # like `-m68040'.
8387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8389 esac
8392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8393 # PIC is the default for these OSes.
8396 mingw* | cygwin* | pw32* | os2* | cegcc*)
8397 # This hack is so that the source file can tell whether it is being
8398 # built for inclusion in a dll (and should export symbols for example).
8399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8400 # (--disable-auto-import) libraries
8401 lt_prog_compiler_pic='-DDLL_EXPORT'
8404 darwin* | rhapsody*)
8405 # PIC is the default on this platform
8406 # Common symbols not allowed in MH_DYLIB files
8407 lt_prog_compiler_pic='-fno-common'
8410 haiku*)
8411 # PIC is the default for Haiku.
8412 # The "-static" flag exists, but is broken.
8413 lt_prog_compiler_static=
8416 hpux*)
8417 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8418 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8419 # sets the default TLS model and affects inlining.
8420 case $host_cpu in
8421 hppa*64*)
8422 # +Z the default
8425 lt_prog_compiler_pic='-fPIC'
8427 esac
8430 interix[3-9]*)
8431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8432 # Instead, we relocate shared libraries at runtime.
8435 msdosdjgpp*)
8436 # Just because we use GCC doesn't mean we suddenly get shared libraries
8437 # on systems that don't support them.
8438 lt_prog_compiler_can_build_shared=no
8439 enable_shared=no
8442 *nto* | *qnx*)
8443 # QNX uses GNU C++, but need to define -shared option too, otherwise
8444 # it will coredump.
8445 lt_prog_compiler_pic='-fPIC -shared'
8448 sysv4*MP*)
8449 if test -d /usr/nec; then
8450 lt_prog_compiler_pic=-Kconform_pic
8455 lt_prog_compiler_pic='-fPIC'
8457 esac
8459 case $cc_basename in
8460 nvcc*) # Cuda Compiler Driver 2.2
8461 lt_prog_compiler_wl='-Xlinker '
8462 if test -n "$lt_prog_compiler_pic"; then
8463 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8466 esac
8467 else
8468 # PORTME Check for flag to pass linker flags through the system compiler.
8469 case $host_os in
8470 aix*)
8471 lt_prog_compiler_wl='-Wl,'
8472 if test "$host_cpu" = ia64; then
8473 # AIX 5 now supports IA64 processor
8474 lt_prog_compiler_static='-Bstatic'
8475 else
8476 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8480 mingw* | cygwin* | pw32* | os2* | cegcc*)
8481 # This hack is so that the source file can tell whether it is being
8482 # built for inclusion in a dll (and should export symbols for example).
8483 lt_prog_compiler_pic='-DDLL_EXPORT'
8486 hpux9* | hpux10* | hpux11*)
8487 lt_prog_compiler_wl='-Wl,'
8488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8489 # not for PA HP-UX.
8490 case $host_cpu in
8491 hppa*64*|ia64*)
8492 # +Z the default
8495 lt_prog_compiler_pic='+Z'
8497 esac
8498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8499 lt_prog_compiler_static='${wl}-a ${wl}archive'
8502 irix5* | irix6* | nonstopux*)
8503 lt_prog_compiler_wl='-Wl,'
8504 # PIC (with -KPIC) is the default.
8505 lt_prog_compiler_static='-non_shared'
8508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8509 case $cc_basename in
8510 # old Intel for x86_64 which still supported -KPIC.
8511 ecc*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-KPIC'
8514 lt_prog_compiler_static='-static'
8516 # icc used to be incompatible with GCC.
8517 # ICC 10 doesn't accept -KPIC any more.
8518 icc* | ifort*)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-fPIC'
8521 lt_prog_compiler_static='-static'
8523 # Lahey Fortran 8.1.
8524 lf95*)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='--shared'
8527 lt_prog_compiler_static='--static'
8529 nagfor*)
8530 # NAG Fortran compiler
8531 lt_prog_compiler_wl='-Wl,-Wl,,'
8532 lt_prog_compiler_pic='-PIC'
8533 lt_prog_compiler_static='-Bstatic'
8535 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8536 # Portland Group compilers (*not* the Pentium gcc compiler,
8537 # which looks to be a dead project)
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_pic='-fpic'
8540 lt_prog_compiler_static='-Bstatic'
8542 ccc*)
8543 lt_prog_compiler_wl='-Wl,'
8544 # All Alpha code is PIC.
8545 lt_prog_compiler_static='-non_shared'
8547 xl* | bgxl* | bgf* | mpixl*)
8548 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_pic='-qpic'
8551 lt_prog_compiler_static='-qstaticlink'
8554 case `$CC -V 2>&1 | sed 5q` in
8555 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8556 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8557 lt_prog_compiler_pic='-KPIC'
8558 lt_prog_compiler_static='-Bstatic'
8559 lt_prog_compiler_wl=''
8561 *Sun\ F* | *Sun*Fortran*)
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-Bstatic'
8564 lt_prog_compiler_wl='-Qoption ld '
8566 *Sun\ C*)
8567 # Sun C 5.9
8568 lt_prog_compiler_pic='-KPIC'
8569 lt_prog_compiler_static='-Bstatic'
8570 lt_prog_compiler_wl='-Wl,'
8572 *Intel*\ [CF]*Compiler*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-fPIC'
8575 lt_prog_compiler_static='-static'
8577 *Portland\ Group*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-fpic'
8580 lt_prog_compiler_static='-Bstatic'
8582 esac
8584 esac
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
8655 lt_prog_compiler_can_build_shared=no
8657 esac
8660 case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8668 esac
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8671 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8672 if ${lt_cv_prog_compiler_pic+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8678 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8679 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8682 # Check to make sure the PIC flag actually works.
8684 if test -n "$lt_prog_compiler_pic"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8686 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8687 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 lt_cv_prog_compiler_pic_works=no
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8694 # Insert the option either (1) after the last *FLAGS variable, or
8695 # (2) before a word containing "conftest.", or (3) at the end.
8696 # Note that $ac_compile itself does not contain backslashes and begins
8697 # with a dollar sign (not a hyphen), so the echo should work correctly.
8698 # The option is referenced via a variable to avoid confusing sed.
8699 lt_compile=`echo "$ac_compile" | $SED \
8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702 -e 's:$: $lt_compiler_flag:'`
8703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8704 (eval "$lt_compile" 2>conftest.err)
8705 ac_status=$?
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 if (exit $ac_status) && test -s "$ac_outfile"; then
8709 # The compiler can only warn and ignore the option if not recognized
8710 # So say no if there are warnings other than the usual output.
8711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8714 lt_cv_prog_compiler_pic_works=yes
8717 $RM conftest*
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8721 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8723 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8724 case $lt_prog_compiler_pic in
8725 "" | " "*) ;;
8726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8727 esac
8728 else
8729 lt_prog_compiler_pic=
8730 lt_prog_compiler_can_build_shared=no
8746 # Check to make sure the static flag actually works.
8748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8751 if ${lt_cv_prog_compiler_static_works+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 lt_cv_prog_compiler_static_works=no
8755 save_LDFLAGS="$LDFLAGS"
8756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8759 # The linker can only warn and ignore the option if not recognized
8760 # So say no if there are warnings
8761 if test -s conftest.err; then
8762 # Append any errors to the config.log.
8763 cat conftest.err 1>&5
8764 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8766 if diff conftest.exp conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_static_works=yes
8769 else
8770 lt_cv_prog_compiler_static_works=yes
8773 $RM -r conftest*
8774 LDFLAGS="$save_LDFLAGS"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8782 else
8783 lt_prog_compiler_static=
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8794 if ${lt_cv_prog_compiler_c_o+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 lt_cv_prog_compiler_c_o=no
8798 $RM -r conftest 2>/dev/null
8799 mkdir conftest
8800 cd conftest
8801 mkdir out
8802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8804 lt_compiler_flag="-o out/conftest2.$ac_objext"
8805 # Insert the option either (1) after the last *FLAGS variable, or
8806 # (2) before a word containing "conftest.", or (3) at the end.
8807 # Note that $ac_compile itself does not contain backslashes and begins
8808 # with a dollar sign (not a hyphen), so the echo should work correctly.
8809 lt_compile=`echo "$ac_compile" | $SED \
8810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8812 -e 's:$: $lt_compiler_flag:'`
8813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8814 (eval "$lt_compile" 2>out/conftest.err)
8815 ac_status=$?
8816 cat out/conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8819 then
8820 # The compiler can only warn and ignore the option if not recognized
8821 # So say no if there are warnings
8822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8825 lt_cv_prog_compiler_c_o=yes
8828 chmod u+w . 2>&5
8829 $RM conftest*
8830 # SGI C++ compiler will create directory out/ii_files/ for
8831 # template instantiation
8832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8833 $RM out/* && rmdir out
8834 cd ..
8835 $RM -r conftest
8836 $RM conftest*
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8849 if ${lt_cv_prog_compiler_c_o+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 lt_cv_prog_compiler_c_o=no
8853 $RM -r conftest 2>/dev/null
8854 mkdir conftest
8855 cd conftest
8856 mkdir out
8857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8859 lt_compiler_flag="-o out/conftest2.$ac_objext"
8860 # Insert the option either (1) after the last *FLAGS variable, or
8861 # (2) before a word containing "conftest.", or (3) at the end.
8862 # Note that $ac_compile itself does not contain backslashes and begins
8863 # with a dollar sign (not a hyphen), so the echo should work correctly.
8864 lt_compile=`echo "$ac_compile" | $SED \
8865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867 -e 's:$: $lt_compiler_flag:'`
8868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869 (eval "$lt_compile" 2>out/conftest.err)
8870 ac_status=$?
8871 cat out/conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874 then
8875 # The compiler can only warn and ignore the option if not recognized
8876 # So say no if there are warnings
8877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8880 lt_cv_prog_compiler_c_o=yes
8883 chmod u+w . 2>&5
8884 $RM conftest*
8885 # SGI C++ compiler will create directory out/ii_files/ for
8886 # template instantiation
8887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8888 $RM out/* && rmdir out
8889 cd ..
8890 $RM -r conftest
8891 $RM conftest*
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8900 hard_links="nottested"
8901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8902 # do not overwrite the value of need_locks provided by the user
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8904 $as_echo_n "checking if we can lock with hard links... " >&6; }
8905 hard_links=yes
8906 $RM conftest*
8907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8908 touch conftest.a
8909 ln conftest.a conftest.b 2>&5 || hard_links=no
8910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8912 $as_echo "$hard_links" >&6; }
8913 if test "$hard_links" = no; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8916 need_locks=warn
8918 else
8919 need_locks=no
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8930 runpath_var=
8931 allow_undefined_flag=
8932 always_export_symbols=no
8933 archive_cmds=
8934 archive_expsym_cmds=
8935 compiler_needs_object=no
8936 enable_shared_with_static_runtimes=no
8937 export_dynamic_flag_spec=
8938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939 hardcode_automatic=no
8940 hardcode_direct=no
8941 hardcode_direct_absolute=no
8942 hardcode_libdir_flag_spec=
8943 hardcode_libdir_separator=
8944 hardcode_minus_L=no
8945 hardcode_shlibpath_var=unsupported
8946 inherit_rpath=no
8947 link_all_deplibs=unknown
8948 module_cmds=
8949 module_expsym_cmds=
8950 old_archive_from_new_cmds=
8951 old_archive_from_expsyms_cmds=
8952 thread_safe_flag_spec=
8953 whole_archive_flag_spec=
8954 # include_expsyms should be a list of space-separated symbols to be *always*
8955 # included in the symbol list
8956 include_expsyms=
8957 # exclude_expsyms can be an extended regexp of symbols to exclude
8958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8960 # as well as any symbol that contains `d'.
8961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8963 # platforms (ab)use it in PIC code, but their linkers get confused if
8964 # the symbol is explicitly referenced. Since portable code cannot
8965 # rely on this symbol name, it's probably fine to never include it in
8966 # preloaded symbol tables.
8967 # Exclude shared library initialization/finalization symbols.
8968 extract_expsyms_cmds=
8970 case $host_os in
8971 cygwin* | mingw* | pw32* | cegcc*)
8972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8973 # When not using gcc, we currently assume that we are using
8974 # Microsoft Visual C++.
8975 if test "$GCC" != yes; then
8976 with_gnu_ld=no
8979 interix*)
8980 # we just hope/assume this is gcc and not c89 (= MSVC++)
8981 with_gnu_ld=yes
8983 openbsd*)
8984 with_gnu_ld=no
8986 linux* | k*bsd*-gnu | gnu*)
8987 link_all_deplibs=no
8989 esac
8991 ld_shlibs=yes
8993 # On some targets, GNU ld is compatible enough with the native linker
8994 # that we're better off using the native interface for both.
8995 lt_use_gnu_ld_interface=no
8996 if test "$with_gnu_ld" = yes; then
8997 case $host_os in
8998 aix*)
8999 # The AIX port of GNU ld has always aspired to compatibility
9000 # with the native linker. However, as the warning in the GNU ld
9001 # block says, versions before 2.19.5* couldn't really create working
9002 # shared libraries, regardless of the interface used.
9003 case `$LD -v 2>&1` in
9004 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9005 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9006 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9008 lt_use_gnu_ld_interface=yes
9010 esac
9013 lt_use_gnu_ld_interface=yes
9015 esac
9018 if test "$lt_use_gnu_ld_interface" = yes; then
9019 # If archive_cmds runs LD, not CC, wlarc should be empty
9020 wlarc='${wl}'
9022 # Set some defaults for GNU ld with shared library support. These
9023 # are reset later if shared libraries are not supported. Putting them
9024 # here allows them to be overridden if necessary.
9025 runpath_var=LD_RUN_PATH
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 export_dynamic_flag_spec='${wl}--export-dynamic'
9028 # ancient GNU ld didn't support --whole-archive et. al.
9029 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9030 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9031 else
9032 whole_archive_flag_spec=
9034 supports_anon_versioning=no
9035 case `$LD -v 2>&1` in
9036 *GNU\ gold*) supports_anon_versioning=yes ;;
9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9038 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9039 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9040 *\ 2.11.*) ;; # other 2.11 versions
9041 *) supports_anon_versioning=yes ;;
9042 esac
9044 # See if GNU ld supports shared libraries.
9045 case $host_os in
9046 aix[3-9]*)
9047 # On AIX/PPC, the GNU linker is very broken
9048 if test "$host_cpu" != ia64; then
9049 ld_shlibs=no
9050 cat <<_LT_EOF 1>&2
9052 *** Warning: the GNU linker, at least up to release 2.19, is reported
9053 *** to be unable to reliably create shared libraries on AIX.
9054 *** Therefore, libtool is disabling shared libraries support. If you
9055 *** really care for shared libraries, you may want to install binutils
9056 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9057 *** You will then need to restart the configuration process.
9059 _LT_EOF
9063 amigaos*)
9064 case $host_cpu in
9065 powerpc)
9066 # see comment about AmigaOS4 .so support
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 archive_expsym_cmds=''
9070 m68k)
9071 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)'
9072 hardcode_libdir_flag_spec='-L$libdir'
9073 hardcode_minus_L=yes
9075 esac
9078 beos*)
9079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080 allow_undefined_flag=unsupported
9081 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9082 # support --undefined. This deserves some investigation. FIXME
9083 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084 else
9085 ld_shlibs=no
9089 cygwin* | mingw* | pw32* | cegcc*)
9090 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9091 # as there is no search path for DLLs.
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 export_dynamic_flag_spec='${wl}--export-all-symbols'
9094 allow_undefined_flag=unsupported
9095 always_export_symbols=no
9096 enable_shared_with_static_runtimes=yes
9097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9098 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9100 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9102 # If the export-symbols file already is a .def file (1st line
9103 # is EXPORTS), use it as is; otherwise, prepend...
9104 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9105 cp $export_symbols $output_objdir/$soname.def;
9106 else
9107 echo EXPORTS > $output_objdir/$soname.def;
9108 cat $export_symbols >> $output_objdir/$soname.def;
9110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9111 else
9112 ld_shlibs=no
9116 haiku*)
9117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118 link_all_deplibs=yes
9121 interix[3-9]*)
9122 hardcode_direct=no
9123 hardcode_shlibpath_var=no
9124 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9125 export_dynamic_flag_spec='${wl}-E'
9126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9127 # Instead, shared libraries are loaded at an image base (0x10000000 by
9128 # default) and relocated if they conflict, which is a slow very memory
9129 # consuming and fragmenting process. To avoid this, we pick a random,
9130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9133 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'
9136 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9137 tmp_diet=no
9138 if test "$host_os" = linux-dietlibc; then
9139 case $cc_basename in
9140 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9141 esac
9143 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9144 && test "$tmp_diet" = no
9145 then
9146 tmp_addflag=' $pic_flag'
9147 tmp_sharedflag='-shared'
9148 case $cc_basename,$host_cpu in
9149 pgcc*) # Portland Group C compiler
9150 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'
9151 tmp_addflag=' $pic_flag'
9153 pgf77* | pgf90* | pgf95* | pgfortran*)
9154 # Portland Group f77 and f90 compilers
9155 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'
9156 tmp_addflag=' $pic_flag -Mnomain' ;;
9157 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9158 tmp_addflag=' -i_dynamic' ;;
9159 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9160 tmp_addflag=' -i_dynamic -nofor_main' ;;
9161 ifc* | ifort*) # Intel Fortran compiler
9162 tmp_addflag=' -nofor_main' ;;
9163 lf95*) # Lahey Fortran 8.1
9164 whole_archive_flag_spec=
9165 tmp_sharedflag='--shared' ;;
9166 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9167 tmp_sharedflag='-qmkshrobj'
9168 tmp_addflag= ;;
9169 nvcc*) # Cuda Compiler Driver 2.2
9170 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'
9171 compiler_needs_object=yes
9173 esac
9174 case `$CC -V 2>&1 | sed 5q` in
9175 *Sun\ C*) # Sun C 5.9
9176 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'
9177 compiler_needs_object=yes
9178 tmp_sharedflag='-G' ;;
9179 *Sun\ F*) # Sun Fortran 8.3
9180 tmp_sharedflag='-G' ;;
9181 esac
9182 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 if test "x$supports_anon_versioning" = xyes; then
9185 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9187 echo "local: *; };" >> $output_objdir/$libname.ver~
9188 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9191 case $cc_basename in
9192 xlf* | bgf* | bgxlf* | mpixlf*)
9193 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9194 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9197 if test "x$supports_anon_versioning" = xyes; then
9198 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9199 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9200 echo "local: *; };" >> $output_objdir/$libname.ver~
9201 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9204 esac
9205 else
9206 ld_shlibs=no
9210 netbsd* | netbsdelf*-gnu)
9211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9212 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9213 wlarc=
9214 else
9215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9220 solaris*)
9221 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9222 ld_shlibs=no
9223 cat <<_LT_EOF 1>&2
9225 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9226 *** create shared libraries on Solaris systems. Therefore, libtool
9227 *** is disabling shared libraries support. We urge you to upgrade GNU
9228 *** binutils to release 2.9.1 or newer. Another option is to modify
9229 *** your PATH or compiler configuration so that the native linker is
9230 *** used, and then restart.
9232 _LT_EOF
9233 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236 else
9237 ld_shlibs=no
9241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9242 case `$LD -v 2>&1` in
9243 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9244 ld_shlibs=no
9245 cat <<_LT_EOF 1>&2
9247 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9248 *** reliably create shared libraries on SCO systems. Therefore, libtool
9249 *** is disabling shared libraries support. We urge you to upgrade GNU
9250 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9251 *** your PATH or compiler configuration so that the native linker is
9252 *** used, and then restart.
9254 _LT_EOF
9257 # For security reasons, it is highly recommended that you always
9258 # use absolute paths for naming shared libraries, and exclude the
9259 # DT_RUNPATH tag from executables and libraries. But doing so
9260 # requires that you compile everything twice, which is a pain.
9261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 else
9266 ld_shlibs=no
9269 esac
9272 sunos4*)
9273 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9274 wlarc=
9275 hardcode_direct=yes
9276 hardcode_shlibpath_var=no
9280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9283 else
9284 ld_shlibs=no
9287 esac
9289 if test "$ld_shlibs" = no; then
9290 runpath_var=
9291 hardcode_libdir_flag_spec=
9292 export_dynamic_flag_spec=
9293 whole_archive_flag_spec=
9295 else
9296 # PORTME fill in a description of your system's linker (not GNU ld)
9297 case $host_os in
9298 aix3*)
9299 allow_undefined_flag=unsupported
9300 always_export_symbols=yes
9301 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'
9302 # Note: this linker hardcodes the directories in LIBPATH if there
9303 # are no directories specified by -L.
9304 hardcode_minus_L=yes
9305 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9306 # Neither direct hardcoding nor static linking is supported with a
9307 # broken collect2.
9308 hardcode_direct=unsupported
9312 aix[4-9]*)
9313 if test "$host_cpu" = ia64; then
9314 # On IA64, the linker does run time linking by default, so we don't
9315 # have to do anything special.
9316 aix_use_runtimelinking=no
9317 exp_sym_flag='-Bexport'
9318 no_entry_flag=""
9319 else
9320 # If we're using GNU nm, then we don't want the "-C" option.
9321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9322 # Also, AIX nm treats weak defined symbols like other global
9323 # defined symbols, whereas GNU nm marks them as "W".
9324 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9325 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'
9326 else
9327 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'
9329 aix_use_runtimelinking=no
9331 # Test if we are trying to use run time linking or normal
9332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9333 # need to do runtime linking.
9334 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9335 for ld_flag in $LDFLAGS; do
9336 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9337 aix_use_runtimelinking=yes
9338 break
9340 done
9342 esac
9344 exp_sym_flag='-bexport'
9345 no_entry_flag='-bnoentry'
9348 # When large executables or shared objects are built, AIX ld can
9349 # have problems creating the table of contents. If linking a library
9350 # or program results in "error TOC overflow" add -mminimal-toc to
9351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9354 archive_cmds=''
9355 hardcode_direct=yes
9356 hardcode_direct_absolute=yes
9357 hardcode_libdir_separator=':'
9358 link_all_deplibs=yes
9359 file_list_spec='${wl}-f,'
9361 if test "$GCC" = yes; then
9362 case $host_os in aix4.[012]|aix4.[012].*)
9363 # We only want to do this on AIX 4.2 and lower, the check
9364 # below for broken collect2 doesn't work under 4.3+
9365 collect2name=`${CC} -print-prog-name=collect2`
9366 if test -f "$collect2name" &&
9367 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9368 then
9369 # We have reworked collect2
9371 else
9372 # We have old collect2
9373 hardcode_direct=unsupported
9374 # It fails to find uninstalled libraries when the uninstalled
9375 # path is not listed in the libpath. Setting hardcode_minus_L
9376 # to unsupported forces relinking
9377 hardcode_minus_L=yes
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_libdir_separator=
9382 esac
9383 shared_flag='-shared'
9384 if test "$aix_use_runtimelinking" = yes; then
9385 shared_flag="$shared_flag "'${wl}-G'
9387 link_all_deplibs=no
9388 else
9389 # not using gcc
9390 if test "$host_cpu" = ia64; then
9391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9392 # chokes on -Wl,-G. The following line is correct:
9393 shared_flag='-G'
9394 else
9395 if test "$aix_use_runtimelinking" = yes; then
9396 shared_flag='${wl}-G'
9397 else
9398 shared_flag='${wl}-bM:SRE'
9403 export_dynamic_flag_spec='${wl}-bexpall'
9404 # It seems that -bexpall does not export symbols beginning with
9405 # underscore (_), so it is better to generate a list of symbols to export.
9406 always_export_symbols=yes
9407 if test "$aix_use_runtimelinking" = yes; then
9408 # Warning - without using the other runtime loading flags (-brtl),
9409 # -berok will link without error, but may produce a broken library.
9410 allow_undefined_flag='-berok'
9411 # Determine the default libpath from the value encoded in an
9412 # empty executable.
9413 if test "${lt_cv_aix_libpath+set}" = set; then
9414 aix_libpath=$lt_cv_aix_libpath
9415 else
9416 if ${lt_cv_aix_libpath_+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9423 main ()
9427 return 0;
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9432 lt_aix_libpath_sed='
9433 /Import File Strings/,/^$/ {
9434 /^0/ {
9435 s/^0 *\([^ ]*\) *$/\1/
9439 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9440 # Check for a 64-bit object if we didn't find anything.
9441 if test -z "$lt_cv_aix_libpath_"; then
9442 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 if test -z "$lt_cv_aix_libpath_"; then
9448 lt_cv_aix_libpath_="/usr/lib:/lib"
9453 aix_libpath=$lt_cv_aix_libpath_
9456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9457 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"
9458 else
9459 if test "$host_cpu" = ia64; then
9460 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9461 allow_undefined_flag="-z nodefs"
9462 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"
9463 else
9464 # Determine the default libpath from the value encoded in an
9465 # empty executable.
9466 if test "${lt_cv_aix_libpath+set}" = set; then
9467 aix_libpath=$lt_cv_aix_libpath
9468 else
9469 if ${lt_cv_aix_libpath_+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9476 main ()
9480 return 0;
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9485 lt_aix_libpath_sed='
9486 /Import File Strings/,/^$/ {
9487 /^0/ {
9488 s/^0 *\([^ ]*\) *$/\1/
9492 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9493 # Check for a 64-bit object if we didn't find anything.
9494 if test -z "$lt_cv_aix_libpath_"; then
9495 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498 rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9500 if test -z "$lt_cv_aix_libpath_"; then
9501 lt_cv_aix_libpath_="/usr/lib:/lib"
9506 aix_libpath=$lt_cv_aix_libpath_
9509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9510 # Warning - without using the other run time loading flags,
9511 # -berok will link without error, but may produce a broken library.
9512 no_undefined_flag=' ${wl}-bernotok'
9513 allow_undefined_flag=' ${wl}-berok'
9514 if test "$with_gnu_ld" = yes; then
9515 # We only use this code for GNU lds that support --whole-archive.
9516 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9517 else
9518 # Exported symbols can be pulled into shared objects from archives
9519 whole_archive_flag_spec='$convenience'
9521 archive_cmds_need_lc=yes
9522 # This is similar to how AIX traditionally builds its shared libraries.
9523 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'
9528 amigaos*)
9529 case $host_cpu in
9530 powerpc)
9531 # see comment about AmigaOS4 .so support
9532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533 archive_expsym_cmds=''
9535 m68k)
9536 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)'
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_minus_L=yes
9540 esac
9543 bsdi[45]*)
9544 export_dynamic_flag_spec=-rdynamic
9547 cygwin* | mingw* | pw32* | cegcc*)
9548 # When not using gcc, we currently assume that we are using
9549 # Microsoft Visual C++.
9550 # hardcode_libdir_flag_spec is actually meaningless, as there is
9551 # no search path for DLLs.
9552 case $cc_basename in
9553 cl*)
9554 # Native MSVC
9555 hardcode_libdir_flag_spec=' '
9556 allow_undefined_flag=unsupported
9557 always_export_symbols=yes
9558 file_list_spec='@'
9559 # Tell ltmain to make .lib files, not .a files.
9560 libext=lib
9561 # Tell ltmain to make .dll files, not .so files.
9562 shrext_cmds=".dll"
9563 # FIXME: Setting linknames here is a bad hack.
9564 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9565 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9566 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9567 else
9568 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9570 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9571 linknames='
9572 # The linker will not automatically build a static lib if we build a DLL.
9573 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9574 enable_shared_with_static_runtimes=yes
9575 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9577 # Don't use ranlib
9578 old_postinstall_cmds='chmod 644 $oldlib'
9579 postlink_cmds='lt_outputfile="@OUTPUT@"~
9580 lt_tool_outputfile="@TOOL_OUTPUT@"~
9581 case $lt_outputfile in
9582 *.exe|*.EXE) ;;
9584 lt_outputfile="$lt_outputfile.exe"
9585 lt_tool_outputfile="$lt_tool_outputfile.exe"
9587 esac~
9588 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9589 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9590 $RM "$lt_outputfile.manifest";
9594 # Assume MSVC wrapper
9595 hardcode_libdir_flag_spec=' '
9596 allow_undefined_flag=unsupported
9597 # Tell ltmain to make .lib files, not .a files.
9598 libext=lib
9599 # Tell ltmain to make .dll files, not .so files.
9600 shrext_cmds=".dll"
9601 # FIXME: Setting linknames here is a bad hack.
9602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9603 # The linker will automatically build a .lib file if we build a DLL.
9604 old_archive_from_new_cmds='true'
9605 # FIXME: Should let the user specify the lib program.
9606 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9607 enable_shared_with_static_runtimes=yes
9609 esac
9612 darwin* | rhapsody*)
9615 archive_cmds_need_lc=no
9616 hardcode_direct=no
9617 hardcode_automatic=yes
9618 hardcode_shlibpath_var=unsupported
9619 if test "$lt_cv_ld_force_load" = "yes"; then
9620 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\"`'
9622 else
9623 whole_archive_flag_spec=''
9625 link_all_deplibs=yes
9626 allow_undefined_flag="$_lt_dar_allow_undefined"
9627 case $cc_basename in
9628 ifort*) _lt_dar_can_shared=yes ;;
9629 *) _lt_dar_can_shared=$GCC ;;
9630 esac
9631 if test "$_lt_dar_can_shared" = "yes"; then
9632 output_verbose_link_cmd=func_echo_all
9633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9635 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}"
9636 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}"
9638 else
9639 ld_shlibs=no
9644 dgux*)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_shlibpath_var=no
9650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9651 # support. Future versions do this automatically, but an explicit c++rt0.o
9652 # does not break anything, and helps significantly (at the cost of a little
9653 # extra space).
9654 freebsd2.2*)
9655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
9661 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9662 freebsd2.*)
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=yes
9665 hardcode_minus_L=yes
9666 hardcode_shlibpath_var=no
9669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9670 freebsd* | dragonfly*)
9671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9672 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_direct=yes
9674 hardcode_shlibpath_var=no
9677 hpux9*)
9678 if test "$GCC" = yes; then
9679 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9680 else
9681 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'
9683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684 hardcode_libdir_separator=:
9685 hardcode_direct=yes
9687 # hardcode_minus_L: Not really in the search PATH,
9688 # but as the default location of the library.
9689 hardcode_minus_L=yes
9690 export_dynamic_flag_spec='${wl}-E'
9693 hpux10*)
9694 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9695 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9696 else
9697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9699 if test "$with_gnu_ld" = no; then
9700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9701 hardcode_libdir_separator=:
9702 hardcode_direct=yes
9703 hardcode_direct_absolute=yes
9704 export_dynamic_flag_spec='${wl}-E'
9705 # hardcode_minus_L: Not really in the search PATH,
9706 # but as the default location of the library.
9707 hardcode_minus_L=yes
9711 hpux11*)
9712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713 case $host_cpu in
9714 hppa*64*)
9715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 ia64*)
9718 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9723 esac
9724 else
9725 case $host_cpu in
9726 hppa*64*)
9727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 ia64*)
9730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734 # Older versions of the 11.00 compiler do not understand -b yet
9735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9737 $as_echo_n "checking if $CC understands -b... " >&6; }
9738 if ${lt_cv_prog_compiler__b+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 lt_cv_prog_compiler__b=no
9742 save_LDFLAGS="$LDFLAGS"
9743 LDFLAGS="$LDFLAGS -b"
9744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9746 # The linker can only warn and ignore the option if not recognized
9747 # So say no if there are warnings
9748 if test -s conftest.err; then
9749 # Append any errors to the config.log.
9750 cat conftest.err 1>&5
9751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9753 if diff conftest.exp conftest.er2 >/dev/null; then
9754 lt_cv_prog_compiler__b=yes
9756 else
9757 lt_cv_prog_compiler__b=yes
9760 $RM -r conftest*
9761 LDFLAGS="$save_LDFLAGS"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9765 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9767 if test x"$lt_cv_prog_compiler__b" = xyes; then
9768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 esac
9776 if test "$with_gnu_ld" = no; then
9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_separator=:
9780 case $host_cpu in
9781 hppa*64*|ia64*)
9782 hardcode_direct=no
9783 hardcode_shlibpath_var=no
9786 hardcode_direct=yes
9787 hardcode_direct_absolute=yes
9788 export_dynamic_flag_spec='${wl}-E'
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L=yes
9794 esac
9798 irix5* | irix6* | nonstopux*)
9799 if test "$GCC" = yes; then
9800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9801 # Try to use the -exported_symbol ld option, if it does not
9802 # work, assume that -exports_file does not work either and
9803 # implicitly export all symbols.
9804 # This should be the same for all languages, so no per-tag cache variable.
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9806 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9807 if ${lt_cv_irix_exported_symbol+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int foo (void) { return 0; }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 lt_cv_irix_exported_symbol=yes
9818 else
9819 lt_cv_irix_exported_symbol=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LDFLAGS="$save_LDFLAGS"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9826 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9827 if test "$lt_cv_irix_exported_symbol" = yes; then
9828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9830 else
9831 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'
9832 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'
9834 archive_cmds_need_lc='no'
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator=:
9837 inherit_rpath=yes
9838 link_all_deplibs=yes
9841 netbsd* | netbsdelf*-gnu)
9842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9844 else
9845 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9847 hardcode_libdir_flag_spec='-R$libdir'
9848 hardcode_direct=yes
9849 hardcode_shlibpath_var=no
9852 newsos6)
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_direct=yes
9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857 hardcode_shlibpath_var=no
9860 *nto* | *qnx*)
9863 openbsd*)
9864 if test -f /usr/libexec/ld.so; then
9865 hardcode_direct=yes
9866 hardcode_shlibpath_var=no
9867 hardcode_direct_absolute=yes
9868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 else
9874 case $host_os in
9875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_libdir_flag_spec='-R$libdir'
9880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9883 esac
9885 else
9886 ld_shlibs=no
9890 os2*)
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 allow_undefined_flag=unsupported
9894 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'
9895 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9898 osf3*)
9899 if test "$GCC" = yes; then
9900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9901 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'
9902 else
9903 allow_undefined_flag=' -expect_unresolved \*'
9904 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'
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908 hardcode_libdir_separator=:
9911 osf4* | osf5*) # as osf3* with the addition of -msym flag
9912 if test "$GCC" = yes; then
9913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9914 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 else
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9919 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~
9920 $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'
9922 # Both c and cxx compiler support -rpath directly
9923 hardcode_libdir_flag_spec='-rpath $libdir'
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_separator=:
9929 solaris*)
9930 no_undefined_flag=' -z defs'
9931 if test "$GCC" = yes; then
9932 wlarc='${wl}'
9933 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9936 else
9937 case `$CC -V 2>&1` in
9938 *"Compilers 5.0"*)
9939 wlarc=''
9940 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9945 wlarc='${wl}'
9946 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950 esac
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_shlibpath_var=no
9954 case $host_os in
9955 solaris2.[0-5] | solaris2.[0-5].*) ;;
9957 # The compiler driver will combine and reorder linker options,
9958 # but understands `-z linker_flag'. GCC discards it without `$wl',
9959 # but is careful enough not to reorder.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 if test "$GCC" = yes; then
9962 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9963 else
9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9967 esac
9968 link_all_deplibs=yes
9971 sunos4*)
9972 if test "x$host_vendor" = xsequent; then
9973 # Use $CC to link under sequent, because it throws in some extra .o
9974 # files that make .init and .fini sections work.
9975 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976 else
9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_libdir_flag_spec='-L$libdir'
9980 hardcode_direct=yes
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9985 sysv4)
9986 case $host_vendor in
9987 sni)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes # is this really true???
9991 siemens)
9992 ## LD is ld it makes a PLAMLIB
9993 ## CC just makes a GrossModule.
9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995 reload_cmds='$CC -r -o $output$reload_objs'
9996 hardcode_direct=no
9998 motorola)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10002 esac
10003 runpath_var='LD_RUN_PATH'
10004 hardcode_shlibpath_var=no
10007 sysv4.3*)
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 export_dynamic_flag_spec='-Bexport'
10013 sysv4*MP*)
10014 if test -d /usr/nec; then
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_shlibpath_var=no
10017 runpath_var=LD_RUN_PATH
10018 hardcode_runpath_var=yes
10019 ld_shlibs=yes
10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024 no_undefined_flag='${wl}-z,text'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 runpath_var='LD_RUN_PATH'
10029 if test "$GCC" = yes; then
10030 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 sysv5* | sco3.2v5* | sco5v6*)
10039 # Note: We can NOT use -z defs as we might desire, because we do not
10040 # link with -lc, and that would cause any symbols used from libc to
10041 # always be unresolved, which means just about no library would
10042 # ever link correctly. If we're not using GNU ld we use -z text
10043 # though, which does catch some bad symbols but isn't as heavy-handed
10044 # as -z defs.
10045 no_undefined_flag='${wl}-z,text'
10046 allow_undefined_flag='${wl}-z,nodefs'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10050 hardcode_libdir_separator=':'
10051 link_all_deplibs=yes
10052 export_dynamic_flag_spec='${wl}-Bexport'
10053 runpath_var='LD_RUN_PATH'
10055 if test "$GCC" = yes; then
10056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 uts4*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_shlibpath_var=no
10071 ld_shlibs=no
10073 esac
10075 if test x$host_vendor = xsni; then
10076 case $host in
10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078 export_dynamic_flag_spec='${wl}-Blargedynsym'
10080 esac
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test "$ld_shlibs" = no && can_build_shared=no
10088 with_gnu_ld=$with_gnu_ld
10105 # Do we need to explicitly link libc?
10107 case "x$archive_cmds_need_lc" in
10108 x|xyes)
10109 # Assume -lc should be added
10110 archive_cmds_need_lc=yes
10112 if test "$enable_shared" = yes && test "$GCC" = yes; then
10113 case $archive_cmds in
10114 *'~'*)
10115 # FIXME: we may have to deal with multi-command sequences.
10117 '$CC '*)
10118 # Test whether the compiler implicitly links with -lc since on some
10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120 # to ld, don't add -lc before -lgcc.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 $RM conftest*
10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; } 2>conftest.err; then
10134 soname=conftest
10135 lib=conftest
10136 libobjs=conftest.$ac_objext
10137 deplibs=
10138 wl=$lt_prog_compiler_wl
10139 pic_flag=$lt_prog_compiler_pic
10140 compiler_flags=-v
10141 linker_flags=-v
10142 verstring=
10143 output_objdir=.
10144 libname=conftest
10145 lt_save_allow_undefined_flag=$allow_undefined_flag
10146 allow_undefined_flag=
10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149 ac_status=$?
10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151 test $ac_status = 0; }
10152 then
10153 lt_cv_archive_cmds_need_lc=no
10154 else
10155 lt_cv_archive_cmds_need_lc=yes
10157 allow_undefined_flag=$lt_save_allow_undefined_flag
10158 else
10159 cat conftest.err 1>&5
10161 $RM conftest*
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10168 esac
10171 esac
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10327 if test "$GCC" = yes; then
10328 case $host_os in
10329 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10330 *) lt_awk_arg="/^libraries:/" ;;
10331 esac
10332 case $host_os in
10333 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10334 *) lt_sed_strip_eq="s,=/,/,g" ;;
10335 esac
10336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10337 case $lt_search_path_spec in
10338 *\;*)
10339 # if the path contains ";" then we assume it to be the separator
10340 # otherwise default to the standard path separator (i.e. ":") - it is
10341 # assumed that no part of a normal pathname contains ";" but that should
10342 # okay in the real world where ";" in dirpaths is itself problematic.
10343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10348 esac
10349 # Ok, now we have the path, separated by spaces, we can step through it
10350 # and add multilib dir if necessary.
10351 lt_tmp_lt_search_path_spec=
10352 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10353 for lt_sys_path in $lt_search_path_spec; do
10354 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10356 else
10357 test -d "$lt_sys_path" && \
10358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10360 done
10361 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10362 BEGIN {RS=" "; FS="/|\n";} {
10363 lt_foo="";
10364 lt_count=0;
10365 for (lt_i = NF; lt_i > 0; lt_i--) {
10366 if ($lt_i != "" && $lt_i != ".") {
10367 if ($lt_i == "..") {
10368 lt_count++;
10369 } else {
10370 if (lt_count == 0) {
10371 lt_foo="/" $lt_i lt_foo;
10372 } else {
10373 lt_count--;
10378 if (lt_foo != "") { lt_freq[lt_foo]++; }
10379 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10381 # AWK program above erroneously prepends '/' to C:/dos/paths
10382 # for these hosts.
10383 case $host_os in
10384 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10385 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10386 esac
10387 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10388 else
10389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10391 library_names_spec=
10392 libname_spec='lib$name'
10393 soname_spec=
10394 shrext_cmds=".so"
10395 postinstall_cmds=
10396 postuninstall_cmds=
10397 finish_cmds=
10398 finish_eval=
10399 shlibpath_var=
10400 shlibpath_overrides_runpath=unknown
10401 version_type=none
10402 dynamic_linker="$host_os ld.so"
10403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10404 need_lib_prefix=unknown
10405 hardcode_into_libs=no
10407 # when you set need_version to no, make sure it does not cause -set_version
10408 # flags to be left without arguments
10409 need_version=unknown
10411 case $host_os in
10412 aix3*)
10413 version_type=linux # correct to gnu/linux during the next big refactor
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10415 shlibpath_var=LIBPATH
10417 # AIX 3 has no versioning support, so we append a major version to the name.
10418 soname_spec='${libname}${release}${shared_ext}$major'
10421 aix[4-9]*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 need_lib_prefix=no
10424 need_version=no
10425 hardcode_into_libs=yes
10426 if test "$host_cpu" = ia64; then
10427 # AIX 5 supports IA64
10428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 else
10431 # With GCC up to 2.95.x, collect2 would create an import file
10432 # for dependence libraries. The import file would start with
10433 # the line `#! .'. This would cause the generated library to
10434 # depend on `.', always an invalid library. This was fixed in
10435 # development snapshots of GCC prior to 3.0.
10436 case $host_os in
10437 aix4 | aix4.[01] | aix4.[01].*)
10438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10439 echo ' yes '
10440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10442 else
10443 can_build_shared=no
10446 esac
10447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10448 # soname into executable. Probably we can add versioning support to
10449 # collect2, so additional links can be useful in future.
10450 if test "$aix_use_runtimelinking" = yes; then
10451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10452 # instead of lib<name>.a to let people know that these are not
10453 # typical AIX shared libraries.
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 else
10456 # We preserve .a as extension for shared libraries through AIX4.2
10457 # and later when we are not doing run time linking.
10458 library_names_spec='${libname}${release}.a $libname.a'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LIBPATH
10465 amigaos*)
10466 case $host_cpu in
10467 powerpc)
10468 # Since July 2007 AmigaOS4 officially supports .so libraries.
10469 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 m68k)
10473 library_names_spec='$libname.ixlibrary $libname.a'
10474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10475 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'
10477 esac
10480 beos*)
10481 library_names_spec='${libname}${shared_ext}'
10482 dynamic_linker="$host_os ld.so"
10483 shlibpath_var=LIBRARY_PATH
10486 bsdi[45]*)
10487 version_type=linux # correct to gnu/linux during the next big refactor
10488 need_version=no
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10495 # the default ld.so.conf also contains /usr/contrib/lib and
10496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10497 # libtool to hard-code these into programs
10500 cygwin* | mingw* | pw32* | cegcc*)
10501 version_type=windows
10502 shrext_cmds=".dll"
10503 need_version=no
10504 need_lib_prefix=no
10506 case $GCC,$cc_basename in
10507 yes,*)
10508 # gcc
10509 library_names_spec='$libname.dll.a'
10510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10511 postinstall_cmds='base_file=`basename \${file}`~
10512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10513 dldir=$destdir/`dirname \$dlpath`~
10514 test -d \$dldir || mkdir -p \$dldir~
10515 $install_prog $dir/$dlname \$dldir/$dlname~
10516 chmod a+x \$dldir/$dlname~
10517 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10518 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10521 dlpath=$dir/\$dldll~
10522 $RM \$dlpath'
10523 shlibpath_overrides_runpath=yes
10525 case $host_os in
10526 cygwin*)
10527 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10528 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10530 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10532 mingw* | cegcc*)
10533 # MinGW DLLs use traditional 'lib' prefix
10534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10536 pw32*)
10537 # pw32 DLLs use 'pw' prefix rather than 'lib'
10538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540 esac
10541 dynamic_linker='Win32 ld.exe'
10544 *,cl*)
10545 # Native MSVC
10546 libname_spec='$name'
10547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 library_names_spec='${libname}.dll.lib'
10550 case $build_os in
10551 mingw*)
10552 sys_lib_search_path_spec=
10553 lt_save_ifs=$IFS
10554 IFS=';'
10555 for lt_path in $LIB
10557 IFS=$lt_save_ifs
10558 # Let DOS variable expansion print the short 8.3 style file name.
10559 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10560 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10561 done
10562 IFS=$lt_save_ifs
10563 # Convert to MSYS style.
10564 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10566 cygwin*)
10567 # Convert to unix form, then to dos form, then back to unix form
10568 # but this time dos style (no spaces!) so that the unix form looks
10569 # like /cygdrive/c/PROGRA~1:/cygdr...
10570 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10571 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10572 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10575 sys_lib_search_path_spec="$LIB"
10576 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10577 # It is most probably a Windows format PATH.
10578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10579 else
10580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10582 # FIXME: find the short name or the path components, as spaces are
10583 # common. (e.g. "Program Files" -> "PROGRA~1")
10585 esac
10587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10588 postinstall_cmds='base_file=`basename \${file}`~
10589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10590 dldir=$destdir/`dirname \$dlpath`~
10591 test -d \$dldir || mkdir -p \$dldir~
10592 $install_prog $dir/$dlname \$dldir/$dlname'
10593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10594 dlpath=$dir/\$dldll~
10595 $RM \$dlpath'
10596 shlibpath_overrides_runpath=yes
10597 dynamic_linker='Win32 link.exe'
10601 # Assume MSVC wrapper
10602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10603 dynamic_linker='Win32 ld.exe'
10605 esac
10606 # FIXME: first we should search . and the directory the executable is in
10607 shlibpath_var=PATH
10610 darwin* | rhapsody*)
10611 dynamic_linker="$host_os dyld"
10612 version_type=darwin
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10616 soname_spec='${libname}${release}${major}$shared_ext'
10617 shlibpath_overrides_runpath=yes
10618 shlibpath_var=DYLD_LIBRARY_PATH
10619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10621 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10625 dgux*)
10626 version_type=linux # correct to gnu/linux during the next big refactor
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10634 freebsd* | dragonfly*)
10635 # DragonFly does not have aout. When/if they implement a new
10636 # versioning mechanism, adjust this.
10637 if test -x /usr/bin/objformat; then
10638 objformat=`/usr/bin/objformat`
10639 else
10640 case $host_os in
10641 freebsd[23].*) objformat=aout ;;
10642 *) objformat=elf ;;
10643 esac
10645 version_type=freebsd-$objformat
10646 case $version_type in
10647 freebsd-elf*)
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 need_version=no
10650 need_lib_prefix=no
10652 freebsd-*)
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10654 need_version=yes
10656 esac
10657 shlibpath_var=LD_LIBRARY_PATH
10658 case $host_os in
10659 freebsd2.*)
10660 shlibpath_overrides_runpath=yes
10662 freebsd3.[01]* | freebsdelf3.[01]*)
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10668 shlibpath_overrides_runpath=no
10669 hardcode_into_libs=yes
10671 *) # from 4.6 on, and DragonFly
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10675 esac
10678 gnu*)
10679 version_type=linux # correct to gnu/linux during the next big refactor
10680 need_lib_prefix=no
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=no
10686 hardcode_into_libs=yes
10689 haiku*)
10690 version_type=linux # correct to gnu/linux during the next big refactor
10691 need_lib_prefix=no
10692 need_version=no
10693 dynamic_linker="$host_os runtime_loader"
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10698 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10699 hardcode_into_libs=yes
10702 hpux9* | hpux10* | hpux11*)
10703 # Give a soname corresponding to the major version so that dld.sl refuses to
10704 # link against other versions.
10705 version_type=sunos
10706 need_lib_prefix=no
10707 need_version=no
10708 case $host_cpu in
10709 ia64*)
10710 shrext_cmds='.so'
10711 hardcode_into_libs=yes
10712 dynamic_linker="$host_os dld.so"
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 if test "X$HPUX_IA64_MODE" = X32; then
10718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10719 else
10720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724 hppa*64*)
10725 shrext_cmds='.sl'
10726 hardcode_into_libs=yes
10727 dynamic_linker="$host_os dld.sl"
10728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 shrext_cmds='.sl'
10737 dynamic_linker="$host_os dld.sl"
10738 shlibpath_var=SHLIB_PATH
10739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10743 esac
10744 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10745 postinstall_cmds='chmod 555 $lib'
10746 # or fails outright, so override atomically:
10747 install_override_mode=555
10750 interix[3-9]*)
10751 version_type=linux # correct to gnu/linux during the next big refactor
10752 need_lib_prefix=no
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=no
10759 hardcode_into_libs=yes
10762 irix5* | irix6* | nonstopux*)
10763 case $host_os in
10764 nonstopux*) version_type=nonstopux ;;
10766 if test "$lt_cv_prog_gnu_ld" = yes; then
10767 version_type=linux # correct to gnu/linux during the next big refactor
10768 else
10769 version_type=irix
10770 fi ;;
10771 esac
10772 need_lib_prefix=no
10773 need_version=no
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10776 case $host_os in
10777 irix5* | nonstopux*)
10778 libsuff= shlibsuff=
10781 case $LD in # libtool.m4 will add one of these switches to LD
10782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10783 libsuff= shlibsuff= libmagic=32-bit;;
10784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10785 libsuff=32 shlibsuff=N32 libmagic=N32;;
10786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10788 *) libsuff= shlibsuff= libmagic=never-match;;
10789 esac
10791 esac
10792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10793 shlibpath_overrides_runpath=no
10794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10796 hardcode_into_libs=yes
10799 # No shared lib support for Linux oldld, aout, or coff.
10800 linux*oldld* | linux*aout* | linux*coff*)
10801 dynamic_linker=no
10804 # This must be glibc/ELF.
10805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10806 version_type=linux # correct to gnu/linux during the next big refactor
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10815 # Some binutils ld are patched to set DT_RUNPATH
10816 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 lt_cv_shlibpath_overrides_runpath=no
10820 save_LDFLAGS=$LDFLAGS
10821 save_libdir=$libdir
10822 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10823 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10828 main ()
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10837 lt_cv_shlibpath_overrides_runpath=yes
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LDFLAGS=$save_LDFLAGS
10843 libdir=$save_libdir
10847 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10849 # This implies no fast_install, which is unacceptable.
10850 # Some rework will be needed to allow for fast_install
10851 # before this can be enabled.
10852 hardcode_into_libs=yes
10854 # Append ld.so.conf contents to the search path
10855 if test -f /etc/ld.so.conf; then
10856 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' ' '`
10857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10860 # We used to test for /lib/ld.so.1 and disable shared libraries on
10861 # powerpc, because MkLinux only supported shared libraries with the
10862 # GNU dynamic linker. Since this was broken with cross compilers,
10863 # most powerpc-linux boxes support dynamic linking these days and
10864 # people can always --disable-shared, the test was removed, and we
10865 # assume the GNU/Linux dynamic linker is in use.
10866 dynamic_linker='GNU/Linux ld.so'
10869 netbsdelf*-gnu)
10870 version_type=linux
10871 need_lib_prefix=no
10872 need_version=no
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=no
10877 hardcode_into_libs=yes
10878 dynamic_linker='NetBSD ld.elf_so'
10881 netbsd*)
10882 version_type=sunos
10883 need_lib_prefix=no
10884 need_version=no
10885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10888 dynamic_linker='NetBSD (a.out) ld.so'
10889 else
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 dynamic_linker='NetBSD ld.elf_so'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10896 hardcode_into_libs=yes
10899 newsos6)
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes
10906 *nto* | *qnx*)
10907 version_type=qnx
10908 need_lib_prefix=no
10909 need_version=no
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=no
10914 hardcode_into_libs=yes
10915 dynamic_linker='ldqnx.so'
10918 openbsd*)
10919 version_type=sunos
10920 sys_lib_dlsearch_path_spec="/usr/lib"
10921 need_lib_prefix=no
10922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10923 case $host_os in
10924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10925 *) need_version=no ;;
10926 esac
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931 case $host_os in
10932 openbsd2.[89] | openbsd2.[89].*)
10933 shlibpath_overrides_runpath=no
10936 shlibpath_overrides_runpath=yes
10938 esac
10939 else
10940 shlibpath_overrides_runpath=yes
10944 os2*)
10945 libname_spec='$name'
10946 shrext_cmds=".dll"
10947 need_lib_prefix=no
10948 library_names_spec='$libname${shared_ext} $libname.a'
10949 dynamic_linker='OS/2 ld.exe'
10950 shlibpath_var=LIBPATH
10953 osf3* | osf4* | osf5*)
10954 version_type=osf
10955 need_lib_prefix=no
10956 need_version=no
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10964 rdos*)
10965 dynamic_linker=no
10968 solaris*)
10969 version_type=linux # correct to gnu/linux during the next big refactor
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 # ldd complains unless libraries are executable
10978 postinstall_cmds='chmod +x $lib'
10981 sunos4*)
10982 version_type=sunos
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
10988 need_lib_prefix=no
10990 need_version=yes
10993 sysv4 | sysv4.3*)
10994 version_type=linux # correct to gnu/linux during the next big refactor
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 case $host_vendor in
10999 sni)
11000 shlibpath_overrides_runpath=no
11001 need_lib_prefix=no
11002 runpath_var=LD_RUN_PATH
11004 siemens)
11005 need_lib_prefix=no
11007 motorola)
11008 need_lib_prefix=no
11009 need_version=no
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11013 esac
11016 sysv4*MP*)
11017 if test -d /usr/nec ;then
11018 version_type=linux # correct to gnu/linux during the next big refactor
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026 version_type=freebsd-elf
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11034 if test "$with_gnu_ld" = yes; then
11035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11036 else
11037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11038 case $host_os in
11039 sco3.2v5*)
11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11042 esac
11044 sys_lib_dlsearch_path_spec='/usr/lib'
11047 tpf*)
11048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 need_lib_prefix=no
11051 need_version=no
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11058 uts4*)
11059 version_type=linux # correct to gnu/linux during the next big refactor
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11066 dynamic_linker=no
11068 esac
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11070 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11178 hardcode_action=
11179 if test -n "$hardcode_libdir_flag_spec" ||
11180 test -n "$runpath_var" ||
11181 test "X$hardcode_automatic" = "Xyes" ; then
11183 # We can hardcode non-existent directories.
11184 if test "$hardcode_direct" != no &&
11185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11186 # have to relink, otherwise we might link with an installed library
11187 # when we should be linking with a yet-to-be-installed one
11188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189 test "$hardcode_minus_L" != no; then
11190 # Linking always hardcodes the temporary library directory.
11191 hardcode_action=relink
11192 else
11193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11194 hardcode_action=immediate
11196 else
11197 # We cannot hardcode anything, or else we can only hardcode existing
11198 # directories.
11199 hardcode_action=unsupported
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11202 $as_echo "$hardcode_action" >&6; }
11204 if test "$hardcode_action" = relink ||
11205 test "$inherit_rpath" = yes; then
11206 # Fast installation is not supported
11207 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11210 # Fast installation is not necessary
11211 enable_fast_install=needless
11219 if test "x$enable_dlopen" != xyes; then
11220 enable_dlopen=unknown
11221 enable_dlopen_self=unknown
11222 enable_dlopen_self_static=unknown
11223 else
11224 lt_cv_dlopen=no
11225 lt_cv_dlopen_libs=
11227 case $host_os in
11228 beos*)
11229 lt_cv_dlopen="load_add_on"
11230 lt_cv_dlopen_libs=
11231 lt_cv_dlopen_self=yes
11234 mingw* | pw32* | cegcc*)
11235 lt_cv_dlopen="LoadLibrary"
11236 lt_cv_dlopen_libs=
11239 cygwin*)
11240 lt_cv_dlopen="dlopen"
11241 lt_cv_dlopen_libs=
11244 darwin*)
11245 # if libdl is installed we need to link against it
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11248 if ${ac_cv_lib_dl_dlopen+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldl $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlopen ();
11264 main ()
11266 return dlopen ();
11268 return 0;
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_dl_dlopen=yes
11273 else
11274 ac_cv_lib_dl_dlopen=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11282 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11284 else
11286 lt_cv_dlopen="dyld"
11287 lt_cv_dlopen_libs=
11288 lt_cv_dlopen_self=yes
11295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11296 if test "x$ac_cv_func_shl_load" = xyes; then :
11297 lt_cv_dlopen="shl_load"
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11301 if ${ac_cv_lib_dld_shl_load+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-ldld $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char shl_load ();
11317 main ()
11319 return shl_load ();
11321 return 0;
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_dld_shl_load=yes
11326 else
11327 ac_cv_lib_dld_shl_load=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11335 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11337 else
11338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11339 if test "x$ac_cv_func_dlopen" = xyes; then :
11340 lt_cv_dlopen="dlopen"
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if ${ac_cv_lib_dl_dlopen+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-ldl $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char dlopen ();
11360 main ()
11362 return dlopen ();
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_dl_dlopen=yes
11369 else
11370 ac_cv_lib_dl_dlopen=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11378 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11383 if ${ac_cv_lib_svld_dlopen+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lsvld $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11399 main ()
11401 return dlopen ();
11403 return 0;
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_svld_dlopen=yes
11408 else
11409 ac_cv_lib_svld_dlopen=no
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11417 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11422 if ${ac_cv_lib_dld_dld_link+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldld $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dld_link ();
11438 main ()
11440 return dld_link ();
11442 return 0;
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dld_dld_link=yes
11447 else
11448 ac_cv_lib_dld_dld_link=no
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11456 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11476 esac
11478 if test "x$lt_cv_dlopen" != xno; then
11479 enable_dlopen=yes
11480 else
11481 enable_dlopen=no
11484 case $lt_cv_dlopen in
11485 dlopen)
11486 save_CPPFLAGS="$CPPFLAGS"
11487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11489 save_LDFLAGS="$LDFLAGS"
11490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11492 save_LIBS="$LIBS"
11493 LIBS="$lt_cv_dlopen_libs $LIBS"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11497 if ${lt_cv_dlopen_self+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test "$cross_compiling" = yes; then :
11501 lt_cv_dlopen_self=cross
11502 else
11503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11504 lt_status=$lt_dlunknown
11505 cat > conftest.$ac_ext <<_LT_EOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11509 #if HAVE_DLFCN_H
11510 #include <dlfcn.h>
11511 #endif
11513 #include <stdio.h>
11515 #ifdef RTLD_GLOBAL
11516 # define LT_DLGLOBAL RTLD_GLOBAL
11517 #else
11518 # ifdef DL_GLOBAL
11519 # define LT_DLGLOBAL DL_GLOBAL
11520 # else
11521 # define LT_DLGLOBAL 0
11522 # endif
11523 #endif
11525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526 find out it does not work in some platform. */
11527 #ifndef LT_DLLAZY_OR_NOW
11528 # ifdef RTLD_LAZY
11529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11530 # else
11531 # ifdef DL_LAZY
11532 # define LT_DLLAZY_OR_NOW DL_LAZY
11533 # else
11534 # ifdef RTLD_NOW
11535 # define LT_DLLAZY_OR_NOW RTLD_NOW
11536 # else
11537 # ifdef DL_NOW
11538 # define LT_DLLAZY_OR_NOW DL_NOW
11539 # else
11540 # define LT_DLLAZY_OR_NOW 0
11541 # endif
11542 # endif
11543 # endif
11544 # endif
11545 #endif
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
11548 correspondingly for the symbols needed. */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11550 int fnord () __attribute__((visibility("default")));
11551 #endif
11553 int fnord () { return 42; }
11554 int main ()
11556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11557 int status = $lt_dlunknown;
11559 if (self)
11561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11562 else
11564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565 else puts (dlerror ());
11567 /* dlclose (self); */
11569 else
11570 puts (dlerror ());
11572 return status;
11574 _LT_EOF
11575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576 (eval $ac_link) 2>&5
11577 ac_status=$?
11578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580 (./conftest; exit; ) >&5 2>/dev/null
11581 lt_status=$?
11582 case x$lt_status in
11583 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586 esac
11587 else :
11588 # compilation failed
11589 lt_cv_dlopen_self=no
11592 rm -fr conftest*
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597 $as_echo "$lt_cv_dlopen_self" >&6; }
11599 if test "x$lt_cv_dlopen_self" = xyes; then
11600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603 if ${lt_cv_dlopen_self_static+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 if test "$cross_compiling" = yes; then :
11607 lt_cv_dlopen_self_static=cross
11608 else
11609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610 lt_status=$lt_dlunknown
11611 cat > conftest.$ac_ext <<_LT_EOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11615 #if HAVE_DLFCN_H
11616 #include <dlfcn.h>
11617 #endif
11619 #include <stdio.h>
11621 #ifdef RTLD_GLOBAL
11622 # define LT_DLGLOBAL RTLD_GLOBAL
11623 #else
11624 # ifdef DL_GLOBAL
11625 # define LT_DLGLOBAL DL_GLOBAL
11626 # else
11627 # define LT_DLGLOBAL 0
11628 # endif
11629 #endif
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632 find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11634 # ifdef RTLD_LAZY
11635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11636 # else
11637 # ifdef DL_LAZY
11638 # define LT_DLLAZY_OR_NOW DL_LAZY
11639 # else
11640 # ifdef RTLD_NOW
11641 # define LT_DLLAZY_OR_NOW RTLD_NOW
11642 # else
11643 # ifdef DL_NOW
11644 # define LT_DLLAZY_OR_NOW DL_NOW
11645 # else
11646 # define LT_DLLAZY_OR_NOW 0
11647 # endif
11648 # endif
11649 # endif
11650 # endif
11651 #endif
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
11654 correspondingly for the symbols needed. */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 int fnord () __attribute__((visibility("default")));
11657 #endif
11659 int fnord () { return 42; }
11660 int main ()
11662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663 int status = $lt_dlunknown;
11665 if (self)
11667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11668 else
11670 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11671 else puts (dlerror ());
11673 /* dlclose (self); */
11675 else
11676 puts (dlerror ());
11678 return status;
11680 _LT_EOF
11681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682 (eval $ac_link) 2>&5
11683 ac_status=$?
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686 (./conftest; exit; ) >&5 2>/dev/null
11687 lt_status=$?
11688 case x$lt_status in
11689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11691 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11692 esac
11693 else :
11694 # compilation failed
11695 lt_cv_dlopen_self_static=no
11698 rm -fr conftest*
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706 CPPFLAGS="$save_CPPFLAGS"
11707 LDFLAGS="$save_LDFLAGS"
11708 LIBS="$save_LIBS"
11710 esac
11712 case $lt_cv_dlopen_self in
11713 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11714 *) enable_dlopen_self=unknown ;;
11715 esac
11717 case $lt_cv_dlopen_self_static in
11718 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11719 *) enable_dlopen_self_static=unknown ;;
11720 esac
11739 striplib=
11740 old_striplib=
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748 else
11749 # FIXME - insert some real tests, host_os isn't really good enough
11750 case $host_os in
11751 darwin*)
11752 if test -n "$STRIP" ; then
11753 striplib="$STRIP -x"
11754 old_striplib="$STRIP -S"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11766 esac
11780 # Report which library types will actually be built
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11784 $as_echo "$can_build_shared" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11787 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788 test "$can_build_shared" = "no" && enable_shared=no
11790 # On AIX, shared libraries and static libraries use the same namespace, and
11791 # are all built from PIC.
11792 case $host_os in
11793 aix3*)
11794 test "$enable_shared" = yes && enable_static=no
11795 if test -n "$RANLIB"; then
11796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11797 postinstall_cmds='$RANLIB $lib'
11801 aix[4-9]*)
11802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803 test "$enable_shared" = yes && enable_static=no
11806 esac
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11808 $as_echo "$enable_shared" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11811 $as_echo_n "checking whether to build static libraries... " >&6; }
11812 # Make sure either enable_shared or enable_static is yes.
11813 test "$enable_shared" = yes || enable_static=yes
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11815 $as_echo "$enable_static" >&6; }
11821 ac_ext=c
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827 CC="$lt_save_CC"
11829 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11830 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11831 (test "X$CXX" != "Xg++"))) ; then
11832 ac_ext=cpp
11833 ac_cpp='$CXXCPP $CPPFLAGS'
11834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11838 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11839 if test -z "$CXXCPP"; then
11840 if ${ac_cv_prog_CXXCPP+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 # Double quotes because CXXCPP needs to be expanded
11844 for CXXCPP in "$CXX -E" "/lib/cpp"
11846 ac_preproc_ok=false
11847 for ac_cxx_preproc_warn_flag in '' yes
11849 # Use a header file that comes with gcc, so configuring glibc
11850 # with a fresh cross-compiler works.
11851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 # <limits.h> exists even on freestanding compilers.
11853 # On the NeXT, cc -E runs the code through the compiler's parser,
11854 # not just through cpp. "Syntax error" is here to catch this case.
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857 #ifdef __STDC__
11858 # include <limits.h>
11859 #else
11860 # include <assert.h>
11861 #endif
11862 Syntax error
11863 _ACEOF
11864 if ac_fn_cxx_try_cpp "$LINENO"; then :
11866 else
11867 # Broken: fails on valid input.
11868 continue
11870 rm -f conftest.err conftest.i conftest.$ac_ext
11872 # OK, works on sane cases. Now check whether nonexistent headers
11873 # can be detected and how.
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <ac_nonexistent.h>
11877 _ACEOF
11878 if ac_fn_cxx_try_cpp "$LINENO"; then :
11879 # Broken: success on invalid input.
11880 continue
11881 else
11882 # Passes both tests.
11883 ac_preproc_ok=:
11884 break
11886 rm -f conftest.err conftest.i conftest.$ac_ext
11888 done
11889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11890 rm -f conftest.i conftest.err conftest.$ac_ext
11891 if $ac_preproc_ok; then :
11892 break
11895 done
11896 ac_cv_prog_CXXCPP=$CXXCPP
11899 CXXCPP=$ac_cv_prog_CXXCPP
11900 else
11901 ac_cv_prog_CXXCPP=$CXXCPP
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11904 $as_echo "$CXXCPP" >&6; }
11905 ac_preproc_ok=false
11906 for ac_cxx_preproc_warn_flag in '' yes
11908 # Use a header file that comes with gcc, so configuring glibc
11909 # with a fresh cross-compiler works.
11910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 # <limits.h> exists even on freestanding compilers.
11912 # On the NeXT, cc -E runs the code through the compiler's parser,
11913 # not just through cpp. "Syntax error" is here to catch this case.
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 #ifdef __STDC__
11917 # include <limits.h>
11918 #else
11919 # include <assert.h>
11920 #endif
11921 Syntax error
11922 _ACEOF
11923 if ac_fn_cxx_try_cpp "$LINENO"; then :
11925 else
11926 # Broken: fails on valid input.
11927 continue
11929 rm -f conftest.err conftest.i conftest.$ac_ext
11931 # OK, works on sane cases. Now check whether nonexistent headers
11932 # can be detected and how.
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #include <ac_nonexistent.h>
11936 _ACEOF
11937 if ac_fn_cxx_try_cpp "$LINENO"; then :
11938 # Broken: success on invalid input.
11939 continue
11940 else
11941 # Passes both tests.
11942 ac_preproc_ok=:
11943 break
11945 rm -f conftest.err conftest.i conftest.$ac_ext
11947 done
11948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11949 rm -f conftest.i conftest.err conftest.$ac_ext
11950 if $ac_preproc_ok; then :
11952 else
11953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11955 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11956 See \`config.log' for more details" "$LINENO" 5; }
11959 ac_ext=c
11960 ac_cpp='$CPP $CPPFLAGS'
11961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11965 else
11966 _lt_caught_CXX_error=yes
11969 ac_ext=cpp
11970 ac_cpp='$CXXCPP $CPPFLAGS'
11971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11975 archive_cmds_need_lc_CXX=no
11976 allow_undefined_flag_CXX=
11977 always_export_symbols_CXX=no
11978 archive_expsym_cmds_CXX=
11979 compiler_needs_object_CXX=no
11980 export_dynamic_flag_spec_CXX=
11981 hardcode_direct_CXX=no
11982 hardcode_direct_absolute_CXX=no
11983 hardcode_libdir_flag_spec_CXX=
11984 hardcode_libdir_separator_CXX=
11985 hardcode_minus_L_CXX=no
11986 hardcode_shlibpath_var_CXX=unsupported
11987 hardcode_automatic_CXX=no
11988 inherit_rpath_CXX=no
11989 module_cmds_CXX=
11990 module_expsym_cmds_CXX=
11991 link_all_deplibs_CXX=unknown
11992 old_archive_cmds_CXX=$old_archive_cmds
11993 reload_flag_CXX=$reload_flag
11994 reload_cmds_CXX=$reload_cmds
11995 no_undefined_flag_CXX=
11996 whole_archive_flag_spec_CXX=
11997 enable_shared_with_static_runtimes_CXX=no
11999 # Source file extension for C++ test sources.
12000 ac_ext=cpp
12002 # Object file extension for compiled C++ test sources.
12003 objext=o
12004 objext_CXX=$objext
12006 # No sense in running all these tests if we already determined that
12007 # the CXX compiler isn't working. Some variables (like enable_shared)
12008 # are currently assumed to apply to all compilers on this platform,
12009 # and will be corrupted by setting them based on a non-working compiler.
12010 if test "$_lt_caught_CXX_error" != yes; then
12011 # Code to be used in simple compile tests
12012 lt_simple_compile_test_code="int some_variable = 0;"
12014 # Code to be used in simple link tests
12015 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12017 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12024 # If no C compiler was specified, use CC.
12025 LTCC=${LTCC-"$CC"}
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12030 # Allow CC to be a program name with arguments.
12031 compiler=$CC
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12039 $RM conftest*
12041 ac_outfile=conftest.$ac_objext
12042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12045 $RM -r conftest*
12048 # Allow CC to be a program name with arguments.
12049 lt_save_CC=$CC
12050 lt_save_CFLAGS=$CFLAGS
12051 lt_save_LD=$LD
12052 lt_save_GCC=$GCC
12053 GCC=$GXX
12054 lt_save_with_gnu_ld=$with_gnu_ld
12055 lt_save_path_LD=$lt_cv_path_LD
12056 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12057 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12058 else
12059 $as_unset lt_cv_prog_gnu_ld
12061 if test -n "${lt_cv_path_LDCXX+set}"; then
12062 lt_cv_path_LD=$lt_cv_path_LDCXX
12063 else
12064 $as_unset lt_cv_path_LD
12066 test -z "${LDCXX+set}" || LD=$LDCXX
12067 CC=${CXX-"c++"}
12068 CFLAGS=$CXXFLAGS
12069 compiler=$CC
12070 compiler_CXX=$CC
12071 for cc_temp in $compiler""; do
12072 case $cc_temp in
12073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12075 \-*) ;;
12076 *) break;;
12077 esac
12078 done
12079 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12082 if test -n "$compiler"; then
12083 # We don't want -fno-exception when compiling C++ code, so set the
12084 # no_builtin_flag separately
12085 if test "$GXX" = yes; then
12086 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12087 else
12088 lt_prog_compiler_no_builtin_flag_CXX=
12091 if test "$GXX" = yes; then
12092 # Set up default GNU C++ configuration
12096 # Check whether --with-gnu-ld was given.
12097 if test "${with_gnu_ld+set}" = set; then :
12098 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12099 else
12100 with_gnu_ld=no
12103 ac_prog=ld
12104 if test "$GCC" = yes; then
12105 # Check if gcc -print-prog-name=ld gives a path.
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12107 $as_echo_n "checking for ld used by $CC... " >&6; }
12108 case $host in
12109 *-*-mingw*)
12110 # gcc leaves a trailing carriage return which upsets mingw
12111 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12113 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12114 esac
12115 case $ac_prog in
12116 # Accept absolute paths.
12117 [\\/]* | ?:[\\/]*)
12118 re_direlt='/[^/][^/]*/\.\./'
12119 # Canonicalize the pathname of ld
12120 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12121 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12122 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12123 done
12124 test -z "$LD" && LD="$ac_prog"
12127 # If it fails, then pretend we aren't using GCC.
12128 ac_prog=ld
12131 # If it is relative, then search for the first ld in PATH.
12132 with_gnu_ld=unknown
12134 esac
12135 elif test "$with_gnu_ld" = yes; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12137 $as_echo_n "checking for GNU ld... " >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12140 $as_echo_n "checking for non-GNU ld... " >&6; }
12142 if ${lt_cv_path_LD+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -z "$LD"; then
12146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12147 for ac_dir in $PATH; do
12148 IFS="$lt_save_ifs"
12149 test -z "$ac_dir" && ac_dir=.
12150 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12151 lt_cv_path_LD="$ac_dir/$ac_prog"
12152 # Check to see if the program is GNU ld. I'd rather use --version,
12153 # but apparently some variants of GNU ld only accept -v.
12154 # Break only if it was the GNU/non-GNU ld that we prefer.
12155 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12156 *GNU* | *'with BFD'*)
12157 test "$with_gnu_ld" != no && break
12160 test "$with_gnu_ld" != yes && break
12162 esac
12164 done
12165 IFS="$lt_save_ifs"
12166 else
12167 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12171 LD="$lt_cv_path_LD"
12172 if test -n "$LD"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12174 $as_echo "$LD" >&6; }
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12179 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12181 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12182 if ${lt_cv_prog_gnu_ld+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12186 case `$LD -v 2>&1 </dev/null` in
12187 *GNU* | *'with BFD'*)
12188 lt_cv_prog_gnu_ld=yes
12191 lt_cv_prog_gnu_ld=no
12193 esac
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12196 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12197 with_gnu_ld=$lt_cv_prog_gnu_ld
12205 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12206 # archiving commands below assume that GNU ld is being used.
12207 if test "$with_gnu_ld" = yes; then
12208 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12211 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12214 # If archive_cmds runs LD, not CC, wlarc should be empty
12215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12216 # investigate it a little bit more. (MM)
12217 wlarc='${wl}'
12219 # ancient GNU ld didn't support --whole-archive et. al.
12220 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12221 $GREP 'no-whole-archive' > /dev/null; then
12222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12223 else
12224 whole_archive_flag_spec_CXX=
12226 else
12227 with_gnu_ld=no
12228 wlarc=
12230 # A generic and very simple default shared library creation
12231 # command for GNU C++ for the case where it uses the native
12232 # linker, instead of GNU ld. If possible, this setting should
12233 # overridden to take advantage of the native linker features on
12234 # the platform it is being used on.
12235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12243 else
12244 GXX=no
12245 with_gnu_ld=no
12246 wlarc=
12249 # PORTME: fill in a description of your system's C++ link characteristics
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12252 ld_shlibs_CXX=yes
12253 case $host_os in
12254 aix3*)
12255 # FIXME: insert proper C++ library support
12256 ld_shlibs_CXX=no
12258 aix[4-9]*)
12259 if test "$host_cpu" = ia64; then
12260 # On IA64, the linker does run time linking by default, so we don't
12261 # have to do anything special.
12262 aix_use_runtimelinking=no
12263 exp_sym_flag='-Bexport'
12264 no_entry_flag=""
12265 else
12266 aix_use_runtimelinking=no
12268 # Test if we are trying to use run time linking or normal
12269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12270 # need to do runtime linking.
12271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12272 for ld_flag in $LDFLAGS; do
12273 case $ld_flag in
12274 *-brtl*)
12275 aix_use_runtimelinking=yes
12276 break
12278 esac
12279 done
12281 esac
12283 exp_sym_flag='-bexport'
12284 no_entry_flag='-bnoentry'
12287 # When large executables or shared objects are built, AIX ld can
12288 # have problems creating the table of contents. If linking a library
12289 # or program results in "error TOC overflow" add -mminimal-toc to
12290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12293 archive_cmds_CXX=''
12294 hardcode_direct_CXX=yes
12295 hardcode_direct_absolute_CXX=yes
12296 hardcode_libdir_separator_CXX=':'
12297 link_all_deplibs_CXX=yes
12298 file_list_spec_CXX='${wl}-f,'
12300 if test "$GXX" = yes; then
12301 case $host_os in aix4.[012]|aix4.[012].*)
12302 # We only want to do this on AIX 4.2 and lower, the check
12303 # below for broken collect2 doesn't work under 4.3+
12304 collect2name=`${CC} -print-prog-name=collect2`
12305 if test -f "$collect2name" &&
12306 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12307 then
12308 # We have reworked collect2
12310 else
12311 # We have old collect2
12312 hardcode_direct_CXX=unsupported
12313 # It fails to find uninstalled libraries when the uninstalled
12314 # path is not listed in the libpath. Setting hardcode_minus_L
12315 # to unsupported forces relinking
12316 hardcode_minus_L_CXX=yes
12317 hardcode_libdir_flag_spec_CXX='-L$libdir'
12318 hardcode_libdir_separator_CXX=
12320 esac
12321 shared_flag='-shared'
12322 if test "$aix_use_runtimelinking" = yes; then
12323 shared_flag="$shared_flag "'${wl}-G'
12325 else
12326 # not using gcc
12327 if test "$host_cpu" = ia64; then
12328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12329 # chokes on -Wl,-G. The following line is correct:
12330 shared_flag='-G'
12331 else
12332 if test "$aix_use_runtimelinking" = yes; then
12333 shared_flag='${wl}-G'
12334 else
12335 shared_flag='${wl}-bM:SRE'
12340 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12341 # It seems that -bexpall does not export symbols beginning with
12342 # underscore (_), so it is better to generate a list of symbols to
12343 # export.
12344 always_export_symbols_CXX=yes
12345 if test "$aix_use_runtimelinking" = yes; then
12346 # Warning - without using the other runtime loading flags (-brtl),
12347 # -berok will link without error, but may produce a broken library.
12348 allow_undefined_flag_CXX='-berok'
12349 # Determine the default libpath from the value encoded in an empty
12350 # executable.
12351 if test "${lt_cv_aix_libpath+set}" = set; then
12352 aix_libpath=$lt_cv_aix_libpath
12353 else
12354 if ${lt_cv_aix_libpath__CXX+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12361 main ()
12365 return 0;
12367 _ACEOF
12368 if ac_fn_cxx_try_link "$LINENO"; then :
12370 lt_aix_libpath_sed='
12371 /Import File Strings/,/^$/ {
12372 /^0/ {
12373 s/^0 *\([^ ]*\) *$/\1/
12377 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12378 # Check for a 64-bit object if we didn't find anything.
12379 if test -z "$lt_cv_aix_libpath__CXX"; then
12380 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12383 rm -f core conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 if test -z "$lt_cv_aix_libpath__CXX"; then
12386 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12391 aix_libpath=$lt_cv_aix_libpath__CXX
12394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12396 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"
12397 else
12398 if test "$host_cpu" = ia64; then
12399 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12400 allow_undefined_flag_CXX="-z nodefs"
12401 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"
12402 else
12403 # Determine the default libpath from the value encoded in an
12404 # empty executable.
12405 if test "${lt_cv_aix_libpath+set}" = set; then
12406 aix_libpath=$lt_cv_aix_libpath
12407 else
12408 if ${lt_cv_aix_libpath__CXX+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12415 main ()
12419 return 0;
12421 _ACEOF
12422 if ac_fn_cxx_try_link "$LINENO"; then :
12424 lt_aix_libpath_sed='
12425 /Import File Strings/,/^$/ {
12426 /^0/ {
12427 s/^0 *\([^ ]*\) *$/\1/
12431 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12432 # Check for a 64-bit object if we didn't find anything.
12433 if test -z "$lt_cv_aix_libpath__CXX"; then
12434 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 if test -z "$lt_cv_aix_libpath__CXX"; then
12440 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12445 aix_libpath=$lt_cv_aix_libpath__CXX
12448 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12449 # Warning - without using the other run time loading flags,
12450 # -berok will link without error, but may produce a broken library.
12451 no_undefined_flag_CXX=' ${wl}-bernotok'
12452 allow_undefined_flag_CXX=' ${wl}-berok'
12453 if test "$with_gnu_ld" = yes; then
12454 # We only use this code for GNU lds that support --whole-archive.
12455 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12456 else
12457 # Exported symbols can be pulled into shared objects from archives
12458 whole_archive_flag_spec_CXX='$convenience'
12460 archive_cmds_need_lc_CXX=yes
12461 # This is similar to how AIX traditionally builds its shared
12462 # libraries.
12463 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'
12468 beos*)
12469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12470 allow_undefined_flag_CXX=unsupported
12471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12472 # support --undefined. This deserves some investigation. FIXME
12473 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 else
12475 ld_shlibs_CXX=no
12479 chorus*)
12480 case $cc_basename in
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12485 esac
12488 cygwin* | mingw* | pw32* | cegcc*)
12489 case $GXX,$cc_basename in
12490 ,cl* | no,cl*)
12491 # Native MSVC
12492 # hardcode_libdir_flag_spec is actually meaningless, as there is
12493 # no search path for DLLs.
12494 hardcode_libdir_flag_spec_CXX=' '
12495 allow_undefined_flag_CXX=unsupported
12496 always_export_symbols_CXX=yes
12497 file_list_spec_CXX='@'
12498 # Tell ltmain to make .lib files, not .a files.
12499 libext=lib
12500 # Tell ltmain to make .dll files, not .so files.
12501 shrext_cmds=".dll"
12502 # FIXME: Setting linknames here is a bad hack.
12503 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12504 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12505 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12506 else
12507 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12509 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12510 linknames='
12511 # The linker will not automatically build a static lib if we build a DLL.
12512 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12513 enable_shared_with_static_runtimes_CXX=yes
12514 # Don't use ranlib
12515 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12516 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12517 lt_tool_outputfile="@TOOL_OUTPUT@"~
12518 case $lt_outputfile in
12519 *.exe|*.EXE) ;;
12521 lt_outputfile="$lt_outputfile.exe"
12522 lt_tool_outputfile="$lt_tool_outputfile.exe"
12524 esac~
12525 func_to_tool_file "$lt_outputfile"~
12526 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12527 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12528 $RM "$lt_outputfile.manifest";
12532 # g++
12533 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12534 # as there is no search path for DLLs.
12535 hardcode_libdir_flag_spec_CXX='-L$libdir'
12536 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12537 allow_undefined_flag_CXX=unsupported
12538 always_export_symbols_CXX=no
12539 enable_shared_with_static_runtimes_CXX=yes
12541 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12542 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'
12543 # If the export-symbols file already is a .def file (1st line
12544 # is EXPORTS), use it as is; otherwise, prepend...
12545 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12546 cp $export_symbols $output_objdir/$soname.def;
12547 else
12548 echo EXPORTS > $output_objdir/$soname.def;
12549 cat $export_symbols >> $output_objdir/$soname.def;
12551 $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'
12552 else
12553 ld_shlibs_CXX=no
12556 esac
12558 darwin* | rhapsody*)
12561 archive_cmds_need_lc_CXX=no
12562 hardcode_direct_CXX=no
12563 hardcode_automatic_CXX=yes
12564 hardcode_shlibpath_var_CXX=unsupported
12565 if test "$lt_cv_ld_force_load" = "yes"; then
12566 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\"`'
12568 else
12569 whole_archive_flag_spec_CXX=''
12571 link_all_deplibs_CXX=yes
12572 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12573 case $cc_basename in
12574 ifort*) _lt_dar_can_shared=yes ;;
12575 *) _lt_dar_can_shared=$GCC ;;
12576 esac
12577 if test "$_lt_dar_can_shared" = "yes"; then
12578 output_verbose_link_cmd=func_echo_all
12579 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}"
12580 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12581 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}"
12582 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}"
12583 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12584 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}"
12585 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}"
12588 else
12589 ld_shlibs_CXX=no
12594 dgux*)
12595 case $cc_basename in
12596 ec++*)
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12600 ghcx*)
12601 # Green Hills C++ Compiler
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12606 # FIXME: insert proper C++ library support
12607 ld_shlibs_CXX=no
12609 esac
12612 freebsd2.*)
12613 # C++ shared libraries reported to be fairly broken before
12614 # switch to ELF
12615 ld_shlibs_CXX=no
12618 freebsd-elf*)
12619 archive_cmds_need_lc_CXX=no
12622 freebsd* | dragonfly*)
12623 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12624 # conventions
12625 ld_shlibs_CXX=yes
12628 gnu*)
12631 haiku*)
12632 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633 link_all_deplibs_CXX=yes
12636 hpux9*)
12637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12638 hardcode_libdir_separator_CXX=:
12639 export_dynamic_flag_spec_CXX='${wl}-E'
12640 hardcode_direct_CXX=yes
12641 hardcode_minus_L_CXX=yes # Not in the search PATH,
12642 # but as the default
12643 # location of the library.
12645 case $cc_basename in
12646 CC*)
12647 # FIXME: insert proper C++ library support
12648 ld_shlibs_CXX=no
12650 aCC*)
12651 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'
12652 # Commands to make compiler produce verbose output that lists
12653 # what "hidden" libraries, object files and flags are used when
12654 # linking a shared library.
12656 # There doesn't appear to be a way to prevent this compiler from
12657 # explicitly linking system object files so we need to strip them
12658 # from the output so that they don't get included in the library
12659 # dependencies.
12660 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"'
12663 if test "$GXX" = yes; then
12664 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12665 else
12666 # FIXME: insert proper C++ library support
12667 ld_shlibs_CXX=no
12670 esac
12673 hpux10*|hpux11*)
12674 if test $with_gnu_ld = no; then
12675 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12676 hardcode_libdir_separator_CXX=:
12678 case $host_cpu in
12679 hppa*64*|ia64*)
12682 export_dynamic_flag_spec_CXX='${wl}-E'
12684 esac
12686 case $host_cpu in
12687 hppa*64*|ia64*)
12688 hardcode_direct_CXX=no
12689 hardcode_shlibpath_var_CXX=no
12692 hardcode_direct_CXX=yes
12693 hardcode_direct_absolute_CXX=yes
12694 hardcode_minus_L_CXX=yes # Not in the search PATH,
12695 # but as the default
12696 # location of the library.
12698 esac
12700 case $cc_basename in
12701 CC*)
12702 # FIXME: insert proper C++ library support
12703 ld_shlibs_CXX=no
12705 aCC*)
12706 case $host_cpu in
12707 hppa*64*)
12708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 ia64*)
12711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716 esac
12717 # Commands to make compiler produce verbose output that lists
12718 # what "hidden" libraries, object files and flags are used when
12719 # linking a shared library.
12721 # There doesn't appear to be a way to prevent this compiler from
12722 # explicitly linking system object files so we need to strip them
12723 # from the output so that they don't get included in the library
12724 # dependencies.
12725 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"'
12728 if test "$GXX" = yes; then
12729 if test $with_gnu_ld = no; then
12730 case $host_cpu in
12731 hppa*64*)
12732 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12734 ia64*)
12735 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12738 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12740 esac
12742 else
12743 # FIXME: insert proper C++ library support
12744 ld_shlibs_CXX=no
12747 esac
12750 interix[3-9]*)
12751 hardcode_direct_CXX=no
12752 hardcode_shlibpath_var_CXX=no
12753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12754 export_dynamic_flag_spec_CXX='${wl}-E'
12755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12756 # Instead, shared libraries are loaded at an image base (0x10000000 by
12757 # default) and relocated if they conflict, which is a slow very memory
12758 # consuming and fragmenting process. To avoid this, we pick a random,
12759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12761 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'
12762 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'
12764 irix5* | irix6*)
12765 case $cc_basename in
12766 CC*)
12767 # SGI C++
12768 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'
12770 # Archives containing C++ object files must be created using
12771 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12772 # necessary to make sure instantiated templates are included
12773 # in the archive.
12774 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12777 if test "$GXX" = yes; then
12778 if test "$with_gnu_ld" = no; then
12779 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12780 else
12781 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12784 link_all_deplibs_CXX=yes
12786 esac
12787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12788 hardcode_libdir_separator_CXX=:
12789 inherit_rpath_CXX=yes
12792 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12793 case $cc_basename in
12794 KCC*)
12795 # Kuck and Associates, Inc. (KAI) C++ Compiler
12797 # KCC will only create a shared library if the output file
12798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12799 # to its proper name (with version) after linking.
12800 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'
12801 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'
12802 # Commands to make compiler produce verbose output that lists
12803 # what "hidden" libraries, object files and flags are used when
12804 # linking a shared library.
12806 # There doesn't appear to be a way to prevent this compiler from
12807 # explicitly linking system object files so we need to strip them
12808 # from the output so that they don't get included in the library
12809 # dependencies.
12810 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"'
12812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12815 # Archives containing C++ object files must be created using
12816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12819 icpc* | ecpc* )
12820 # Intel C++
12821 with_gnu_ld=yes
12822 # version 8.0 and above of icpc choke on multiply defined symbols
12823 # if we add $predep_objects and $postdep_objects, however 7.1 and
12824 # earlier do not add the objects themselves.
12825 case `$CC -V 2>&1` in
12826 *"Version 7."*)
12827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12828 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'
12830 *) # Version 8.0 or newer
12831 tmp_idyn=
12832 case $host_cpu in
12833 ia64*) tmp_idyn=' -i_dynamic';;
12834 esac
12835 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 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'
12838 esac
12839 archive_cmds_need_lc_CXX=no
12840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12842 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12844 pgCC* | pgcpp*)
12845 # Portland Group C++ compiler
12846 case `$CC -V` in
12847 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12848 prelink_cmds_CXX='tpldir=Template.dir~
12849 rm -rf $tpldir~
12850 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12851 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12852 old_archive_cmds_CXX='tpldir=Template.dir~
12853 rm -rf $tpldir~
12854 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12855 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12856 $RANLIB $oldlib'
12857 archive_cmds_CXX='tpldir=Template.dir~
12858 rm -rf $tpldir~
12859 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12860 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12861 archive_expsym_cmds_CXX='tpldir=Template.dir~
12862 rm -rf $tpldir~
12863 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12864 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12866 *) # Version 6 and above use weak symbols
12867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12868 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'
12870 esac
12872 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12874 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'
12876 cxx*)
12877 # Compaq C++
12878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879 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'
12881 runpath_var=LD_RUN_PATH
12882 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12883 hardcode_libdir_separator_CXX=:
12885 # Commands to make compiler produce verbose output that lists
12886 # what "hidden" libraries, object files and flags are used when
12887 # linking a shared library.
12889 # There doesn't appear to be a way to prevent this compiler from
12890 # explicitly linking system object files so we need to strip them
12891 # from the output so that they don't get included in the library
12892 # dependencies.
12893 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'
12895 xl* | mpixl* | bgxl*)
12896 # IBM XL 8.0 on PPC, with GNU ld
12897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12899 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900 if test "x$supports_anon_versioning" = xyes; then
12901 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12903 echo "local: *; };" >> $output_objdir/$libname.ver~
12904 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12908 case `$CC -V 2>&1 | sed 5q` in
12909 *Sun\ C*)
12910 # Sun C++ 5.9
12911 no_undefined_flag_CXX=' -zdefs'
12912 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913 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'
12914 hardcode_libdir_flag_spec_CXX='-R$libdir'
12915 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'
12916 compiler_needs_object_CXX=yes
12918 # Not sure whether something based on
12919 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12920 # would be better.
12921 output_verbose_link_cmd='func_echo_all'
12923 # Archives containing C++ object files must be created using
12924 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12925 # necessary to make sure instantiated templates are included
12926 # in the archive.
12927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12929 esac
12931 esac
12934 lynxos*)
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12939 m88k*)
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12944 mvs*)
12945 case $cc_basename in
12946 cxx*)
12947 # FIXME: insert proper C++ library support
12948 ld_shlibs_CXX=no
12951 # FIXME: insert proper C++ library support
12952 ld_shlibs_CXX=no
12954 esac
12957 netbsd*)
12958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12959 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12960 wlarc=
12961 hardcode_libdir_flag_spec_CXX='-R$libdir'
12962 hardcode_direct_CXX=yes
12963 hardcode_shlibpath_var_CXX=no
12965 # Workaround some broken pre-1.5 toolchains
12966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12969 *nto* | *qnx*)
12970 ld_shlibs_CXX=yes
12973 openbsd2*)
12974 # C++ shared libraries are fairly broken
12975 ld_shlibs_CXX=no
12978 openbsd*)
12979 if test -f /usr/libexec/ld.so; then
12980 hardcode_direct_CXX=yes
12981 hardcode_shlibpath_var_CXX=no
12982 hardcode_direct_absolute_CXX=yes
12983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12986 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12987 export_dynamic_flag_spec_CXX='${wl}-E'
12988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12990 output_verbose_link_cmd=func_echo_all
12991 else
12992 ld_shlibs_CXX=no
12996 osf3* | osf4* | osf5*)
12997 case $cc_basename in
12998 KCC*)
12999 # Kuck and Associates, Inc. (KAI) C++ Compiler
13001 # KCC will only create a shared library if the output file
13002 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13003 # to its proper name (with version) after linking.
13004 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'
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13007 hardcode_libdir_separator_CXX=:
13009 # Archives containing C++ object files must be created using
13010 # the KAI C++ compiler.
13011 case $host in
13012 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13013 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13014 esac
13016 RCC*)
13017 # Rational C++ 2.4.1
13018 # FIXME: insert proper C++ library support
13019 ld_shlibs_CXX=no
13021 cxx*)
13022 case $host in
13023 osf3*)
13024 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13025 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'
13026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13029 allow_undefined_flag_CXX=' -expect_unresolved \*'
13030 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'
13031 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13032 echo "-hidden">> $lib.exp~
13033 $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~
13034 $RM $lib.exp'
13035 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13037 esac
13039 hardcode_libdir_separator_CXX=:
13041 # Commands to make compiler produce verbose output that lists
13042 # what "hidden" libraries, object files and flags are used when
13043 # linking a shared library.
13045 # There doesn't appear to be a way to prevent this compiler from
13046 # explicitly linking system object files so we need to strip them
13047 # from the output so that they don't get included in the library
13048 # dependencies.
13049 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"'
13052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13054 case $host in
13055 osf3*)
13056 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'
13059 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13061 esac
13063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064 hardcode_libdir_separator_CXX=:
13066 # Commands to make compiler produce verbose output that lists
13067 # what "hidden" libraries, object files and flags are used when
13068 # linking a shared library.
13069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13071 else
13072 # FIXME: insert proper C++ library support
13073 ld_shlibs_CXX=no
13076 esac
13079 psos*)
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13084 sunos4*)
13085 case $cc_basename in
13086 CC*)
13087 # Sun C++ 4.x
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13091 lcc*)
13092 # Lucid
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13100 esac
13103 solaris*)
13104 case $cc_basename in
13105 CC* | sunCC*)
13106 # Sun C++ 4.2, 5.x and Centerline C++
13107 archive_cmds_need_lc_CXX=yes
13108 no_undefined_flag_CXX=' -zdefs'
13109 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13110 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13111 $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'
13113 hardcode_libdir_flag_spec_CXX='-R$libdir'
13114 hardcode_shlibpath_var_CXX=no
13115 case $host_os in
13116 solaris2.[0-5] | solaris2.[0-5].*) ;;
13118 # The compiler driver will combine and reorder linker options,
13119 # but understands `-z linker_flag'.
13120 # Supported since Solaris 2.6 (maybe 2.5.1?)
13121 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13123 esac
13124 link_all_deplibs_CXX=yes
13126 output_verbose_link_cmd='func_echo_all'
13128 # Archives containing C++ object files must be created using
13129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13130 # necessary to make sure instantiated templates are included
13131 # in the archive.
13132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13134 gcx*)
13135 # Green Hills C++ Compiler
13136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13138 # The C++ compiler must be used to create the archive.
13139 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13142 # GNU C++ compiler with Solaris linker
13143 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13144 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13145 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13146 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13147 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13148 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13150 # Commands to make compiler produce verbose output that lists
13151 # what "hidden" libraries, object files and flags are used when
13152 # linking a shared library.
13153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13154 else
13155 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13156 # platform.
13157 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13158 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13159 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13161 # Commands to make compiler produce verbose output that lists
13162 # what "hidden" libraries, object files and flags are used when
13163 # linking a shared library.
13164 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13167 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13168 case $host_os in
13169 solaris2.[0-5] | solaris2.[0-5].*) ;;
13171 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13173 esac
13176 esac
13179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13180 no_undefined_flag_CXX='${wl}-z,text'
13181 archive_cmds_need_lc_CXX=no
13182 hardcode_shlibpath_var_CXX=no
13183 runpath_var='LD_RUN_PATH'
13185 case $cc_basename in
13186 CC*)
13187 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13191 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13194 esac
13197 sysv5* | sco3.2v5* | sco5v6*)
13198 # Note: We can NOT use -z defs as we might desire, because we do not
13199 # link with -lc, and that would cause any symbols used from libc to
13200 # always be unresolved, which means just about no library would
13201 # ever link correctly. If we're not using GNU ld we use -z text
13202 # though, which does catch some bad symbols but isn't as heavy-handed
13203 # as -z defs.
13204 no_undefined_flag_CXX='${wl}-z,text'
13205 allow_undefined_flag_CXX='${wl}-z,nodefs'
13206 archive_cmds_need_lc_CXX=no
13207 hardcode_shlibpath_var_CXX=no
13208 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13209 hardcode_libdir_separator_CXX=':'
13210 link_all_deplibs_CXX=yes
13211 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13212 runpath_var='LD_RUN_PATH'
13214 case $cc_basename in
13215 CC*)
13216 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13218 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13219 '"$old_archive_cmds_CXX"
13220 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13221 '"$reload_cmds_CXX"
13224 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13225 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 esac
13230 tandem*)
13231 case $cc_basename in
13232 NCC*)
13233 # NonStop-UX NCC 3.20
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13241 esac
13244 vxworks*)
13245 # FIXME: insert proper C++ library support
13246 ld_shlibs_CXX=no
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13253 esac
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13256 $as_echo "$ld_shlibs_CXX" >&6; }
13257 test "$ld_shlibs_CXX" = no && can_build_shared=no
13259 GCC_CXX="$GXX"
13260 LD_CXX="$LD"
13262 ## CAVEAT EMPTOR:
13263 ## There is no encapsulation within the following macros, do not change
13264 ## the running order or otherwise move them around unless you know exactly
13265 ## what you are doing...
13266 # Dependencies to place before and after the object being linked:
13267 predep_objects_CXX=
13268 postdep_objects_CXX=
13269 predeps_CXX=
13270 postdeps_CXX=
13271 compiler_lib_search_path_CXX=
13273 cat > conftest.$ac_ext <<_LT_EOF
13274 class Foo
13276 public:
13277 Foo (void) { a = 0; }
13278 private:
13279 int a;
13281 _LT_EOF
13284 _lt_libdeps_save_CFLAGS=$CFLAGS
13285 case "$CC $CFLAGS " in #(
13286 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13287 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13288 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13289 esac
13291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13292 (eval $ac_compile) 2>&5
13293 ac_status=$?
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; }; then
13296 # Parse the compiler output and extract the necessary
13297 # objects, libraries and library flags.
13299 # Sentinel used to keep track of whether or not we are before
13300 # the conftest object file.
13301 pre_test_object_deps_done=no
13303 for p in `eval "$output_verbose_link_cmd"`; do
13304 case ${prev}${p} in
13306 -L* | -R* | -l*)
13307 # Some compilers place space between "-{L,R}" and the path.
13308 # Remove the space.
13309 if test $p = "-L" ||
13310 test $p = "-R"; then
13311 prev=$p
13312 continue
13315 # Expand the sysroot to ease extracting the directories later.
13316 if test -z "$prev"; then
13317 case $p in
13318 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13319 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13320 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13321 esac
13323 case $p in
13324 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13325 esac
13326 if test "$pre_test_object_deps_done" = no; then
13327 case ${prev} in
13328 -L | -R)
13329 # Internal compiler library paths should come after those
13330 # provided the user. The postdeps already come after the
13331 # user supplied libs so there is no need to process them.
13332 if test -z "$compiler_lib_search_path_CXX"; then
13333 compiler_lib_search_path_CXX="${prev}${p}"
13334 else
13335 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13338 # The "-l" case would never come before the object being
13339 # linked, so don't bother handling this case.
13340 esac
13341 else
13342 if test -z "$postdeps_CXX"; then
13343 postdeps_CXX="${prev}${p}"
13344 else
13345 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13348 prev=
13351 *.lto.$objext) ;; # Ignore GCC LTO objects
13352 *.$objext)
13353 # This assumes that the test object file only shows up
13354 # once in the compiler output.
13355 if test "$p" = "conftest.$objext"; then
13356 pre_test_object_deps_done=yes
13357 continue
13360 if test "$pre_test_object_deps_done" = no; then
13361 if test -z "$predep_objects_CXX"; then
13362 predep_objects_CXX="$p"
13363 else
13364 predep_objects_CXX="$predep_objects_CXX $p"
13366 else
13367 if test -z "$postdep_objects_CXX"; then
13368 postdep_objects_CXX="$p"
13369 else
13370 postdep_objects_CXX="$postdep_objects_CXX $p"
13375 *) ;; # Ignore the rest.
13377 esac
13378 done
13380 # Clean up.
13381 rm -f a.out a.exe
13382 else
13383 echo "libtool.m4: error: problem compiling CXX test program"
13386 $RM -f confest.$objext
13387 CFLAGS=$_lt_libdeps_save_CFLAGS
13389 # PORTME: override above test on systems where it is broken
13390 case $host_os in
13391 interix[3-9]*)
13392 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13393 # hack all around it, let's just trust "g++" to DTRT.
13394 predep_objects_CXX=
13395 postdep_objects_CXX=
13396 postdeps_CXX=
13399 linux*)
13400 case `$CC -V 2>&1 | sed 5q` in
13401 *Sun\ C*)
13402 # Sun C++ 5.9
13404 # The more standards-conforming stlport4 library is
13405 # incompatible with the Cstd library. Avoid specifying
13406 # it if it's in CXXFLAGS. Ignore libCrun as
13407 # -library=stlport4 depends on it.
13408 case " $CXX $CXXFLAGS " in
13409 *" -library=stlport4 "*)
13410 solaris_use_stlport4=yes
13412 esac
13414 if test "$solaris_use_stlport4" != yes; then
13415 postdeps_CXX='-library=Cstd -library=Crun'
13418 esac
13421 solaris*)
13422 case $cc_basename in
13423 CC* | sunCC*)
13424 # The more standards-conforming stlport4 library is
13425 # incompatible with the Cstd library. Avoid specifying
13426 # it if it's in CXXFLAGS. Ignore libCrun as
13427 # -library=stlport4 depends on it.
13428 case " $CXX $CXXFLAGS " in
13429 *" -library=stlport4 "*)
13430 solaris_use_stlport4=yes
13432 esac
13434 # Adding this requires a known-good setup of shared libraries for
13435 # Sun compiler versions before 5.6, else PIC objects from an old
13436 # archive will be linked into the output, leading to subtle bugs.
13437 if test "$solaris_use_stlport4" != yes; then
13438 postdeps_CXX='-library=Cstd -library=Crun'
13441 esac
13443 esac
13446 case " $postdeps_CXX " in
13447 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13448 esac
13449 compiler_lib_search_dirs_CXX=
13450 if test -n "${compiler_lib_search_path_CXX}"; then
13451 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13484 lt_prog_compiler_wl_CXX=
13485 lt_prog_compiler_pic_CXX=
13486 lt_prog_compiler_static_CXX=
13489 # C++ specific cases for pic, static, wl, etc.
13490 if test "$GXX" = yes; then
13491 lt_prog_compiler_wl_CXX='-Wl,'
13492 lt_prog_compiler_static_CXX='-static'
13494 case $host_os in
13495 aix*)
13496 # All AIX code is PIC.
13497 if test "$host_cpu" = ia64; then
13498 # AIX 5 now supports IA64 processor
13499 lt_prog_compiler_static_CXX='-Bstatic'
13503 amigaos*)
13504 case $host_cpu in
13505 powerpc)
13506 # see comment about AmigaOS4 .so support
13507 lt_prog_compiler_pic_CXX='-fPIC'
13509 m68k)
13510 # FIXME: we need at least 68020 code to build shared libraries, but
13511 # adding the `-m68020' flag to GCC prevents building anything better,
13512 # like `-m68040'.
13513 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13515 esac
13518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13519 # PIC is the default for these OSes.
13521 mingw* | cygwin* | os2* | pw32* | cegcc*)
13522 # This hack is so that the source file can tell whether it is being
13523 # built for inclusion in a dll (and should export symbols for example).
13524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13525 # (--disable-auto-import) libraries
13526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13528 darwin* | rhapsody*)
13529 # PIC is the default on this platform
13530 # Common symbols not allowed in MH_DYLIB files
13531 lt_prog_compiler_pic_CXX='-fno-common'
13533 *djgpp*)
13534 # DJGPP does not support shared libraries at all
13535 lt_prog_compiler_pic_CXX=
13537 haiku*)
13538 # PIC is the default for Haiku.
13539 # The "-static" flag exists, but is broken.
13540 lt_prog_compiler_static_CXX=
13542 interix[3-9]*)
13543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13544 # Instead, we relocate shared libraries at runtime.
13546 sysv4*MP*)
13547 if test -d /usr/nec; then
13548 lt_prog_compiler_pic_CXX=-Kconform_pic
13551 hpux*)
13552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13554 # sets the default TLS model and affects inlining.
13555 case $host_cpu in
13556 hppa*64*)
13559 lt_prog_compiler_pic_CXX='-fPIC'
13561 esac
13563 *qnx* | *nto*)
13564 # QNX uses GNU C++, but need to define -shared option too, otherwise
13565 # it will coredump.
13566 lt_prog_compiler_pic_CXX='-fPIC -shared'
13569 lt_prog_compiler_pic_CXX='-fPIC'
13571 esac
13572 else
13573 case $host_os in
13574 aix[4-9]*)
13575 # All AIX code is PIC.
13576 if test "$host_cpu" = ia64; then
13577 # AIX 5 now supports IA64 processor
13578 lt_prog_compiler_static_CXX='-Bstatic'
13579 else
13580 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13583 chorus*)
13584 case $cc_basename in
13585 cxch68*)
13586 # Green Hills C++ Compiler
13587 # _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"
13589 esac
13591 mingw* | cygwin* | os2* | pw32* | cegcc*)
13592 # This hack is so that the source file can tell whether it is being
13593 # built for inclusion in a dll (and should export symbols for example).
13594 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13596 dgux*)
13597 case $cc_basename in
13598 ec++*)
13599 lt_prog_compiler_pic_CXX='-KPIC'
13601 ghcx*)
13602 # Green Hills C++ Compiler
13603 lt_prog_compiler_pic_CXX='-pic'
13607 esac
13609 freebsd* | dragonfly*)
13610 # FreeBSD uses GNU C++
13612 hpux9* | hpux10* | hpux11*)
13613 case $cc_basename in
13614 CC*)
13615 lt_prog_compiler_wl_CXX='-Wl,'
13616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13617 if test "$host_cpu" != ia64; then
13618 lt_prog_compiler_pic_CXX='+Z'
13621 aCC*)
13622 lt_prog_compiler_wl_CXX='-Wl,'
13623 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13624 case $host_cpu in
13625 hppa*64*|ia64*)
13626 # +Z the default
13629 lt_prog_compiler_pic_CXX='+Z'
13631 esac
13635 esac
13637 interix*)
13638 # This is c89, which is MS Visual C++ (no shared libs)
13639 # Anyone wants to do a port?
13641 irix5* | irix6* | nonstopux*)
13642 case $cc_basename in
13643 CC*)
13644 lt_prog_compiler_wl_CXX='-Wl,'
13645 lt_prog_compiler_static_CXX='-non_shared'
13646 # CC pic flag -KPIC is the default.
13650 esac
13652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13653 case $cc_basename in
13654 KCC*)
13655 # KAI C++ Compiler
13656 lt_prog_compiler_wl_CXX='--backend -Wl,'
13657 lt_prog_compiler_pic_CXX='-fPIC'
13659 ecpc* )
13660 # old Intel C++ for x86_64 which still supported -KPIC.
13661 lt_prog_compiler_wl_CXX='-Wl,'
13662 lt_prog_compiler_pic_CXX='-KPIC'
13663 lt_prog_compiler_static_CXX='-static'
13665 icpc* )
13666 # Intel C++, used to be incompatible with GCC.
13667 # ICC 10 doesn't accept -KPIC any more.
13668 lt_prog_compiler_wl_CXX='-Wl,'
13669 lt_prog_compiler_pic_CXX='-fPIC'
13670 lt_prog_compiler_static_CXX='-static'
13672 pgCC* | pgcpp*)
13673 # Portland Group C++ compiler
13674 lt_prog_compiler_wl_CXX='-Wl,'
13675 lt_prog_compiler_pic_CXX='-fpic'
13676 lt_prog_compiler_static_CXX='-Bstatic'
13678 cxx*)
13679 # Compaq C++
13680 # Make sure the PIC flag is empty. It appears that all Alpha
13681 # Linux and Compaq Tru64 Unix objects are PIC.
13682 lt_prog_compiler_pic_CXX=
13683 lt_prog_compiler_static_CXX='-non_shared'
13685 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13686 # IBM XL 8.0, 9.0 on PPC and BlueGene
13687 lt_prog_compiler_wl_CXX='-Wl,'
13688 lt_prog_compiler_pic_CXX='-qpic'
13689 lt_prog_compiler_static_CXX='-qstaticlink'
13692 case `$CC -V 2>&1 | sed 5q` in
13693 *Sun\ C*)
13694 # Sun C++ 5.9
13695 lt_prog_compiler_pic_CXX='-KPIC'
13696 lt_prog_compiler_static_CXX='-Bstatic'
13697 lt_prog_compiler_wl_CXX='-Qoption ld '
13699 esac
13701 esac
13703 lynxos*)
13705 m88k*)
13707 mvs*)
13708 case $cc_basename in
13709 cxx*)
13710 lt_prog_compiler_pic_CXX='-W c,exportall'
13714 esac
13716 netbsd* | netbsdelf*-gnu)
13718 *qnx* | *nto*)
13719 # QNX uses GNU C++, but need to define -shared option too, otherwise
13720 # it will coredump.
13721 lt_prog_compiler_pic_CXX='-fPIC -shared'
13723 osf3* | osf4* | osf5*)
13724 case $cc_basename in
13725 KCC*)
13726 lt_prog_compiler_wl_CXX='--backend -Wl,'
13728 RCC*)
13729 # Rational C++ 2.4.1
13730 lt_prog_compiler_pic_CXX='-pic'
13732 cxx*)
13733 # Digital/Compaq C++
13734 lt_prog_compiler_wl_CXX='-Wl,'
13735 # Make sure the PIC flag is empty. It appears that all Alpha
13736 # Linux and Compaq Tru64 Unix objects are PIC.
13737 lt_prog_compiler_pic_CXX=
13738 lt_prog_compiler_static_CXX='-non_shared'
13742 esac
13744 psos*)
13746 solaris*)
13747 case $cc_basename in
13748 CC* | sunCC*)
13749 # Sun C++ 4.2, 5.x and Centerline C++
13750 lt_prog_compiler_pic_CXX='-KPIC'
13751 lt_prog_compiler_static_CXX='-Bstatic'
13752 lt_prog_compiler_wl_CXX='-Qoption ld '
13754 gcx*)
13755 # Green Hills C++ Compiler
13756 lt_prog_compiler_pic_CXX='-PIC'
13760 esac
13762 sunos4*)
13763 case $cc_basename in
13764 CC*)
13765 # Sun C++ 4.x
13766 lt_prog_compiler_pic_CXX='-pic'
13767 lt_prog_compiler_static_CXX='-Bstatic'
13769 lcc*)
13770 # Lucid
13771 lt_prog_compiler_pic_CXX='-pic'
13775 esac
13777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13778 case $cc_basename in
13779 CC*)
13780 lt_prog_compiler_wl_CXX='-Wl,'
13781 lt_prog_compiler_pic_CXX='-KPIC'
13782 lt_prog_compiler_static_CXX='-Bstatic'
13784 esac
13786 tandem*)
13787 case $cc_basename in
13788 NCC*)
13789 # NonStop-UX NCC 3.20
13790 lt_prog_compiler_pic_CXX='-KPIC'
13794 esac
13796 vxworks*)
13799 lt_prog_compiler_can_build_shared_CXX=no
13801 esac
13804 case $host_os in
13805 # For platforms which do not support PIC, -DPIC is meaningless:
13806 *djgpp*)
13807 lt_prog_compiler_pic_CXX=
13810 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13812 esac
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13815 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13816 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13822 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13823 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13826 # Check to make sure the PIC flag actually works.
13828 if test -n "$lt_prog_compiler_pic_CXX"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13831 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 lt_cv_prog_compiler_pic_works_CXX=no
13835 ac_outfile=conftest.$ac_objext
13836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13837 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13838 # Insert the option either (1) after the last *FLAGS variable, or
13839 # (2) before a word containing "conftest.", or (3) at the end.
13840 # Note that $ac_compile itself does not contain backslashes and begins
13841 # with a dollar sign (not a hyphen), so the echo should work correctly.
13842 # The option is referenced via a variable to avoid confusing sed.
13843 lt_compile=`echo "$ac_compile" | $SED \
13844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846 -e 's:$: $lt_compiler_flag:'`
13847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13848 (eval "$lt_compile" 2>conftest.err)
13849 ac_status=$?
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 if (exit $ac_status) && test -s "$ac_outfile"; then
13853 # The compiler can only warn and ignore the option if not recognized
13854 # So say no if there are warnings other than the usual output.
13855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13858 lt_cv_prog_compiler_pic_works_CXX=yes
13861 $RM conftest*
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13865 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13867 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13868 case $lt_prog_compiler_pic_CXX in
13869 "" | " "*) ;;
13870 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13871 esac
13872 else
13873 lt_prog_compiler_pic_CXX=
13874 lt_prog_compiler_can_build_shared_CXX=no
13884 # Check to make sure the static flag actually works.
13886 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13888 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13889 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 lt_cv_prog_compiler_static_works_CXX=no
13893 save_LDFLAGS="$LDFLAGS"
13894 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13895 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13897 # The linker can only warn and ignore the option if not recognized
13898 # So say no if there are warnings
13899 if test -s conftest.err; then
13900 # Append any errors to the config.log.
13901 cat conftest.err 1>&5
13902 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13904 if diff conftest.exp conftest.er2 >/dev/null; then
13905 lt_cv_prog_compiler_static_works_CXX=yes
13907 else
13908 lt_cv_prog_compiler_static_works_CXX=yes
13911 $RM -r conftest*
13912 LDFLAGS="$save_LDFLAGS"
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13916 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13918 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13920 else
13921 lt_prog_compiler_static_CXX=
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13929 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 lt_cv_prog_compiler_c_o_CXX=no
13933 $RM -r conftest 2>/dev/null
13934 mkdir conftest
13935 cd conftest
13936 mkdir out
13937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13939 lt_compiler_flag="-o out/conftest2.$ac_objext"
13940 # Insert the option either (1) after the last *FLAGS variable, or
13941 # (2) before a word containing "conftest.", or (3) at the end.
13942 # Note that $ac_compile itself does not contain backslashes and begins
13943 # with a dollar sign (not a hyphen), so the echo should work correctly.
13944 lt_compile=`echo "$ac_compile" | $SED \
13945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13947 -e 's:$: $lt_compiler_flag:'`
13948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13949 (eval "$lt_compile" 2>out/conftest.err)
13950 ac_status=$?
13951 cat out/conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13954 then
13955 # The compiler can only warn and ignore the option if not recognized
13956 # So say no if there are warnings
13957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13960 lt_cv_prog_compiler_c_o_CXX=yes
13963 chmod u+w . 2>&5
13964 $RM conftest*
13965 # SGI C++ compiler will create directory out/ii_files/ for
13966 # template instantiation
13967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13968 $RM out/* && rmdir out
13969 cd ..
13970 $RM -r conftest
13971 $RM conftest*
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13975 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13980 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13981 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 lt_cv_prog_compiler_c_o_CXX=no
13985 $RM -r conftest 2>/dev/null
13986 mkdir conftest
13987 cd conftest
13988 mkdir out
13989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13991 lt_compiler_flag="-o out/conftest2.$ac_objext"
13992 # Insert the option either (1) after the last *FLAGS variable, or
13993 # (2) before a word containing "conftest.", or (3) at the end.
13994 # Note that $ac_compile itself does not contain backslashes and begins
13995 # with a dollar sign (not a hyphen), so the echo should work correctly.
13996 lt_compile=`echo "$ac_compile" | $SED \
13997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13999 -e 's:$: $lt_compiler_flag:'`
14000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14001 (eval "$lt_compile" 2>out/conftest.err)
14002 ac_status=$?
14003 cat out/conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14006 then
14007 # The compiler can only warn and ignore the option if not recognized
14008 # So say no if there are warnings
14009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14012 lt_cv_prog_compiler_c_o_CXX=yes
14015 chmod u+w . 2>&5
14016 $RM conftest*
14017 # SGI C++ compiler will create directory out/ii_files/ for
14018 # template instantiation
14019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14020 $RM out/* && rmdir out
14021 cd ..
14022 $RM -r conftest
14023 $RM conftest*
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14027 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14032 hard_links="nottested"
14033 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14034 # do not overwrite the value of need_locks provided by the user
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14036 $as_echo_n "checking if we can lock with hard links... " >&6; }
14037 hard_links=yes
14038 $RM conftest*
14039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14040 touch conftest.a
14041 ln conftest.a conftest.b 2>&5 || hard_links=no
14042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14044 $as_echo "$hard_links" >&6; }
14045 if test "$hard_links" = no; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14047 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14048 need_locks=warn
14050 else
14051 need_locks=no
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14057 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14060 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14061 case $host_os in
14062 aix[4-9]*)
14063 # If we're using GNU nm, then we don't want the "-C" option.
14064 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14065 # Also, AIX nm treats weak defined symbols like other global defined
14066 # symbols, whereas GNU nm marks them as "W".
14067 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14068 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'
14069 else
14070 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'
14073 pw32*)
14074 export_symbols_cmds_CXX="$ltdll_cmds"
14076 cygwin* | mingw* | cegcc*)
14077 case $cc_basename in
14078 cl*)
14079 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14082 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14083 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14085 esac
14087 linux* | k*bsd*-gnu | gnu*)
14088 link_all_deplibs_CXX=no
14091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14093 esac
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14096 $as_echo "$ld_shlibs_CXX" >&6; }
14097 test "$ld_shlibs_CXX" = no && can_build_shared=no
14099 with_gnu_ld_CXX=$with_gnu_ld
14107 # Do we need to explicitly link libc?
14109 case "x$archive_cmds_need_lc_CXX" in
14110 x|xyes)
14111 # Assume -lc should be added
14112 archive_cmds_need_lc_CXX=yes
14114 if test "$enable_shared" = yes && test "$GCC" = yes; then
14115 case $archive_cmds_CXX in
14116 *'~'*)
14117 # FIXME: we may have to deal with multi-command sequences.
14119 '$CC '*)
14120 # Test whether the compiler implicitly links with -lc since on some
14121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14122 # to ld, don't add -lc before -lgcc.
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14125 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 $RM conftest*
14129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14132 (eval $ac_compile) 2>&5
14133 ac_status=$?
14134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14135 test $ac_status = 0; } 2>conftest.err; then
14136 soname=conftest
14137 lib=conftest
14138 libobjs=conftest.$ac_objext
14139 deplibs=
14140 wl=$lt_prog_compiler_wl_CXX
14141 pic_flag=$lt_prog_compiler_pic_CXX
14142 compiler_flags=-v
14143 linker_flags=-v
14144 verstring=
14145 output_objdir=.
14146 libname=conftest
14147 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14148 allow_undefined_flag_CXX=
14149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14150 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14151 ac_status=$?
14152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14153 test $ac_status = 0; }
14154 then
14155 lt_cv_archive_cmds_need_lc_CXX=no
14156 else
14157 lt_cv_archive_cmds_need_lc_CXX=yes
14159 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14160 else
14161 cat conftest.err 1>&5
14163 $RM conftest*
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14167 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14168 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14170 esac
14173 esac
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14237 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14239 library_names_spec=
14240 libname_spec='lib$name'
14241 soname_spec=
14242 shrext_cmds=".so"
14243 postinstall_cmds=
14244 postuninstall_cmds=
14245 finish_cmds=
14246 finish_eval=
14247 shlibpath_var=
14248 shlibpath_overrides_runpath=unknown
14249 version_type=none
14250 dynamic_linker="$host_os ld.so"
14251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14252 need_lib_prefix=unknown
14253 hardcode_into_libs=no
14255 # when you set need_version to no, make sure it does not cause -set_version
14256 # flags to be left without arguments
14257 need_version=unknown
14259 case $host_os in
14260 aix3*)
14261 version_type=linux # correct to gnu/linux during the next big refactor
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14263 shlibpath_var=LIBPATH
14265 # AIX 3 has no versioning support, so we append a major version to the name.
14266 soname_spec='${libname}${release}${shared_ext}$major'
14269 aix[4-9]*)
14270 version_type=linux # correct to gnu/linux during the next big refactor
14271 need_lib_prefix=no
14272 need_version=no
14273 hardcode_into_libs=yes
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 supports IA64
14276 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 else
14279 # With GCC up to 2.95.x, collect2 would create an import file
14280 # for dependence libraries. The import file would start with
14281 # the line `#! .'. This would cause the generated library to
14282 # depend on `.', always an invalid library. This was fixed in
14283 # development snapshots of GCC prior to 3.0.
14284 case $host_os in
14285 aix4 | aix4.[01] | aix4.[01].*)
14286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14287 echo ' yes '
14288 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14290 else
14291 can_build_shared=no
14294 esac
14295 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14296 # soname into executable. Probably we can add versioning support to
14297 # collect2, so additional links can be useful in future.
14298 if test "$aix_use_runtimelinking" = yes; then
14299 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14300 # instead of lib<name>.a to let people know that these are not
14301 # typical AIX shared libraries.
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 else
14304 # We preserve .a as extension for shared libraries through AIX4.2
14305 # and later when we are not doing run time linking.
14306 library_names_spec='${libname}${release}.a $libname.a'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14309 shlibpath_var=LIBPATH
14313 amigaos*)
14314 case $host_cpu in
14315 powerpc)
14316 # Since July 2007 AmigaOS4 officially supports .so libraries.
14317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320 m68k)
14321 library_names_spec='$libname.ixlibrary $libname.a'
14322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14323 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'
14325 esac
14328 beos*)
14329 library_names_spec='${libname}${shared_ext}'
14330 dynamic_linker="$host_os ld.so"
14331 shlibpath_var=LIBRARY_PATH
14334 bsdi[45]*)
14335 version_type=linux # correct to gnu/linux during the next big refactor
14336 need_version=no
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14343 # the default ld.so.conf also contains /usr/contrib/lib and
14344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14345 # libtool to hard-code these into programs
14348 cygwin* | mingw* | pw32* | cegcc*)
14349 version_type=windows
14350 shrext_cmds=".dll"
14351 need_version=no
14352 need_lib_prefix=no
14354 case $GCC,$cc_basename in
14355 yes,*)
14356 # gcc
14357 library_names_spec='$libname.dll.a'
14358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14359 postinstall_cmds='base_file=`basename \${file}`~
14360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14361 dldir=$destdir/`dirname \$dlpath`~
14362 test -d \$dldir || mkdir -p \$dldir~
14363 $install_prog $dir/$dlname \$dldir/$dlname~
14364 chmod a+x \$dldir/$dlname~
14365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14369 dlpath=$dir/\$dldll~
14370 $RM \$dlpath'
14371 shlibpath_overrides_runpath=yes
14373 case $host_os in
14374 cygwin*)
14375 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14376 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379 mingw* | cegcc*)
14380 # MinGW DLLs use traditional 'lib' prefix
14381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14383 pw32*)
14384 # pw32 DLLs use 'pw' prefix rather than 'lib'
14385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14387 esac
14388 dynamic_linker='Win32 ld.exe'
14391 *,cl*)
14392 # Native MSVC
14393 libname_spec='$name'
14394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14395 library_names_spec='${libname}.dll.lib'
14397 case $build_os in
14398 mingw*)
14399 sys_lib_search_path_spec=
14400 lt_save_ifs=$IFS
14401 IFS=';'
14402 for lt_path in $LIB
14404 IFS=$lt_save_ifs
14405 # Let DOS variable expansion print the short 8.3 style file name.
14406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14408 done
14409 IFS=$lt_save_ifs
14410 # Convert to MSYS style.
14411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14413 cygwin*)
14414 # Convert to unix form, then to dos form, then back to unix form
14415 # but this time dos style (no spaces!) so that the unix form looks
14416 # like /cygdrive/c/PROGRA~1:/cygdr...
14417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14422 sys_lib_search_path_spec="$LIB"
14423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14424 # It is most probably a Windows format PATH.
14425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14426 else
14427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14429 # FIXME: find the short name or the path components, as spaces are
14430 # common. (e.g. "Program Files" -> "PROGRA~1")
14432 esac
14434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14435 postinstall_cmds='base_file=`basename \${file}`~
14436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14437 dldir=$destdir/`dirname \$dlpath`~
14438 test -d \$dldir || mkdir -p \$dldir~
14439 $install_prog $dir/$dlname \$dldir/$dlname'
14440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14441 dlpath=$dir/\$dldll~
14442 $RM \$dlpath'
14443 shlibpath_overrides_runpath=yes
14444 dynamic_linker='Win32 link.exe'
14448 # Assume MSVC wrapper
14449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14450 dynamic_linker='Win32 ld.exe'
14452 esac
14453 # FIXME: first we should search . and the directory the executable is in
14454 shlibpath_var=PATH
14457 darwin* | rhapsody*)
14458 dynamic_linker="$host_os dyld"
14459 version_type=darwin
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14463 soname_spec='${libname}${release}${major}$shared_ext'
14464 shlibpath_overrides_runpath=yes
14465 shlibpath_var=DYLD_LIBRARY_PATH
14466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14471 dgux*)
14472 version_type=linux # correct to gnu/linux during the next big refactor
14473 need_lib_prefix=no
14474 need_version=no
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14476 soname_spec='${libname}${release}${shared_ext}$major'
14477 shlibpath_var=LD_LIBRARY_PATH
14480 freebsd* | dragonfly*)
14481 # DragonFly does not have aout. When/if they implement a new
14482 # versioning mechanism, adjust this.
14483 if test -x /usr/bin/objformat; then
14484 objformat=`/usr/bin/objformat`
14485 else
14486 case $host_os in
14487 freebsd[23].*) objformat=aout ;;
14488 *) objformat=elf ;;
14489 esac
14491 version_type=freebsd-$objformat
14492 case $version_type in
14493 freebsd-elf*)
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14495 need_version=no
14496 need_lib_prefix=no
14498 freebsd-*)
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14500 need_version=yes
14502 esac
14503 shlibpath_var=LD_LIBRARY_PATH
14504 case $host_os in
14505 freebsd2.*)
14506 shlibpath_overrides_runpath=yes
14508 freebsd3.[01]* | freebsdelf3.[01]*)
14509 shlibpath_overrides_runpath=yes
14510 hardcode_into_libs=yes
14512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14514 shlibpath_overrides_runpath=no
14515 hardcode_into_libs=yes
14517 *) # from 4.6 on, and DragonFly
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14521 esac
14524 gnu*)
14525 version_type=linux # correct to gnu/linux during the next big refactor
14526 need_lib_prefix=no
14527 need_version=no
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=no
14532 hardcode_into_libs=yes
14535 haiku*)
14536 version_type=linux # correct to gnu/linux during the next big refactor
14537 need_lib_prefix=no
14538 need_version=no
14539 dynamic_linker="$host_os runtime_loader"
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LIBRARY_PATH
14543 shlibpath_overrides_runpath=yes
14544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14545 hardcode_into_libs=yes
14548 hpux9* | hpux10* | hpux11*)
14549 # Give a soname corresponding to the major version so that dld.sl refuses to
14550 # link against other versions.
14551 version_type=sunos
14552 need_lib_prefix=no
14553 need_version=no
14554 case $host_cpu in
14555 ia64*)
14556 shrext_cmds='.so'
14557 hardcode_into_libs=yes
14558 dynamic_linker="$host_os dld.so"
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 if test "X$HPUX_IA64_MODE" = X32; then
14564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14565 else
14566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14570 hppa*64*)
14571 shrext_cmds='.sl'
14572 hardcode_into_libs=yes
14573 dynamic_linker="$host_os dld.sl"
14574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582 shrext_cmds='.sl'
14583 dynamic_linker="$host_os dld.sl"
14584 shlibpath_var=SHLIB_PATH
14585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14589 esac
14590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14591 postinstall_cmds='chmod 555 $lib'
14592 # or fails outright, so override atomically:
14593 install_override_mode=555
14596 interix[3-9]*)
14597 version_type=linux # correct to gnu/linux during the next big refactor
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=no
14605 hardcode_into_libs=yes
14608 irix5* | irix6* | nonstopux*)
14609 case $host_os in
14610 nonstopux*) version_type=nonstopux ;;
14612 if test "$lt_cv_prog_gnu_ld" = yes; then
14613 version_type=linux # correct to gnu/linux during the next big refactor
14614 else
14615 version_type=irix
14616 fi ;;
14617 esac
14618 need_lib_prefix=no
14619 need_version=no
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14622 case $host_os in
14623 irix5* | nonstopux*)
14624 libsuff= shlibsuff=
14627 case $LD in # libtool.m4 will add one of these switches to LD
14628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14629 libsuff= shlibsuff= libmagic=32-bit;;
14630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14631 libsuff=32 shlibsuff=N32 libmagic=N32;;
14632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14634 *) libsuff= shlibsuff= libmagic=never-match;;
14635 esac
14637 esac
14638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14639 shlibpath_overrides_runpath=no
14640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14642 hardcode_into_libs=yes
14645 # No shared lib support for Linux oldld, aout, or coff.
14646 linux*oldld* | linux*aout* | linux*coff*)
14647 dynamic_linker=no
14650 # This must be glibc/ELF.
14651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14652 version_type=linux # correct to gnu/linux during the next big refactor
14653 need_lib_prefix=no
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=no
14661 # Some binutils ld are patched to set DT_RUNPATH
14662 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 lt_cv_shlibpath_overrides_runpath=no
14666 save_LDFLAGS=$LDFLAGS
14667 save_libdir=$libdir
14668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14674 main ()
14678 return 0;
14680 _ACEOF
14681 if ac_fn_cxx_try_link "$LINENO"; then :
14682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14683 lt_cv_shlibpath_overrides_runpath=yes
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS=$save_LDFLAGS
14689 libdir=$save_libdir
14693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14695 # This implies no fast_install, which is unacceptable.
14696 # Some rework will be needed to allow for fast_install
14697 # before this can be enabled.
14698 hardcode_into_libs=yes
14700 # Append ld.so.conf contents to the search path
14701 if test -f /etc/ld.so.conf; then
14702 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' ' '`
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14706 # We used to test for /lib/ld.so.1 and disable shared libraries on
14707 # powerpc, because MkLinux only supported shared libraries with the
14708 # GNU dynamic linker. Since this was broken with cross compilers,
14709 # most powerpc-linux boxes support dynamic linking these days and
14710 # people can always --disable-shared, the test was removed, and we
14711 # assume the GNU/Linux dynamic linker is in use.
14712 dynamic_linker='GNU/Linux ld.so'
14715 netbsdelf*-gnu)
14716 version_type=linux
14717 need_lib_prefix=no
14718 need_version=no
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=no
14723 hardcode_into_libs=yes
14724 dynamic_linker='NetBSD ld.elf_so'
14727 netbsd*)
14728 version_type=sunos
14729 need_lib_prefix=no
14730 need_version=no
14731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734 dynamic_linker='NetBSD (a.out) ld.so'
14735 else
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 dynamic_linker='NetBSD ld.elf_so'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14742 hardcode_into_libs=yes
14745 newsos6)
14746 version_type=linux # correct to gnu/linux during the next big refactor
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes
14752 *nto* | *qnx*)
14753 version_type=qnx
14754 need_lib_prefix=no
14755 need_version=no
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=no
14760 hardcode_into_libs=yes
14761 dynamic_linker='ldqnx.so'
14764 openbsd*)
14765 version_type=sunos
14766 sys_lib_dlsearch_path_spec="/usr/lib"
14767 need_lib_prefix=no
14768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14769 case $host_os in
14770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14771 *) need_version=no ;;
14772 esac
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14777 case $host_os in
14778 openbsd2.[89] | openbsd2.[89].*)
14779 shlibpath_overrides_runpath=no
14782 shlibpath_overrides_runpath=yes
14784 esac
14785 else
14786 shlibpath_overrides_runpath=yes
14790 os2*)
14791 libname_spec='$name'
14792 shrext_cmds=".dll"
14793 need_lib_prefix=no
14794 library_names_spec='$libname${shared_ext} $libname.a'
14795 dynamic_linker='OS/2 ld.exe'
14796 shlibpath_var=LIBPATH
14799 osf3* | osf4* | osf5*)
14800 version_type=osf
14801 need_lib_prefix=no
14802 need_version=no
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14810 rdos*)
14811 dynamic_linker=no
14814 solaris*)
14815 version_type=linux # correct to gnu/linux during the next big refactor
14816 need_lib_prefix=no
14817 need_version=no
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14822 hardcode_into_libs=yes
14823 # ldd complains unless libraries are executable
14824 postinstall_cmds='chmod +x $lib'
14827 sunos4*)
14828 version_type=sunos
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 shlibpath_overrides_runpath=yes
14833 if test "$with_gnu_ld" = yes; then
14834 need_lib_prefix=no
14836 need_version=yes
14839 sysv4 | sysv4.3*)
14840 version_type=linux # correct to gnu/linux during the next big refactor
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 case $host_vendor in
14845 sni)
14846 shlibpath_overrides_runpath=no
14847 need_lib_prefix=no
14848 runpath_var=LD_RUN_PATH
14850 siemens)
14851 need_lib_prefix=no
14853 motorola)
14854 need_lib_prefix=no
14855 need_version=no
14856 shlibpath_overrides_runpath=no
14857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14859 esac
14862 sysv4*MP*)
14863 if test -d /usr/nec ;then
14864 version_type=linux # correct to gnu/linux during the next big refactor
14865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14866 soname_spec='$libname${shared_ext}.$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14872 version_type=freebsd-elf
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 hardcode_into_libs=yes
14880 if test "$with_gnu_ld" = yes; then
14881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14882 else
14883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14884 case $host_os in
14885 sco3.2v5*)
14886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14888 esac
14890 sys_lib_dlsearch_path_spec='/usr/lib'
14893 tpf*)
14894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14895 version_type=linux # correct to gnu/linux during the next big refactor
14896 need_lib_prefix=no
14897 need_version=no
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=no
14901 hardcode_into_libs=yes
14904 uts4*)
14905 version_type=linux # correct to gnu/linux during the next big refactor
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14912 dynamic_linker=no
14914 esac
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14916 $as_echo "$dynamic_linker" >&6; }
14917 test "$dynamic_linker" = no && can_build_shared=no
14919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14920 if test "$GCC" = yes; then
14921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14924 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14925 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14928 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14969 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14970 hardcode_action_CXX=
14971 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14972 test -n "$runpath_var_CXX" ||
14973 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14975 # We can hardcode non-existent directories.
14976 if test "$hardcode_direct_CXX" != no &&
14977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14978 # have to relink, otherwise we might link with an installed library
14979 # when we should be linking with a yet-to-be-installed one
14980 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14981 test "$hardcode_minus_L_CXX" != no; then
14982 # Linking always hardcodes the temporary library directory.
14983 hardcode_action_CXX=relink
14984 else
14985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14986 hardcode_action_CXX=immediate
14988 else
14989 # We cannot hardcode anything, or else we can only hardcode existing
14990 # directories.
14991 hardcode_action_CXX=unsupported
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14994 $as_echo "$hardcode_action_CXX" >&6; }
14996 if test "$hardcode_action_CXX" = relink ||
14997 test "$inherit_rpath_CXX" = yes; then
14998 # Fast installation is not supported
14999 enable_fast_install=no
15000 elif test "$shlibpath_overrides_runpath" = yes ||
15001 test "$enable_shared" = no; then
15002 # Fast installation is not necessary
15003 enable_fast_install=needless
15012 fi # test -n "$compiler"
15014 CC=$lt_save_CC
15015 CFLAGS=$lt_save_CFLAGS
15016 LDCXX=$LD
15017 LD=$lt_save_LD
15018 GCC=$lt_save_GCC
15019 with_gnu_ld=$lt_save_with_gnu_ld
15020 lt_cv_path_LDCXX=$lt_cv_path_LD
15021 lt_cv_path_LD=$lt_save_path_LD
15022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15024 fi # test "$_lt_caught_CXX_error" != yes
15026 ac_ext=c
15027 ac_cpp='$CPP $CPPFLAGS'
15028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15046 ac_config_commands="$ac_config_commands libtool"
15051 # Only expand once:
15058 #AM_ENABLE_MULTILIB(, ..)
15059 target_alias=${target_alias-$host_alias}
15062 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15063 toolexeclibdir='$(libdir)'
15067 ac_config_files="$ac_config_files Makefile"
15070 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
15073 cat >confcache <<\_ACEOF
15074 # This file is a shell script that caches the results of configure
15075 # tests run on this system so they can be shared between configure
15076 # scripts and configure runs, see configure's option --config-cache.
15077 # It is not useful on other systems. If it contains results you don't
15078 # want to keep, you may remove or edit it.
15080 # config.status only pays attention to the cache file if you give it
15081 # the --recheck option to rerun configure.
15083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15085 # following values.
15087 _ACEOF
15089 # The following way of writing the cache mishandles newlines in values,
15090 # but we know of no workaround that is simple, portable, and efficient.
15091 # So, we kill variables containing newlines.
15092 # Ultrix sh set writes to stderr and can't be redirected directly,
15093 # and sets the high bit in the cache file unless we assign to the vars.
15095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15096 eval ac_val=\$$ac_var
15097 case $ac_val in #(
15098 *${as_nl}*)
15099 case $ac_var in #(
15100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15102 esac
15103 case $ac_var in #(
15104 _ | IFS | as_nl) ;; #(
15105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15106 *) { eval $ac_var=; unset $ac_var;} ;;
15107 esac ;;
15108 esac
15109 done
15111 (set) 2>&1 |
15112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15113 *${as_nl}ac_space=\ *)
15114 # `set' does not quote correctly, so add quotes: double-quote
15115 # substitution turns \\\\ into \\, and sed turns \\ into \.
15116 sed -n \
15117 "s/'/'\\\\''/g;
15118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15119 ;; #(
15121 # `set' quotes correctly as required by POSIX, so do not add quotes.
15122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15124 esac |
15125 sort
15127 sed '
15128 /^ac_cv_env_/b end
15129 t clear
15130 :clear
15131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15132 t end
15133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15134 :end' >>confcache
15135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15136 if test -w "$cache_file"; then
15137 if test "x$cache_file" != "x/dev/null"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15139 $as_echo "$as_me: updating cache $cache_file" >&6;}
15140 if test ! -f "$cache_file" || test -h "$cache_file"; then
15141 cat confcache >"$cache_file"
15142 else
15143 case $cache_file in #(
15144 */* | ?:*)
15145 mv -f confcache "$cache_file"$$ &&
15146 mv -f "$cache_file"$$ "$cache_file" ;; #(
15148 mv -f confcache "$cache_file" ;;
15149 esac
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15157 rm -f confcache
15159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15160 # Let make expand exec_prefix.
15161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15163 # Transform confdefs.h into DEFS.
15164 # Protect against shell expansion while executing Makefile rules.
15165 # Protect against Makefile macro expansion.
15167 # If the first sed substitution is executed (which looks for macros that
15168 # take arguments), then branch to the quote section. Otherwise,
15169 # look for a macro that doesn't take arguments.
15170 ac_script='
15171 :mline
15172 /\\$/{
15174 s,\\\n,,
15175 b mline
15177 t clear
15178 :clear
15179 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15180 t quote
15181 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15182 t quote
15183 b any
15184 :quote
15185 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15186 s/\[/\\&/g
15187 s/\]/\\&/g
15188 s/\$/$$/g
15190 :any
15193 s/^\n//
15194 s/\n/ /g
15198 DEFS=`sed -n "$ac_script" confdefs.h`
15201 ac_libobjs=
15202 ac_ltlibobjs=
15204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15205 # 1. Remove the extension, and $U if already installed.
15206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15209 # will be set to the directory where LIBOBJS objects are built.
15210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15212 done
15213 LIBOBJS=$ac_libobjs
15215 LTLIBOBJS=$ac_ltlibobjs
15218 if test -n "$EXEEXT"; then
15219 am__EXEEXT_TRUE=
15220 am__EXEEXT_FALSE='#'
15221 else
15222 am__EXEEXT_TRUE='#'
15223 am__EXEEXT_FALSE=
15226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15227 as_fn_error $? "conditional \"AMDEP\" was never defined.
15228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15231 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15235 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15239 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243 : "${CONFIG_STATUS=./config.status}"
15244 ac_write_fail=0
15245 ac_clean_files_save=$ac_clean_files
15246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15249 as_write_fail=0
15250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15251 #! $SHELL
15252 # Generated by $as_me.
15253 # Run this file to recreate the current configuration.
15254 # Compiler output produced by configure, useful for debugging
15255 # configure, is in config.log if it exists.
15257 debug=false
15258 ac_cs_recheck=false
15259 ac_cs_silent=false
15261 SHELL=\${CONFIG_SHELL-$SHELL}
15262 export SHELL
15263 _ASEOF
15264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15265 ## -------------------- ##
15266 ## M4sh Initialization. ##
15267 ## -------------------- ##
15269 # Be more Bourne compatible
15270 DUALCASE=1; export DUALCASE # for MKS sh
15271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15272 emulate sh
15273 NULLCMD=:
15274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15275 # is contrary to our usage. Disable this feature.
15276 alias -g '${1+"$@"}'='"$@"'
15277 setopt NO_GLOB_SUBST
15278 else
15279 case `(set -o) 2>/dev/null` in #(
15280 *posix*) :
15281 set -o posix ;; #(
15282 *) :
15284 esac
15288 as_nl='
15290 export as_nl
15291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15292 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15295 # Prefer a ksh shell builtin over an external printf program on Solaris,
15296 # but without wasting forks for bash or zsh.
15297 if test -z "$BASH_VERSION$ZSH_VERSION" \
15298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15299 as_echo='print -r --'
15300 as_echo_n='print -rn --'
15301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15302 as_echo='printf %s\n'
15303 as_echo_n='printf %s'
15304 else
15305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15306 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15307 as_echo_n='/usr/ucb/echo -n'
15308 else
15309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15310 as_echo_n_body='eval
15311 arg=$1;
15312 case $arg in #(
15313 *"$as_nl"*)
15314 expr "X$arg" : "X\\(.*\\)$as_nl";
15315 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15316 esac;
15317 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15319 export as_echo_n_body
15320 as_echo_n='sh -c $as_echo_n_body as_echo'
15322 export as_echo_body
15323 as_echo='sh -c $as_echo_body as_echo'
15326 # The user is always right.
15327 if test "${PATH_SEPARATOR+set}" != set; then
15328 PATH_SEPARATOR=:
15329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15331 PATH_SEPARATOR=';'
15336 # IFS
15337 # We need space, tab and new line, in precisely that order. Quoting is
15338 # there to prevent editors from complaining about space-tab.
15339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15340 # splitting by setting IFS to empty value.)
15341 IFS=" "" $as_nl"
15343 # Find who we are. Look in the path if we contain no directory separator.
15344 as_myself=
15345 case $0 in #((
15346 *[\\/]* ) as_myself=$0 ;;
15347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15350 IFS=$as_save_IFS
15351 test -z "$as_dir" && as_dir=.
15352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15353 done
15354 IFS=$as_save_IFS
15357 esac
15358 # We did not find ourselves, most probably we were run as `sh COMMAND'
15359 # in which case we are not to be found in the path.
15360 if test "x$as_myself" = x; then
15361 as_myself=$0
15363 if test ! -f "$as_myself"; then
15364 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15365 exit 1
15368 # Unset variables that we do not need and which cause bugs (e.g. in
15369 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15370 # suppresses any "Segmentation fault" message there. '((' could
15371 # trigger a bug in pdksh 5.2.14.
15372 for as_var in BASH_ENV ENV MAIL MAILPATH
15373 do eval test x\${$as_var+set} = xset \
15374 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15375 done
15376 PS1='$ '
15377 PS2='> '
15378 PS4='+ '
15380 # NLS nuisances.
15381 LC_ALL=C
15382 export LC_ALL
15383 LANGUAGE=C
15384 export LANGUAGE
15386 # CDPATH.
15387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15391 # ----------------------------------------
15392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15394 # script with STATUS, using 1 if that was 0.
15395 as_fn_error ()
15397 as_status=$1; test $as_status -eq 0 && as_status=1
15398 if test "$4"; then
15399 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15402 $as_echo "$as_me: error: $2" >&2
15403 as_fn_exit $as_status
15404 } # as_fn_error
15407 # as_fn_set_status STATUS
15408 # -----------------------
15409 # Set $? to STATUS, without forking.
15410 as_fn_set_status ()
15412 return $1
15413 } # as_fn_set_status
15415 # as_fn_exit STATUS
15416 # -----------------
15417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15418 as_fn_exit ()
15420 set +e
15421 as_fn_set_status $1
15422 exit $1
15423 } # as_fn_exit
15425 # as_fn_unset VAR
15426 # ---------------
15427 # Portably unset VAR.
15428 as_fn_unset ()
15430 { eval $1=; unset $1;}
15432 as_unset=as_fn_unset
15433 # as_fn_append VAR VALUE
15434 # ----------------------
15435 # Append the text in VALUE to the end of the definition contained in VAR. Take
15436 # advantage of any shell optimizations that allow amortized linear growth over
15437 # repeated appends, instead of the typical quadratic growth present in naive
15438 # implementations.
15439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15440 eval 'as_fn_append ()
15442 eval $1+=\$2
15444 else
15445 as_fn_append ()
15447 eval $1=\$$1\$2
15449 fi # as_fn_append
15451 # as_fn_arith ARG...
15452 # ------------------
15453 # Perform arithmetic evaluation on the ARGs, and store the result in the
15454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15455 # must be portable across $(()) and expr.
15456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15457 eval 'as_fn_arith ()
15459 as_val=$(( $* ))
15461 else
15462 as_fn_arith ()
15464 as_val=`expr "$@" || test $? -eq 1`
15466 fi # as_fn_arith
15469 if expr a : '\(a\)' >/dev/null 2>&1 &&
15470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15471 as_expr=expr
15472 else
15473 as_expr=false
15476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15477 as_basename=basename
15478 else
15479 as_basename=false
15482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15483 as_dirname=dirname
15484 else
15485 as_dirname=false
15488 as_me=`$as_basename -- "$0" ||
15489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15490 X"$0" : 'X\(//\)$' \| \
15491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15492 $as_echo X/"$0" |
15493 sed '/^.*\/\([^/][^/]*\)\/*$/{
15494 s//\1/
15497 /^X\/\(\/\/\)$/{
15498 s//\1/
15501 /^X\/\(\/\).*/{
15502 s//\1/
15505 s/.*/./; q'`
15507 # Avoid depending upon Character Ranges.
15508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15511 as_cr_digits='0123456789'
15512 as_cr_alnum=$as_cr_Letters$as_cr_digits
15514 ECHO_C= ECHO_N= ECHO_T=
15515 case `echo -n x` in #(((((
15516 -n*)
15517 case `echo 'xy\c'` in
15518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15519 xy) ECHO_C='\c';;
15520 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15521 ECHO_T=' ';;
15522 esac;;
15524 ECHO_N='-n';;
15525 esac
15527 rm -f conf$$ conf$$.exe conf$$.file
15528 if test -d conf$$.dir; then
15529 rm -f conf$$.dir/conf$$.file
15530 else
15531 rm -f conf$$.dir
15532 mkdir conf$$.dir 2>/dev/null
15534 if (echo >conf$$.file) 2>/dev/null; then
15535 if ln -s conf$$.file conf$$ 2>/dev/null; then
15536 as_ln_s='ln -s'
15537 # ... but there are two gotchas:
15538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15540 # In both cases, we have to default to `cp -p'.
15541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15542 as_ln_s='cp -p'
15543 elif ln conf$$.file conf$$ 2>/dev/null; then
15544 as_ln_s=ln
15545 else
15546 as_ln_s='cp -p'
15548 else
15549 as_ln_s='cp -p'
15551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15552 rmdir conf$$.dir 2>/dev/null
15555 # as_fn_mkdir_p
15556 # -------------
15557 # Create "$as_dir" as a directory, including parents if necessary.
15558 as_fn_mkdir_p ()
15561 case $as_dir in #(
15562 -*) as_dir=./$as_dir;;
15563 esac
15564 test -d "$as_dir" || eval $as_mkdir_p || {
15565 as_dirs=
15566 while :; do
15567 case $as_dir in #(
15568 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15569 *) as_qdir=$as_dir;;
15570 esac
15571 as_dirs="'$as_qdir' $as_dirs"
15572 as_dir=`$as_dirname -- "$as_dir" ||
15573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15574 X"$as_dir" : 'X\(//\)[^/]' \| \
15575 X"$as_dir" : 'X\(//\)$' \| \
15576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15577 $as_echo X"$as_dir" |
15578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15579 s//\1/
15582 /^X\(\/\/\)[^/].*/{
15583 s//\1/
15586 /^X\(\/\/\)$/{
15587 s//\1/
15590 /^X\(\/\).*/{
15591 s//\1/
15594 s/.*/./; q'`
15595 test -d "$as_dir" && break
15596 done
15597 test -z "$as_dirs" || eval "mkdir $as_dirs"
15598 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15601 } # as_fn_mkdir_p
15602 if mkdir -p . 2>/dev/null; then
15603 as_mkdir_p='mkdir -p "$as_dir"'
15604 else
15605 test -d ./-p && rmdir ./-p
15606 as_mkdir_p=false
15609 if test -x / >/dev/null 2>&1; then
15610 as_test_x='test -x'
15611 else
15612 if ls -dL / >/dev/null 2>&1; then
15613 as_ls_L_option=L
15614 else
15615 as_ls_L_option=
15617 as_test_x='
15618 eval sh -c '\''
15619 if test -d "$1"; then
15620 test -d "$1/.";
15621 else
15622 case $1 in #(
15623 -*)set "./$1";;
15624 esac;
15625 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15626 ???[sx]*):;;*)false;;esac;fi
15627 '\'' sh
15630 as_executable_p=$as_test_x
15632 # Sed expression to map a string onto a valid CPP name.
15633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15635 # Sed expression to map a string onto a valid variable name.
15636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15639 exec 6>&1
15640 ## ----------------------------------- ##
15641 ## Main body of $CONFIG_STATUS script. ##
15642 ## ----------------------------------- ##
15643 _ASEOF
15644 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647 # Save the log message, to keep $0 and so on meaningful, and to
15648 # report actual input values of CONFIG_FILES etc. instead of their
15649 # values after options handling.
15650 ac_log="
15651 This file was extended by package-unused $as_me version-unused, which was
15652 generated by GNU Autoconf 2.68. Invocation command line was
15654 CONFIG_FILES = $CONFIG_FILES
15655 CONFIG_HEADERS = $CONFIG_HEADERS
15656 CONFIG_LINKS = $CONFIG_LINKS
15657 CONFIG_COMMANDS = $CONFIG_COMMANDS
15658 $ $0 $@
15660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15663 _ACEOF
15665 case $ac_config_files in *"
15666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15667 esac
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 # Files that config.status was made for.
15673 config_files="$ac_config_files"
15674 config_commands="$ac_config_commands"
15676 _ACEOF
15678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679 ac_cs_usage="\
15680 \`$as_me' instantiates files and other configuration actions
15681 from templates according to the current configuration. Unless the files
15682 and actions are specified as TAGs, all are instantiated by default.
15684 Usage: $0 [OPTION]... [TAG]...
15686 -h, --help print this help, then exit
15687 -V, --version print version number and configuration settings, then exit
15688 --config print configuration, then exit
15689 -q, --quiet, --silent
15690 do not print progress messages
15691 -d, --debug don't remove temporary files
15692 --recheck update $as_me by reconfiguring in the same conditions
15693 --file=FILE[:TEMPLATE]
15694 instantiate the configuration file FILE
15696 Configuration files:
15697 $config_files
15699 Configuration commands:
15700 $config_commands
15702 Report bugs to <libsanitizer>."
15704 _ACEOF
15705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15706 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15707 ac_cs_version="\\
15708 package-unused config.status version-unused
15709 configured by $0, generated by GNU Autoconf 2.68,
15710 with options \\"\$ac_cs_config\\"
15712 Copyright (C) 2010 Free Software Foundation, Inc.
15713 This config.status script is free software; the Free Software Foundation
15714 gives unlimited permission to copy, distribute and modify it."
15716 ac_pwd='$ac_pwd'
15717 srcdir='$srcdir'
15718 INSTALL='$INSTALL'
15719 MKDIR_P='$MKDIR_P'
15720 AWK='$AWK'
15721 test -n "\$AWK" || AWK=awk
15722 _ACEOF
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725 # The default lists apply if the user does not specify any file.
15726 ac_need_defaults=:
15727 while test $# != 0
15729 case $1 in
15730 --*=?*)
15731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15733 ac_shift=:
15735 --*=)
15736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15737 ac_optarg=
15738 ac_shift=:
15741 ac_option=$1
15742 ac_optarg=$2
15743 ac_shift=shift
15745 esac
15747 case $ac_option in
15748 # Handling of the options.
15749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15750 ac_cs_recheck=: ;;
15751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15752 $as_echo "$ac_cs_version"; exit ;;
15753 --config | --confi | --conf | --con | --co | --c )
15754 $as_echo "$ac_cs_config"; exit ;;
15755 --debug | --debu | --deb | --de | --d | -d )
15756 debug=: ;;
15757 --file | --fil | --fi | --f )
15758 $ac_shift
15759 case $ac_optarg in
15760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15761 '') as_fn_error $? "missing file argument" ;;
15762 esac
15763 as_fn_append CONFIG_FILES " '$ac_optarg'"
15764 ac_need_defaults=false;;
15765 --he | --h | --help | --hel | -h )
15766 $as_echo "$ac_cs_usage"; exit ;;
15767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15769 ac_cs_silent=: ;;
15771 # This is an error.
15772 -*) as_fn_error $? "unrecognized option: \`$1'
15773 Try \`$0 --help' for more information." ;;
15775 *) as_fn_append ac_config_targets " $1"
15776 ac_need_defaults=false ;;
15778 esac
15779 shift
15780 done
15782 ac_configure_extra_args=
15784 if $ac_cs_silent; then
15785 exec 6>/dev/null
15786 ac_configure_extra_args="$ac_configure_extra_args --silent"
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15791 if \$ac_cs_recheck; then
15792 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15793 shift
15794 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15795 CONFIG_SHELL='$SHELL'
15796 export CONFIG_SHELL
15797 exec "\$@"
15800 _ACEOF
15801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15802 exec 5>>config.log
15804 echo
15805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15806 ## Running $as_me. ##
15807 _ASBOX
15808 $as_echo "$ac_log"
15809 } >&5
15811 _ACEOF
15812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15814 # INIT-COMMANDS
15816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15819 # The HP-UX ksh and POSIX shell print the target directory to stdout
15820 # if CDPATH is set.
15821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15823 sed_quote_subst='$sed_quote_subst'
15824 double_quote_subst='$double_quote_subst'
15825 delay_variable_subst='$delay_variable_subst'
15826 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15827 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15828 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15829 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15830 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15831 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15832 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15833 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15834 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15835 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15836 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15837 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15838 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15839 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15840 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15841 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15842 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15843 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15844 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15845 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15846 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15847 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15848 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15849 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15850 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15851 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15852 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15853 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15854 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15855 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15856 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15857 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15858 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15859 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15860 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15861 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15862 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15863 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15864 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15865 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15866 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15867 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15868 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15869 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15870 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15871 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15872 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15873 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15874 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15875 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15876 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15877 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15878 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15879 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15880 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15881 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15882 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"`'
15883 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15884 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15885 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15886 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15887 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15888 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15889 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15890 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15891 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15892 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15893 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15894 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15895 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15896 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15897 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15898 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15899 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15900 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15901 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15902 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15903 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15904 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15905 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15906 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15907 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15908 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15909 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15910 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15911 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15912 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15913 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15914 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15915 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15916 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15917 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15918 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15919 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15920 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15921 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15922 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15923 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15924 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15925 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15926 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15927 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15928 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15929 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15930 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15931 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15932 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15933 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15934 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15935 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15936 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15937 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15938 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15939 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15940 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15941 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15942 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15943 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15944 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15945 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15946 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15947 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15948 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15949 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15950 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15951 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15952 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15953 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15954 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15955 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15956 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15957 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15958 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15959 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15960 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15961 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15962 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15963 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15964 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15965 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15966 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15967 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15968 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15969 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15970 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15971 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15973 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15974 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15975 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15976 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15977 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15978 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15979 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15980 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15981 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15982 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15983 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15984 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15985 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15986 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15987 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15988 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15989 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15990 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15991 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15992 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15993 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15994 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15995 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15996 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15997 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15998 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15999 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16000 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16001 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16002 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16003 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16004 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16005 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16006 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16007 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16008 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16009 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16011 LTCC='$LTCC'
16012 LTCFLAGS='$LTCFLAGS'
16013 compiler='$compiler_DEFAULT'
16015 # A function that is used when there is no print builtin or printf.
16016 func_fallback_echo ()
16018 eval 'cat <<_LTECHO_EOF
16020 _LTECHO_EOF'
16023 # Quote evaled strings.
16024 for var in SHELL \
16025 ECHO \
16026 PATH_SEPARATOR \
16027 SED \
16028 GREP \
16029 EGREP \
16030 FGREP \
16031 LD \
16032 NM \
16033 LN_S \
16034 lt_SP2NL \
16035 lt_NL2SP \
16036 reload_flag \
16037 OBJDUMP \
16038 deplibs_check_method \
16039 file_magic_cmd \
16040 file_magic_glob \
16041 want_nocaseglob \
16042 DLLTOOL \
16043 sharedlib_from_linklib_cmd \
16044 AR \
16045 AR_FLAGS \
16046 archiver_list_spec \
16047 STRIP \
16048 RANLIB \
16049 CC \
16050 CFLAGS \
16051 compiler \
16052 lt_cv_sys_global_symbol_pipe \
16053 lt_cv_sys_global_symbol_to_cdecl \
16054 lt_cv_sys_global_symbol_to_c_name_address \
16055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16056 nm_file_list_spec \
16057 lt_prog_compiler_no_builtin_flag \
16058 lt_prog_compiler_pic \
16059 lt_prog_compiler_wl \
16060 lt_prog_compiler_static \
16061 lt_cv_prog_compiler_c_o \
16062 need_locks \
16063 MANIFEST_TOOL \
16064 DSYMUTIL \
16065 NMEDIT \
16066 LIPO \
16067 OTOOL \
16068 OTOOL64 \
16069 shrext_cmds \
16070 export_dynamic_flag_spec \
16071 whole_archive_flag_spec \
16072 compiler_needs_object \
16073 with_gnu_ld \
16074 allow_undefined_flag \
16075 no_undefined_flag \
16076 hardcode_libdir_flag_spec \
16077 hardcode_libdir_separator \
16078 exclude_expsyms \
16079 include_expsyms \
16080 file_list_spec \
16081 variables_saved_for_relink \
16082 libname_spec \
16083 library_names_spec \
16084 soname_spec \
16085 install_override_mode \
16086 finish_eval \
16087 old_striplib \
16088 striplib \
16089 compiler_lib_search_dirs \
16090 predep_objects \
16091 postdep_objects \
16092 predeps \
16093 postdeps \
16094 compiler_lib_search_path \
16095 LD_CXX \
16096 reload_flag_CXX \
16097 compiler_CXX \
16098 lt_prog_compiler_no_builtin_flag_CXX \
16099 lt_prog_compiler_pic_CXX \
16100 lt_prog_compiler_wl_CXX \
16101 lt_prog_compiler_static_CXX \
16102 lt_cv_prog_compiler_c_o_CXX \
16103 export_dynamic_flag_spec_CXX \
16104 whole_archive_flag_spec_CXX \
16105 compiler_needs_object_CXX \
16106 with_gnu_ld_CXX \
16107 allow_undefined_flag_CXX \
16108 no_undefined_flag_CXX \
16109 hardcode_libdir_flag_spec_CXX \
16110 hardcode_libdir_separator_CXX \
16111 exclude_expsyms_CXX \
16112 include_expsyms_CXX \
16113 file_list_spec_CXX \
16114 compiler_lib_search_dirs_CXX \
16115 predep_objects_CXX \
16116 postdep_objects_CXX \
16117 predeps_CXX \
16118 postdeps_CXX \
16119 compiler_lib_search_path_CXX; do
16120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16121 *[\\\\\\\`\\"\\\$]*)
16122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16127 esac
16128 done
16130 # Double-quote double-evaled strings.
16131 for var in reload_cmds \
16132 old_postinstall_cmds \
16133 old_postuninstall_cmds \
16134 old_archive_cmds \
16135 extract_expsyms_cmds \
16136 old_archive_from_new_cmds \
16137 old_archive_from_expsyms_cmds \
16138 archive_cmds \
16139 archive_expsym_cmds \
16140 module_cmds \
16141 module_expsym_cmds \
16142 export_symbols_cmds \
16143 prelink_cmds \
16144 postlink_cmds \
16145 postinstall_cmds \
16146 postuninstall_cmds \
16147 finish_cmds \
16148 sys_lib_search_path_spec \
16149 sys_lib_dlsearch_path_spec \
16150 reload_cmds_CXX \
16151 old_archive_cmds_CXX \
16152 old_archive_from_new_cmds_CXX \
16153 old_archive_from_expsyms_cmds_CXX \
16154 archive_cmds_CXX \
16155 archive_expsym_cmds_CXX \
16156 module_cmds_CXX \
16157 module_expsym_cmds_CXX \
16158 export_symbols_cmds_CXX \
16159 prelink_cmds_CXX \
16160 postlink_cmds_CXX; do
16161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16162 *[\\\\\\\`\\"\\\$]*)
16163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16168 esac
16169 done
16171 ac_aux_dir='$ac_aux_dir'
16172 xsi_shell='$xsi_shell'
16173 lt_shell_append='$lt_shell_append'
16175 # See if we are running on zsh, and set the options which allow our
16176 # commands through without removal of \ escapes INIT.
16177 if test -n "\${ZSH_VERSION+set}" ; then
16178 setopt NO_GLOB_SUBST
16182 PACKAGE='$PACKAGE'
16183 VERSION='$VERSION'
16184 TIMESTAMP='$TIMESTAMP'
16185 RM='$RM'
16186 ofile='$ofile'
16193 _ACEOF
16195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197 # Handling of arguments.
16198 for ac_config_target in $ac_config_targets
16200 case $ac_config_target in
16201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16202 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16204 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
16205 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
16206 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
16208 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16209 esac
16210 done
16213 # If the user did not use the arguments to specify the items to instantiate,
16214 # then the envvar interface is used. Set only those that are not.
16215 # We use the long form for the default assignment because of an extremely
16216 # bizarre bug on SunOS 4.1.3.
16217 if $ac_need_defaults; then
16218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16222 # Have a temporary directory for convenience. Make it in the build tree
16223 # simply because there is no reason against having it here, and in addition,
16224 # creating and moving files from /tmp can sometimes cause problems.
16225 # Hook for its removal unless debugging.
16226 # Note that there is a small window in which the directory will not be cleaned:
16227 # after its creation but before its name has been assigned to `$tmp'.
16228 $debug ||
16230 tmp= ac_tmp=
16231 trap 'exit_status=$?
16232 : "${ac_tmp:=$tmp}"
16233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16235 trap 'as_fn_exit 1' 1 2 13 15
16237 # Create a (secure) tmp directory for tmp files.
16240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16241 test -d "$tmp"
16242 } ||
16244 tmp=./conf$$-$RANDOM
16245 (umask 077 && mkdir "$tmp")
16246 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16247 ac_tmp=$tmp
16249 # Set up the scripts for CONFIG_FILES section.
16250 # No need to generate them if there are no CONFIG_FILES.
16251 # This happens for instance with `./config.status config.h'.
16252 if test -n "$CONFIG_FILES"; then
16255 ac_cr=`echo X | tr X '\015'`
16256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16257 # But we know of no other shell where ac_cr would be empty at this
16258 # point, so we can use a bashism as a fallback.
16259 if test "x$ac_cr" = x; then
16260 eval ac_cr=\$\'\\r\'
16262 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16264 ac_cs_awk_cr='\\r'
16265 else
16266 ac_cs_awk_cr=$ac_cr
16269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16270 _ACEOF
16274 echo "cat >conf$$subs.awk <<_ACEOF" &&
16275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16276 echo "_ACEOF"
16277 } >conf$$subs.sh ||
16278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16280 ac_delim='%!_!# '
16281 for ac_last_try in false false false false false :; do
16282 . ./conf$$subs.sh ||
16283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16286 if test $ac_delim_n = $ac_delim_num; then
16287 break
16288 elif $ac_last_try; then
16289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16290 else
16291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293 done
16294 rm -f conf$$subs.sh
16296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16298 _ACEOF
16299 sed -n '
16301 s/^/S["/; s/!.*/"]=/
16304 s/^[^!]*!//
16305 :repl
16306 t repl
16307 s/'"$ac_delim"'$//
16308 t delim
16311 s/\(.\{148\}\)..*/\1/
16312 t more1
16313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16316 b repl
16317 :more1
16318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16321 s/.\{148\}//
16322 t nl
16323 :delim
16325 s/\(.\{148\}\)..*/\1/
16326 t more2
16327 s/["\\]/\\&/g; s/^/"/; s/$/"/
16330 :more2
16331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16334 s/.\{148\}//
16335 t delim
16336 ' <conf$$subs.awk | sed '
16337 /^[^""]/{
16339 s/\n//
16341 ' >>$CONFIG_STATUS || ac_write_fail=1
16342 rm -f conf$$subs.awk
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 _ACAWK
16345 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16346 for (key in S) S_is_set[key] = 1
16347 FS = "\a"
16351 line = $ 0
16352 nfields = split(line, field, "@")
16353 substed = 0
16354 len = length(field[1])
16355 for (i = 2; i < nfields; i++) {
16356 key = field[i]
16357 keylen = length(key)
16358 if (S_is_set[key]) {
16359 value = S[key]
16360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16361 len += length(value) + length(field[++i])
16362 substed = 1
16363 } else
16364 len += 1 + keylen
16367 print line
16370 _ACAWK
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16375 else
16377 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16379 _ACEOF
16381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16383 # trailing colons and then remove the whole line if VPATH becomes empty
16384 # (actually we leave an empty line to preserve line numbers).
16385 if test "x$srcdir" = x.; then
16386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16388 s///
16389 s/^/:/
16390 s/[ ]*$/:/
16391 s/:\$(srcdir):/:/g
16392 s/:\${srcdir}:/:/g
16393 s/:@srcdir@:/:/g
16394 s/^:*//
16395 s/:*$//
16397 s/\(=[ ]*\).*/\1/
16399 s/\n//
16400 s/^[^=]*=[ ]*$//
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405 fi # test -n "$CONFIG_FILES"
16408 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16409 shift
16410 for ac_tag
16412 case $ac_tag in
16413 :[FHLC]) ac_mode=$ac_tag; continue;;
16414 esac
16415 case $ac_mode$ac_tag in
16416 :[FHL]*:*);;
16417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16418 :[FH]-) ac_tag=-:-;;
16419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16420 esac
16421 ac_save_IFS=$IFS
16422 IFS=:
16423 set x $ac_tag
16424 IFS=$ac_save_IFS
16425 shift
16426 ac_file=$1
16427 shift
16429 case $ac_mode in
16430 :L) ac_source=$1;;
16431 :[FH])
16432 ac_file_inputs=
16433 for ac_f
16435 case $ac_f in
16436 -) ac_f="$ac_tmp/stdin";;
16437 *) # Look for the file first in the build tree, then in the source tree
16438 # (if the path is not absolute). The absolute path cannot be DOS-style,
16439 # because $ac_f cannot contain `:'.
16440 test -f "$ac_f" ||
16441 case $ac_f in
16442 [\\/$]*) false;;
16443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16444 esac ||
16445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16446 esac
16447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16448 as_fn_append ac_file_inputs " '$ac_f'"
16449 done
16451 # Let's still pretend it is `configure' which instantiates (i.e., don't
16452 # use $as_me), people would be surprised to read:
16453 # /* config.h. Generated by config.status. */
16454 configure_input='Generated from '`
16455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16456 `' by configure.'
16457 if test x"$ac_file" != x-; then
16458 configure_input="$ac_file. $configure_input"
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16460 $as_echo "$as_me: creating $ac_file" >&6;}
16462 # Neutralize special characters interpreted by sed in replacement strings.
16463 case $configure_input in #(
16464 *\&* | *\|* | *\\* )
16465 ac_sed_conf_input=`$as_echo "$configure_input" |
16466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16467 *) ac_sed_conf_input=$configure_input;;
16468 esac
16470 case $ac_tag in
16471 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16473 esac
16475 esac
16477 ac_dir=`$as_dirname -- "$ac_file" ||
16478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16479 X"$ac_file" : 'X\(//\)[^/]' \| \
16480 X"$ac_file" : 'X\(//\)$' \| \
16481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16482 $as_echo X"$ac_file" |
16483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16484 s//\1/
16487 /^X\(\/\/\)[^/].*/{
16488 s//\1/
16491 /^X\(\/\/\)$/{
16492 s//\1/
16495 /^X\(\/\).*/{
16496 s//\1/
16499 s/.*/./; q'`
16500 as_dir="$ac_dir"; as_fn_mkdir_p
16501 ac_builddir=.
16503 case "$ac_dir" in
16504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16507 # A ".." for each directory in $ac_dir_suffix.
16508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16509 case $ac_top_builddir_sub in
16510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16512 esac ;;
16513 esac
16514 ac_abs_top_builddir=$ac_pwd
16515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16516 # for backward compatibility:
16517 ac_top_builddir=$ac_top_build_prefix
16519 case $srcdir in
16520 .) # We are building in place.
16521 ac_srcdir=.
16522 ac_top_srcdir=$ac_top_builddir_sub
16523 ac_abs_top_srcdir=$ac_pwd ;;
16524 [\\/]* | ?:[\\/]* ) # Absolute name.
16525 ac_srcdir=$srcdir$ac_dir_suffix;
16526 ac_top_srcdir=$srcdir
16527 ac_abs_top_srcdir=$srcdir ;;
16528 *) # Relative name.
16529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16530 ac_top_srcdir=$ac_top_build_prefix$srcdir
16531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16532 esac
16533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16536 case $ac_mode in
16539 # CONFIG_FILE
16542 case $INSTALL in
16543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16545 esac
16546 ac_MKDIR_P=$MKDIR_P
16547 case $MKDIR_P in
16548 [\\/$]* | ?:[\\/]* ) ;;
16549 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16550 esac
16551 _ACEOF
16553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16554 # If the template does not know about datarootdir, expand it.
16555 # FIXME: This hack should be removed a few years after 2.60.
16556 ac_datarootdir_hack=; ac_datarootdir_seen=
16557 ac_sed_dataroot='
16558 /datarootdir/ {
16562 /@datadir@/p
16563 /@docdir@/p
16564 /@infodir@/p
16565 /@localedir@/p
16566 /@mandir@/p'
16567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16568 *datarootdir*) ac_datarootdir_seen=yes;;
16569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16571 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16572 _ACEOF
16573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16574 ac_datarootdir_hack='
16575 s&@datadir@&$datadir&g
16576 s&@docdir@&$docdir&g
16577 s&@infodir@&$infodir&g
16578 s&@localedir@&$localedir&g
16579 s&@mandir@&$mandir&g
16580 s&\\\${datarootdir}&$datarootdir&g' ;;
16581 esac
16582 _ACEOF
16584 # Neutralize VPATH when `$srcdir' = `.'.
16585 # Shell code in configure.ac might set extrasub.
16586 # FIXME: do we really want to maintain this feature?
16587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16588 ac_sed_extra="$ac_vpsub
16589 $extrasub
16590 _ACEOF
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16594 s|@configure_input@|$ac_sed_conf_input|;t t
16595 s&@top_builddir@&$ac_top_builddir_sub&;t t
16596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16597 s&@srcdir@&$ac_srcdir&;t t
16598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16599 s&@top_srcdir@&$ac_top_srcdir&;t t
16600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16601 s&@builddir@&$ac_builddir&;t t
16602 s&@abs_builddir@&$ac_abs_builddir&;t t
16603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16604 s&@INSTALL@&$ac_INSTALL&;t t
16605 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16606 $ac_datarootdir_hack
16608 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16609 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16612 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16614 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16616 which seems to be undefined. Please make sure it is defined" >&5
16617 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16618 which seems to be undefined. Please make sure it is defined" >&2;}
16620 rm -f "$ac_tmp/stdin"
16621 case $ac_file in
16622 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16623 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16624 esac \
16625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16629 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16630 $as_echo "$as_me: executing $ac_file commands" >&6;}
16632 esac
16635 case $ac_file$ac_mode in
16636 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16637 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16638 # are listed without --file. Let's play safe and only enable the eval
16639 # if we detect the quoting.
16640 case $CONFIG_FILES in
16641 *\'*) eval set x "$CONFIG_FILES" ;;
16642 *) set x $CONFIG_FILES ;;
16643 esac
16644 shift
16645 for mf
16647 # Strip MF so we end up with the name of the file.
16648 mf=`echo "$mf" | sed -e 's/:.*$//'`
16649 # Check whether this is an Automake generated Makefile or not.
16650 # We used to match only the files named `Makefile.in', but
16651 # some people rename them; so instead we look at the file content.
16652 # Grep'ing the first line is not enough: some people post-process
16653 # each Makefile.in and add a new line on top of each file to say so.
16654 # Grep'ing the whole file is not good either: AIX grep has a line
16655 # limit of 2048, but all sed's we know have understand at least 4000.
16656 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16657 dirpart=`$as_dirname -- "$mf" ||
16658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16659 X"$mf" : 'X\(//\)[^/]' \| \
16660 X"$mf" : 'X\(//\)$' \| \
16661 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16662 $as_echo X"$mf" |
16663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16664 s//\1/
16667 /^X\(\/\/\)[^/].*/{
16668 s//\1/
16671 /^X\(\/\/\)$/{
16672 s//\1/
16675 /^X\(\/\).*/{
16676 s//\1/
16679 s/.*/./; q'`
16680 else
16681 continue
16683 # Extract the definition of DEPDIR, am__include, and am__quote
16684 # from the Makefile without running `make'.
16685 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16686 test -z "$DEPDIR" && continue
16687 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16688 test -z "am__include" && continue
16689 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16690 # When using ansi2knr, U may be empty or an underscore; expand it
16691 U=`sed -n 's/^U = //p' < "$mf"`
16692 # Find all dependency output files, they are included files with
16693 # $(DEPDIR) in their names. We invoke sed twice because it is the
16694 # simplest approach to changing $(DEPDIR) to its actual value in the
16695 # expansion.
16696 for file in `sed -n "
16697 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16699 # Make sure the directory exists.
16700 test -f "$dirpart/$file" && continue
16701 fdir=`$as_dirname -- "$file" ||
16702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16703 X"$file" : 'X\(//\)[^/]' \| \
16704 X"$file" : 'X\(//\)$' \| \
16705 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16706 $as_echo X"$file" |
16707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16708 s//\1/
16711 /^X\(\/\/\)[^/].*/{
16712 s//\1/
16715 /^X\(\/\/\)$/{
16716 s//\1/
16719 /^X\(\/\).*/{
16720 s//\1/
16723 s/.*/./; q'`
16724 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16725 # echo "creating $dirpart/$file"
16726 echo '# dummy' > "$dirpart/$file"
16727 done
16728 done
16731 "libtool":C)
16733 # See if we are running on zsh, and set the options which allow our
16734 # commands through without removal of \ escapes.
16735 if test -n "${ZSH_VERSION+set}" ; then
16736 setopt NO_GLOB_SUBST
16739 cfgfile="${ofile}T"
16740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16741 $RM "$cfgfile"
16743 cat <<_LT_EOF >> "$cfgfile"
16744 #! $SHELL
16746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16751 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16752 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16753 # Foundation, Inc.
16754 # Written by Gordon Matzigkeit, 1996
16756 # This file is part of GNU Libtool.
16758 # GNU Libtool is free software; you can redistribute it and/or
16759 # modify it under the terms of the GNU General Public License as
16760 # published by the Free Software Foundation; either version 2 of
16761 # the License, or (at your option) any later version.
16763 # As a special exception to the GNU General Public License,
16764 # if you distribute this file as part of a program or library that
16765 # is built using GNU Libtool, you may include this file under the
16766 # same distribution terms that you use for the rest of that program.
16768 # GNU Libtool is distributed in the hope that it will be useful,
16769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16771 # GNU General Public License for more details.
16773 # You should have received a copy of the GNU General Public License
16774 # along with GNU Libtool; see the file COPYING. If not, a copy
16775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16776 # obtained by writing to the Free Software Foundation, Inc.,
16777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16780 # The names of the tagged configurations supported by this script.
16781 available_tags="CXX "
16783 # ### BEGIN LIBTOOL CONFIG
16785 # Which release of libtool.m4 was used?
16786 macro_version=$macro_version
16787 macro_revision=$macro_revision
16789 # Whether or not to build shared libraries.
16790 build_libtool_libs=$enable_shared
16792 # Whether or not to build static libraries.
16793 build_old_libs=$enable_static
16795 # What type of objects to build.
16796 pic_mode=$pic_mode
16798 # Whether or not to optimize for fast installation.
16799 fast_install=$enable_fast_install
16801 # Shell to use when invoking shell scripts.
16802 SHELL=$lt_SHELL
16804 # An echo program that protects backslashes.
16805 ECHO=$lt_ECHO
16807 # The PATH separator for the build system.
16808 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16810 # The host system.
16811 host_alias=$host_alias
16812 host=$host
16813 host_os=$host_os
16815 # The build system.
16816 build_alias=$build_alias
16817 build=$build
16818 build_os=$build_os
16820 # A sed program that does not truncate output.
16821 SED=$lt_SED
16823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16824 Xsed="\$SED -e 1s/^X//"
16826 # A grep program that handles long lines.
16827 GREP=$lt_GREP
16829 # An ERE matcher.
16830 EGREP=$lt_EGREP
16832 # A literal string matcher.
16833 FGREP=$lt_FGREP
16835 # A BSD- or MS-compatible name lister.
16836 NM=$lt_NM
16838 # Whether we need soft or hard links.
16839 LN_S=$lt_LN_S
16841 # What is the maximum length of a command?
16842 max_cmd_len=$max_cmd_len
16844 # Object file suffix (normally "o").
16845 objext=$ac_objext
16847 # Executable file suffix (normally "").
16848 exeext=$exeext
16850 # whether the shell understands "unset".
16851 lt_unset=$lt_unset
16853 # turn spaces into newlines.
16854 SP2NL=$lt_lt_SP2NL
16856 # turn newlines into spaces.
16857 NL2SP=$lt_lt_NL2SP
16859 # convert \$build file names to \$host format.
16860 to_host_file_cmd=$lt_cv_to_host_file_cmd
16862 # convert \$build files to toolchain format.
16863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16865 # An object symbol dumper.
16866 OBJDUMP=$lt_OBJDUMP
16868 # Method to check whether dependent libraries are shared objects.
16869 deplibs_check_method=$lt_deplibs_check_method
16871 # Command to use when deplibs_check_method = "file_magic".
16872 file_magic_cmd=$lt_file_magic_cmd
16874 # How to find potential files when deplibs_check_method = "file_magic".
16875 file_magic_glob=$lt_file_magic_glob
16877 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16878 want_nocaseglob=$lt_want_nocaseglob
16880 # DLL creation program.
16881 DLLTOOL=$lt_DLLTOOL
16883 # Command to associate shared and link libraries.
16884 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16886 # The archiver.
16887 AR=$lt_AR
16889 # Flags to create an archive.
16890 AR_FLAGS=$lt_AR_FLAGS
16892 # How to feed a file listing to the archiver.
16893 archiver_list_spec=$lt_archiver_list_spec
16895 # A symbol stripping program.
16896 STRIP=$lt_STRIP
16898 # Commands used to install an old-style archive.
16899 RANLIB=$lt_RANLIB
16900 old_postinstall_cmds=$lt_old_postinstall_cmds
16901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16903 # Whether to use a lock for old archive extraction.
16904 lock_old_archive_extraction=$lock_old_archive_extraction
16906 # A C compiler.
16907 LTCC=$lt_CC
16909 # LTCC compiler flags.
16910 LTCFLAGS=$lt_CFLAGS
16912 # Take the output of nm and produce a listing of raw symbols and C names.
16913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16915 # Transform the output of nm in a proper C declaration.
16916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16918 # Transform the output of nm in a C name address pair.
16919 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16921 # Transform the output of nm in a C name address pair when lib prefix is needed.
16922 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16924 # Specify filename containing input files for \$NM.
16925 nm_file_list_spec=$lt_nm_file_list_spec
16927 # The root where to search for dependent libraries,and in which our libraries should be installed.
16928 lt_sysroot=$lt_sysroot
16930 # The name of the directory that contains temporary libtool files.
16931 objdir=$objdir
16933 # Used to examine libraries when file_magic_cmd begins with "file".
16934 MAGIC_CMD=$MAGIC_CMD
16936 # Must we lock files when doing compilation?
16937 need_locks=$lt_need_locks
16939 # Manifest tool.
16940 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16942 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16943 DSYMUTIL=$lt_DSYMUTIL
16945 # Tool to change global to local symbols on Mac OS X.
16946 NMEDIT=$lt_NMEDIT
16948 # Tool to manipulate fat objects and archives on Mac OS X.
16949 LIPO=$lt_LIPO
16951 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16952 OTOOL=$lt_OTOOL
16954 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16955 OTOOL64=$lt_OTOOL64
16957 # Old archive suffix (normally "a").
16958 libext=$libext
16960 # Shared library suffix (normally ".so").
16961 shrext_cmds=$lt_shrext_cmds
16963 # The commands to extract the exported symbol list from a shared archive.
16964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16966 # Variables whose values should be saved in libtool wrapper scripts and
16967 # restored at link time.
16968 variables_saved_for_relink=$lt_variables_saved_for_relink
16970 # Do we need the "lib" prefix for modules?
16971 need_lib_prefix=$need_lib_prefix
16973 # Do we need a version for libraries?
16974 need_version=$need_version
16976 # Library versioning type.
16977 version_type=$version_type
16979 # Shared library runtime path variable.
16980 runpath_var=$runpath_var
16982 # Shared library path variable.
16983 shlibpath_var=$shlibpath_var
16985 # Is shlibpath searched before the hard-coded library search path?
16986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16988 # Format of library name prefix.
16989 libname_spec=$lt_libname_spec
16991 # List of archive names. First name is the real one, the rest are links.
16992 # The last name is the one that the linker finds with -lNAME
16993 library_names_spec=$lt_library_names_spec
16995 # The coded name of the library, if different from the real name.
16996 soname_spec=$lt_soname_spec
16998 # Permission mode override for installation of shared libraries.
16999 install_override_mode=$lt_install_override_mode
17001 # Command to use after installation of a shared archive.
17002 postinstall_cmds=$lt_postinstall_cmds
17004 # Command to use after uninstallation of a shared archive.
17005 postuninstall_cmds=$lt_postuninstall_cmds
17007 # Commands used to finish a libtool library installation in a directory.
17008 finish_cmds=$lt_finish_cmds
17010 # As "finish_cmds", except a single script fragment to be evaled but
17011 # not shown.
17012 finish_eval=$lt_finish_eval
17014 # Whether we should hardcode library paths into libraries.
17015 hardcode_into_libs=$hardcode_into_libs
17017 # Compile-time system search path for libraries.
17018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17020 # Run-time system search path for libraries.
17021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17023 # Whether dlopen is supported.
17024 dlopen_support=$enable_dlopen
17026 # Whether dlopen of programs is supported.
17027 dlopen_self=$enable_dlopen_self
17029 # Whether dlopen of statically linked programs is supported.
17030 dlopen_self_static=$enable_dlopen_self_static
17032 # Commands to strip libraries.
17033 old_striplib=$lt_old_striplib
17034 striplib=$lt_striplib
17037 # The linker used to build libraries.
17038 LD=$lt_LD
17040 # How to create reloadable object files.
17041 reload_flag=$lt_reload_flag
17042 reload_cmds=$lt_reload_cmds
17044 # Commands used to build an old-style archive.
17045 old_archive_cmds=$lt_old_archive_cmds
17047 # A language specific compiler.
17048 CC=$lt_compiler
17050 # Is the compiler the GNU compiler?
17051 with_gcc=$GCC
17053 # Compiler flag to turn off builtin functions.
17054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17056 # Additional compiler flags for building library objects.
17057 pic_flag=$lt_lt_prog_compiler_pic
17059 # How to pass a linker flag through the compiler.
17060 wl=$lt_lt_prog_compiler_wl
17062 # Compiler flag to prevent dynamic linking.
17063 link_static_flag=$lt_lt_prog_compiler_static
17065 # Does compiler simultaneously support -c and -o options?
17066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17068 # Whether or not to add -lc for building shared libraries.
17069 build_libtool_need_lc=$archive_cmds_need_lc
17071 # Whether or not to disallow shared libs when runtime libs are static.
17072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17074 # Compiler flag to allow reflexive dlopens.
17075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17077 # Compiler flag to generate shared objects directly from archives.
17078 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17080 # Whether the compiler copes with passing no objects directly.
17081 compiler_needs_object=$lt_compiler_needs_object
17083 # Create an old-style archive from a shared archive.
17084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17086 # Create a temporary old-style archive to link instead of a shared archive.
17087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17089 # Commands used to build a shared archive.
17090 archive_cmds=$lt_archive_cmds
17091 archive_expsym_cmds=$lt_archive_expsym_cmds
17093 # Commands used to build a loadable module if different from building
17094 # a shared archive.
17095 module_cmds=$lt_module_cmds
17096 module_expsym_cmds=$lt_module_expsym_cmds
17098 # Whether we are building with GNU ld or not.
17099 with_gnu_ld=$lt_with_gnu_ld
17101 # Flag that allows shared libraries with undefined symbols to be built.
17102 allow_undefined_flag=$lt_allow_undefined_flag
17104 # Flag that enforces no undefined symbols.
17105 no_undefined_flag=$lt_no_undefined_flag
17107 # Flag to hardcode \$libdir into a binary during linking.
17108 # This must work even if \$libdir does not exist
17109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17111 # Whether we need a single "-rpath" flag with a separated argument.
17112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17115 # DIR into the resulting binary.
17116 hardcode_direct=$hardcode_direct
17118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17119 # DIR into the resulting binary and the resulting library dependency is
17120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17121 # library is relocated.
17122 hardcode_direct_absolute=$hardcode_direct_absolute
17124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17125 # into the resulting binary.
17126 hardcode_minus_L=$hardcode_minus_L
17128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17129 # into the resulting binary.
17130 hardcode_shlibpath_var=$hardcode_shlibpath_var
17132 # Set to "yes" if building a shared library automatically hardcodes DIR
17133 # into the library and all subsequent libraries and executables linked
17134 # against it.
17135 hardcode_automatic=$hardcode_automatic
17137 # Set to yes if linker adds runtime paths of dependent libraries
17138 # to runtime path list.
17139 inherit_rpath=$inherit_rpath
17141 # Whether libtool must link a program against all its dependency libraries.
17142 link_all_deplibs=$link_all_deplibs
17144 # Set to "yes" if exported symbols are required.
17145 always_export_symbols=$always_export_symbols
17147 # The commands to list exported symbols.
17148 export_symbols_cmds=$lt_export_symbols_cmds
17150 # Symbols that should not be listed in the preloaded symbols.
17151 exclude_expsyms=$lt_exclude_expsyms
17153 # Symbols that must always be exported.
17154 include_expsyms=$lt_include_expsyms
17156 # Commands necessary for linking programs (against libraries) with templates.
17157 prelink_cmds=$lt_prelink_cmds
17159 # Commands necessary for finishing linking programs.
17160 postlink_cmds=$lt_postlink_cmds
17162 # Specify filename containing input files.
17163 file_list_spec=$lt_file_list_spec
17165 # How to hardcode a shared library path into an executable.
17166 hardcode_action=$hardcode_action
17168 # The directories searched by this compiler when creating a shared library.
17169 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17171 # Dependencies to place before and after the objects being linked to
17172 # create a shared library.
17173 predep_objects=$lt_predep_objects
17174 postdep_objects=$lt_postdep_objects
17175 predeps=$lt_predeps
17176 postdeps=$lt_postdeps
17178 # The library search path used internally by the compiler when linking
17179 # a shared library.
17180 compiler_lib_search_path=$lt_compiler_lib_search_path
17182 # ### END LIBTOOL CONFIG
17184 _LT_EOF
17186 case $host_os in
17187 aix3*)
17188 cat <<\_LT_EOF >> "$cfgfile"
17189 # AIX sometimes has problems with the GCC collect2 program. For some
17190 # reason, if we set the COLLECT_NAMES environment variable, the problems
17191 # vanish in a puff of smoke.
17192 if test "X${COLLECT_NAMES+set}" != Xset; then
17193 COLLECT_NAMES=
17194 export COLLECT_NAMES
17196 _LT_EOF
17198 esac
17201 ltmain="$ac_aux_dir/ltmain.sh"
17204 # We use sed instead of cat because bash on DJGPP gets confused if
17205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17206 # text mode, it properly converts lines to CR/LF. This bash problem
17207 # is reportedly fixed, but why not run on old versions too?
17208 sed '$q' "$ltmain" >> "$cfgfile" \
17209 || (rm -f "$cfgfile"; exit 1)
17211 if test x"$xsi_shell" = xyes; then
17212 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17213 func_dirname ()\
17215 \ case ${1} in\
17216 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17217 \ * ) func_dirname_result="${3}" ;;\
17218 \ esac\
17219 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17220 && mv -f "$cfgfile.tmp" "$cfgfile" \
17221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17222 test 0 -eq $? || _lt_function_replace_fail=:
17225 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17226 func_basename ()\
17228 \ func_basename_result="${1##*/}"\
17229 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17230 && mv -f "$cfgfile.tmp" "$cfgfile" \
17231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232 test 0 -eq $? || _lt_function_replace_fail=:
17235 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17236 func_dirname_and_basename ()\
17238 \ case ${1} in\
17239 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17240 \ * ) func_dirname_result="${3}" ;;\
17241 \ esac\
17242 \ func_basename_result="${1##*/}"\
17243 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17244 && mv -f "$cfgfile.tmp" "$cfgfile" \
17245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17246 test 0 -eq $? || _lt_function_replace_fail=:
17249 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17250 func_stripname ()\
17252 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17253 \ # positional parameters, so assign one to ordinary parameter first.\
17254 \ func_stripname_result=${3}\
17255 \ func_stripname_result=${func_stripname_result#"${1}"}\
17256 \ func_stripname_result=${func_stripname_result%"${2}"}\
17257 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17258 && mv -f "$cfgfile.tmp" "$cfgfile" \
17259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17260 test 0 -eq $? || _lt_function_replace_fail=:
17263 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17264 func_split_long_opt ()\
17266 \ func_split_long_opt_name=${1%%=*}\
17267 \ func_split_long_opt_arg=${1#*=}\
17268 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17269 && mv -f "$cfgfile.tmp" "$cfgfile" \
17270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17271 test 0 -eq $? || _lt_function_replace_fail=:
17274 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17275 func_split_short_opt ()\
17277 \ func_split_short_opt_arg=${1#??}\
17278 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17279 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17280 && mv -f "$cfgfile.tmp" "$cfgfile" \
17281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17282 test 0 -eq $? || _lt_function_replace_fail=:
17285 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17286 func_lo2o ()\
17288 \ case ${1} in\
17289 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17290 \ *) func_lo2o_result=${1} ;;\
17291 \ esac\
17292 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17293 && mv -f "$cfgfile.tmp" "$cfgfile" \
17294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17295 test 0 -eq $? || _lt_function_replace_fail=:
17298 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17299 func_xform ()\
17301 func_xform_result=${1%.*}.lo\
17302 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17303 && mv -f "$cfgfile.tmp" "$cfgfile" \
17304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17308 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17309 func_arith ()\
17311 func_arith_result=$(( $* ))\
17312 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17313 && mv -f "$cfgfile.tmp" "$cfgfile" \
17314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17315 test 0 -eq $? || _lt_function_replace_fail=:
17318 sed -e '/^func_len ()$/,/^} # func_len /c\
17319 func_len ()\
17321 func_len_result=${#1}\
17322 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17323 && mv -f "$cfgfile.tmp" "$cfgfile" \
17324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17325 test 0 -eq $? || _lt_function_replace_fail=:
17329 if test x"$lt_shell_append" = xyes; then
17330 sed -e '/^func_append ()$/,/^} # func_append /c\
17331 func_append ()\
17333 eval "${1}+=\\${2}"\
17334 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17335 && mv -f "$cfgfile.tmp" "$cfgfile" \
17336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17337 test 0 -eq $? || _lt_function_replace_fail=:
17340 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17341 func_append_quoted ()\
17343 \ func_quote_for_eval "${2}"\
17344 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17345 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17346 && mv -f "$cfgfile.tmp" "$cfgfile" \
17347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17348 test 0 -eq $? || _lt_function_replace_fail=:
17351 # Save a `func_append' function call where possible by direct use of '+='
17352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17353 && mv -f "$cfgfile.tmp" "$cfgfile" \
17354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17355 test 0 -eq $? || _lt_function_replace_fail=:
17356 else
17357 # Save a `func_append' function call even when '+=' is not available
17358 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17359 && mv -f "$cfgfile.tmp" "$cfgfile" \
17360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17361 test 0 -eq $? || _lt_function_replace_fail=:
17364 if test x"$_lt_function_replace_fail" = x":"; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17366 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17370 mv -f "$cfgfile" "$ofile" ||
17371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17372 chmod +x "$ofile"
17375 cat <<_LT_EOF >> "$ofile"
17377 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17379 # The linker used to build libraries.
17380 LD=$lt_LD_CXX
17382 # How to create reloadable object files.
17383 reload_flag=$lt_reload_flag_CXX
17384 reload_cmds=$lt_reload_cmds_CXX
17386 # Commands used to build an old-style archive.
17387 old_archive_cmds=$lt_old_archive_cmds_CXX
17389 # A language specific compiler.
17390 CC=$lt_compiler_CXX
17392 # Is the compiler the GNU compiler?
17393 with_gcc=$GCC_CXX
17395 # Compiler flag to turn off builtin functions.
17396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17398 # Additional compiler flags for building library objects.
17399 pic_flag=$lt_lt_prog_compiler_pic_CXX
17401 # How to pass a linker flag through the compiler.
17402 wl=$lt_lt_prog_compiler_wl_CXX
17404 # Compiler flag to prevent dynamic linking.
17405 link_static_flag=$lt_lt_prog_compiler_static_CXX
17407 # Does compiler simultaneously support -c and -o options?
17408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17410 # Whether or not to add -lc for building shared libraries.
17411 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17413 # Whether or not to disallow shared libs when runtime libs are static.
17414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17416 # Compiler flag to allow reflexive dlopens.
17417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17419 # Compiler flag to generate shared objects directly from archives.
17420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17422 # Whether the compiler copes with passing no objects directly.
17423 compiler_needs_object=$lt_compiler_needs_object_CXX
17425 # Create an old-style archive from a shared archive.
17426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17428 # Create a temporary old-style archive to link instead of a shared archive.
17429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17431 # Commands used to build a shared archive.
17432 archive_cmds=$lt_archive_cmds_CXX
17433 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17435 # Commands used to build a loadable module if different from building
17436 # a shared archive.
17437 module_cmds=$lt_module_cmds_CXX
17438 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17440 # Whether we are building with GNU ld or not.
17441 with_gnu_ld=$lt_with_gnu_ld_CXX
17443 # Flag that allows shared libraries with undefined symbols to be built.
17444 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17446 # Flag that enforces no undefined symbols.
17447 no_undefined_flag=$lt_no_undefined_flag_CXX
17449 # Flag to hardcode \$libdir into a binary during linking.
17450 # This must work even if \$libdir does not exist
17451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17453 # Whether we need a single "-rpath" flag with a separated argument.
17454 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17457 # DIR into the resulting binary.
17458 hardcode_direct=$hardcode_direct_CXX
17460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17461 # DIR into the resulting binary and the resulting library dependency is
17462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17463 # library is relocated.
17464 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17467 # into the resulting binary.
17468 hardcode_minus_L=$hardcode_minus_L_CXX
17470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17471 # into the resulting binary.
17472 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17474 # Set to "yes" if building a shared library automatically hardcodes DIR
17475 # into the library and all subsequent libraries and executables linked
17476 # against it.
17477 hardcode_automatic=$hardcode_automatic_CXX
17479 # Set to yes if linker adds runtime paths of dependent libraries
17480 # to runtime path list.
17481 inherit_rpath=$inherit_rpath_CXX
17483 # Whether libtool must link a program against all its dependency libraries.
17484 link_all_deplibs=$link_all_deplibs_CXX
17486 # Set to "yes" if exported symbols are required.
17487 always_export_symbols=$always_export_symbols_CXX
17489 # The commands to list exported symbols.
17490 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17492 # Symbols that should not be listed in the preloaded symbols.
17493 exclude_expsyms=$lt_exclude_expsyms_CXX
17495 # Symbols that must always be exported.
17496 include_expsyms=$lt_include_expsyms_CXX
17498 # Commands necessary for linking programs (against libraries) with templates.
17499 prelink_cmds=$lt_prelink_cmds_CXX
17501 # Commands necessary for finishing linking programs.
17502 postlink_cmds=$lt_postlink_cmds_CXX
17504 # Specify filename containing input files.
17505 file_list_spec=$lt_file_list_spec_CXX
17507 # How to hardcode a shared library path into an executable.
17508 hardcode_action=$hardcode_action_CXX
17510 # The directories searched by this compiler when creating a shared library.
17511 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17513 # Dependencies to place before and after the objects being linked to
17514 # create a shared library.
17515 predep_objects=$lt_predep_objects_CXX
17516 postdep_objects=$lt_postdep_objects_CXX
17517 predeps=$lt_predeps_CXX
17518 postdeps=$lt_postdeps_CXX
17520 # The library search path used internally by the compiler when linking
17521 # a shared library.
17522 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17524 # ### END LIBTOOL TAG CONFIG: CXX
17525 _LT_EOF
17528 "interception/Makefile":F) cat > vpsed$$ << \_EOF
17529 s!`test -f '$<' || echo '$(srcdir)/'`!!
17530 _EOF
17531 sed -f vpsed$$ $ac_file > tmp$$
17532 mv tmp$$ $ac_file
17533 rm vpsed$$
17534 echo 'MULTISUBDIR =' >> $ac_file
17536 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
17537 s!`test -f '$<' || echo '$(srcdir)/'`!!
17538 _EOF
17539 sed -f vpsed$$ $ac_file > tmp$$
17540 mv tmp$$ $ac_file
17541 rm vpsed$$
17542 echo 'MULTISUBDIR =' >> $ac_file
17544 "asan/Makefile":F) cat > vpsed$$ << \_EOF
17545 s!`test -f '$<' || echo '$(srcdir)/'`!!
17546 _EOF
17547 sed -f vpsed$$ $ac_file > tmp$$
17548 mv tmp$$ $ac_file
17549 rm vpsed$$
17550 echo 'MULTISUBDIR =' >> $ac_file
17553 esac
17554 done # for ac_tag
17557 as_fn_exit 0
17558 _ACEOF
17559 ac_clean_files=$ac_clean_files_save
17561 test $ac_write_fail = 0 ||
17562 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17565 # configure is writing to config.log, and then calls config.status.
17566 # config.status does its own redirection, appending to config.log.
17567 # Unfortunately, on DOS this fails, as config.log is still kept open
17568 # by configure, so config.status won't be able to write to it; its
17569 # output is simply discarded. So we exec the FD to /dev/null,
17570 # effectively closing config.log, so it can be properly (re)opened and
17571 # appended to by config.status. When coming back to configure, we
17572 # need to make the FD available again.
17573 if test "$no_create" != yes; then
17574 ac_cs_success=:
17575 ac_config_status_args=
17576 test "$silent" = yes &&
17577 ac_config_status_args="$ac_config_status_args --quiet"
17578 exec 5>/dev/null
17579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17580 exec 5>>config.log
17581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17582 # would make configure fail if this is the last instruction.
17583 $ac_cs_success || as_fn_exit 1
17585 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17587 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}