Concretize gimple_call_set_fntype
[official-gcc.git] / libsanitizer / configure
blob5e4840ffea425f4e95399710e6f870c58d91da44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBBACKTRACE_SUPPORTED_FALSE
608 LIBBACKTRACE_SUPPORTED_TRUE
609 BACKTRACE_SUPPORTS_THREADS
610 BACKTRACE_USES_MALLOC
611 ALLOC_FILE
612 VIEW_FILE
613 BACKTRACE_SUPPORTED
614 FORMAT_FILE
615 SANITIZER_SUPPORTED_FALSE
616 SANITIZER_SUPPORTED_TRUE
617 USING_MAC_INTERPOSE_FALSE
618 USING_MAC_INTERPOSE_TRUE
619 link_liblsan
620 link_libubsan
621 link_libtsan
622 link_libasan
623 LSAN_SUPPORTED_FALSE
624 LSAN_SUPPORTED_TRUE
625 TSAN_SUPPORTED_FALSE
626 TSAN_SUPPORTED_TRUE
627 enable_static
628 enable_shared
629 CXXCPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
636 OBJDUMP
637 LN_S
639 ac_ct_DUMPBIN
640 DUMPBIN
642 FGREP
644 LIBTOOL
645 RANLIB
646 am__fastdepCCAS_FALSE
647 am__fastdepCCAS_TRUE
648 CCASDEPMODE
649 CCASFLAGS
650 CCAS
651 am__fastdepCXX_FALSE
652 am__fastdepCXX_TRUE
653 CXXDEPMODE
654 ac_ct_CXX
655 CXXFLAGS
657 toolexeclibdir
658 toolexecdir
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 multi_basedir
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 LIBSTDCXX_RAW_CXX_LDFLAGS
696 LIBSTDCXX_RAW_CXX_CXXFLAGS
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 EGREP
711 GREP
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_version_specific_runtime_libs
762 enable_dependency_tracking
763 enable_multilib
764 enable_maintainer_mode
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
782 CXXFLAGS
784 CCAS
785 CCASFLAGS
786 CXXCPP'
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
837 ac_prev=
838 ac_dashdash=
839 for ac_option
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
857 ac_dashdash=yes ;;
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
876 --config-cache | -C)
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 esac
1194 done
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1280 /^X\(\/\/\)$/{
1281 s//\1/
1284 /^X\(\/\).*/{
1285 s//\1/
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1293 else
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1383 cat <<\_ACEOF
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of package-unused version-unused:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --enable-multilib build many library versions (default)
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CCAS assembler compiler command (defaults to CC)
1438 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1439 CXXCPP C++ preprocessor
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to <libsanitizer>.
1445 _ACEOF
1446 ac_status=$?
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 package-unused configure version-unused
1508 generated by GNU Autoconf 2.64
1510 Copyright (C) 2009 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 return $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } >/dev/null && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 return $ac_retval
1594 } # ac_fn_c_try_cpp
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1600 # accordingly.
1601 ac_fn_c_check_header_mongrel ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608 $as_echo_n "(cached) " >&6
1610 eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 else
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1624 else
1625 ac_header_compiler=no
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1640 else
1641 ac_header_preproc=no
1643 rm -f conftest.err conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1649 yes:no: )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 no:yes:* )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ( cat <<\_ASBOX
1667 ## --------------------------- ##
1668 ## Report this to libsanitizer ##
1669 ## --------------------------- ##
1670 _ASBOX
1671 ) | sed "s/^/$as_me: WARNING: /" >&2
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1798 } # ac_fn_cxx_try_compile
1800 # ac_fn_c_try_link LINENO
1801 # -----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_link ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_retval=1
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1844 } # ac_fn_c_try_link
1846 # ac_fn_c_check_func LINENO FUNC VAR
1847 # ----------------------------------
1848 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1849 ac_fn_c_check_func ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1856 else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861 #define $2 innocuous_$2
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below.
1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866 <limits.h> exists even on freestanding compilers. */
1868 #ifdef __STDC__
1869 # include <limits.h>
1870 #else
1871 # include <assert.h>
1872 #endif
1874 #undef $2
1876 /* Override any GCC internal prototype to avoid an error.
1877 Use char because int might match the return type of a GCC
1878 builtin and then its argument prototype would still apply. */
1879 #ifdef __cplusplus
1880 extern "C"
1881 #endif
1882 char $2 ();
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined __stub_$2 || defined __stub___$2
1887 choke me
1888 #endif
1891 main ()
1893 return $2 ();
1895 return 0;
1897 _ACEOF
1898 if ac_fn_c_try_link "$LINENO"; then :
1899 eval "$3=yes"
1900 else
1901 eval "$3=no"
1903 rm -f core conftest.err conftest.$ac_objext \
1904 conftest$ac_exeext conftest.$ac_ext
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 } # ac_fn_c_check_func
1913 # ac_fn_cxx_try_cpp LINENO
1914 # ------------------------
1915 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_cxx_try_cpp ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_cpp conftest.$ac_ext"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } >/dev/null && {
1935 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 return $ac_retval
1948 } # ac_fn_cxx_try_cpp
1950 # ac_fn_cxx_try_link LINENO
1951 # -------------------------
1952 # Try to link conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_link ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext conftest$ac_exeext
1957 if { { ac_try="$ac_link"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_cxx_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest$ac_exeext && {
1976 test "$cross_compiling" = yes ||
1977 $as_test_x conftest$ac_exeext
1978 }; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1984 ac_retval=1
1986 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1987 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1988 # interfere with the next link command; also delete a directory that is
1989 # left behind by Apple's compiler. We do this before executing the actions.
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1994 } # ac_fn_cxx_try_link
1996 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1997 # --------------------------------------------
1998 # Tries to find the compile-time value of EXPR in a program that includes
1999 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2000 # computed
2001 ac_fn_c_compute_int ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if test "$cross_compiling" = yes; then
2005 # Depending upon the size, compute the lo and hi bounds.
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static int test_array [1 - 2 * !(($2) >= 0)];
2013 test_array [0] = 0
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_lo=0 ac_mid=0
2021 while :; do
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid; break
2037 else
2038 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039 if test $ac_lo -le $ac_mid; then
2040 ac_lo= ac_hi=
2041 break
2043 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 static int test_array [1 - 2 * !(($2) < 0)];
2055 test_array [0] = 0
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=-1 ac_mid=-1
2063 while :; do
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=$ac_mid; break
2079 else
2080 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2081 if test $ac_mid -le $ac_hi; then
2082 ac_lo= ac_hi=
2083 break
2085 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 done
2089 else
2090 ac_lo= ac_hi=
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 # Binary search between lo and hi bounds.
2096 while test "x$ac_lo" != "x$ac_hi"; do
2097 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid
2113 else
2114 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118 case $ac_lo in #((
2119 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120 '') ac_retval=1 ;;
2121 esac
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2126 static long int longval () { return $2; }
2127 static unsigned long int ulongval () { return $2; }
2128 #include <stdio.h>
2129 #include <stdlib.h>
2131 main ()
2134 FILE *f = fopen ("conftest.val", "w");
2135 if (! f)
2136 return 1;
2137 if (($2) < 0)
2139 long int i = longval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%ld", i);
2144 else
2146 unsigned long int i = ulongval ();
2147 if (i != ($2))
2148 return 1;
2149 fprintf (f, "%lu", i);
2151 /* Do not output a trailing newline, as this causes \r\n confusion
2152 on some platforms. */
2153 return ferror (f) || fclose (f) != 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_run "$LINENO"; then :
2160 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2161 else
2162 ac_retval=1
2164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2165 conftest.$ac_objext conftest.beam conftest.$ac_ext
2166 rm -f conftest.val
2169 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 return $ac_retval
2172 } # ac_fn_c_compute_int
2174 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2175 # -------------------------------------------
2176 # Tests whether TYPE exists after having included INCLUDES, setting cache
2177 # variable VAR accordingly.
2178 ac_fn_c_check_type ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 eval "$3=no"
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 main ()
2193 if (sizeof ($2))
2194 return 0;
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2204 main ()
2206 if (sizeof (($2)))
2207 return 0;
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2214 else
2215 eval "$3=yes"
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 $as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226 } # ac_fn_c_check_type
2228 # ac_fn_c_check_decl LINENO SYMBOL VAR
2229 # ------------------------------------
2230 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2231 ac_fn_c_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 #ifndef $as_decl_name
2248 #ifdef __cplusplus
2249 (void) $as_decl_use;
2250 #else
2251 (void) $as_decl_name;
2252 #endif
2253 #endif
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 eval "$3=yes"
2261 else
2262 eval "$3=no"
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_check_decl
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by package-unused $as_me version-unused, which was
2277 generated by GNU Autoconf 2.64. Invocation command line was
2279 $ $0 $@
2281 _ACEOF
2282 exec 5>>config.log
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2306 _ASUNAME
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2314 done
2315 IFS=$as_save_IFS
2317 } >&5
2319 cat >&5 <<_ACEOF
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2326 _ACEOF
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2340 for ac_arg
2342 case $ac_arg in
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2346 continue ;;
2347 *\'*)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 esac
2350 case $ac_pass in
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2356 else
2357 case $ac_arg in
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364 esac
2366 -* ) ac_must_keep_next=true ;;
2367 esac
2369 as_fn_append ac_configure_args " '$ac_arg'"
2371 esac
2372 done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2385 echo
2387 cat <<\_ASBOX
2388 ## ---------------- ##
2389 ## Cache variables. ##
2390 ## ---------------- ##
2391 _ASBOX
2392 echo
2393 # The following way of writing the cache mishandles newlines in values,
2395 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2396 eval ac_val=\$$ac_var
2397 case $ac_val in #(
2398 *${as_nl}*)
2399 case $ac_var in #(
2400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2402 esac
2403 case $ac_var in #(
2404 _ | IFS | as_nl) ;; #(
2405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2406 *) { eval $ac_var=; unset $ac_var;} ;;
2407 esac ;;
2408 esac
2409 done
2410 (set) 2>&1 |
2411 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2412 *${as_nl}ac_space=\ *)
2413 sed -n \
2414 "s/'\''/'\''\\\\'\'''\''/g;
2415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2416 ;; #(
2418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420 esac |
2421 sort
2423 echo
2425 cat <<\_ASBOX
2426 ## ----------------- ##
2427 ## Output variables. ##
2428 ## ----------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_vars
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2441 if test -n "$ac_subst_files"; then
2442 cat <<\_ASBOX
2443 ## ------------------- ##
2444 ## File substitutions. ##
2445 ## ------------------- ##
2446 _ASBOX
2447 echo
2448 for ac_var in $ac_subst_files
2450 eval ac_val=\$$ac_var
2451 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac
2454 $as_echo "$ac_var='\''$ac_val'\''"
2455 done | sort
2456 echo
2459 if test -s confdefs.h; then
2460 cat <<\_ASBOX
2461 ## ----------- ##
2462 ## confdefs.h. ##
2463 ## ----------- ##
2464 _ASBOX
2465 echo
2466 cat confdefs.h
2467 echo
2469 test "$ac_signal" != 0 &&
2470 $as_echo "$as_me: caught signal $ac_signal"
2471 $as_echo "$as_me: exit $exit_status"
2472 } >&5
2473 rm -f core *.core core.conftest.* &&
2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475 exit $exit_status
2477 for ac_signal in 1 2 13 15; do
2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479 done
2480 ac_signal=0
2482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2483 rm -f -r conftest* confdefs.h
2485 $as_echo "/* confdefs.h */" > confdefs.h
2487 # Predefined preprocessor variables.
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_NAME "$PACKAGE_NAME"
2491 _ACEOF
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_STRING "$PACKAGE_STRING"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_URL "$PACKAGE_URL"
2511 _ACEOF
2514 # Let the site file select an alternate cache file if it wants to.
2515 # Prefer an explicitly selected file to automatically selected ones.
2516 ac_site_file1=NONE
2517 ac_site_file2=NONE
2518 if test -n "$CONFIG_SITE"; then
2519 ac_site_file1=$CONFIG_SITE
2520 elif test "x$prefix" != xNONE; then
2521 ac_site_file1=$prefix/share/config.site
2522 ac_site_file2=$prefix/etc/config.site
2523 else
2524 ac_site_file1=$ac_default_prefix/share/config.site
2525 ac_site_file2=$ac_default_prefix/etc/config.site
2527 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529 test "x$ac_site_file" = xNONE && continue
2530 if test -r "$ac_site_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2532 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2533 sed 's/^/| /' "$ac_site_file" >&5
2534 . "$ac_site_file"
2536 done
2538 if test -r "$cache_file"; then
2539 # Some versions of bash will fail to source /dev/null (special
2540 # files actually), so we avoid doing that.
2541 if test -f "$cache_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2543 $as_echo "$as_me: loading cache $cache_file" >&6;}
2544 case $cache_file in
2545 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2546 *) . "./$cache_file";;
2547 esac
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2551 $as_echo "$as_me: creating cache $cache_file" >&6;}
2552 >$cache_file
2555 # Check that the precious variables saved in the cache have kept the same
2556 # value.
2557 ac_cache_corrupted=false
2558 for ac_var in $ac_precious_vars; do
2559 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2560 eval ac_new_set=\$ac_env_${ac_var}_set
2561 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2562 eval ac_new_val=\$ac_env_${ac_var}_value
2563 case $ac_old_set,$ac_new_set in
2564 set,)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2566 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,set)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,);;
2574 if test "x$ac_old_val" != "x$ac_new_val"; then
2575 # differences in whitespace do not lead to failure.
2576 ac_old_val_w=`echo x $ac_old_val`
2577 ac_new_val_w=`echo x $ac_new_val`
2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2580 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2581 ac_cache_corrupted=:
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2584 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2585 eval $ac_var=\$ac_old_val
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2588 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2590 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 fi;;
2592 esac
2593 # Pass precious variables to config.status.
2594 if test "$ac_new_set" = set; then
2595 case $ac_new_val in
2596 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2597 *) ac_arg=$ac_var=$ac_new_val ;;
2598 esac
2599 case " $ac_configure_args " in
2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2602 esac
2604 done
2605 if $ac_cache_corrupted; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2609 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2610 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 ## -------------------- ##
2613 ## Main body of script. ##
2614 ## -------------------- ##
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2629 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2630 # Check whether --enable-version-specific-runtime-libs was given.
2631 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2632 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2633 yes) version_specific_libs=yes ;;
2634 no) version_specific_libs=no ;;
2635 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2636 esac
2637 else
2638 version_specific_libs=no
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2642 $as_echo "$version_specific_libs" >&6; }
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2673 IFS=$as_save_IFS
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2688 if test -z "$ac_cv_prog_CC"; then
2689 ac_ct_CC=$CC
2690 # Extract the first word of "gcc", so it can be a program name with args.
2691 set dummy gcc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$ac_ct_CC"; then
2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_ac_ct_CC="gcc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2711 done
2712 done
2713 IFS=$as_save_IFS
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2720 $as_echo "$ac_ct_CC" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2726 if test "x$ac_ct_CC" = x; then
2727 CC=""
2728 else
2729 case $cross_compiling:$ac_tool_warned in
2730 yes:)
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735 CC=$ac_ct_CC
2737 else
2738 CC="$ac_cv_prog_CC"
2741 if test -z "$CC"; then
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}cc; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}cc"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2764 done
2765 done
2766 IFS=$as_save_IFS
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2782 if test -z "$CC"; then
2783 # Extract the first word of "cc", so it can be a program name with args.
2784 set dummy cc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 ac_prog_rejected=no
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2802 ac_prog_rejected=yes
2803 continue
2805 ac_cv_prog_CC="cc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2813 if test $ac_prog_rejected = yes; then
2814 # We found a bogon in the path, so make sure we never use it.
2815 set dummy $ac_cv_prog_CC
2816 shift
2817 if test $# != 0; then
2818 # We chose a different compiler from the bogus one.
2819 # However, it has the same basename, so the bogon will be chosen
2820 # first if we set CC to just the basename; use the full file name.
2821 shift
2822 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in cl.exe
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2865 IFS=$as_save_IFS
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2879 test -n "$CC" && break
2880 done
2882 if test -z "$CC"; then
2883 ac_ct_CC=$CC
2884 for ac_prog in cl.exe
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$ac_ct_CC"; then
2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_ac_ct_CC="$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2909 IFS=$as_save_IFS
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2923 test -n "$ac_ct_CC" && break
2924 done
2926 if test "x$ac_ct_CC" = x; then
2927 CC=""
2928 else
2929 case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935 CC=$ac_ct_CC
2942 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error "no acceptable C compiler found in \$PATH
2945 See \`config.log' for more details." "$LINENO" 5; }
2947 # Provide some information about the compiler.
2948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2949 set X $ac_compile
2950 ac_compiler=$2
2951 for ac_option in --version -v -V -qversion; do
2952 { { ac_try="$ac_compiler $ac_option >&5"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2960 ac_status=$?
2961 if test -s conftest.err; then
2962 sed '10a\
2963 ... rest of stderr output deleted ...
2964 10q' conftest.err >conftest.er1
2965 cat conftest.er1 >&5
2966 rm -f conftest.er1 conftest.err
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }
2970 done
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2976 main ()
2980 return 0;
2982 _ACEOF
2983 ac_clean_files_save=$ac_clean_files
2984 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2985 # Try to create an executable without -o first, disregard a.out.
2986 # It will help us diagnose broken compilers, and finding out an intuition
2987 # of exeext.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989 $as_echo_n "checking for C compiler default output file name... " >&6; }
2990 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992 # The possible output files:
2993 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995 ac_rmfiles=
2996 for ac_file in $ac_files
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3000 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3001 esac
3002 done
3003 rm -f $ac_rmfiles
3005 if { { ac_try="$ac_link_default"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011 $as_echo "$ac_try_echo"; } >&5
3012 (eval "$ac_link_default") 2>&5
3013 ac_status=$?
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }; then :
3016 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3017 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3018 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3019 # so that the user can short-circuit this test for compilers unknown to
3020 # Autoconf.
3021 for ac_file in $ac_files ''
3023 test -f "$ac_file" || continue
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3027 [ab].out )
3028 # We found the default executable, but exeext='' is most
3029 # certainly right.
3030 break;;
3031 *.* )
3032 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3033 then :; else
3034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036 # We set ac_cv_exeext here because the later test for it is not
3037 # safe: cross compilers may not add the suffix if given an `-o'
3038 # argument, so we may need to know it at that point already.
3039 # Even if this section looks crufty: it has the advantage of
3040 # actually working.
3041 break;;
3043 break;;
3044 esac
3045 done
3046 test "$ac_cv_exeext" = no && ac_cv_exeext=
3048 else
3049 ac_file=''
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3052 $as_echo "$ac_file" >&6; }
3053 if test -z "$ac_file"; then :
3054 $as_echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 { as_fn_set_status 77
3060 as_fn_error "C compiler cannot create executables
3061 See \`config.log' for more details." "$LINENO" 5; }; }
3063 ac_exeext=$ac_cv_exeext
3065 # Check that the compiler produces executables we can run. If not, either
3066 # the compiler is broken, or we cross compile.
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3068 $as_echo_n "checking whether the C compiler works... " >&6; }
3069 # If not cross compiling, check that we can run a simple program.
3070 if test "$cross_compiling" != yes; then
3071 if { ac_try='./$ac_file'
3072 { { case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_try") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; }; then
3082 cross_compiling=no
3083 else
3084 if test "$cross_compiling" = maybe; then
3085 cross_compiling=yes
3086 else
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error "cannot run C compiled programs.
3090 If you meant to cross compile, use \`--host'.
3091 See \`config.log' for more details." "$LINENO" 5; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3098 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3099 ac_clean_files=$ac_clean_files_save
3100 # Check that the compiler produces executables we can run. If not, either
3101 # the compiler is broken, or we cross compile.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3103 $as_echo_n "checking whether we are cross compiling... " >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3105 $as_echo "$cross_compiling" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3108 $as_echo_n "checking for suffix of executables... " >&6; }
3109 if { { ac_try="$ac_link"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; then :
3120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3121 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3122 # work properly (i.e., refer to `conftest.exe'), while it won't with
3123 # `rm'.
3124 for ac_file in conftest.exe conftest conftest.*; do
3125 test -f "$ac_file" || continue
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 break;;
3130 * ) break;;
3131 esac
3132 done
3133 else
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error "cannot compute suffix of executables: cannot compile and link
3137 See \`config.log' for more details." "$LINENO" 5; }
3139 rm -f conftest$ac_cv_exeext
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3141 $as_echo "$ac_cv_exeext" >&6; }
3143 rm -f conftest.$ac_ext
3144 EXEEXT=$ac_cv_exeext
3145 ac_exeext=$EXEEXT
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3147 $as_echo_n "checking for suffix of object files... " >&6; }
3148 if test "${ac_cv_objext+set}" = set; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3155 main ()
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.o conftest.obj
3163 if { { ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_compile") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 for ac_file in conftest.o conftest.obj conftest.*; do
3175 test -f "$ac_file" || continue;
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3179 break;;
3180 esac
3181 done
3182 else
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error "cannot compute suffix of object files: cannot compile
3189 See \`config.log' for more details." "$LINENO" 5; }
3191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3194 $as_echo "$ac_cv_objext" >&6; }
3195 OBJEXT=$ac_cv_objext
3196 ac_objext=$OBJEXT
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3199 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3206 main ()
3208 #ifndef __GNUC__
3209 choke me
3210 #endif
3213 return 0;
3215 _ACEOF
3216 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_compiler_gnu=yes
3218 else
3219 ac_compiler_gnu=no
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3227 if test $ac_compiler_gnu = yes; then
3228 GCC=yes
3229 else
3230 GCC=
3232 ac_test_CFLAGS=${CFLAGS+set}
3233 ac_save_CFLAGS=$CFLAGS
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3236 if test "${ac_cv_prog_cc_g+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 ac_save_c_werror_flag=$ac_c_werror_flag
3240 ac_c_werror_flag=yes
3241 ac_cv_prog_cc_g=no
3242 CFLAGS="-g"
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3247 main ()
3251 return 0;
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_cv_prog_cc_g=yes
3256 else
3257 CFLAGS=""
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 if ac_fn_c_try_compile "$LINENO"; then :
3271 else
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3273 CFLAGS="-g"
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_cv_prog_cc_g=yes
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3296 $as_echo "$ac_cv_prog_cc_g" >&6; }
3297 if test "$ac_test_CFLAGS" = set; then
3298 CFLAGS=$ac_save_CFLAGS
3299 elif test $ac_cv_prog_cc_g = yes; then
3300 if test "$GCC" = yes; then
3301 CFLAGS="-g -O2"
3302 else
3303 CFLAGS="-g"
3305 else
3306 if test "$GCC" = yes; then
3307 CFLAGS="-O2"
3308 else
3309 CFLAGS=
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3314 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_cv_prog_cc_c89=no
3318 ac_save_CC=$CC
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321 #include <stdarg.h>
3322 #include <stdio.h>
3323 #include <sys/types.h>
3324 #include <sys/stat.h>
3325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3326 struct buf { int x; };
3327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3328 static char *e (p, i)
3329 char **p;
3330 int i;
3332 return p[i];
3334 static char *f (char * (*g) (char **, int), char **p, ...)
3336 char *s;
3337 va_list v;
3338 va_start (v,p);
3339 s = g (p, va_arg (v,int));
3340 va_end (v);
3341 return s;
3344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3345 function prototypes and stuff, but not '\xHH' hex character constants.
3346 These don't provoke an error unfortunately, instead are silently treated
3347 as 'x'. The following induces an error, until -std is added to get
3348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3349 array size at least. It's necessary to write '\x00'==0 to get something
3350 that's true only with -std. */
3351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3354 inside strings and character constants. */
3355 #define FOO(x) 'x'
3356 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3358 int test (int i, double x);
3359 struct s1 {int (*f) (int a);};
3360 struct s2 {int (*f) (double a);};
3361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3362 int argc;
3363 char **argv;
3365 main ()
3367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 return 0;
3371 _ACEOF
3372 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3373 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3375 CC="$ac_save_CC $ac_arg"
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_prog_cc_c89=$ac_arg
3379 rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
3381 done
3382 rm -f conftest.$ac_ext
3383 CC=$ac_save_CC
3386 # AC_CACHE_VAL
3387 case "x$ac_cv_prog_cc_c89" in
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3390 $as_echo "none needed" >&6; } ;;
3391 xno)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3393 $as_echo "unsupported" >&6; } ;;
3395 CC="$CC $ac_cv_prog_cc_c89"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3397 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3398 esac
3399 if test "x$ac_cv_prog_cc_c89" != xno; then :
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3416 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3419 CPP=
3421 if test -z "$CPP"; then
3422 if test "${ac_cv_prog_CPP+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if ac_fn_c_try_cpp "$LINENO"; then :
3448 else
3449 # Broken: fails on valid input.
3450 continue
3452 rm -f conftest.err conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3459 _ACEOF
3460 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: success on invalid input.
3462 continue
3463 else
3464 # Passes both tests.
3465 ac_preproc_ok=:
3466 break
3468 rm -f conftest.err conftest.$ac_ext
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then :
3474 break
3477 done
3478 ac_cv_prog_CPP=$CPP
3481 CPP=$ac_cv_prog_CPP
3482 else
3483 ac_cv_prog_CPP=$CPP
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3486 $as_echo "$CPP" >&6; }
3487 ac_preproc_ok=false
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498 #ifdef __STDC__
3499 # include <limits.h>
3500 #else
3501 # include <assert.h>
3502 #endif
3503 Syntax error
3504 _ACEOF
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3507 else
3508 # Broken: fails on valid input.
3509 continue
3511 rm -f conftest.err conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3527 rm -f conftest.err conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." "$LINENO" 5; }
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3549 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3550 if test "${ac_cv_path_GREP+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -z "$GREP"; then
3554 ac_path_GREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_prog in grep ggrep; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3565 # Check for GNU ac_path_GREP and select it if it is found.
3566 # Check for GNU $ac_path_GREP
3567 case `"$ac_path_GREP" --version 2>&1` in
3568 *GNU*)
3569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3571 ac_count=0
3572 $as_echo_n 0123456789 >"conftest.in"
3573 while :
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 $as_echo 'GREP' >> "conftest.nl"
3579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 as_fn_arith $ac_count + 1 && ac_count=$as_val
3582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_GREP="$ac_path_GREP"
3585 ac_path_GREP_max=$ac_count
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3589 done
3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591 esac
3593 $ac_path_GREP_found && break 3
3594 done
3595 done
3596 done
3597 IFS=$as_save_IFS
3598 if test -z "$ac_cv_path_GREP"; then
3599 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3601 else
3602 ac_cv_path_GREP=$GREP
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3607 $as_echo "$ac_cv_path_GREP" >&6; }
3608 GREP="$ac_cv_path_GREP"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3612 $as_echo_n "checking for egrep... " >&6; }
3613 if test "${ac_cv_path_EGREP+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3617 then ac_cv_path_EGREP="$GREP -E"
3618 else
3619 if test -z "$EGREP"; then
3620 ac_path_EGREP_found=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in egrep; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3630 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3631 # Check for GNU ac_path_EGREP and select it if it is found.
3632 # Check for GNU $ac_path_EGREP
3633 case `"$ac_path_EGREP" --version 2>&1` in
3634 *GNU*)
3635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3637 ac_count=0
3638 $as_echo_n 0123456789 >"conftest.in"
3639 while :
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 $as_echo 'EGREP' >> "conftest.nl"
3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647 as_fn_arith $ac_count + 1 && ac_count=$as_val
3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_EGREP="$ac_path_EGREP"
3651 ac_path_EGREP_max=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3655 done
3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3657 esac
3659 $ac_path_EGREP_found && break 3
3660 done
3661 done
3662 done
3663 IFS=$as_save_IFS
3664 if test -z "$ac_cv_path_EGREP"; then
3665 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 else
3668 ac_cv_path_EGREP=$EGREP
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3674 $as_echo "$ac_cv_path_EGREP" >&6; }
3675 EGREP="$ac_cv_path_EGREP"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3679 $as_echo_n "checking for ANSI C header files... " >&6; }
3680 if test "${ac_cv_header_stdc+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdlib.h>
3686 #include <stdarg.h>
3687 #include <string.h>
3688 #include <float.h>
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_header_stdc=yes
3700 else
3701 ac_cv_header_stdc=no
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 if test $ac_cv_header_stdc = yes; then
3706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <string.h>
3711 _ACEOF
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "memchr" >/dev/null 2>&1; then :
3715 else
3716 ac_cv_header_stdc=no
3718 rm -f conftest*
3722 if test $ac_cv_header_stdc = yes; then
3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <stdlib.h>
3728 _ACEOF
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "free" >/dev/null 2>&1; then :
3732 else
3733 ac_cv_header_stdc=no
3735 rm -f conftest*
3739 if test $ac_cv_header_stdc = yes; then
3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3741 if test "$cross_compiling" = yes; then :
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <ctype.h>
3747 #include <stdlib.h>
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 #else
3752 # define ISLOWER(c) \
3753 (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3757 #endif
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761 main ()
3763 int i;
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3767 return 2;
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_run "$LINENO"; then :
3773 else
3774 ac_cv_header_stdc=no
3776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3777 conftest.$ac_objext conftest.beam conftest.$ac_ext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3783 $as_echo "$ac_cv_header_stdc" >&6; }
3784 if test $ac_cv_header_stdc = yes; then
3786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3791 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3792 inttypes.h stdint.h unistd.h
3793 do :
3794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3795 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3797 eval as_val=\$$as_ac_Header
3798 if test "x$as_val" = x""yes; then :
3799 cat >>confdefs.h <<_ACEOF
3800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3801 _ACEOF
3805 done
3809 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3810 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3811 MINIX=yes
3812 else
3813 MINIX=
3817 if test "$MINIX" = yes; then
3819 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3822 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3825 $as_echo "#define _MINIX 1" >>confdefs.h
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3831 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3832 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3838 # define __EXTENSIONS__ 1
3839 $ac_includes_default
3841 main ()
3845 return 0;
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_safe_to_define___extensions__=yes
3850 else
3851 ac_cv_safe_to_define___extensions__=no
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3856 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3857 test $ac_cv_safe_to_define___extensions__ = yes &&
3858 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3860 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3862 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3864 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3866 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3870 # Do not delete or change the following two lines. For why, see
3871 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3872 ac_aux_dir=
3873 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3874 for ac_t in install-sh install.sh shtool; do
3875 if test -f "$ac_dir/$ac_t"; then
3876 ac_aux_dir=$ac_dir
3877 ac_install_sh="$ac_aux_dir/$ac_t -c"
3878 break 2
3880 done
3881 done
3882 if test -z "$ac_aux_dir"; then
3883 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3886 # These three variables are undocumented and unsupported,
3887 # and are intended to be withdrawn in a future Autoconf release.
3888 # They can cause serious problems if a builder's source tree is in a directory
3889 # whose full name contains unusual characters.
3890 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3891 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3892 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3895 # Make sure we can run config.sub.
3896 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3897 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3900 $as_echo_n "checking build system type... " >&6; }
3901 if test "${ac_cv_build+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 ac_build_alias=$build_alias
3905 test "x$ac_build_alias" = x &&
3906 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3907 test "x$ac_build_alias" = x &&
3908 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3910 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3914 $as_echo "$ac_cv_build" >&6; }
3915 case $ac_cv_build in
3916 *-*-*) ;;
3917 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3918 esac
3919 build=$ac_cv_build
3920 ac_save_IFS=$IFS; IFS='-'
3921 set x $ac_cv_build
3922 shift
3923 build_cpu=$1
3924 build_vendor=$2
3925 shift; shift
3926 # Remember, the first character of IFS is used to create $*,
3927 # except with old shells:
3928 build_os=$*
3929 IFS=$ac_save_IFS
3930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3934 $as_echo_n "checking host system type... " >&6; }
3935 if test "${ac_cv_host+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test "x$host_alias" = x; then
3939 ac_cv_host=$ac_cv_build
3940 else
3941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3942 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3947 $as_echo "$ac_cv_host" >&6; }
3948 case $ac_cv_host in
3949 *-*-*) ;;
3950 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3951 esac
3952 host=$ac_cv_host
3953 ac_save_IFS=$IFS; IFS='-'
3954 set x $ac_cv_host
3955 shift
3956 host_cpu=$1
3957 host_vendor=$2
3958 shift; shift
3959 # Remember, the first character of IFS is used to create $*,
3960 # except with old shells:
3961 host_os=$*
3962 IFS=$ac_save_IFS
3963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3967 $as_echo_n "checking target system type... " >&6; }
3968 if test "${ac_cv_target+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test "x$target_alias" = x; then
3972 ac_cv_target=$ac_cv_host
3973 else
3974 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3975 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3980 $as_echo "$ac_cv_target" >&6; }
3981 case $ac_cv_target in
3982 *-*-*) ;;
3983 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3984 esac
3985 target=$ac_cv_target
3986 ac_save_IFS=$IFS; IFS='-'
3987 set x $ac_cv_target
3988 shift
3989 target_cpu=$1
3990 target_vendor=$2
3991 shift; shift
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3994 target_os=$*
3995 IFS=$ac_save_IFS
3996 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3999 # The aliases save the names the user supplied, while $host etc.
4000 # will get canonicalized.
4001 test -n "$target_alias" &&
4002 test "$program_prefix$program_suffix$program_transform_name" = \
4003 NONENONEs,x,x, &&
4004 program_prefix=${target_alias}-
4006 target_alias=${target_alias-$host_alias}
4008 case ${build_alias} in
4009 "") build_noncanonical=${build} ;;
4010 *) build_noncanonical=${build_alias} ;;
4011 esac
4013 case ${host_alias} in
4014 "") host_noncanonical=${build_noncanonical} ;;
4015 *) host_noncanonical=${host_alias} ;;
4016 esac
4018 case ${target_alias} in
4019 "") target_noncanonical=${host_noncanonical} ;;
4020 *) target_noncanonical=${target_alias} ;;
4021 esac
4027 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4028 -I\$(top_builddir)/../libstdc++-v3/include \
4029 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4030 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4031 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4032 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4037 am__api_version='1.11'
4039 # Find a good install program. We prefer a C program (faster),
4040 # so one script is as good as another. But avoid the broken or
4041 # incompatible versions:
4042 # SysV /etc/install, /usr/sbin/install
4043 # SunOS /usr/etc/install
4044 # IRIX /sbin/install
4045 # AIX /bin/install
4046 # AmigaOS /C/install, which installs bootblocks on floppy discs
4047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4050 # OS/2's system install, which has a completely different semantic
4051 # ./install, which can be erroneously created by make from ./install.sh.
4052 # Reject install programs that cannot install multiple files.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4054 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4055 if test -z "$INSTALL"; then
4056 if test "${ac_cv_path_install+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 # Account for people who put trailing slashes in PATH elements.
4065 case $as_dir/ in #((
4066 ./ | .// | /[cC]/* | \
4067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4068 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4069 /usr/ucb/* ) ;;
4071 # OSF1 and SCO ODT 3.0 have their own names for install.
4072 # Don't use installbsd from OSF since it installs stuff as root
4073 # by default.
4074 for ac_prog in ginstall scoinst install; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4077 if test $ac_prog = install &&
4078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4079 # AIX install. It has an incompatible calling convention.
4081 elif test $ac_prog = install &&
4082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083 # program-specific install script used by HP pwplus--don't use.
4085 else
4086 rm -rf conftest.one conftest.two conftest.dir
4087 echo one > conftest.one
4088 echo two > conftest.two
4089 mkdir conftest.dir
4090 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4091 test -s conftest.one && test -s conftest.two &&
4092 test -s conftest.dir/conftest.one &&
4093 test -s conftest.dir/conftest.two
4094 then
4095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4096 break 3
4100 done
4101 done
4103 esac
4105 done
4106 IFS=$as_save_IFS
4108 rm -rf conftest.one conftest.two conftest.dir
4111 if test "${ac_cv_path_install+set}" = set; then
4112 INSTALL=$ac_cv_path_install
4113 else
4114 # As a last resort, use the slow shell script. Don't cache a
4115 # value for INSTALL within a source directory, because that will
4116 # break other packages using the cache if that directory is
4117 # removed, or if the value is a relative name.
4118 INSTALL=$ac_install_sh
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4122 $as_echo "$INSTALL" >&6; }
4124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4125 # It thinks the first close brace ends the variable substitution.
4126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4133 $as_echo_n "checking whether build environment is sane... " >&6; }
4134 # Just in case
4135 sleep 1
4136 echo timestamp > conftest.file
4137 # Reject unsafe characters in $srcdir or the absolute working directory
4138 # name. Accept space and tab only in the latter.
4139 am_lf='
4141 case `pwd` in
4142 *[\\\"\#\$\&\'\`$am_lf]*)
4143 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4144 esac
4145 case $srcdir in
4146 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4147 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4148 esac
4150 # Do `set' in a subshell so we don't clobber the current shell's
4151 # arguments. Must try -L first in case configure is actually a
4152 # symlink; some systems play weird games with the mod time of symlinks
4153 # (eg FreeBSD returns the mod time of the symlink's containing
4154 # directory).
4155 if (
4156 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4157 if test "$*" = "X"; then
4158 # -L didn't work.
4159 set X `ls -t "$srcdir/configure" conftest.file`
4161 rm -f conftest.file
4162 if test "$*" != "X $srcdir/configure conftest.file" \
4163 && test "$*" != "X conftest.file $srcdir/configure"; then
4165 # If neither matched, then we have a broken ls. This can happen
4166 # if, for instance, CONFIG_SHELL is bash and it inherits a
4167 # broken ls alias from the environment. This has actually
4168 # happened. Such a system could not be considered "sane".
4169 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4170 alias in your environment" "$LINENO" 5
4173 test "$2" = conftest.file
4175 then
4176 # Ok.
4178 else
4179 as_fn_error "newly created file is older than distributed files!
4180 Check your system clock" "$LINENO" 5
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184 test "$program_prefix" != NONE &&
4185 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4186 # Use a double $ so make ignores it.
4187 test "$program_suffix" != NONE &&
4188 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4189 # Double any \ or $.
4190 # By default was `s,x,x', remove it if useless.
4191 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4192 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4194 # expand $ac_aux_dir to an absolute path
4195 am_aux_dir=`cd $ac_aux_dir && pwd`
4197 if test x"${MISSING+set}" != xset; then
4198 case $am_aux_dir in
4199 *\ * | *\ *)
4200 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4202 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4203 esac
4205 # Use eval to expand $SHELL
4206 if eval "$MISSING --run true"; then
4207 am_missing_run="$MISSING --run "
4208 else
4209 am_missing_run=
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4211 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4214 if test x"${install_sh}" != xset; then
4215 case $am_aux_dir in
4216 *\ * | *\ *)
4217 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4219 install_sh="\${SHELL} $am_aux_dir/install-sh"
4220 esac
4223 # Installed binaries are usually stripped using `strip' when the user
4224 # run `make install-strip'. However `strip' might not be the right
4225 # tool to use in cross-compilation environments, therefore Automake
4226 # will honor the `STRIP' environment variable to overrule this program.
4227 if test "$cross_compiling" != no; then
4228 if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}strip; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if test "${ac_cv_prog_STRIP+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$STRIP"; then
4237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 STRIP=$ac_cv_prog_STRIP
4257 if test -n "$STRIP"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4259 $as_echo "$STRIP" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4267 if test -z "$ac_cv_prog_STRIP"; then
4268 ac_ct_STRIP=$STRIP
4269 # Extract the first word of "strip", so it can be a program name with args.
4270 set dummy strip; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$ac_ct_STRIP"; then
4277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_ac_ct_STRIP="strip"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4297 if test -n "$ac_ct_STRIP"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4299 $as_echo "$ac_ct_STRIP" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4305 if test "x$ac_ct_STRIP" = x; then
4306 STRIP=":"
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 STRIP=$ac_ct_STRIP
4316 else
4317 STRIP="$ac_cv_prog_STRIP"
4321 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4324 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4325 if test -z "$MKDIR_P"; then
4326 if test "${ac_cv_path_mkdir+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in mkdir gmkdir; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4337 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4338 'mkdir (GNU coreutils) '* | \
4339 'mkdir (coreutils) '* | \
4340 'mkdir (fileutils) '4.1*)
4341 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4342 break 3;;
4343 esac
4344 done
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 if test "${ac_cv_path_mkdir+set}" = set; then
4352 MKDIR_P="$ac_cv_path_mkdir -p"
4353 else
4354 # As a last resort, use the slow shell script. Don't cache a
4355 # value for MKDIR_P within a source directory, because that will
4356 # break other packages using the cache if that directory is
4357 # removed, or if the value is a relative name.
4358 test -d ./--version && rmdir ./--version
4359 MKDIR_P="$ac_install_sh -d"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4363 $as_echo "$MKDIR_P" >&6; }
4365 mkdir_p="$MKDIR_P"
4366 case $mkdir_p in
4367 [\\/$]* | ?:[\\/]*) ;;
4368 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4369 esac
4371 for ac_prog in gawk mawk nawk awk
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_prog_AWK+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$AWK"; then
4381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_AWK="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4394 done
4395 done
4396 IFS=$as_save_IFS
4400 AWK=$ac_cv_prog_AWK
4401 if test -n "$AWK"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4403 $as_echo "$AWK" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$AWK" && break
4411 done
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4414 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4415 set x ${MAKE-make}
4416 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4417 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat >conftest.make <<\_ACEOF
4421 SHELL = /bin/sh
4422 all:
4423 @echo '@@@%%%=$(MAKE)=@@@%%%'
4424 _ACEOF
4425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4427 *@@@%%%=?*=@@@%%%*)
4428 eval ac_cv_prog_make_${ac_make}_set=yes;;
4430 eval ac_cv_prog_make_${ac_make}_set=no;;
4431 esac
4432 rm -f conftest.make
4434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 SET_MAKE=
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 SET_MAKE="MAKE=${MAKE-make}"
4444 rm -rf .tst 2>/dev/null
4445 mkdir .tst 2>/dev/null
4446 if test -d .tst; then
4447 am__leading_dot=.
4448 else
4449 am__leading_dot=_
4451 rmdir .tst 2>/dev/null
4453 DEPDIR="${am__leading_dot}deps"
4455 ac_config_commands="$ac_config_commands depfiles"
4458 am_make=${MAKE-make}
4459 cat > confinc << 'END'
4460 am__doit:
4461 @echo this is the am__doit target
4462 .PHONY: am__doit
4464 # If we don't find an include directive, just comment out the code.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4466 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4467 am__include="#"
4468 am__quote=
4469 _am_result=none
4470 # First try GNU make style include.
4471 echo "include confinc" > confmf
4472 # Ignore all kinds of additional output from `make'.
4473 case `$am_make -s -f confmf 2> /dev/null` in #(
4474 *the\ am__doit\ target*)
4475 am__include=include
4476 am__quote=
4477 _am_result=GNU
4479 esac
4480 # Now try BSD make style include.
4481 if test "$am__include" = "#"; then
4482 echo '.include "confinc"' > confmf
4483 case `$am_make -s -f confmf 2> /dev/null` in #(
4484 *the\ am__doit\ target*)
4485 am__include=.include
4486 am__quote="\""
4487 _am_result=BSD
4489 esac
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4494 $as_echo "$_am_result" >&6; }
4495 rm -f confinc confmf
4497 # Check whether --enable-dependency-tracking was given.
4498 if test "${enable_dependency_tracking+set}" = set; then :
4499 enableval=$enable_dependency_tracking;
4502 if test "x$enable_dependency_tracking" != xno; then
4503 am_depcomp="$ac_aux_dir/depcomp"
4504 AMDEPBACKSLASH='\'
4506 if test "x$enable_dependency_tracking" != xno; then
4507 AMDEP_TRUE=
4508 AMDEP_FALSE='#'
4509 else
4510 AMDEP_TRUE='#'
4511 AMDEP_FALSE=
4515 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4516 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4517 # is not polluted with repeated "-I."
4518 am__isrc=' -I$(srcdir)'
4519 # test to see if srcdir already configured
4520 if test -f $srcdir/config.status; then
4521 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4525 # test whether we have cygpath
4526 if test -z "$CYGPATH_W"; then
4527 if (cygpath --version) >/dev/null 2>/dev/null; then
4528 CYGPATH_W='cygpath -w'
4529 else
4530 CYGPATH_W=echo
4535 # Define the identity of the package.
4536 PACKAGE='package-unused'
4537 VERSION='version-unused'
4540 cat >>confdefs.h <<_ACEOF
4541 #define PACKAGE "$PACKAGE"
4542 _ACEOF
4545 cat >>confdefs.h <<_ACEOF
4546 #define VERSION "$VERSION"
4547 _ACEOF
4549 # Some tools Automake needs.
4551 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4554 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4557 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4560 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4563 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4565 # We need awk for the "check" target. The system "awk" is bad on
4566 # some platforms.
4567 # Always define AMTAR for backward compatibility.
4569 AMTAR=${AMTAR-"${am_missing_run}tar"}
4571 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4576 depcc="$CC" am_compiler_list=
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4579 $as_echo_n "checking dependency style of $depcc... " >&6; }
4580 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4584 # We make a subdir and do the tests there. Otherwise we can end up
4585 # making bogus files that we don't know about and never remove. For
4586 # instance it was reported that on HP-UX the gcc test will end up
4587 # making a dummy file named `D' -- because `-MD' means `put the output
4588 # in D'.
4589 mkdir conftest.dir
4590 # Copy depcomp to subdir because otherwise we won't find it if we're
4591 # using a relative directory.
4592 cp "$am_depcomp" conftest.dir
4593 cd conftest.dir
4594 # We will build objects and dependencies in a subdirectory because
4595 # it helps to detect inapplicable dependency modes. For instance
4596 # both Tru64's cc and ICC support -MD to output dependencies as a
4597 # side effect of compilation, but ICC will put the dependencies in
4598 # the current directory while Tru64 will put them in the object
4599 # directory.
4600 mkdir sub
4602 am_cv_CC_dependencies_compiler_type=none
4603 if test "$am_compiler_list" = ""; then
4604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4606 am__universal=false
4607 case " $depcc " in #(
4608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4609 esac
4611 for depmode in $am_compiler_list; do
4612 # Setup a source with many dependencies, because some compilers
4613 # like to wrap large dependency lists on column 80 (with \), and
4614 # we should not choose a depcomp mode which is confused by this.
4616 # We need to recreate these files for each test, as the compiler may
4617 # overwrite some of them when testing with obscure command lines.
4618 # This happens at least with the AIX C compiler.
4619 : > sub/conftest.c
4620 for i in 1 2 3 4 5 6; do
4621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4623 # Solaris 8's {/usr,}/bin/sh.
4624 touch sub/conftst$i.h
4625 done
4626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4629 # mode. It turns out that the SunPro C++ compiler does not properly
4630 # handle `-M -o', and we need to detect this. Also, some Intel
4631 # versions had trouble with output in subdirs
4632 am__obj=sub/conftest.${OBJEXT-o}
4633 am__minus_obj="-o $am__obj"
4634 case $depmode in
4635 gcc)
4636 # This depmode causes a compiler race in universal mode.
4637 test "$am__universal" = false || continue
4639 nosideeffect)
4640 # after this tag, mechanisms are not by side-effect, so they'll
4641 # only be used when explicitly requested
4642 if test "x$enable_dependency_tracking" = xyes; then
4643 continue
4644 else
4645 break
4648 msvisualcpp | msvcmsys)
4649 # This compiler won't grok `-c -o', but also, the minuso test has
4650 # not run yet. These depmodes are late enough in the game, and
4651 # so weak that their functioning should not be impacted.
4652 am__obj=conftest.${OBJEXT-o}
4653 am__minus_obj=
4655 none) break ;;
4656 esac
4657 if depmode=$depmode \
4658 source=sub/conftest.c object=$am__obj \
4659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4661 >/dev/null 2>conftest.err &&
4662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4666 # icc doesn't choke on unknown options, it will just issue warnings
4667 # or remarks (even with -Werror). So we grep stderr for any message
4668 # that says an option was ignored or not supported.
4669 # When given -MP, icc 7.0 and 7.1 complain thusly:
4670 # icc: Command line warning: ignoring option '-M'; no argument required
4671 # The diagnosis changed in icc 8.0:
4672 # icc: Command line remark: option '-MP' not supported
4673 if (grep 'ignoring option' conftest.err ||
4674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4675 am_cv_CC_dependencies_compiler_type=$depmode
4676 break
4679 done
4681 cd ..
4682 rm -rf conftest.dir
4683 else
4684 am_cv_CC_dependencies_compiler_type=none
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4693 test "x$enable_dependency_tracking" != xno \
4694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4695 am__fastdepCC_TRUE=
4696 am__fastdepCC_FALSE='#'
4697 else
4698 am__fastdepCC_TRUE='#'
4699 am__fastdepCC_FALSE=
4704 # Default to --enable-multilib
4705 # Check whether --enable-multilib was given.
4706 if test "${enable_multilib+set}" = set; then :
4707 enableval=$enable_multilib; case "$enableval" in
4708 yes) multilib=yes ;;
4709 no) multilib=no ;;
4710 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4711 esac
4712 else
4713 multilib=yes
4717 # We may get other options which we leave undocumented:
4718 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4719 # See config-ml.in if you want the gory details.
4721 if test "$srcdir" = "."; then
4722 if test "$with_target_subdir" != "."; then
4723 multi_basedir="$srcdir/$with_multisrctop../.."
4724 else
4725 multi_basedir="$srcdir/$with_multisrctop.."
4727 else
4728 multi_basedir="$srcdir/.."
4732 # Even if the default multilib is not a cross compilation,
4733 # it may be that some of the other multilibs are.
4734 if test $cross_compiling = no && test $multilib = yes \
4735 && test "x${with_multisubdir}" != x ; then
4736 cross_compiling=maybe
4739 ac_config_commands="$ac_config_commands default-1"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4743 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4744 # Check whether --enable-maintainer-mode was given.
4745 if test "${enable_maintainer_mode+set}" = set; then :
4746 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4747 else
4748 USE_MAINTAINER_MODE=no
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4752 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4753 if test $USE_MAINTAINER_MODE = yes; then
4754 MAINTAINER_MODE_TRUE=
4755 MAINTAINER_MODE_FALSE='#'
4756 else
4757 MAINTAINER_MODE_TRUE='#'
4758 MAINTAINER_MODE_FALSE=
4761 MAINT=$MAINTAINER_MODE_TRUE
4765 # Calculate toolexeclibdir
4766 # Also toolexecdir, though it's only used in toolexeclibdir
4767 case ${version_specific_libs} in
4768 yes)
4769 # Need the gcc compiler version to know where to install libraries
4770 # and header files if --enable-version-specific-runtime-libs option
4771 # is selected.
4772 toolexecdir='$(libdir)/gcc/$(target_alias)'
4773 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4776 if test -n "$with_cross_host" &&
4777 test x"$with_cross_host" != x"no"; then
4778 # Install a library built with a cross compiler in tooldir, not libdir.
4779 toolexecdir='$(exec_prefix)/$(target_alias)'
4780 toolexeclibdir='$(toolexecdir)/lib'
4781 else
4782 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4783 toolexeclibdir='$(libdir)'
4785 multi_os_directory=`$CC -print-multi-os-directory`
4786 case $multi_os_directory in
4787 .) ;; # Avoid trailing /.
4788 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4789 esac
4791 esac
4795 # Checks for programs.
4796 ac_ext=c
4797 ac_cpp='$CPP $CPPFLAGS'
4798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_CC+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 CC=$ac_cv_prog_CC
4830 if test -n "$CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832 $as_echo "$CC" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4840 if test -z "$ac_cv_prog_CC"; then
4841 ac_ct_CC=$CC
4842 # Extract the first word of "gcc", so it can be a program name with args.
4843 set dummy gcc; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_CC"; then
4850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_ac_ct_CC="gcc"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4870 if test -n "$ac_ct_CC"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4872 $as_echo "$ac_ct_CC" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4878 if test "x$ac_ct_CC" = x; then
4879 CC=""
4880 else
4881 case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887 CC=$ac_ct_CC
4889 else
4890 CC="$ac_cv_prog_CC"
4893 if test -z "$CC"; then
4894 if test -n "$ac_tool_prefix"; then
4895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}cc; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_CC+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$CC"; then
4903 ac_cv_prog_CC="$CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_CC="${ac_tool_prefix}cc"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 CC=$ac_cv_prog_CC
4923 if test -n "$CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4925 $as_echo "$CC" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4934 if test -z "$CC"; then
4935 # Extract the first word of "cc", so it can be a program name with args.
4936 set dummy cc; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_CC+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$CC"; then
4943 ac_cv_prog_CC="$CC" # Let the user override the test.
4944 else
4945 ac_prog_rejected=no
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4954 ac_prog_rejected=yes
4955 continue
4957 ac_cv_prog_CC="cc"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4965 if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy $ac_cv_prog_CC
4968 shift
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set CC to just the basename; use the full file name.
4973 shift
4974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4979 CC=$ac_cv_prog_CC
4980 if test -n "$CC"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4982 $as_echo "$CC" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4990 if test -z "$CC"; then
4991 if test -n "$ac_tool_prefix"; then
4992 for ac_prog in cl.exe
4994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_CC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5017 IFS=$as_save_IFS
5021 CC=$ac_cv_prog_CC
5022 if test -n "$CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5024 $as_echo "$CC" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 test -n "$CC" && break
5032 done
5034 if test -z "$CC"; then
5035 ac_ct_CC=$CC
5036 for ac_prog in cl.exe
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$ac_ct_CC"; then
5046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_CC="$ac_prog"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5066 if test -n "$ac_ct_CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5068 $as_echo "$ac_ct_CC" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 test -n "$ac_ct_CC" && break
5076 done
5078 if test "x$ac_ct_CC" = x; then
5079 CC=""
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 CC=$ac_ct_CC
5094 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error "no acceptable C compiler found in \$PATH
5097 See \`config.log' for more details." "$LINENO" 5; }
5099 # Provide some information about the compiler.
5100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5101 set X $ac_compile
5102 ac_compiler=$2
5103 for ac_option in --version -v -V -qversion; do
5104 { { ac_try="$ac_compiler $ac_option >&5"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5110 $as_echo "$ac_try_echo"; } >&5
5111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5112 ac_status=$?
5113 if test -s conftest.err; then
5114 sed '10a\
5115 ... rest of stderr output deleted ...
5116 10q' conftest.err >conftest.er1
5117 cat conftest.er1 >&5
5118 rm -f conftest.er1 conftest.err
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }
5122 done
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5125 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5126 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5133 main ()
5135 #ifndef __GNUC__
5136 choke me
5137 #endif
5140 return 0;
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144 ac_compiler_gnu=yes
5145 else
5146 ac_compiler_gnu=no
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5154 if test $ac_compiler_gnu = yes; then
5155 GCC=yes
5156 else
5157 GCC=
5159 ac_test_CFLAGS=${CFLAGS+set}
5160 ac_save_CFLAGS=$CFLAGS
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5163 if test "${ac_cv_prog_cc_g+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 ac_save_c_werror_flag=$ac_c_werror_flag
5167 ac_c_werror_flag=yes
5168 ac_cv_prog_cc_g=no
5169 CFLAGS="-g"
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5174 main ()
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_prog_cc_g=yes
5183 else
5184 CFLAGS=""
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5189 main ()
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_compile "$LINENO"; then :
5198 else
5199 ac_c_werror_flag=$ac_save_c_werror_flag
5200 CFLAGS="-g"
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5205 main ()
5209 return 0;
5211 _ACEOF
5212 if ac_fn_c_try_compile "$LINENO"; then :
5213 ac_cv_prog_cc_g=yes
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_c_werror_flag=$ac_save_c_werror_flag
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5223 $as_echo "$ac_cv_prog_cc_g" >&6; }
5224 if test "$ac_test_CFLAGS" = set; then
5225 CFLAGS=$ac_save_CFLAGS
5226 elif test $ac_cv_prog_cc_g = yes; then
5227 if test "$GCC" = yes; then
5228 CFLAGS="-g -O2"
5229 else
5230 CFLAGS="-g"
5232 else
5233 if test "$GCC" = yes; then
5234 CFLAGS="-O2"
5235 else
5236 CFLAGS=
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5240 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5241 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 ac_cv_prog_cc_c89=no
5245 ac_save_CC=$CC
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <stdarg.h>
5249 #include <stdio.h>
5250 #include <sys/types.h>
5251 #include <sys/stat.h>
5252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5253 struct buf { int x; };
5254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5255 static char *e (p, i)
5256 char **p;
5257 int i;
5259 return p[i];
5261 static char *f (char * (*g) (char **, int), char **p, ...)
5263 char *s;
5264 va_list v;
5265 va_start (v,p);
5266 s = g (p, va_arg (v,int));
5267 va_end (v);
5268 return s;
5271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5272 function prototypes and stuff, but not '\xHH' hex character constants.
5273 These don't provoke an error unfortunately, instead are silently treated
5274 as 'x'. The following induces an error, until -std is added to get
5275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5276 array size at least. It's necessary to write '\x00'==0 to get something
5277 that's true only with -std. */
5278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5281 inside strings and character constants. */
5282 #define FOO(x) 'x'
5283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5285 int test (int i, double x);
5286 struct s1 {int (*f) (int a);};
5287 struct s2 {int (*f) (double a);};
5288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5289 int argc;
5290 char **argv;
5292 main ()
5294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5296 return 0;
5298 _ACEOF
5299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5302 CC="$ac_save_CC $ac_arg"
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 ac_cv_prog_cc_c89=$ac_arg
5306 rm -f core conftest.err conftest.$ac_objext
5307 test "x$ac_cv_prog_cc_c89" != "xno" && break
5308 done
5309 rm -f conftest.$ac_ext
5310 CC=$ac_save_CC
5313 # AC_CACHE_VAL
5314 case "x$ac_cv_prog_cc_c89" in
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5317 $as_echo "none needed" >&6; } ;;
5318 xno)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5320 $as_echo "unsupported" >&6; } ;;
5322 CC="$CC $ac_cv_prog_cc_c89"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5325 esac
5326 if test "x$ac_cv_prog_cc_c89" != xno; then :
5330 ac_ext=c
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336 ac_ext=cpp
5337 ac_cpp='$CXXCPP $CPPFLAGS'
5338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5341 if test -z "$CXX"; then
5342 if test -n "$CCC"; then
5343 CXX=$CCC
5344 else
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_prog_CXX+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$CXX"; then
5356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 CXX=$ac_cv_prog_CXX
5376 if test -n "$CXX"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5378 $as_echo "$CXX" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$CXX" && break
5386 done
5388 if test -z "$CXX"; then
5389 ac_ct_CXX=$CXX
5390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; 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 test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$ac_ct_CXX"; then
5400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
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_CXX=$ac_cv_prog_ac_ct_CXX
5420 if test -n "$ac_ct_CXX"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5422 $as_echo "$ac_ct_CXX" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5429 test -n "$ac_ct_CXX" && break
5430 done
5432 if test "x$ac_ct_CXX" = x; then
5433 CXX="g++"
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5440 esac
5441 CXX=$ac_ct_CXX
5447 # Provide some information about the compiler.
5448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5449 set X $ac_compile
5450 ac_compiler=$2
5451 for ac_option in --version -v -V -qversion; do
5452 { { ac_try="$ac_compiler $ac_option >&5"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5458 $as_echo "$ac_try_echo"; } >&5
5459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5460 ac_status=$?
5461 if test -s conftest.err; then
5462 sed '10a\
5463 ... rest of stderr output deleted ...
5464 10q' conftest.err >conftest.er1
5465 cat conftest.er1 >&5
5466 rm -f conftest.er1 conftest.err
5468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469 test $ac_status = 0; }
5470 done
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5473 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5474 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5481 main ()
5483 #ifndef __GNUC__
5484 choke me
5485 #endif
5488 return 0;
5490 _ACEOF
5491 if ac_fn_cxx_try_compile "$LINENO"; then :
5492 ac_compiler_gnu=yes
5493 else
5494 ac_compiler_gnu=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5501 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5502 if test $ac_compiler_gnu = yes; then
5503 GXX=yes
5504 else
5505 GXX=
5507 ac_test_CXXFLAGS=${CXXFLAGS+set}
5508 ac_save_CXXFLAGS=$CXXFLAGS
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5510 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5511 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5515 ac_cxx_werror_flag=yes
5516 ac_cv_prog_cxx_g=no
5517 CXXFLAGS="-g"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5522 main ()
5526 return 0;
5528 _ACEOF
5529 if ac_fn_cxx_try_compile "$LINENO"; then :
5530 ac_cv_prog_cxx_g=yes
5531 else
5532 CXXFLAGS=""
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5537 main ()
5541 return 0;
5543 _ACEOF
5544 if ac_fn_cxx_try_compile "$LINENO"; then :
5546 else
5547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5548 CXXFLAGS="-g"
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5553 main ()
5557 return 0;
5559 _ACEOF
5560 if ac_fn_cxx_try_compile "$LINENO"; then :
5561 ac_cv_prog_cxx_g=yes
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5571 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5572 if test "$ac_test_CXXFLAGS" = set; then
5573 CXXFLAGS=$ac_save_CXXFLAGS
5574 elif test $ac_cv_prog_cxx_g = yes; then
5575 if test "$GXX" = yes; then
5576 CXXFLAGS="-g -O2"
5577 else
5578 CXXFLAGS="-g"
5580 else
5581 if test "$GXX" = yes; then
5582 CXXFLAGS="-O2"
5583 else
5584 CXXFLAGS=
5587 ac_ext=c
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593 depcc="$CXX" am_compiler_list=
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5596 $as_echo_n "checking dependency style of $depcc... " >&6; }
5597 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5601 # We make a subdir and do the tests there. Otherwise we can end up
5602 # making bogus files that we don't know about and never remove. For
5603 # instance it was reported that on HP-UX the gcc test will end up
5604 # making a dummy file named `D' -- because `-MD' means `put the output
5605 # in D'.
5606 mkdir conftest.dir
5607 # Copy depcomp to subdir because otherwise we won't find it if we're
5608 # using a relative directory.
5609 cp "$am_depcomp" conftest.dir
5610 cd conftest.dir
5611 # We will build objects and dependencies in a subdirectory because
5612 # it helps to detect inapplicable dependency modes. For instance
5613 # both Tru64's cc and ICC support -MD to output dependencies as a
5614 # side effect of compilation, but ICC will put the dependencies in
5615 # the current directory while Tru64 will put them in the object
5616 # directory.
5617 mkdir sub
5619 am_cv_CXX_dependencies_compiler_type=none
5620 if test "$am_compiler_list" = ""; then
5621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5623 am__universal=false
5624 case " $depcc " in #(
5625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5626 esac
5628 for depmode in $am_compiler_list; do
5629 # Setup a source with many dependencies, because some compilers
5630 # like to wrap large dependency lists on column 80 (with \), and
5631 # we should not choose a depcomp mode which is confused by this.
5633 # We need to recreate these files for each test, as the compiler may
5634 # overwrite some of them when testing with obscure command lines.
5635 # This happens at least with the AIX C compiler.
5636 : > sub/conftest.c
5637 for i in 1 2 3 4 5 6; do
5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5640 # Solaris 8's {/usr,}/bin/sh.
5641 touch sub/conftst$i.h
5642 done
5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5645 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5646 # mode. It turns out that the SunPro C++ compiler does not properly
5647 # handle `-M -o', and we need to detect this. Also, some Intel
5648 # versions had trouble with output in subdirs
5649 am__obj=sub/conftest.${OBJEXT-o}
5650 am__minus_obj="-o $am__obj"
5651 case $depmode in
5652 gcc)
5653 # This depmode causes a compiler race in universal mode.
5654 test "$am__universal" = false || continue
5656 nosideeffect)
5657 # after this tag, mechanisms are not by side-effect, so they'll
5658 # only be used when explicitly requested
5659 if test "x$enable_dependency_tracking" = xyes; then
5660 continue
5661 else
5662 break
5665 msvisualcpp | msvcmsys)
5666 # This compiler won't grok `-c -o', but also, the minuso test has
5667 # not run yet. These depmodes are late enough in the game, and
5668 # so weak that their functioning should not be impacted.
5669 am__obj=conftest.${OBJEXT-o}
5670 am__minus_obj=
5672 none) break ;;
5673 esac
5674 if depmode=$depmode \
5675 source=sub/conftest.c object=$am__obj \
5676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5678 >/dev/null 2>conftest.err &&
5679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5683 # icc doesn't choke on unknown options, it will just issue warnings
5684 # or remarks (even with -Werror). So we grep stderr for any message
5685 # that says an option was ignored or not supported.
5686 # When given -MP, icc 7.0 and 7.1 complain thusly:
5687 # icc: Command line warning: ignoring option '-M'; no argument required
5688 # The diagnosis changed in icc 8.0:
5689 # icc: Command line remark: option '-MP' not supported
5690 if (grep 'ignoring option' conftest.err ||
5691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5692 am_cv_CXX_dependencies_compiler_type=$depmode
5693 break
5696 done
5698 cd ..
5699 rm -rf conftest.dir
5700 else
5701 am_cv_CXX_dependencies_compiler_type=none
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5706 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5707 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5710 test "x$enable_dependency_tracking" != xno \
5711 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5712 am__fastdepCXX_TRUE=
5713 am__fastdepCXX_FALSE='#'
5714 else
5715 am__fastdepCXX_TRUE='#'
5716 am__fastdepCXX_FALSE=
5720 # By default we simply use the C compiler to build assembly code.
5722 test "${CCAS+set}" = set || CCAS=$CC
5723 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5727 depcc="$CCAS" am_compiler_list=
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5730 $as_echo_n "checking dependency style of $depcc... " >&6; }
5731 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5735 # We make a subdir and do the tests there. Otherwise we can end up
5736 # making bogus files that we don't know about and never remove. For
5737 # instance it was reported that on HP-UX the gcc test will end up
5738 # making a dummy file named `D' -- because `-MD' means `put the output
5739 # in D'.
5740 mkdir conftest.dir
5741 # Copy depcomp to subdir because otherwise we won't find it if we're
5742 # using a relative directory.
5743 cp "$am_depcomp" conftest.dir
5744 cd conftest.dir
5745 # We will build objects and dependencies in a subdirectory because
5746 # it helps to detect inapplicable dependency modes. For instance
5747 # both Tru64's cc and ICC support -MD to output dependencies as a
5748 # side effect of compilation, but ICC will put the dependencies in
5749 # the current directory while Tru64 will put them in the object
5750 # directory.
5751 mkdir sub
5753 am_cv_CCAS_dependencies_compiler_type=none
5754 if test "$am_compiler_list" = ""; then
5755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5757 am__universal=false
5760 for depmode in $am_compiler_list; do
5761 # Setup a source with many dependencies, because some compilers
5762 # like to wrap large dependency lists on column 80 (with \), and
5763 # we should not choose a depcomp mode which is confused by this.
5765 # We need to recreate these files for each test, as the compiler may
5766 # overwrite some of them when testing with obscure command lines.
5767 # This happens at least with the AIX C compiler.
5768 : > sub/conftest.c
5769 for i in 1 2 3 4 5 6; do
5770 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5771 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5772 # Solaris 8's {/usr,}/bin/sh.
5773 touch sub/conftst$i.h
5774 done
5775 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5777 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5778 # mode. It turns out that the SunPro C++ compiler does not properly
5779 # handle `-M -o', and we need to detect this. Also, some Intel
5780 # versions had trouble with output in subdirs
5781 am__obj=sub/conftest.${OBJEXT-o}
5782 am__minus_obj="-o $am__obj"
5783 case $depmode in
5784 gcc)
5785 # This depmode causes a compiler race in universal mode.
5786 test "$am__universal" = false || continue
5788 nosideeffect)
5789 # after this tag, mechanisms are not by side-effect, so they'll
5790 # only be used when explicitly requested
5791 if test "x$enable_dependency_tracking" = xyes; then
5792 continue
5793 else
5794 break
5797 msvisualcpp | msvcmsys)
5798 # This compiler won't grok `-c -o', but also, the minuso test has
5799 # not run yet. These depmodes are late enough in the game, and
5800 # so weak that their functioning should not be impacted.
5801 am__obj=conftest.${OBJEXT-o}
5802 am__minus_obj=
5804 none) break ;;
5805 esac
5806 if depmode=$depmode \
5807 source=sub/conftest.c object=$am__obj \
5808 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5809 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5810 >/dev/null 2>conftest.err &&
5811 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5812 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5813 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5814 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5815 # icc doesn't choke on unknown options, it will just issue warnings
5816 # or remarks (even with -Werror). So we grep stderr for any message
5817 # that says an option was ignored or not supported.
5818 # When given -MP, icc 7.0 and 7.1 complain thusly:
5819 # icc: Command line warning: ignoring option '-M'; no argument required
5820 # The diagnosis changed in icc 8.0:
5821 # icc: Command line remark: option '-MP' not supported
5822 if (grep 'ignoring option' conftest.err ||
5823 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5824 am_cv_CCAS_dependencies_compiler_type=$depmode
5825 break
5828 done
5830 cd ..
5831 rm -rf conftest.dir
5832 else
5833 am_cv_CCAS_dependencies_compiler_type=none
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5838 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5839 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5842 test "x$enable_dependency_tracking" != xno \
5843 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5844 am__fastdepCCAS_TRUE=
5845 am__fastdepCCAS_FALSE='#'
5846 else
5847 am__fastdepCCAS_TRUE='#'
5848 am__fastdepCCAS_FALSE=
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$RANLIB"; then
5861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 RANLIB=$ac_cv_prog_RANLIB
5881 if test -n "$RANLIB"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5883 $as_echo "$RANLIB" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 if test -z "$ac_cv_prog_RANLIB"; then
5892 ac_ct_RANLIB=$RANLIB
5893 # Extract the first word of "ranlib", so it can be a program name with args.
5894 set dummy ranlib; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -n "$ac_ct_RANLIB"; then
5901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_RANLIB="ranlib"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5916 IFS=$as_save_IFS
5920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5921 if test -n "$ac_ct_RANLIB"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5923 $as_echo "$ac_ct_RANLIB" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 if test "x$ac_ct_RANLIB" = x; then
5930 RANLIB=":"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938 RANLIB=$ac_ct_RANLIB
5940 else
5941 RANLIB="$ac_cv_prog_RANLIB"
5945 enable_dlopen=yes
5949 case `pwd` in
5950 *\ * | *\ *)
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5952 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5953 esac
5957 macro_version='2.2.7a'
5958 macro_revision='1.3134'
5972 ltmain="$ac_aux_dir/ltmain.sh"
5974 # Backslashify metacharacters that are still active within
5975 # double-quoted strings.
5976 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5978 # Same as above, but do not quote variable references.
5979 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5981 # Sed substitution to delay expansion of an escaped shell variable in a
5982 # double_quote_subst'ed string.
5983 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5985 # Sed substitution to delay expansion of an escaped single quote.
5986 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5988 # Sed substitution to avoid accidental globbing in evaled expressions
5989 no_glob_subst='s/\*/\\\*/g'
5991 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5992 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5996 $as_echo_n "checking how to print strings... " >&6; }
5997 # Test print first, because it will be a builtin if present.
5998 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5999 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6000 ECHO='print -r --'
6001 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6002 ECHO='printf %s\n'
6003 else
6004 # Use this function as a fallback that always works.
6005 func_fallback_echo ()
6007 eval 'cat <<_LTECHO_EOF
6009 _LTECHO_EOF'
6011 ECHO='func_fallback_echo'
6014 # func_echo_all arg...
6015 # Invoke $ECHO with all args, space-separated.
6016 func_echo_all ()
6018 $ECHO ""
6021 case "$ECHO" in
6022 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6023 $as_echo "printf" >&6; } ;;
6024 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6025 $as_echo "print -r" >&6; } ;;
6026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6027 $as_echo "cat" >&6; } ;;
6028 esac
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6044 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6045 if test "${ac_cv_path_SED+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6049 for ac_i in 1 2 3 4 5 6 7; do
6050 ac_script="$ac_script$as_nl$ac_script"
6051 done
6052 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6053 { ac_script=; unset ac_script;}
6054 if test -z "$SED"; then
6055 ac_path_SED_found=false
6056 # Loop through the user's path and test for each of PROGNAME-LIST
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_prog in sed gsed; do
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6065 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6066 # Check for GNU ac_path_SED and select it if it is found.
6067 # Check for GNU $ac_path_SED
6068 case `"$ac_path_SED" --version 2>&1` in
6069 *GNU*)
6070 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6072 ac_count=0
6073 $as_echo_n 0123456789 >"conftest.in"
6074 while :
6076 cat "conftest.in" "conftest.in" >"conftest.tmp"
6077 mv "conftest.tmp" "conftest.in"
6078 cp "conftest.in" "conftest.nl"
6079 $as_echo '' >> "conftest.nl"
6080 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6082 as_fn_arith $ac_count + 1 && ac_count=$as_val
6083 if test $ac_count -gt ${ac_path_SED_max-0}; then
6084 # Best one so far, save it but keep looking for a better one
6085 ac_cv_path_SED="$ac_path_SED"
6086 ac_path_SED_max=$ac_count
6088 # 10*(2^10) chars as input seems more than enough
6089 test $ac_count -gt 10 && break
6090 done
6091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6092 esac
6094 $ac_path_SED_found && break 3
6095 done
6096 done
6097 done
6098 IFS=$as_save_IFS
6099 if test -z "$ac_cv_path_SED"; then
6100 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6102 else
6103 ac_cv_path_SED=$SED
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6108 $as_echo "$ac_cv_path_SED" >&6; }
6109 SED="$ac_cv_path_SED"
6110 rm -f conftest.sed
6112 test -z "$SED" && SED=sed
6113 Xsed="$SED -e 1s/^X//"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6126 $as_echo_n "checking for fgrep... " >&6; }
6127 if test "${ac_cv_path_FGREP+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6131 then ac_cv_path_FGREP="$GREP -F"
6132 else
6133 if test -z "$FGREP"; then
6134 ac_path_FGREP_found=false
6135 # Loop through the user's path and test for each of PROGNAME-LIST
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_prog in fgrep; do
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6144 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6145 # Check for GNU ac_path_FGREP and select it if it is found.
6146 # Check for GNU $ac_path_FGREP
6147 case `"$ac_path_FGREP" --version 2>&1` in
6148 *GNU*)
6149 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6151 ac_count=0
6152 $as_echo_n 0123456789 >"conftest.in"
6153 while :
6155 cat "conftest.in" "conftest.in" >"conftest.tmp"
6156 mv "conftest.tmp" "conftest.in"
6157 cp "conftest.in" "conftest.nl"
6158 $as_echo 'FGREP' >> "conftest.nl"
6159 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6161 as_fn_arith $ac_count + 1 && ac_count=$as_val
6162 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6163 # Best one so far, save it but keep looking for a better one
6164 ac_cv_path_FGREP="$ac_path_FGREP"
6165 ac_path_FGREP_max=$ac_count
6167 # 10*(2^10) chars as input seems more than enough
6168 test $ac_count -gt 10 && break
6169 done
6170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6171 esac
6173 $ac_path_FGREP_found && break 3
6174 done
6175 done
6176 done
6177 IFS=$as_save_IFS
6178 if test -z "$ac_cv_path_FGREP"; then
6179 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6181 else
6182 ac_cv_path_FGREP=$FGREP
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6188 $as_echo "$ac_cv_path_FGREP" >&6; }
6189 FGREP="$ac_cv_path_FGREP"
6192 test -z "$GREP" && GREP=grep
6212 # Check whether --with-gnu-ld was given.
6213 if test "${with_gnu_ld+set}" = set; then :
6214 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6215 else
6216 with_gnu_ld=no
6219 ac_prog=ld
6220 if test "$GCC" = yes; then
6221 # Check if gcc -print-prog-name=ld gives a path.
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6223 $as_echo_n "checking for ld used by $CC... " >&6; }
6224 case $host in
6225 *-*-mingw*)
6226 # gcc leaves a trailing carriage return which upsets mingw
6227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6230 esac
6231 case $ac_prog in
6232 # Accept absolute paths.
6233 [\\/]* | ?:[\\/]*)
6234 re_direlt='/[^/][^/]*/\.\./'
6235 # Canonicalize the pathname of ld
6236 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6237 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6238 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6239 done
6240 test -z "$LD" && LD="$ac_prog"
6243 # If it fails, then pretend we aren't using GCC.
6244 ac_prog=ld
6247 # If it is relative, then search for the first ld in PATH.
6248 with_gnu_ld=unknown
6250 esac
6251 elif test "$with_gnu_ld" = yes; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6253 $as_echo_n "checking for GNU ld... " >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6256 $as_echo_n "checking for non-GNU ld... " >&6; }
6258 if test "${lt_cv_path_LD+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -z "$LD"; then
6262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6263 for ac_dir in $PATH; do
6264 IFS="$lt_save_ifs"
6265 test -z "$ac_dir" && ac_dir=.
6266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6267 lt_cv_path_LD="$ac_dir/$ac_prog"
6268 # Check to see if the program is GNU ld. I'd rather use --version,
6269 # but apparently some variants of GNU ld only accept -v.
6270 # Break only if it was the GNU/non-GNU ld that we prefer.
6271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273 test "$with_gnu_ld" != no && break
6276 test "$with_gnu_ld" != yes && break
6278 esac
6280 done
6281 IFS="$lt_save_ifs"
6282 else
6283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6287 LD="$lt_cv_path_LD"
6288 if test -n "$LD"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6290 $as_echo "$LD" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6295 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6298 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6302 case `$LD -v 2>&1 </dev/null` in
6303 *GNU* | *'with BFD'*)
6304 lt_cv_prog_gnu_ld=yes
6307 lt_cv_prog_gnu_ld=no
6309 esac
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6313 with_gnu_ld=$lt_cv_prog_gnu_ld
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6325 if test "${lt_cv_path_NM+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$NM"; then
6329 # Let the user override the test.
6330 lt_cv_path_NM="$NM"
6331 else
6332 lt_nm_to_check="${ac_tool_prefix}nm"
6333 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6334 lt_nm_to_check="$lt_nm_to_check nm"
6336 for lt_tmp_nm in $lt_nm_to_check; do
6337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6338 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6339 IFS="$lt_save_ifs"
6340 test -z "$ac_dir" && ac_dir=.
6341 tmp_nm="$ac_dir/$lt_tmp_nm"
6342 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6343 # Check to see if the nm accepts a BSD-compat flag.
6344 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6345 # nm: unknown option "B" ignored
6346 # Tru64's nm complains that /dev/null is an invalid object file
6347 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6348 */dev/null* | *'Invalid file or object type'*)
6349 lt_cv_path_NM="$tmp_nm -B"
6350 break
6353 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6354 */dev/null*)
6355 lt_cv_path_NM="$tmp_nm -p"
6356 break
6359 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6360 continue # so that we can try to find one that supports BSD flags
6362 esac
6364 esac
6366 done
6367 IFS="$lt_save_ifs"
6368 done
6369 : ${lt_cv_path_NM=no}
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6373 $as_echo "$lt_cv_path_NM" >&6; }
6374 if test "$lt_cv_path_NM" != "no"; then
6375 NM="$lt_cv_path_NM"
6376 else
6377 # Didn't find any BSD compatible name lister, look for dumpbin.
6378 if test -n "$DUMPBIN"; then :
6379 # Let the user override the test.
6380 else
6381 if test -n "$ac_tool_prefix"; then
6382 for ac_prog in dumpbin "link -dump"
6384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$DUMPBIN"; then
6392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 DUMPBIN=$ac_cv_prog_DUMPBIN
6412 if test -n "$DUMPBIN"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6414 $as_echo "$DUMPBIN" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6421 test -n "$DUMPBIN" && break
6422 done
6424 if test -z "$DUMPBIN"; then
6425 ac_ct_DUMPBIN=$DUMPBIN
6426 for ac_prog in dumpbin "link -dump"
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_DUMPBIN"; then
6436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6456 if test -n "$ac_ct_DUMPBIN"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6458 $as_echo "$ac_ct_DUMPBIN" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$ac_ct_DUMPBIN" && break
6466 done
6468 if test "x$ac_ct_DUMPBIN" = x; then
6469 DUMPBIN=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 DUMPBIN=$ac_ct_DUMPBIN
6481 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6482 *COFF*)
6483 DUMPBIN="$DUMPBIN -symbols"
6486 DUMPBIN=:
6488 esac
6491 if test "$DUMPBIN" != ":"; then
6492 NM="$DUMPBIN"
6495 test -z "$NM" && NM=nm
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6504 if test "${lt_cv_nm_interface+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 lt_cv_nm_interface="BSD nm"
6508 echo "int some_variable = 0;" > conftest.$ac_ext
6509 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6510 (eval "$ac_compile" 2>conftest.err)
6511 cat conftest.err >&5
6512 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6514 cat conftest.err >&5
6515 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6516 cat conftest.out >&5
6517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6518 lt_cv_nm_interface="MS dumpbin"
6520 rm -f conftest*
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6523 $as_echo "$lt_cv_nm_interface" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6526 $as_echo_n "checking whether ln -s works... " >&6; }
6527 LN_S=$as_ln_s
6528 if test "$LN_S" = "ln -s"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6530 $as_echo "yes" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6533 $as_echo "no, using $LN_S" >&6; }
6536 # find the maximum length of command line arguments
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 teststring="ABCD"
6545 case $build_os in
6546 msdosdjgpp*)
6547 # On DJGPP, this test can blow up pretty badly due to problems in libc
6548 # (any single argument exceeding 2000 bytes causes a buffer overrun
6549 # during glob expansion). Even if it were fixed, the result of this
6550 # check would be larger than it should be.
6551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6554 gnu*)
6555 # Under GNU Hurd, this test is not required because there is
6556 # no limit to the length of command line arguments.
6557 # Libtool will interpret -1 as no limit whatsoever
6558 lt_cv_sys_max_cmd_len=-1;
6561 cygwin* | mingw* | cegcc*)
6562 # On Win9x/ME, this test blows up -- it succeeds, but takes
6563 # about 5 minutes as the teststring grows exponentially.
6564 # Worse, since 9x/ME are not pre-emptively multitasking,
6565 # you end up with a "frozen" computer, even though with patience
6566 # the test eventually succeeds (with a max line length of 256k).
6567 # Instead, let's just punt: use the minimum linelength reported by
6568 # all of the supported platforms: 8192 (on NT/2K/XP).
6569 lt_cv_sys_max_cmd_len=8192;
6572 mint*)
6573 # On MiNT this can take a long time and run out of memory.
6574 lt_cv_sys_max_cmd_len=8192;
6577 amigaos*)
6578 # On AmigaOS with pdksh, this test takes hours, literally.
6579 # So we just punt and use a minimum line length of 8192.
6580 lt_cv_sys_max_cmd_len=8192;
6583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6584 # This has been around since 386BSD, at least. Likely further.
6585 if test -x /sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587 elif test -x /usr/sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6589 else
6590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6592 # And add a safety zone
6593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6597 interix*)
6598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6599 lt_cv_sys_max_cmd_len=196608
6602 osf*)
6603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6605 # nice to cause kernel panics so lets avoid the loop below.
6606 # First set a reasonable default.
6607 lt_cv_sys_max_cmd_len=16384
6609 if test -x /sbin/sysconfig; then
6610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6612 esac
6615 sco3.2v5*)
6616 lt_cv_sys_max_cmd_len=102400
6618 sysv5* | sco5v6* | sysv4.2uw2*)
6619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6620 if test -n "$kargmax"; then
6621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6622 else
6623 lt_cv_sys_max_cmd_len=32768
6627 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6628 if test -n "$lt_cv_sys_max_cmd_len"; then
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631 else
6632 # Make teststring a little bigger before we do anything with it.
6633 # a 1K string should be a reasonable start.
6634 for i in 1 2 3 4 5 6 7 8 ; do
6635 teststring=$teststring$teststring
6636 done
6637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6638 # If test is not a shell built-in, we'll probably end up computing a
6639 # maximum length that is only half of the actual maximum length, but
6640 # we can't tell.
6641 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6642 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6643 test $i != 17 # 1/2 MB should be enough
6645 i=`expr $i + 1`
6646 teststring=$teststring$teststring
6647 done
6648 # Only check the string length outside the loop.
6649 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650 teststring=
6651 # Add a significant safety factor because C++ compilers can tack on
6652 # massive amounts of additional arguments before passing them to the
6653 # linker. It appears as though 1/2 is a usable value.
6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6657 esac
6661 if test -n $lt_cv_sys_max_cmd_len ; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6663 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6666 $as_echo "none" >&6; }
6668 max_cmd_len=$lt_cv_sys_max_cmd_len
6675 : ${CP="cp -f"}
6676 : ${MV="mv -f"}
6677 : ${RM="rm -f"}
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6680 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6681 # Try some XSI features
6682 xsi_shell=no
6683 ( _lt_dummy="a/b/c"
6684 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6685 = c,a/b,, \
6686 && eval 'test $(( 1 + 1 )) -eq 2 \
6687 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688 && xsi_shell=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6690 $as_echo "$xsi_shell" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6694 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 lt_shell_append=no
6696 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697 >/dev/null 2>&1 \
6698 && lt_shell_append=yes
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6700 $as_echo "$lt_shell_append" >&6; }
6703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6704 lt_unset=unset
6705 else
6706 lt_unset=false
6713 # test EBCDIC or ASCII
6714 case `echo X|tr X '\101'` in
6715 A) # ASCII based system
6716 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6717 lt_SP2NL='tr \040 \012'
6718 lt_NL2SP='tr \015\012 \040\040'
6720 *) # EBCDIC based system
6721 lt_SP2NL='tr \100 \n'
6722 lt_NL2SP='tr \r\n \100\100'
6724 esac
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6735 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6736 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 lt_cv_ld_reload_flag='-r'
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6742 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6743 reload_flag=$lt_cv_ld_reload_flag
6744 case $reload_flag in
6745 "" | " "*) ;;
6746 *) reload_flag=" $reload_flag" ;;
6747 esac
6748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6749 case $host_os in
6750 darwin*)
6751 if test "$GCC" = yes; then
6752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6753 else
6754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 esac
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$OBJDUMP"; then
6776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 OBJDUMP=$ac_cv_prog_OBJDUMP
6796 if test -n "$OBJDUMP"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6798 $as_echo "$OBJDUMP" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OBJDUMP"; then
6807 ac_ct_OBJDUMP=$OBJDUMP
6808 # Extract the first word of "objdump", so it can be a program name with args.
6809 set dummy objdump; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_OBJDUMP"; then
6816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6835 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6836 if test -n "$ac_ct_OBJDUMP"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6838 $as_echo "$ac_ct_OBJDUMP" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OBJDUMP" = x; then
6845 OBJDUMP="false"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 OBJDUMP=$ac_ct_OBJDUMP
6855 else
6856 OBJDUMP="$ac_cv_prog_OBJDUMP"
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6870 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6871 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 lt_cv_file_magic_cmd='$MAGIC_CMD'
6875 lt_cv_file_magic_test_file=
6876 lt_cv_deplibs_check_method='unknown'
6877 # Need to set the preceding variable on all platforms that support
6878 # interlibrary dependencies.
6879 # 'none' -- dependencies not supported.
6880 # `unknown' -- same as none, but documents that we really don't know.
6881 # 'pass_all' -- all dependencies passed with no checks.
6882 # 'test_compile' -- check by making test program.
6883 # 'file_magic [[regex]]' -- check by looking for files in library path
6884 # which responds to the $file_magic_cmd with a given extended regex.
6885 # If you have `file' or equivalent on your system and you're not sure
6886 # whether `pass_all' will *always* work, you probably want this one.
6888 case $host_os in
6889 aix[4-9]*)
6890 lt_cv_deplibs_check_method=pass_all
6893 beos*)
6894 lt_cv_deplibs_check_method=pass_all
6897 bsdi[45]*)
6898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6899 lt_cv_file_magic_cmd='/usr/bin/file -L'
6900 lt_cv_file_magic_test_file=/shlib/libc.so
6903 cygwin*)
6904 # func_win32_libid is a shell function defined in ltmain.sh
6905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6906 lt_cv_file_magic_cmd='func_win32_libid'
6909 mingw* | pw32*)
6910 # Base MSYS/MinGW do not provide the 'file' command needed by
6911 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6912 # unless we find 'file', for example because we are cross-compiling.
6913 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6914 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6916 lt_cv_file_magic_cmd='func_win32_libid'
6917 else
6918 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6919 lt_cv_file_magic_cmd='$OBJDUMP -f'
6923 cegcc*)
6924 # use the weaker test based on 'objdump'. See mingw*.
6925 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6926 lt_cv_file_magic_cmd='$OBJDUMP -f'
6929 darwin* | rhapsody*)
6930 lt_cv_deplibs_check_method=pass_all
6933 freebsd* | dragonfly*)
6934 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6935 case $host_cpu in
6936 i*86 )
6937 # Not sure whether the presence of OpenBSD here was a mistake.
6938 # Let's accept both of them until this is cleared up.
6939 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6940 lt_cv_file_magic_cmd=/usr/bin/file
6941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6943 esac
6944 else
6945 lt_cv_deplibs_check_method=pass_all
6949 gnu*)
6950 lt_cv_deplibs_check_method=pass_all
6953 haiku*)
6954 lt_cv_deplibs_check_method=pass_all
6957 hpux10.20* | hpux11*)
6958 lt_cv_file_magic_cmd=/usr/bin/file
6959 case $host_cpu in
6960 ia64*)
6961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6964 hppa*64*)
6965 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]'
6966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6972 esac
6975 interix[3-9]*)
6976 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6980 irix5* | irix6* | nonstopux*)
6981 case $LD in
6982 *-32|*"-32 ") libmagic=32-bit;;
6983 *-n32|*"-n32 ") libmagic=N32;;
6984 *-64|*"-64 ") libmagic=64-bit;;
6985 *) libmagic=never-match;;
6986 esac
6987 lt_cv_deplibs_check_method=pass_all
6990 # This must be Linux ELF.
6991 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6992 lt_cv_deplibs_check_method=pass_all
6995 netbsd*)
6996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6998 else
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7003 newos6*)
7004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7005 lt_cv_file_magic_cmd=/usr/bin/file
7006 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7009 *nto* | *qnx*)
7010 lt_cv_deplibs_check_method=pass_all
7013 openbsd*)
7014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7016 else
7017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7021 osf3* | osf4* | osf5*)
7022 lt_cv_deplibs_check_method=pass_all
7025 rdos*)
7026 lt_cv_deplibs_check_method=pass_all
7029 solaris*)
7030 lt_cv_deplibs_check_method=pass_all
7033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7034 lt_cv_deplibs_check_method=pass_all
7037 sysv4 | sysv4.3*)
7038 case $host_vendor in
7039 motorola)
7040 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]'
7041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7043 ncr)
7044 lt_cv_deplibs_check_method=pass_all
7046 sequent)
7047 lt_cv_file_magic_cmd='/bin/file'
7048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7050 sni)
7051 lt_cv_file_magic_cmd='/bin/file'
7052 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7053 lt_cv_file_magic_test_file=/lib/libc.so
7055 siemens)
7056 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7061 esac
7064 tpf*)
7065 lt_cv_deplibs_check_method=pass_all
7067 esac
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7071 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7072 file_magic_cmd=$lt_cv_file_magic_cmd
7073 deplibs_check_method=$lt_cv_deplibs_check_method
7074 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}ar; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_prog_AR+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$AR"; then
7096 ac_cv_prog_AR="$AR" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_prog_AR="${ac_tool_prefix}ar"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7115 AR=$ac_cv_prog_AR
7116 if test -n "$AR"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7118 $as_echo "$AR" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7126 if test -z "$ac_cv_prog_AR"; then
7127 ac_ct_AR=$AR
7128 # Extract the first word of "ar", so it can be a program name with args.
7129 set dummy ar; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$ac_ct_AR"; then
7136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_ac_ct_AR="ar"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156 if test -n "$ac_ct_AR"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7158 $as_echo "$ac_ct_AR" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7164 if test "x$ac_ct_AR" = x; then
7165 AR="false"
7166 else
7167 case $cross_compiling:$ac_tool_warned in
7168 yes:)
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173 AR=$ac_ct_AR
7175 else
7176 AR="$ac_cv_prog_AR"
7179 test -z "$AR" && AR=ar
7180 test -z "$AR_FLAGS" && AR_FLAGS=cru
7192 if test -n "$ac_tool_prefix"; then
7193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7194 set dummy ${ac_tool_prefix}strip; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if test "${ac_cv_prog_STRIP+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test -n "$STRIP"; then
7201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7214 done
7215 done
7216 IFS=$as_save_IFS
7220 STRIP=$ac_cv_prog_STRIP
7221 if test -n "$STRIP"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7223 $as_echo "$STRIP" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7231 if test -z "$ac_cv_prog_STRIP"; then
7232 ac_ct_STRIP=$STRIP
7233 # Extract the first word of "strip", so it can be a program name with args.
7234 set dummy strip; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$ac_ct_STRIP"; then
7241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_ac_ct_STRIP="strip"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7254 done
7255 done
7256 IFS=$as_save_IFS
7260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7261 if test -n "$ac_ct_STRIP"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7263 $as_echo "$ac_ct_STRIP" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7269 if test "x$ac_ct_STRIP" = x; then
7270 STRIP=":"
7271 else
7272 case $cross_compiling:$ac_tool_warned in
7273 yes:)
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7276 ac_tool_warned=yes ;;
7277 esac
7278 STRIP=$ac_ct_STRIP
7280 else
7281 STRIP="$ac_cv_prog_STRIP"
7284 test -z "$STRIP" && STRIP=:
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$RANLIB"; then
7300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7319 RANLIB=$ac_cv_prog_RANLIB
7320 if test -n "$RANLIB"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7322 $as_echo "$RANLIB" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7330 if test -z "$ac_cv_prog_RANLIB"; then
7331 ac_ct_RANLIB=$RANLIB
7332 # Extract the first word of "ranlib", so it can be a program name with args.
7333 set dummy ranlib; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$ac_ct_RANLIB"; then
7340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_RANLIB="ranlib"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7355 IFS=$as_save_IFS
7359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7360 if test -n "$ac_ct_RANLIB"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7362 $as_echo "$ac_ct_RANLIB" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7368 if test "x$ac_ct_RANLIB" = x; then
7369 RANLIB=":"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377 RANLIB=$ac_ct_RANLIB
7379 else
7380 RANLIB="$ac_cv_prog_RANLIB"
7383 test -z "$RANLIB" && RANLIB=:
7390 # Determine commands to create old-style static archives.
7391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7392 old_postinstall_cmds='chmod 644 $oldlib'
7393 old_postuninstall_cmds=
7395 if test -n "$RANLIB"; then
7396 case $host_os in
7397 openbsd*)
7398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7403 esac
7404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7407 case $host_os in
7408 darwin*)
7409 lock_old_archive_extraction=yes ;;
7411 lock_old_archive_extraction=no ;;
7412 esac
7452 # If no C compiler was specified, use CC.
7453 LTCC=${LTCC-"$CC"}
7455 # If no C compiler flags were specified, use CFLAGS.
7456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7458 # Allow CC to be a program name with arguments.
7459 compiler=$CC
7462 # Check for command to grab the raw symbol name followed by C symbol from nm.
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7464 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7469 # These are sane defaults that work on at least a few old systems.
7470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7472 # Character class describing NM global symbol codes.
7473 symcode='[BCDEGRST]'
7475 # Regexp to match symbols that can be accessed directly from C.
7476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7478 # Define system-specific variables.
7479 case $host_os in
7480 aix*)
7481 symcode='[BCDT]'
7483 cygwin* | mingw* | pw32* | cegcc*)
7484 symcode='[ABCDGISTW]'
7486 hpux*)
7487 if test "$host_cpu" = ia64; then
7488 symcode='[ABCDEGRST]'
7491 irix* | nonstopux*)
7492 symcode='[BCDEGRST]'
7494 osf*)
7495 symcode='[BCDEGQRST]'
7497 solaris*)
7498 symcode='[BDRT]'
7500 sco3.2v5*)
7501 symcode='[DT]'
7503 sysv4.2uw2*)
7504 symcode='[DT]'
7506 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7507 symcode='[ABDT]'
7509 sysv4)
7510 symcode='[DFNSTU]'
7512 esac
7514 # If we're using GNU nm, then use its standard symbol codes.
7515 case `$NM -V 2>&1` in
7516 *GNU* | *'with BFD'*)
7517 symcode='[ABCDGIRSTW]' ;;
7518 esac
7520 # Transform an extracted symbol line into a proper C declaration.
7521 # Some systems (esp. on ia64) link data and code symbols differently,
7522 # so use this general approach.
7523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7525 # Transform an extracted symbol line into symbol name and symbol address
7526 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7527 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'"
7529 # Handle CRLF in mingw tool chain
7530 opt_cr=
7531 case $build_os in
7532 mingw*)
7533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7535 esac
7537 # Try without a prefix underscore, then with it.
7538 for ac_symprfx in "" "_"; do
7540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7541 symxfrm="\\1 $ac_symprfx\\2 \\2"
7543 # Write the raw and C identifiers.
7544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7545 # Fake it for dumpbin and say T for any non-static function
7546 # and D for any global variable.
7547 # Also find C++ and __fastcall symbols from MSVC++,
7548 # which start with @ or ?.
7549 lt_cv_sys_global_symbol_pipe="$AWK '"\
7550 " {last_section=section; section=\$ 3};"\
7551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7552 " \$ 0!~/External *\|/{next};"\
7553 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7554 " {if(hide[section]) next};"\
7555 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7556 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7557 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7558 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7559 " ' prfx=^$ac_symprfx"
7560 else
7561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7564 # Check to see that the pipe works correctly.
7565 pipe_works=no
7567 rm -f conftest*
7568 cat > conftest.$ac_ext <<_LT_EOF
7569 #ifdef __cplusplus
7570 extern "C" {
7571 #endif
7572 char nm_test_var;
7573 void nm_test_func(void);
7574 void nm_test_func(void){}
7575 #ifdef __cplusplus
7577 #endif
7578 int main(){nm_test_var='a';nm_test_func();return(0);}
7579 _LT_EOF
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 # Now try to grab the symbols.
7587 nlist=conftest.nm
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7589 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7590 ac_status=$?
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; } && test -s "$nlist"; then
7593 # Try sorting and uniquifying the output.
7594 if sort "$nlist" | uniq > "$nlist"T; then
7595 mv -f "$nlist"T "$nlist"
7596 else
7597 rm -f "$nlist"T
7600 # Make sure that we snagged all the symbols we need.
7601 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7602 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7603 cat <<_LT_EOF > conftest.$ac_ext
7604 #ifdef __cplusplus
7605 extern "C" {
7606 #endif
7608 _LT_EOF
7609 # Now generate the symbol file.
7610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7612 cat <<_LT_EOF >> conftest.$ac_ext
7614 /* The mapping between symbol names and symbols. */
7615 const struct {
7616 const char *name;
7617 void *address;
7619 lt__PROGRAM__LTX_preloaded_symbols[] =
7621 { "@PROGRAM@", (void *) 0 },
7622 _LT_EOF
7623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7624 cat <<\_LT_EOF >> conftest.$ac_ext
7625 {0, (void *) 0}
7628 /* This works around a problem in FreeBSD linker */
7629 #ifdef FREEBSD_WORKAROUND
7630 static const void *lt_preloaded_setup() {
7631 return lt__PROGRAM__LTX_preloaded_symbols;
7633 #endif
7635 #ifdef __cplusplus
7637 #endif
7638 _LT_EOF
7639 # Now try linking the two files.
7640 mv conftest.$ac_objext conftstm.$ac_objext
7641 lt_save_LIBS="$LIBS"
7642 lt_save_CFLAGS="$CFLAGS"
7643 LIBS="conftstm.$ac_objext"
7644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7646 (eval $ac_link) 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7650 pipe_works=yes
7652 LIBS="$lt_save_LIBS"
7653 CFLAGS="$lt_save_CFLAGS"
7654 else
7655 echo "cannot find nm_test_func in $nlist" >&5
7657 else
7658 echo "cannot find nm_test_var in $nlist" >&5
7660 else
7661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7663 else
7664 echo "$progname: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7667 rm -rf conftest* conftst*
7669 # Do not use the global_symbol_pipe unless it works.
7670 if test "$pipe_works" = yes; then
7671 break
7672 else
7673 lt_cv_sys_global_symbol_pipe=
7675 done
7679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7680 lt_cv_sys_global_symbol_to_cdecl=
7682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7684 $as_echo "failed" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7687 $as_echo "ok" >&6; }
7711 # Check whether --enable-libtool-lock was given.
7712 if test "${enable_libtool_lock+set}" = set; then :
7713 enableval=$enable_libtool_lock;
7716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7718 # Some flags need to be propagated to the compiler or linker for good
7719 # libtool support.
7720 case $host in
7721 ia64-*-hpux*)
7722 # Find out which ABI we are using.
7723 echo 'int i;' > conftest.$ac_ext
7724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7725 (eval $ac_compile) 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }; then
7729 case `/usr/bin/file conftest.$ac_objext` in
7730 *ELF-32*)
7731 HPUX_IA64_MODE="32"
7733 *ELF-64*)
7734 HPUX_IA64_MODE="64"
7736 esac
7738 rm -rf conftest*
7740 *-*-irix6*)
7741 # Find out which ABI we are using.
7742 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744 (eval $ac_compile) 2>&5
7745 ac_status=$?
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 if test "$lt_cv_prog_gnu_ld" = yes; then
7749 case `/usr/bin/file conftest.$ac_objext` in
7750 *32-bit*)
7751 LD="${LD-ld} -melf32bsmip"
7753 *N32*)
7754 LD="${LD-ld} -melf32bmipn32"
7756 *64-bit*)
7757 LD="${LD-ld} -melf64bmip"
7759 esac
7760 else
7761 case `/usr/bin/file conftest.$ac_objext` in
7762 *32-bit*)
7763 LD="${LD-ld} -32"
7765 *N32*)
7766 LD="${LD-ld} -n32"
7768 *64-bit*)
7769 LD="${LD-ld} -64"
7771 esac
7774 rm -rf conftest*
7777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7778 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7779 # Find out which ABI we are using.
7780 echo 'int i;' > conftest.$ac_ext
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7783 ac_status=$?
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 case `/usr/bin/file conftest.o` in
7787 *32-bit*)
7788 case $host in
7789 x86_64-*kfreebsd*-gnu)
7790 LD="${LD-ld} -m elf_i386_fbsd"
7792 x86_64-*linux*)
7793 case `/usr/bin/file conftest.o` in
7794 *x86-64*)
7795 LD="${LD-ld} -m elf32_x86_64"
7798 LD="${LD-ld} -m elf_i386"
7800 esac
7802 powerpc64le-*linux*)
7803 LD="${LD-ld} -m elf32lppclinux"
7805 powerpc64-*linux*)
7806 LD="${LD-ld} -m elf32ppclinux"
7808 s390x-*linux*)
7809 LD="${LD-ld} -m elf_s390"
7811 sparc64-*linux*)
7812 LD="${LD-ld} -m elf32_sparc"
7814 esac
7816 *64-bit*)
7817 case $host in
7818 x86_64-*kfreebsd*-gnu)
7819 LD="${LD-ld} -m elf_x86_64_fbsd"
7821 x86_64-*linux*)
7822 LD="${LD-ld} -m elf_x86_64"
7824 powerpcle-*linux*)
7825 LD="${LD-ld} -m elf64lppc"
7827 powerpc-*linux*)
7828 LD="${LD-ld} -m elf64ppc"
7830 s390*-*linux*|s390*-*tpf*)
7831 LD="${LD-ld} -m elf64_s390"
7833 sparc*-*linux*)
7834 LD="${LD-ld} -m elf64_sparc"
7836 esac
7838 esac
7840 rm -rf conftest*
7843 *-*-sco3.2v5*)
7844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7845 SAVE_CFLAGS="$CFLAGS"
7846 CFLAGS="$CFLAGS -belf"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7849 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 ac_ext=c
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7862 main ()
7866 return 0;
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 lt_cv_cc_needs_belf=yes
7871 else
7872 lt_cv_cc_needs_belf=no
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7884 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7887 CFLAGS="$SAVE_CFLAGS"
7890 sparc*-*solaris*)
7891 # Find out which ABI we are using.
7892 echo 'int i;' > conftest.$ac_ext
7893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7894 (eval $ac_compile) 2>&5
7895 ac_status=$?
7896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; }; then
7898 case `/usr/bin/file conftest.o` in
7899 *64-bit*)
7900 case $lt_cv_prog_gnu_ld in
7901 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7903 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7904 LD="${LD-ld} -64"
7907 esac
7909 esac
7911 rm -rf conftest*
7913 esac
7915 need_locks="$enable_libtool_lock"
7918 case $host_os in
7919 rhapsody* | darwin*)
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$DSYMUTIL"; then
7929 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7942 done
7943 done
7944 IFS=$as_save_IFS
7948 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7949 if test -n "$DSYMUTIL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7951 $as_echo "$DSYMUTIL" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7959 if test -z "$ac_cv_prog_DSYMUTIL"; then
7960 ac_ct_DSYMUTIL=$DSYMUTIL
7961 # Extract the first word of "dsymutil", so it can be a program name with args.
7962 set dummy dsymutil; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_DSYMUTIL"; then
7969 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7989 if test -n "$ac_ct_DSYMUTIL"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7991 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7997 if test "x$ac_ct_DSYMUTIL" = x; then
7998 DSYMUTIL=":"
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 DSYMUTIL=$ac_ct_DSYMUTIL
8008 else
8009 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8012 if test -n "$ac_tool_prefix"; then
8013 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8014 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$NMEDIT"; then
8021 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8030 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8034 done
8035 done
8036 IFS=$as_save_IFS
8040 NMEDIT=$ac_cv_prog_NMEDIT
8041 if test -n "$NMEDIT"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8043 $as_echo "$NMEDIT" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8051 if test -z "$ac_cv_prog_NMEDIT"; then
8052 ac_ct_NMEDIT=$NMEDIT
8053 # Extract the first word of "nmedit", so it can be a program name with args.
8054 set dummy nmedit; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 if test -n "$ac_ct_NMEDIT"; then
8061 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8080 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8081 if test -n "$ac_ct_NMEDIT"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8083 $as_echo "$ac_ct_NMEDIT" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8089 if test "x$ac_ct_NMEDIT" = x; then
8090 NMEDIT=":"
8091 else
8092 case $cross_compiling:$ac_tool_warned in
8093 yes:)
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8096 ac_tool_warned=yes ;;
8097 esac
8098 NMEDIT=$ac_ct_NMEDIT
8100 else
8101 NMEDIT="$ac_cv_prog_NMEDIT"
8104 if test -n "$ac_tool_prefix"; then
8105 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8106 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_LIPO+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$LIPO"; then
8113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8126 done
8127 done
8128 IFS=$as_save_IFS
8132 LIPO=$ac_cv_prog_LIPO
8133 if test -n "$LIPO"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8135 $as_echo "$LIPO" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8143 if test -z "$ac_cv_prog_LIPO"; then
8144 ac_ct_LIPO=$LIPO
8145 # Extract the first word of "lipo", so it can be a program name with args.
8146 set dummy lipo; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$ac_ct_LIPO"; then
8153 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_ac_ct_LIPO="lipo"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8173 if test -n "$ac_ct_LIPO"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8175 $as_echo "$ac_ct_LIPO" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8181 if test "x$ac_ct_LIPO" = x; then
8182 LIPO=":"
8183 else
8184 case $cross_compiling:$ac_tool_warned in
8185 yes:)
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8188 ac_tool_warned=yes ;;
8189 esac
8190 LIPO=$ac_ct_LIPO
8192 else
8193 LIPO="$ac_cv_prog_LIPO"
8196 if test -n "$ac_tool_prefix"; then
8197 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8198 set dummy ${ac_tool_prefix}otool; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$OTOOL"; then
8205 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8224 OTOOL=$ac_cv_prog_OTOOL
8225 if test -n "$OTOOL"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8227 $as_echo "$OTOOL" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8235 if test -z "$ac_cv_prog_OTOOL"; then
8236 ac_ct_OTOOL=$OTOOL
8237 # Extract the first word of "otool", so it can be a program name with args.
8238 set dummy otool; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$ac_ct_OTOOL"; then
8245 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_ac_ct_OTOOL="otool"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8264 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8265 if test -n "$ac_ct_OTOOL"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8267 $as_echo "$ac_ct_OTOOL" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8273 if test "x$ac_ct_OTOOL" = x; then
8274 OTOOL=":"
8275 else
8276 case $cross_compiling:$ac_tool_warned in
8277 yes:)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280 ac_tool_warned=yes ;;
8281 esac
8282 OTOOL=$ac_ct_OTOOL
8284 else
8285 OTOOL="$ac_cv_prog_OTOOL"
8288 if test -n "$ac_tool_prefix"; then
8289 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8290 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 if test -n "$OTOOL64"; then
8297 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8316 OTOOL64=$ac_cv_prog_OTOOL64
8317 if test -n "$OTOOL64"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8319 $as_echo "$OTOOL64" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8327 if test -z "$ac_cv_prog_OTOOL64"; then
8328 ac_ct_OTOOL64=$OTOOL64
8329 # Extract the first word of "otool64", so it can be a program name with args.
8330 set dummy otool64; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 if test -n "$ac_ct_OTOOL64"; then
8337 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_prog_ac_ct_OTOOL64="otool64"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8350 done
8351 done
8352 IFS=$as_save_IFS
8356 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8357 if test -n "$ac_ct_OTOOL64"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8359 $as_echo "$ac_ct_OTOOL64" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8365 if test "x$ac_ct_OTOOL64" = x; then
8366 OTOOL64=":"
8367 else
8368 case $cross_compiling:$ac_tool_warned in
8369 yes:)
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372 ac_tool_warned=yes ;;
8373 esac
8374 OTOOL64=$ac_ct_OTOOL64
8376 else
8377 OTOOL64="$ac_cv_prog_OTOOL64"
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8407 $as_echo_n "checking for -single_module linker flag... " >&6; }
8408 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 lt_cv_apple_cc_single_mod=no
8412 if test -z "${LT_MULTI_MODULE}"; then
8413 # By default we will add the -single_module flag. You can override
8414 # by either setting the environment variable LT_MULTI_MODULE
8415 # non-empty at configure time, or by adding -multi_module to the
8416 # link flags.
8417 rm -rf libconftest.dylib*
8418 echo "int foo(void){return 1;}" > conftest.c
8419 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8420 -dynamiclib -Wl,-single_module conftest.c" >&5
8421 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8422 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8423 _lt_result=$?
8424 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8425 lt_cv_apple_cc_single_mod=yes
8426 else
8427 cat conftest.err >&5
8429 rm -rf libconftest.dylib*
8430 rm -f conftest.*
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8434 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8436 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8437 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 lt_cv_ld_exported_symbols_list=no
8441 save_LDFLAGS=$LDFLAGS
8442 echo "_main" > conftest.sym
8443 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8448 main ()
8452 return 0;
8454 _ACEOF
8455 if ac_fn_c_try_link "$LINENO"; then :
8456 lt_cv_ld_exported_symbols_list=yes
8457 else
8458 lt_cv_ld_exported_symbols_list=no
8460 rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462 LDFLAGS="$save_LDFLAGS"
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8466 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8468 $as_echo_n "checking for -force_load linker flag... " >&6; }
8469 if test "${lt_cv_ld_force_load+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 lt_cv_ld_force_load=no
8473 cat > conftest.c << _LT_EOF
8474 int forced_loaded() { return 2;}
8475 _LT_EOF
8476 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8477 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8478 echo "$AR cru libconftest.a conftest.o" >&5
8479 $AR cru libconftest.a conftest.o 2>&5
8480 cat > conftest.c << _LT_EOF
8481 int main() { return 0;}
8482 _LT_EOF
8483 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8484 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8485 _lt_result=$?
8486 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8487 lt_cv_ld_force_load=yes
8488 else
8489 cat conftest.err >&5
8491 rm -f conftest.err libconftest.a conftest conftest.c
8492 rm -rf conftest.dSYM
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8496 $as_echo "$lt_cv_ld_force_load" >&6; }
8497 case $host_os in
8498 rhapsody* | darwin1.[012])
8499 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8500 darwin1.*)
8501 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8502 darwin*) # darwin 5.x on
8503 # if running on 10.5 or later, the deployment target defaults
8504 # to the OS version, if on x86, and 10.4, the deployment
8505 # target defaults to 10.4. Don't you love it?
8506 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8507 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8509 10.[012]*)
8510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8511 10.*)
8512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8513 esac
8515 esac
8516 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8517 _lt_dar_single_mod='$single_module'
8519 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8520 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8521 else
8522 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8524 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8525 _lt_dsymutil='~$DSYMUTIL $lib || :'
8526 else
8527 _lt_dsymutil=
8530 esac
8532 for ac_header in dlfcn.h
8533 do :
8534 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8536 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_DLFCN_H 1
8539 _ACEOF
8543 done
8550 # Set options
8555 enable_win32_dll=no
8558 # Check whether --enable-shared was given.
8559 if test "${enable_shared+set}" = set; then :
8560 enableval=$enable_shared; p=${PACKAGE-default}
8561 case $enableval in
8562 yes) enable_shared=yes ;;
8563 no) enable_shared=no ;;
8565 enable_shared=no
8566 # Look at the argument we got. We use all the common list separators.
8567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8568 for pkg in $enableval; do
8569 IFS="$lt_save_ifs"
8570 if test "X$pkg" = "X$p"; then
8571 enable_shared=yes
8573 done
8574 IFS="$lt_save_ifs"
8576 esac
8577 else
8578 enable_shared=yes
8589 # Check whether --enable-static was given.
8590 if test "${enable_static+set}" = set; then :
8591 enableval=$enable_static; p=${PACKAGE-default}
8592 case $enableval in
8593 yes) enable_static=yes ;;
8594 no) enable_static=no ;;
8596 enable_static=no
8597 # Look at the argument we got. We use all the common list separators.
8598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8599 for pkg in $enableval; do
8600 IFS="$lt_save_ifs"
8601 if test "X$pkg" = "X$p"; then
8602 enable_static=yes
8604 done
8605 IFS="$lt_save_ifs"
8607 esac
8608 else
8609 enable_static=yes
8621 # Check whether --with-pic was given.
8622 if test "${with_pic+set}" = set; then :
8623 withval=$with_pic; pic_mode="$withval"
8624 else
8625 pic_mode=default
8629 test -z "$pic_mode" && pic_mode=default
8637 # Check whether --enable-fast-install was given.
8638 if test "${enable_fast_install+set}" = set; then :
8639 enableval=$enable_fast_install; p=${PACKAGE-default}
8640 case $enableval in
8641 yes) enable_fast_install=yes ;;
8642 no) enable_fast_install=no ;;
8644 enable_fast_install=no
8645 # Look at the argument we got. We use all the common list separators.
8646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8647 for pkg in $enableval; do
8648 IFS="$lt_save_ifs"
8649 if test "X$pkg" = "X$p"; then
8650 enable_fast_install=yes
8652 done
8653 IFS="$lt_save_ifs"
8655 esac
8656 else
8657 enable_fast_install=yes
8670 # This can be used to rebuild libtool when needed
8671 LIBTOOL_DEPS="$ltmain"
8673 # Always use our own libtool.
8674 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8701 test -z "$LN_S" && LN_S="ln -s"
8716 if test -n "${ZSH_VERSION+set}" ; then
8717 setopt NO_GLOB_SUBST
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8721 $as_echo_n "checking for objdir... " >&6; }
8722 if test "${lt_cv_objdir+set}" = set; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 rm -f .libs 2>/dev/null
8726 mkdir .libs 2>/dev/null
8727 if test -d .libs; then
8728 lt_cv_objdir=.libs
8729 else
8730 # MS-DOS does not allow filenames that begin with a dot.
8731 lt_cv_objdir=_libs
8733 rmdir .libs 2>/dev/null
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8736 $as_echo "$lt_cv_objdir" >&6; }
8737 objdir=$lt_cv_objdir
8743 cat >>confdefs.h <<_ACEOF
8744 #define LT_OBJDIR "$lt_cv_objdir/"
8745 _ACEOF
8750 case $host_os in
8751 aix3*)
8752 # AIX sometimes has problems with the GCC collect2 program. For some
8753 # reason, if we set the COLLECT_NAMES environment variable, the problems
8754 # vanish in a puff of smoke.
8755 if test "X${COLLECT_NAMES+set}" != Xset; then
8756 COLLECT_NAMES=
8757 export COLLECT_NAMES
8760 esac
8762 # Global variables:
8763 ofile=libtool
8764 can_build_shared=yes
8766 # All known linkers require a `.a' archive for static linking (except MSVC,
8767 # which needs '.lib').
8768 libext=a
8770 with_gnu_ld="$lt_cv_prog_gnu_ld"
8772 old_CC="$CC"
8773 old_CFLAGS="$CFLAGS"
8775 # Set sane defaults for various variables
8776 test -z "$CC" && CC=cc
8777 test -z "$LTCC" && LTCC=$CC
8778 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8779 test -z "$LD" && LD=ld
8780 test -z "$ac_objext" && ac_objext=o
8782 for cc_temp in $compiler""; do
8783 case $cc_temp in
8784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8786 \-*) ;;
8787 *) break;;
8788 esac
8789 done
8790 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8793 # Only perform the check for file, if the check method requires it
8794 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8795 case $deplibs_check_method in
8796 file_magic*)
8797 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8799 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8800 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 case $MAGIC_CMD in
8804 [\\/*] | ?:[\\/]*)
8805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8808 lt_save_MAGIC_CMD="$MAGIC_CMD"
8809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8811 for ac_dir in $ac_dummy; do
8812 IFS="$lt_save_ifs"
8813 test -z "$ac_dir" && ac_dir=.
8814 if test -f $ac_dir/${ac_tool_prefix}file; then
8815 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8816 if test -n "$file_magic_test_file"; then
8817 case $deplibs_check_method in
8818 "file_magic "*)
8819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8822 $EGREP "$file_magic_regex" > /dev/null; then
8824 else
8825 cat <<_LT_EOF 1>&2
8827 *** Warning: the command libtool uses to detect shared libraries,
8828 *** $file_magic_cmd, produces output that libtool cannot recognize.
8829 *** The result is that libtool may fail to recognize shared libraries
8830 *** as such. This will affect the creation of libtool libraries that
8831 *** depend on shared libraries, but programs linked with such libtool
8832 *** libraries will work regardless of this problem. Nevertheless, you
8833 *** may want to report the problem to your system manager and/or to
8834 *** bug-libtool@gnu.org
8836 _LT_EOF
8837 fi ;;
8838 esac
8840 break
8842 done
8843 IFS="$lt_save_ifs"
8844 MAGIC_CMD="$lt_save_MAGIC_CMD"
8846 esac
8849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8850 if test -n "$MAGIC_CMD"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8852 $as_echo "$MAGIC_CMD" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8862 if test -z "$lt_cv_path_MAGIC_CMD"; then
8863 if test -n "$ac_tool_prefix"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8865 $as_echo_n "checking for file... " >&6; }
8866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 case $MAGIC_CMD in
8870 [\\/*] | ?:[\\/]*)
8871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8874 lt_save_MAGIC_CMD="$MAGIC_CMD"
8875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8877 for ac_dir in $ac_dummy; do
8878 IFS="$lt_save_ifs"
8879 test -z "$ac_dir" && ac_dir=.
8880 if test -f $ac_dir/file; then
8881 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8882 if test -n "$file_magic_test_file"; then
8883 case $deplibs_check_method in
8884 "file_magic "*)
8885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8888 $EGREP "$file_magic_regex" > /dev/null; then
8890 else
8891 cat <<_LT_EOF 1>&2
8893 *** Warning: the command libtool uses to detect shared libraries,
8894 *** $file_magic_cmd, produces output that libtool cannot recognize.
8895 *** The result is that libtool may fail to recognize shared libraries
8896 *** as such. This will affect the creation of libtool libraries that
8897 *** depend on shared libraries, but programs linked with such libtool
8898 *** libraries will work regardless of this problem. Nevertheless, you
8899 *** may want to report the problem to your system manager and/or to
8900 *** bug-libtool@gnu.org
8902 _LT_EOF
8903 fi ;;
8904 esac
8906 break
8908 done
8909 IFS="$lt_save_ifs"
8910 MAGIC_CMD="$lt_save_MAGIC_CMD"
8912 esac
8915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8916 if test -n "$MAGIC_CMD"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8918 $as_echo "$MAGIC_CMD" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8925 else
8926 MAGIC_CMD=:
8932 esac
8934 # Use C for the default configuration in the libtool script
8936 lt_save_CC="$CC"
8937 ac_ext=c
8938 ac_cpp='$CPP $CPPFLAGS'
8939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944 # Source file extension for C test sources.
8945 ac_ext=c
8947 # Object file extension for compiled C test sources.
8948 objext=o
8949 objext=$objext
8951 # Code to be used in simple compile tests
8952 lt_simple_compile_test_code="int some_variable = 0;"
8954 # Code to be used in simple link tests
8955 lt_simple_link_test_code='int main(){return(0);}'
8963 # If no C compiler was specified, use CC.
8964 LTCC=${LTCC-"$CC"}
8966 # If no C compiler flags were specified, use CFLAGS.
8967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8969 # Allow CC to be a program name with arguments.
8970 compiler=$CC
8972 # Save the default compiler, since it gets overwritten when the other
8973 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8974 compiler_DEFAULT=$CC
8976 # save warnings/boilerplate of simple test code
8977 ac_outfile=conftest.$ac_objext
8978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8980 _lt_compiler_boilerplate=`cat conftest.err`
8981 $RM conftest*
8983 ac_outfile=conftest.$ac_objext
8984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8986 _lt_linker_boilerplate=`cat conftest.err`
8987 $RM -r conftest*
8990 ## CAVEAT EMPTOR:
8991 ## There is no encapsulation within the following macros, do not change
8992 ## the running order or otherwise move them around unless you know exactly
8993 ## what you are doing...
8994 if test -n "$compiler"; then
8996 lt_prog_compiler_no_builtin_flag=
8998 if test "$GCC" = yes; then
8999 case $cc_basename in
9000 nvcc*)
9001 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9003 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9004 esac
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9007 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9008 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 lt_cv_prog_compiler_rtti_exceptions=no
9012 ac_outfile=conftest.$ac_objext
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014 lt_compiler_flag="-fno-rtti -fno-exceptions"
9015 # Insert the option either (1) after the last *FLAGS variable, or
9016 # (2) before a word containing "conftest.", or (3) at the end.
9017 # Note that $ac_compile itself does not contain backslashes and begins
9018 # with a dollar sign (not a hyphen), so the echo should work correctly.
9019 # The option is referenced via a variable to avoid confusing sed.
9020 lt_compile=`echo "$ac_compile" | $SED \
9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023 -e 's:$: $lt_compiler_flag:'`
9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9025 (eval "$lt_compile" 2>conftest.err)
9026 ac_status=$?
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 if (exit $ac_status) && test -s "$ac_outfile"; then
9030 # The compiler can only warn and ignore the option if not recognized
9031 # So say no if there are warnings other than the usual output.
9032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9035 lt_cv_prog_compiler_rtti_exceptions=yes
9038 $RM conftest*
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9042 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9044 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9045 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9046 else
9057 lt_prog_compiler_wl=
9058 lt_prog_compiler_pic=
9059 lt_prog_compiler_static=
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9064 if test "$GCC" = yes; then
9065 lt_prog_compiler_wl='-Wl,'
9066 lt_prog_compiler_static='-static'
9068 case $host_os in
9069 aix*)
9070 # All AIX code is PIC.
9071 if test "$host_cpu" = ia64; then
9072 # AIX 5 now supports IA64 processor
9073 lt_prog_compiler_static='-Bstatic'
9075 lt_prog_compiler_pic='-fPIC'
9078 amigaos*)
9079 case $host_cpu in
9080 powerpc)
9081 # see comment about AmigaOS4 .so support
9082 lt_prog_compiler_pic='-fPIC'
9084 m68k)
9085 # FIXME: we need at least 68020 code to build shared libraries, but
9086 # adding the `-m68020' flag to GCC prevents building anything better,
9087 # like `-m68040'.
9088 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9090 esac
9093 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9094 # PIC is the default for these OSes.
9097 mingw* | cygwin* | pw32* | os2* | cegcc*)
9098 # This hack is so that the source file can tell whether it is being
9099 # built for inclusion in a dll (and should export symbols for example).
9100 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9101 # (--disable-auto-import) libraries
9102 lt_prog_compiler_pic='-DDLL_EXPORT'
9105 darwin* | rhapsody*)
9106 # PIC is the default on this platform
9107 # Common symbols not allowed in MH_DYLIB files
9108 lt_prog_compiler_pic='-fno-common'
9111 haiku*)
9112 # PIC is the default for Haiku.
9113 # The "-static" flag exists, but is broken.
9114 lt_prog_compiler_static=
9117 hpux*)
9118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9120 # sets the default TLS model and affects inlining.
9121 case $host_cpu in
9122 hppa*64*)
9123 # +Z the default
9126 lt_prog_compiler_pic='-fPIC'
9128 esac
9131 interix[3-9]*)
9132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9133 # Instead, we relocate shared libraries at runtime.
9136 msdosdjgpp*)
9137 # Just because we use GCC doesn't mean we suddenly get shared libraries
9138 # on systems that don't support them.
9139 lt_prog_compiler_can_build_shared=no
9140 enable_shared=no
9143 *nto* | *qnx*)
9144 # QNX uses GNU C++, but need to define -shared option too, otherwise
9145 # it will coredump.
9146 lt_prog_compiler_pic='-fPIC -shared'
9149 sysv4*MP*)
9150 if test -d /usr/nec; then
9151 lt_prog_compiler_pic=-Kconform_pic
9156 lt_prog_compiler_pic='-fPIC'
9158 esac
9160 case $cc_basename in
9161 nvcc*) # Cuda Compiler Driver 2.2
9162 lt_prog_compiler_wl='-Xlinker '
9163 lt_prog_compiler_pic='-Xcompiler -fPIC'
9165 esac
9166 else
9167 # PORTME Check for flag to pass linker flags through the system compiler.
9168 case $host_os in
9169 aix*)
9170 lt_prog_compiler_wl='-Wl,'
9171 if test "$host_cpu" = ia64; then
9172 # AIX 5 now supports IA64 processor
9173 lt_prog_compiler_static='-Bstatic'
9174 else
9175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9179 mingw* | cygwin* | pw32* | os2* | cegcc*)
9180 # This hack is so that the source file can tell whether it is being
9181 # built for inclusion in a dll (and should export symbols for example).
9182 lt_prog_compiler_pic='-DDLL_EXPORT'
9185 hpux9* | hpux10* | hpux11*)
9186 lt_prog_compiler_wl='-Wl,'
9187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9188 # not for PA HP-UX.
9189 case $host_cpu in
9190 hppa*64*|ia64*)
9191 # +Z the default
9194 lt_prog_compiler_pic='+Z'
9196 esac
9197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9198 lt_prog_compiler_static='${wl}-a ${wl}archive'
9201 irix5* | irix6* | nonstopux*)
9202 lt_prog_compiler_wl='-Wl,'
9203 # PIC (with -KPIC) is the default.
9204 lt_prog_compiler_static='-non_shared'
9207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9208 case $cc_basename in
9209 # old Intel for x86_64 which still supported -KPIC.
9210 ecc*)
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-KPIC'
9213 lt_prog_compiler_static='-static'
9215 # icc used to be incompatible with GCC.
9216 # ICC 10 doesn't accept -KPIC any more.
9217 icc* | ifort*)
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-fPIC'
9220 lt_prog_compiler_static='-static'
9222 # Lahey Fortran 8.1.
9223 lf95*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='--shared'
9226 lt_prog_compiler_static='--static'
9228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9229 # Portland Group compilers (*not* the Pentium gcc compiler,
9230 # which looks to be a dead project)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-fpic'
9233 lt_prog_compiler_static='-Bstatic'
9235 ccc*)
9236 lt_prog_compiler_wl='-Wl,'
9237 # All Alpha code is PIC.
9238 lt_prog_compiler_static='-non_shared'
9240 xl* | bgxl* | bgf* | mpixl*)
9241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9242 lt_prog_compiler_wl='-Wl,'
9243 lt_prog_compiler_pic='-qpic'
9244 lt_prog_compiler_static='-qstaticlink'
9247 case `$CC -V 2>&1 | sed 5q` in
9248 *Sun\ F* | *Sun*Fortran*)
9249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9250 lt_prog_compiler_pic='-KPIC'
9251 lt_prog_compiler_static='-Bstatic'
9252 lt_prog_compiler_wl=''
9254 *Sun\ C*)
9255 # Sun C 5.9
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-Bstatic'
9258 lt_prog_compiler_wl='-Wl,'
9260 esac
9262 esac
9265 newsos6)
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-Bstatic'
9270 *nto* | *qnx*)
9271 # QNX uses GNU C++, but need to define -shared option too, otherwise
9272 # it will coredump.
9273 lt_prog_compiler_pic='-fPIC -shared'
9276 osf3* | osf4* | osf5*)
9277 lt_prog_compiler_wl='-Wl,'
9278 # All OSF/1 code is PIC.
9279 lt_prog_compiler_static='-non_shared'
9282 rdos*)
9283 lt_prog_compiler_static='-non_shared'
9286 solaris*)
9287 lt_prog_compiler_pic='-KPIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 case $cc_basename in
9290 f77* | f90* | f95*)
9291 lt_prog_compiler_wl='-Qoption ld ';;
9293 lt_prog_compiler_wl='-Wl,';;
9294 esac
9297 sunos4*)
9298 lt_prog_compiler_wl='-Qoption ld '
9299 lt_prog_compiler_pic='-PIC'
9300 lt_prog_compiler_static='-Bstatic'
9303 sysv4 | sysv4.2uw2* | sysv4.3*)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9309 sysv4*MP*)
9310 if test -d /usr/nec ;then
9311 lt_prog_compiler_pic='-Kconform_pic'
9312 lt_prog_compiler_static='-Bstatic'
9316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9317 lt_prog_compiler_wl='-Wl,'
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9322 unicos*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_can_build_shared=no
9327 uts4*)
9328 lt_prog_compiler_pic='-pic'
9329 lt_prog_compiler_static='-Bstatic'
9333 lt_prog_compiler_can_build_shared=no
9335 esac
9338 case $host_os in
9339 # For platforms which do not support PIC, -DPIC is meaningless:
9340 *djgpp*)
9341 lt_prog_compiler_pic=
9344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9346 esac
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9348 $as_echo "$lt_prog_compiler_pic" >&6; }
9356 # Check to make sure the PIC flag actually works.
9358 if test -n "$lt_prog_compiler_pic"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9360 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9361 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 lt_cv_prog_compiler_pic_works=no
9365 ac_outfile=conftest.$ac_objext
9366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9367 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9368 # Insert the option either (1) after the last *FLAGS variable, or
9369 # (2) before a word containing "conftest.", or (3) at the end.
9370 # Note that $ac_compile itself does not contain backslashes and begins
9371 # with a dollar sign (not a hyphen), so the echo should work correctly.
9372 # The option is referenced via a variable to avoid confusing sed.
9373 lt_compile=`echo "$ac_compile" | $SED \
9374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9376 -e 's:$: $lt_compiler_flag:'`
9377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9378 (eval "$lt_compile" 2>conftest.err)
9379 ac_status=$?
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 if (exit $ac_status) && test -s "$ac_outfile"; then
9383 # The compiler can only warn and ignore the option if not recognized
9384 # So say no if there are warnings other than the usual output.
9385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9388 lt_cv_prog_compiler_pic_works=yes
9391 $RM conftest*
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9395 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9397 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9398 case $lt_prog_compiler_pic in
9399 "" | " "*) ;;
9400 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9401 esac
9402 else
9403 lt_prog_compiler_pic=
9404 lt_prog_compiler_can_build_shared=no
9415 # Check to make sure the static flag actually works.
9417 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9419 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9420 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 lt_cv_prog_compiler_static_works=no
9424 save_LDFLAGS="$LDFLAGS"
9425 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9428 # The linker can only warn and ignore the option if not recognized
9429 # So say no if there are warnings
9430 if test -s conftest.err; then
9431 # Append any errors to the config.log.
9432 cat conftest.err 1>&5
9433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435 if diff conftest.exp conftest.er2 >/dev/null; then
9436 lt_cv_prog_compiler_static_works=yes
9438 else
9439 lt_cv_prog_compiler_static_works=yes
9442 $RM -r conftest*
9443 LDFLAGS="$save_LDFLAGS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9447 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9449 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9451 else
9452 lt_prog_compiler_static=
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9463 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 lt_cv_prog_compiler_c_o=no
9467 $RM -r conftest 2>/dev/null
9468 mkdir conftest
9469 cd conftest
9470 mkdir out
9471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9473 lt_compiler_flag="-o out/conftest2.$ac_objext"
9474 # Insert the option either (1) after the last *FLAGS variable, or
9475 # (2) before a word containing "conftest.", or (3) at the end.
9476 # Note that $ac_compile itself does not contain backslashes and begins
9477 # with a dollar sign (not a hyphen), so the echo should work correctly.
9478 lt_compile=`echo "$ac_compile" | $SED \
9479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9481 -e 's:$: $lt_compiler_flag:'`
9482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9483 (eval "$lt_compile" 2>out/conftest.err)
9484 ac_status=$?
9485 cat out/conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9488 then
9489 # The compiler can only warn and ignore the option if not recognized
9490 # So say no if there are warnings
9491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9494 lt_cv_prog_compiler_c_o=yes
9497 chmod u+w . 2>&5
9498 $RM conftest*
9499 # SGI C++ compiler will create directory out/ii_files/ for
9500 # template instantiation
9501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9502 $RM out/* && rmdir out
9503 cd ..
9504 $RM -r conftest
9505 $RM conftest*
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9509 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9518 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 lt_cv_prog_compiler_c_o=no
9522 $RM -r conftest 2>/dev/null
9523 mkdir conftest
9524 cd conftest
9525 mkdir out
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528 lt_compiler_flag="-o out/conftest2.$ac_objext"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 lt_compile=`echo "$ac_compile" | $SED \
9534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536 -e 's:$: $lt_compiler_flag:'`
9537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9538 (eval "$lt_compile" 2>out/conftest.err)
9539 ac_status=$?
9540 cat out/conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543 then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_c_o=yes
9552 chmod u+w . 2>&5
9553 $RM conftest*
9554 # SGI C++ compiler will create directory out/ii_files/ for
9555 # template instantiation
9556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557 $RM out/* && rmdir out
9558 cd ..
9559 $RM -r conftest
9560 $RM conftest*
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9569 hard_links="nottested"
9570 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9571 # do not overwrite the value of need_locks provided by the user
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9573 $as_echo_n "checking if we can lock with hard links... " >&6; }
9574 hard_links=yes
9575 $RM conftest*
9576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9577 touch conftest.a
9578 ln conftest.a conftest.b 2>&5 || hard_links=no
9579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9581 $as_echo "$hard_links" >&6; }
9582 if test "$hard_links" = no; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9584 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9585 need_locks=warn
9587 else
9588 need_locks=no
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9599 runpath_var=
9600 allow_undefined_flag=
9601 always_export_symbols=no
9602 archive_cmds=
9603 archive_expsym_cmds=
9604 compiler_needs_object=no
9605 enable_shared_with_static_runtimes=no
9606 export_dynamic_flag_spec=
9607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9608 hardcode_automatic=no
9609 hardcode_direct=no
9610 hardcode_direct_absolute=no
9611 hardcode_libdir_flag_spec=
9612 hardcode_libdir_flag_spec_ld=
9613 hardcode_libdir_separator=
9614 hardcode_minus_L=no
9615 hardcode_shlibpath_var=unsupported
9616 inherit_rpath=no
9617 link_all_deplibs=unknown
9618 module_cmds=
9619 module_expsym_cmds=
9620 old_archive_from_new_cmds=
9621 old_archive_from_expsyms_cmds=
9622 thread_safe_flag_spec=
9623 whole_archive_flag_spec=
9624 # include_expsyms should be a list of space-separated symbols to be *always*
9625 # included in the symbol list
9626 include_expsyms=
9627 # exclude_expsyms can be an extended regexp of symbols to exclude
9628 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9629 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9630 # as well as any symbol that contains `d'.
9631 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9633 # platforms (ab)use it in PIC code, but their linkers get confused if
9634 # the symbol is explicitly referenced. Since portable code cannot
9635 # rely on this symbol name, it's probably fine to never include it in
9636 # preloaded symbol tables.
9637 # Exclude shared library initialization/finalization symbols.
9638 extract_expsyms_cmds=
9640 case $host_os in
9641 cygwin* | mingw* | pw32* | cegcc*)
9642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9643 # When not using gcc, we currently assume that we are using
9644 # Microsoft Visual C++.
9645 if test "$GCC" != yes; then
9646 with_gnu_ld=no
9649 interix*)
9650 # we just hope/assume this is gcc and not c89 (= MSVC++)
9651 with_gnu_ld=yes
9653 openbsd*)
9654 with_gnu_ld=no
9656 esac
9658 ld_shlibs=yes
9660 # On some targets, GNU ld is compatible enough with the native linker
9661 # that we're better off using the native interface for both.
9662 lt_use_gnu_ld_interface=no
9663 if test "$with_gnu_ld" = yes; then
9664 case $host_os in
9665 aix*)
9666 # The AIX port of GNU ld has always aspired to compatibility
9667 # with the native linker. However, as the warning in the GNU ld
9668 # block says, versions before 2.19.5* couldn't really create working
9669 # shared libraries, regardless of the interface used.
9670 case `$LD -v 2>&1` in
9671 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9672 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9673 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9675 lt_use_gnu_ld_interface=yes
9677 esac
9680 lt_use_gnu_ld_interface=yes
9682 esac
9685 if test "$lt_use_gnu_ld_interface" = yes; then
9686 # If archive_cmds runs LD, not CC, wlarc should be empty
9687 wlarc='${wl}'
9689 # Set some defaults for GNU ld with shared library support. These
9690 # are reset later if shared libraries are not supported. Putting them
9691 # here allows them to be overridden if necessary.
9692 runpath_var=LD_RUN_PATH
9693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694 export_dynamic_flag_spec='${wl}--export-dynamic'
9695 # ancient GNU ld didn't support --whole-archive et. al.
9696 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9697 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9698 else
9699 whole_archive_flag_spec=
9701 supports_anon_versioning=no
9702 case `$LD -v 2>&1` in
9703 *GNU\ gold*) supports_anon_versioning=yes ;;
9704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9707 *\ 2.11.*) ;; # other 2.11 versions
9708 *) supports_anon_versioning=yes ;;
9709 esac
9711 # See if GNU ld supports shared libraries.
9712 case $host_os in
9713 aix[3-9]*)
9714 # On AIX/PPC, the GNU linker is very broken
9715 if test "$host_cpu" != ia64; then
9716 ld_shlibs=no
9717 cat <<_LT_EOF 1>&2
9719 *** Warning: the GNU linker, at least up to release 2.19, is reported
9720 *** to be unable to reliably create shared libraries on AIX.
9721 *** Therefore, libtool is disabling shared libraries support. If you
9722 *** really care for shared libraries, you may want to install binutils
9723 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9724 *** You will then need to restart the configuration process.
9726 _LT_EOF
9730 amigaos*)
9731 case $host_cpu in
9732 powerpc)
9733 # see comment about AmigaOS4 .so support
9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 archive_expsym_cmds=''
9737 m68k)
9738 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)'
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_minus_L=yes
9742 esac
9745 beos*)
9746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747 allow_undefined_flag=unsupported
9748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9749 # support --undefined. This deserves some investigation. FIXME
9750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 else
9752 ld_shlibs=no
9756 cygwin* | mingw* | pw32* | cegcc*)
9757 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9758 # as there is no search path for DLLs.
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 export_dynamic_flag_spec='${wl}--export-all-symbols'
9761 allow_undefined_flag=unsupported
9762 always_export_symbols=no
9763 enable_shared_with_static_runtimes=yes
9764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9768 # If the export-symbols file already is a .def file (1st line
9769 # is EXPORTS), use it as is; otherwise, prepend...
9770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9771 cp $export_symbols $output_objdir/$soname.def;
9772 else
9773 echo EXPORTS > $output_objdir/$soname.def;
9774 cat $export_symbols >> $output_objdir/$soname.def;
9776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9777 else
9778 ld_shlibs=no
9782 haiku*)
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 link_all_deplibs=yes
9787 interix[3-9]*)
9788 hardcode_direct=no
9789 hardcode_shlibpath_var=no
9790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9791 export_dynamic_flag_spec='${wl}-E'
9792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9793 # Instead, shared libraries are loaded at an image base (0x10000000 by
9794 # default) and relocated if they conflict, which is a slow very memory
9795 # consuming and fragmenting process. To avoid this, we pick a random,
9796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9799 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'
9802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9803 tmp_diet=no
9804 if test "$host_os" = linux-dietlibc; then
9805 case $cc_basename in
9806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9807 esac
9809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9810 && test "$tmp_diet" = no
9811 then
9812 tmp_addflag=
9813 tmp_sharedflag='-shared'
9814 case $cc_basename,$host_cpu in
9815 pgcc*) # Portland Group C compiler
9816 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'
9817 tmp_addflag=' $pic_flag'
9819 pgf77* | pgf90* | pgf95* | pgfortran*)
9820 # Portland Group f77 and f90 compilers
9821 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'
9822 tmp_addflag=' $pic_flag -Mnomain' ;;
9823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9824 tmp_addflag=' -i_dynamic' ;;
9825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9826 tmp_addflag=' -i_dynamic -nofor_main' ;;
9827 ifc* | ifort*) # Intel Fortran compiler
9828 tmp_addflag=' -nofor_main' ;;
9829 lf95*) # Lahey Fortran 8.1
9830 whole_archive_flag_spec=
9831 tmp_sharedflag='--shared' ;;
9832 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9833 tmp_sharedflag='-qmkshrobj'
9834 tmp_addflag= ;;
9835 nvcc*) # Cuda Compiler Driver 2.2
9836 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'
9837 compiler_needs_object=yes
9839 esac
9840 case `$CC -V 2>&1 | sed 5q` in
9841 *Sun\ C*) # Sun C 5.9
9842 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'
9843 compiler_needs_object=yes
9844 tmp_sharedflag='-G' ;;
9845 *Sun\ F*) # Sun Fortran 8.3
9846 tmp_sharedflag='-G' ;;
9847 esac
9848 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850 if test "x$supports_anon_versioning" = xyes; then
9851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9853 echo "local: *; };" >> $output_objdir/$libname.ver~
9854 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9857 case $cc_basename in
9858 xlf* | bgf* | bgxlf* | mpixlf*)
9859 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9860 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9861 hardcode_libdir_flag_spec=
9862 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9863 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9864 if test "x$supports_anon_versioning" = xyes; then
9865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9867 echo "local: *; };" >> $output_objdir/$libname.ver~
9868 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9871 esac
9872 else
9873 ld_shlibs=no
9877 netbsd*)
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9880 wlarc=
9881 else
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887 solaris*)
9888 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9893 *** create shared libraries on Solaris systems. Therefore, libtool
9894 *** is disabling shared libraries support. We urge you to upgrade GNU
9895 *** binutils to release 2.9.1 or newer. Another option is to modify
9896 *** your PATH or compiler configuration so that the native linker is
9897 *** used, and then restart.
9899 _LT_EOF
9900 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9903 else
9904 ld_shlibs=no
9908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9909 case `$LD -v 2>&1` in
9910 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9911 ld_shlibs=no
9912 cat <<_LT_EOF 1>&2
9914 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9915 *** reliably create shared libraries on SCO systems. Therefore, libtool
9916 *** is disabling shared libraries support. We urge you to upgrade GNU
9917 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9918 *** your PATH or compiler configuration so that the native linker is
9919 *** used, and then restart.
9921 _LT_EOF
9924 # For security reasons, it is highly recommended that you always
9925 # use absolute paths for naming shared libraries, and exclude the
9926 # DT_RUNPATH tag from executables and libraries. But doing so
9927 # requires that you compile everything twice, which is a pain.
9928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9932 else
9933 ld_shlibs=no
9936 esac
9939 sunos4*)
9940 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941 wlarc=
9942 hardcode_direct=yes
9943 hardcode_shlibpath_var=no
9947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9950 else
9951 ld_shlibs=no
9954 esac
9956 if test "$ld_shlibs" = no; then
9957 runpath_var=
9958 hardcode_libdir_flag_spec=
9959 export_dynamic_flag_spec=
9960 whole_archive_flag_spec=
9962 else
9963 # PORTME fill in a description of your system's linker (not GNU ld)
9964 case $host_os in
9965 aix3*)
9966 allow_undefined_flag=unsupported
9967 always_export_symbols=yes
9968 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'
9969 # Note: this linker hardcodes the directories in LIBPATH if there
9970 # are no directories specified by -L.
9971 hardcode_minus_L=yes
9972 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9973 # Neither direct hardcoding nor static linking is supported with a
9974 # broken collect2.
9975 hardcode_direct=unsupported
9979 aix[4-9]*)
9980 if test "$host_cpu" = ia64; then
9981 # On IA64, the linker does run time linking by default, so we don't
9982 # have to do anything special.
9983 aix_use_runtimelinking=no
9984 exp_sym_flag='-Bexport'
9985 no_entry_flag=""
9986 else
9987 # If we're using GNU nm, then we don't want the "-C" option.
9988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9989 # Also, AIX nm treats weak defined symbols like other global
9990 # defined symbols, whereas GNU nm marks them as "W".
9991 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9992 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'
9993 else
9994 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'
9996 aix_use_runtimelinking=no
9998 # Test if we are trying to use run time linking or normal
9999 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10000 # need to do runtime linking.
10001 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10002 for ld_flag in $LDFLAGS; do
10003 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10004 aix_use_runtimelinking=yes
10005 break
10007 done
10009 esac
10011 exp_sym_flag='-bexport'
10012 no_entry_flag='-bnoentry'
10015 # When large executables or shared objects are built, AIX ld can
10016 # have problems creating the table of contents. If linking a library
10017 # or program results in "error TOC overflow" add -mminimal-toc to
10018 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10019 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10021 archive_cmds=''
10022 hardcode_direct=yes
10023 hardcode_direct_absolute=yes
10024 hardcode_libdir_separator=':'
10025 link_all_deplibs=yes
10026 file_list_spec='${wl}-f,'
10028 if test "$GCC" = yes; then
10029 case $host_os in aix4.[012]|aix4.[012].*)
10030 # We only want to do this on AIX 4.2 and lower, the check
10031 # below for broken collect2 doesn't work under 4.3+
10032 collect2name=`${CC} -print-prog-name=collect2`
10033 if test -f "$collect2name" &&
10034 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10035 then
10036 # We have reworked collect2
10038 else
10039 # We have old collect2
10040 hardcode_direct=unsupported
10041 # It fails to find uninstalled libraries when the uninstalled
10042 # path is not listed in the libpath. Setting hardcode_minus_L
10043 # to unsupported forces relinking
10044 hardcode_minus_L=yes
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_libdir_separator=
10049 esac
10050 shared_flag='-shared'
10051 if test "$aix_use_runtimelinking" = yes; then
10052 shared_flag="$shared_flag "'${wl}-G'
10054 else
10055 # not using gcc
10056 if test "$host_cpu" = ia64; then
10057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10058 # chokes on -Wl,-G. The following line is correct:
10059 shared_flag='-G'
10060 else
10061 if test "$aix_use_runtimelinking" = yes; then
10062 shared_flag='${wl}-G'
10063 else
10064 shared_flag='${wl}-bM:SRE'
10069 export_dynamic_flag_spec='${wl}-bexpall'
10070 # It seems that -bexpall does not export symbols beginning with
10071 # underscore (_), so it is better to generate a list of symbols to export.
10072 always_export_symbols=yes
10073 if test "$aix_use_runtimelinking" = yes; then
10074 # Warning - without using the other runtime loading flags (-brtl),
10075 # -berok will link without error, but may produce a broken library.
10076 allow_undefined_flag='-berok'
10077 # Determine the default libpath from the value encoded in an
10078 # empty executable.
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10083 main ()
10087 return 0;
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10092 lt_aix_libpath_sed='
10093 /Import File Strings/,/^$/ {
10094 /^0/ {
10095 s/^0 *\(.*\)$/\1/
10099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100 # Check for a 64-bit object if we didn't find anything.
10101 if test -z "$aix_libpath"; then
10102 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10110 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"
10111 else
10112 if test "$host_cpu" = ia64; then
10113 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10114 allow_undefined_flag="-z nodefs"
10115 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"
10116 else
10117 # Determine the default libpath from the value encoded in an
10118 # empty executable.
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10123 main ()
10127 return 0;
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10132 lt_aix_libpath_sed='
10133 /Import File Strings/,/^$/ {
10134 /^0/ {
10135 s/^0 *\(.*\)$/\1/
10139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10140 # Check for a 64-bit object if we didn't find anything.
10141 if test -z "$aix_libpath"; then
10142 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10149 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10150 # Warning - without using the other run time loading flags,
10151 # -berok will link without error, but may produce a broken library.
10152 no_undefined_flag=' ${wl}-bernotok'
10153 allow_undefined_flag=' ${wl}-berok'
10154 if test "$with_gnu_ld" = yes; then
10155 # We only use this code for GNU lds that support --whole-archive.
10156 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10157 else
10158 # Exported symbols can be pulled into shared objects from archives
10159 whole_archive_flag_spec='$convenience'
10161 archive_cmds_need_lc=yes
10162 # This is similar to how AIX traditionally builds its shared libraries.
10163 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'
10168 amigaos*)
10169 case $host_cpu in
10170 powerpc)
10171 # see comment about AmigaOS4 .so support
10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 archive_expsym_cmds=''
10175 m68k)
10176 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)'
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 hardcode_minus_L=yes
10180 esac
10183 bsdi[45]*)
10184 export_dynamic_flag_spec=-rdynamic
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 # When not using gcc, we currently assume that we are using
10189 # Microsoft Visual C++.
10190 # hardcode_libdir_flag_spec is actually meaningless, as there is
10191 # no search path for DLLs.
10192 hardcode_libdir_flag_spec=' '
10193 allow_undefined_flag=unsupported
10194 # Tell ltmain to make .lib files, not .a files.
10195 libext=lib
10196 # Tell ltmain to make .dll files, not .so files.
10197 shrext_cmds=".dll"
10198 # FIXME: Setting linknames here is a bad hack.
10199 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10200 # The linker will automatically build a .lib file if we build a DLL.
10201 old_archive_from_new_cmds='true'
10202 # FIXME: Should let the user specify the lib program.
10203 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10204 fix_srcfile_path='`cygpath -w "$srcfile"`'
10205 enable_shared_with_static_runtimes=yes
10208 darwin* | rhapsody*)
10211 archive_cmds_need_lc=no
10212 hardcode_direct=no
10213 hardcode_automatic=yes
10214 hardcode_shlibpath_var=unsupported
10215 if test "$lt_cv_ld_force_load" = "yes"; then
10216 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\"`'
10217 else
10218 whole_archive_flag_spec=''
10220 link_all_deplibs=yes
10221 allow_undefined_flag="$_lt_dar_allow_undefined"
10222 case $cc_basename in
10223 ifort*) _lt_dar_can_shared=yes ;;
10224 *) _lt_dar_can_shared=$GCC ;;
10225 esac
10226 if test "$_lt_dar_can_shared" = "yes"; then
10227 output_verbose_link_cmd=func_echo_all
10228 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10229 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10230 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}"
10231 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}"
10233 else
10234 ld_shlibs=no
10239 dgux*)
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 hardcode_shlibpath_var=no
10245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10246 # support. Future versions do this automatically, but an explicit c++rt0.o
10247 # does not break anything, and helps significantly (at the cost of a little
10248 # extra space).
10249 freebsd2.2*)
10250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10251 hardcode_libdir_flag_spec='-R$libdir'
10252 hardcode_direct=yes
10253 hardcode_shlibpath_var=no
10256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10257 freebsd2.*)
10258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_direct=yes
10260 hardcode_minus_L=yes
10261 hardcode_shlibpath_var=no
10264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10265 freebsd* | dragonfly*)
10266 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10267 hardcode_libdir_flag_spec='-R$libdir'
10268 hardcode_direct=yes
10269 hardcode_shlibpath_var=no
10272 hpux9*)
10273 if test "$GCC" = yes; then
10274 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10275 else
10276 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'
10278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10279 hardcode_libdir_separator=:
10280 hardcode_direct=yes
10282 # hardcode_minus_L: Not really in the search PATH,
10283 # but as the default location of the library.
10284 hardcode_minus_L=yes
10285 export_dynamic_flag_spec='${wl}-E'
10288 hpux10*)
10289 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291 else
10292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10294 if test "$with_gnu_ld" = no; then
10295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10296 hardcode_libdir_flag_spec_ld='+b $libdir'
10297 hardcode_libdir_separator=:
10298 hardcode_direct=yes
10299 hardcode_direct_absolute=yes
10300 export_dynamic_flag_spec='${wl}-E'
10301 # hardcode_minus_L: Not really in the search PATH,
10302 # but as the default location of the library.
10303 hardcode_minus_L=yes
10307 hpux11*)
10308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10309 case $host_cpu in
10310 hppa*64*)
10311 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 ia64*)
10314 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10319 esac
10320 else
10321 case $host_cpu in
10322 hppa*64*)
10323 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 ia64*)
10326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10330 # Older versions of the 11.00 compiler do not understand -b yet
10331 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10333 $as_echo_n "checking if $CC understands -b... " >&6; }
10334 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 lt_cv_prog_compiler__b=no
10338 save_LDFLAGS="$LDFLAGS"
10339 LDFLAGS="$LDFLAGS -b"
10340 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10342 # The linker can only warn and ignore the option if not recognized
10343 # So say no if there are warnings
10344 if test -s conftest.err; then
10345 # Append any errors to the config.log.
10346 cat conftest.err 1>&5
10347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10349 if diff conftest.exp conftest.er2 >/dev/null; then
10350 lt_cv_prog_compiler__b=yes
10352 else
10353 lt_cv_prog_compiler__b=yes
10356 $RM -r conftest*
10357 LDFLAGS="$save_LDFLAGS"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10361 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10363 if test x"$lt_cv_prog_compiler__b" = xyes; then
10364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10365 else
10366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10370 esac
10372 if test "$with_gnu_ld" = no; then
10373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10374 hardcode_libdir_separator=:
10376 case $host_cpu in
10377 hppa*64*|ia64*)
10378 hardcode_direct=no
10379 hardcode_shlibpath_var=no
10382 hardcode_direct=yes
10383 hardcode_direct_absolute=yes
10384 export_dynamic_flag_spec='${wl}-E'
10386 # hardcode_minus_L: Not really in the search PATH,
10387 # but as the default location of the library.
10388 hardcode_minus_L=yes
10390 esac
10394 irix5* | irix6* | nonstopux*)
10395 if test "$GCC" = yes; then
10396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10397 # Try to use the -exported_symbol ld option, if it does not
10398 # work, assume that -exports_file does not work either and
10399 # implicitly export all symbols.
10400 save_LDFLAGS="$LDFLAGS"
10401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 int foo(void) {}
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LDFLAGS="$save_LDFLAGS"
10413 else
10414 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'
10415 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'
10417 archive_cmds_need_lc='no'
10418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10419 hardcode_libdir_separator=:
10420 inherit_rpath=yes
10421 link_all_deplibs=yes
10424 netbsd*)
10425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10427 else
10428 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10430 hardcode_libdir_flag_spec='-R$libdir'
10431 hardcode_direct=yes
10432 hardcode_shlibpath_var=no
10435 newsos6)
10436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10437 hardcode_direct=yes
10438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10439 hardcode_libdir_separator=:
10440 hardcode_shlibpath_var=no
10443 *nto* | *qnx*)
10446 openbsd*)
10447 if test -f /usr/libexec/ld.so; then
10448 hardcode_direct=yes
10449 hardcode_shlibpath_var=no
10450 hardcode_direct_absolute=yes
10451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10455 export_dynamic_flag_spec='${wl}-E'
10456 else
10457 case $host_os in
10458 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_libdir_flag_spec='-R$libdir'
10463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10466 esac
10468 else
10469 ld_shlibs=no
10473 os2*)
10474 hardcode_libdir_flag_spec='-L$libdir'
10475 hardcode_minus_L=yes
10476 allow_undefined_flag=unsupported
10477 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'
10478 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10481 osf3*)
10482 if test "$GCC" = yes; then
10483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10484 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'
10485 else
10486 allow_undefined_flag=' -expect_unresolved \*'
10487 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'
10489 archive_cmds_need_lc='no'
10490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator=:
10494 osf4* | osf5*) # as osf3* with the addition of -msym flag
10495 if test "$GCC" = yes; then
10496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10497 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10499 else
10500 allow_undefined_flag=' -expect_unresolved \*'
10501 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'
10502 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~
10503 $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'
10505 # Both c and cxx compiler support -rpath directly
10506 hardcode_libdir_flag_spec='-rpath $libdir'
10508 archive_cmds_need_lc='no'
10509 hardcode_libdir_separator=:
10512 solaris*)
10513 no_undefined_flag=' -z defs'
10514 if test "$GCC" = yes; then
10515 wlarc='${wl}'
10516 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10518 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10519 else
10520 case `$CC -V 2>&1` in
10521 *"Compilers 5.0"*)
10522 wlarc=''
10523 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10528 wlarc='${wl}'
10529 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10531 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10533 esac
10535 hardcode_libdir_flag_spec='-R$libdir'
10536 hardcode_shlibpath_var=no
10537 case $host_os in
10538 solaris2.[0-5] | solaris2.[0-5].*) ;;
10540 # The compiler driver will combine and reorder linker options,
10541 # but understands `-z linker_flag'. GCC discards it without `$wl',
10542 # but is careful enough not to reorder.
10543 # Supported since Solaris 2.6 (maybe 2.5.1?)
10544 if test "$GCC" = yes; then
10545 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10546 else
10547 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10550 esac
10551 link_all_deplibs=yes
10554 sunos4*)
10555 if test "x$host_vendor" = xsequent; then
10556 # Use $CC to link under sequent, because it throws in some extra .o
10557 # files that make .init and .fini sections work.
10558 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10559 else
10560 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_libdir_flag_spec='-L$libdir'
10563 hardcode_direct=yes
10564 hardcode_minus_L=yes
10565 hardcode_shlibpath_var=no
10568 sysv4)
10569 case $host_vendor in
10570 sni)
10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_direct=yes # is this really true???
10574 siemens)
10575 ## LD is ld it makes a PLAMLIB
10576 ## CC just makes a GrossModule.
10577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10578 reload_cmds='$CC -r -o $output$reload_objs'
10579 hardcode_direct=no
10581 motorola)
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10585 esac
10586 runpath_var='LD_RUN_PATH'
10587 hardcode_shlibpath_var=no
10590 sysv4.3*)
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_shlibpath_var=no
10593 export_dynamic_flag_spec='-Bexport'
10596 sysv4*MP*)
10597 if test -d /usr/nec; then
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_shlibpath_var=no
10600 runpath_var=LD_RUN_PATH
10601 hardcode_runpath_var=yes
10602 ld_shlibs=yes
10606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10607 no_undefined_flag='${wl}-z,text'
10608 archive_cmds_need_lc=no
10609 hardcode_shlibpath_var=no
10610 runpath_var='LD_RUN_PATH'
10612 if test "$GCC" = yes; then
10613 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 else
10616 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 sysv5* | sco3.2v5* | sco5v6*)
10622 # Note: We can NOT use -z defs as we might desire, because we do not
10623 # link with -lc, and that would cause any symbols used from libc to
10624 # always be unresolved, which means just about no library would
10625 # ever link correctly. If we're not using GNU ld we use -z text
10626 # though, which does catch some bad symbols but isn't as heavy-handed
10627 # as -z defs.
10628 no_undefined_flag='${wl}-z,text'
10629 allow_undefined_flag='${wl}-z,nodefs'
10630 archive_cmds_need_lc=no
10631 hardcode_shlibpath_var=no
10632 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10633 hardcode_libdir_separator=':'
10634 link_all_deplibs=yes
10635 export_dynamic_flag_spec='${wl}-Bexport'
10636 runpath_var='LD_RUN_PATH'
10638 if test "$GCC" = yes; then
10639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 else
10642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 uts4*)
10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_shlibpath_var=no
10654 ld_shlibs=no
10656 esac
10658 if test x$host_vendor = xsni; then
10659 case $host in
10660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10661 export_dynamic_flag_spec='${wl}-Blargedynsym'
10663 esac
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10668 $as_echo "$ld_shlibs" >&6; }
10669 test "$ld_shlibs" = no && can_build_shared=no
10671 with_gnu_ld=$with_gnu_ld
10688 # Do we need to explicitly link libc?
10690 case "x$archive_cmds_need_lc" in
10691 x|xyes)
10692 # Assume -lc should be added
10693 archive_cmds_need_lc=yes
10695 if test "$enable_shared" = yes && test "$GCC" = yes; then
10696 case $archive_cmds in
10697 *'~'*)
10698 # FIXME: we may have to deal with multi-command sequences.
10700 '$CC '*)
10701 # Test whether the compiler implicitly links with -lc since on some
10702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10703 # to ld, don't add -lc before -lgcc.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10706 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 $RM conftest*
10710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10713 (eval $ac_compile) 2>&5
10714 ac_status=$?
10715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10716 test $ac_status = 0; } 2>conftest.err; then
10717 soname=conftest
10718 lib=conftest
10719 libobjs=conftest.$ac_objext
10720 deplibs=
10721 wl=$lt_prog_compiler_wl
10722 pic_flag=$lt_prog_compiler_pic
10723 compiler_flags=-v
10724 linker_flags=-v
10725 verstring=
10726 output_objdir=.
10727 libname=conftest
10728 lt_save_allow_undefined_flag=$allow_undefined_flag
10729 allow_undefined_flag=
10730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10731 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10732 ac_status=$?
10733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10734 test $ac_status = 0; }
10735 then
10736 lt_cv_archive_cmds_need_lc=no
10737 else
10738 lt_cv_archive_cmds_need_lc=yes
10740 allow_undefined_flag=$lt_save_allow_undefined_flag
10741 else
10742 cat conftest.err 1>&5
10744 $RM conftest*
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10748 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10749 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10751 esac
10754 esac
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10913 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10915 if test "$GCC" = yes; then
10916 case $host_os in
10917 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10918 *) lt_awk_arg="/^libraries:/" ;;
10919 esac
10920 case $host_os in
10921 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10922 *) lt_sed_strip_eq="s,=/,/,g" ;;
10923 esac
10924 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10925 case $lt_search_path_spec in
10926 *\;*)
10927 # if the path contains ";" then we assume it to be the separator
10928 # otherwise default to the standard path separator (i.e. ":") - it is
10929 # assumed that no part of a normal pathname contains ";" but that should
10930 # okay in the real world where ";" in dirpaths is itself problematic.
10931 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10936 esac
10937 # Ok, now we have the path, separated by spaces, we can step through it
10938 # and add multilib dir if necessary.
10939 lt_tmp_lt_search_path_spec=
10940 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10941 for lt_sys_path in $lt_search_path_spec; do
10942 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10944 else
10945 test -d "$lt_sys_path" && \
10946 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10948 done
10949 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10950 BEGIN {RS=" "; FS="/|\n";} {
10951 lt_foo="";
10952 lt_count=0;
10953 for (lt_i = NF; lt_i > 0; lt_i--) {
10954 if ($lt_i != "" && $lt_i != ".") {
10955 if ($lt_i == "..") {
10956 lt_count++;
10957 } else {
10958 if (lt_count == 0) {
10959 lt_foo="/" $lt_i lt_foo;
10960 } else {
10961 lt_count--;
10966 if (lt_foo != "") { lt_freq[lt_foo]++; }
10967 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10969 # AWK program above erroneously prepends '/' to C:/dos/paths
10970 # for these hosts.
10971 case $host_os in
10972 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10973 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10974 esac
10975 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10976 else
10977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10979 library_names_spec=
10980 libname_spec='lib$name'
10981 soname_spec=
10982 shrext_cmds=".so"
10983 postinstall_cmds=
10984 postuninstall_cmds=
10985 finish_cmds=
10986 finish_eval=
10987 shlibpath_var=
10988 shlibpath_overrides_runpath=unknown
10989 version_type=none
10990 dynamic_linker="$host_os ld.so"
10991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10992 need_lib_prefix=unknown
10993 hardcode_into_libs=no
10995 # when you set need_version to no, make sure it does not cause -set_version
10996 # flags to be left without arguments
10997 need_version=unknown
10999 case $host_os in
11000 aix3*)
11001 version_type=linux
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11003 shlibpath_var=LIBPATH
11005 # AIX 3 has no versioning support, so we append a major version to the name.
11006 soname_spec='${libname}${release}${shared_ext}$major'
11009 aix[4-9]*)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 hardcode_into_libs=yes
11014 if test "$host_cpu" = ia64; then
11015 # AIX 5 supports IA64
11016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 else
11019 # With GCC up to 2.95.x, collect2 would create an import file
11020 # for dependence libraries. The import file would start with
11021 # the line `#! .'. This would cause the generated library to
11022 # depend on `.', always an invalid library. This was fixed in
11023 # development snapshots of GCC prior to 3.0.
11024 case $host_os in
11025 aix4 | aix4.[01] | aix4.[01].*)
11026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11027 echo ' yes '
11028 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11030 else
11031 can_build_shared=no
11034 esac
11035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11036 # soname into executable. Probably we can add versioning support to
11037 # collect2, so additional links can be useful in future.
11038 if test "$aix_use_runtimelinking" = yes; then
11039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11040 # instead of lib<name>.a to let people know that these are not
11041 # typical AIX shared libraries.
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 else
11044 # We preserve .a as extension for shared libraries through AIX4.2
11045 # and later when we are not doing run time linking.
11046 library_names_spec='${libname}${release}.a $libname.a'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LIBPATH
11053 amigaos*)
11054 case $host_cpu in
11055 powerpc)
11056 # Since July 2007 AmigaOS4 officially supports .so libraries.
11057 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 m68k)
11061 library_names_spec='$libname.ixlibrary $libname.a'
11062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11063 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'
11065 esac
11068 beos*)
11069 library_names_spec='${libname}${shared_ext}'
11070 dynamic_linker="$host_os ld.so"
11071 shlibpath_var=LIBRARY_PATH
11074 bsdi[45]*)
11075 version_type=linux
11076 need_version=no
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11083 # the default ld.so.conf also contains /usr/contrib/lib and
11084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11085 # libtool to hard-code these into programs
11088 cygwin* | mingw* | pw32* | cegcc*)
11089 version_type=windows
11090 shrext_cmds=".dll"
11091 need_version=no
11092 need_lib_prefix=no
11094 case $GCC,$host_os in
11095 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11096 library_names_spec='$libname.dll.a'
11097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11098 postinstall_cmds='base_file=`basename \${file}`~
11099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11100 dldir=$destdir/`dirname \$dlpath`~
11101 test -d \$dldir || mkdir -p \$dldir~
11102 $install_prog $dir/$dlname \$dldir/$dlname~
11103 chmod a+x \$dldir/$dlname~
11104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11108 dlpath=$dir/\$dldll~
11109 $RM \$dlpath'
11110 shlibpath_overrides_runpath=yes
11112 case $host_os in
11113 cygwin*)
11114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11119 mingw* | cegcc*)
11120 # MinGW DLLs use traditional 'lib' prefix
11121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11123 pw32*)
11124 # pw32 DLLs use 'pw' prefix rather than 'lib'
11125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11127 esac
11131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11133 esac
11134 dynamic_linker='Win32 ld.exe'
11135 # FIXME: first we should search . and the directory the executable is in
11136 shlibpath_var=PATH
11139 darwin* | rhapsody*)
11140 dynamic_linker="$host_os dyld"
11141 version_type=darwin
11142 need_lib_prefix=no
11143 need_version=no
11144 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11145 soname_spec='${libname}${release}${major}$shared_ext'
11146 shlibpath_overrides_runpath=yes
11147 shlibpath_var=DYLD_LIBRARY_PATH
11148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11154 dgux*)
11155 version_type=linux
11156 need_lib_prefix=no
11157 need_version=no
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11163 freebsd* | dragonfly*)
11164 # DragonFly does not have aout. When/if they implement a new
11165 # versioning mechanism, adjust this.
11166 if test -x /usr/bin/objformat; then
11167 objformat=`/usr/bin/objformat`
11168 else
11169 case $host_os in
11170 freebsd[23].*) objformat=aout ;;
11171 *) objformat=elf ;;
11172 esac
11174 version_type=freebsd-$objformat
11175 case $version_type in
11176 freebsd-elf*)
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11178 need_version=no
11179 need_lib_prefix=no
11181 freebsd-*)
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11183 need_version=yes
11185 esac
11186 shlibpath_var=LD_LIBRARY_PATH
11187 case $host_os in
11188 freebsd2.*)
11189 shlibpath_overrides_runpath=yes
11191 freebsd3.[01]* | freebsdelf3.[01]*)
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11200 *) # from 4.6 on, and DragonFly
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11204 esac
11207 gnu*)
11208 version_type=linux
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 hardcode_into_libs=yes
11217 haiku*)
11218 version_type=linux
11219 need_lib_prefix=no
11220 need_version=no
11221 dynamic_linker="$host_os runtime_loader"
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LIBRARY_PATH
11225 shlibpath_overrides_runpath=yes
11226 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11227 hardcode_into_libs=yes
11230 hpux9* | hpux10* | hpux11*)
11231 # Give a soname corresponding to the major version so that dld.sl refuses to
11232 # link against other versions.
11233 version_type=sunos
11234 need_lib_prefix=no
11235 need_version=no
11236 case $host_cpu in
11237 ia64*)
11238 shrext_cmds='.so'
11239 hardcode_into_libs=yes
11240 dynamic_linker="$host_os dld.so"
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 if test "X$HPUX_IA64_MODE" = X32; then
11246 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11247 else
11248 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11252 hppa*64*)
11253 shrext_cmds='.sl'
11254 hardcode_into_libs=yes
11255 dynamic_linker="$host_os dld.sl"
11256 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264 shrext_cmds='.sl'
11265 dynamic_linker="$host_os dld.sl"
11266 shlibpath_var=SHLIB_PATH
11267 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11271 esac
11272 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11273 postinstall_cmds='chmod 555 $lib'
11274 # or fails outright, so override atomically:
11275 install_override_mode=555
11278 interix[3-9]*)
11279 version_type=linux
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=no
11287 hardcode_into_libs=yes
11290 irix5* | irix6* | nonstopux*)
11291 case $host_os in
11292 nonstopux*) version_type=nonstopux ;;
11294 if test "$lt_cv_prog_gnu_ld" = yes; then
11295 version_type=linux
11296 else
11297 version_type=irix
11298 fi ;;
11299 esac
11300 need_lib_prefix=no
11301 need_version=no
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11304 case $host_os in
11305 irix5* | nonstopux*)
11306 libsuff= shlibsuff=
11309 case $LD in # libtool.m4 will add one of these switches to LD
11310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11311 libsuff= shlibsuff= libmagic=32-bit;;
11312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11313 libsuff=32 shlibsuff=N32 libmagic=N32;;
11314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11316 *) libsuff= shlibsuff= libmagic=never-match;;
11317 esac
11319 esac
11320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11321 shlibpath_overrides_runpath=no
11322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11324 hardcode_into_libs=yes
11327 # No shared lib support for Linux oldld, aout, or coff.
11328 linux*oldld* | linux*aout* | linux*coff*)
11329 dynamic_linker=no
11332 # This must be Linux ELF.
11333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11334 version_type=linux
11335 need_lib_prefix=no
11336 need_version=no
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath=no
11343 # Some binutils ld are patched to set DT_RUNPATH
11344 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 lt_cv_shlibpath_overrides_runpath=no
11348 save_LDFLAGS=$LDFLAGS
11349 save_libdir=$libdir
11350 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11351 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11356 main ()
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11365 lt_cv_shlibpath_overrides_runpath=yes
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LDFLAGS=$save_LDFLAGS
11371 libdir=$save_libdir
11375 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11377 # This implies no fast_install, which is unacceptable.
11378 # Some rework will be needed to allow for fast_install
11379 # before this can be enabled.
11380 hardcode_into_libs=yes
11382 # Append ld.so.conf contents to the search path
11383 if test -f /etc/ld.so.conf; then
11384 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' ' '`
11385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11388 # We used to test for /lib/ld.so.1 and disable shared libraries on
11389 # powerpc, because MkLinux only supported shared libraries with the
11390 # GNU dynamic linker. Since this was broken with cross compilers,
11391 # most powerpc-linux boxes support dynamic linking these days and
11392 # people can always --disable-shared, the test was removed, and we
11393 # assume the GNU/Linux dynamic linker is in use.
11394 dynamic_linker='GNU/Linux ld.so'
11397 netbsd*)
11398 version_type=sunos
11399 need_lib_prefix=no
11400 need_version=no
11401 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11404 dynamic_linker='NetBSD (a.out) ld.so'
11405 else
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 dynamic_linker='NetBSD ld.elf_so'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 shlibpath_overrides_runpath=yes
11412 hardcode_into_libs=yes
11415 newsos6)
11416 version_type=linux
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11422 *nto* | *qnx*)
11423 version_type=qnx
11424 need_lib_prefix=no
11425 need_version=no
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11430 hardcode_into_libs=yes
11431 dynamic_linker='ldqnx.so'
11434 openbsd*)
11435 version_type=sunos
11436 sys_lib_dlsearch_path_spec="/usr/lib"
11437 need_lib_prefix=no
11438 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11439 case $host_os in
11440 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11441 *) need_version=no ;;
11442 esac
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11447 case $host_os in
11448 openbsd2.[89] | openbsd2.[89].*)
11449 shlibpath_overrides_runpath=no
11452 shlibpath_overrides_runpath=yes
11454 esac
11455 else
11456 shlibpath_overrides_runpath=yes
11460 os2*)
11461 libname_spec='$name'
11462 shrext_cmds=".dll"
11463 need_lib_prefix=no
11464 library_names_spec='$libname${shared_ext} $libname.a'
11465 dynamic_linker='OS/2 ld.exe'
11466 shlibpath_var=LIBPATH
11469 osf3* | osf4* | osf5*)
11470 version_type=osf
11471 need_lib_prefix=no
11472 need_version=no
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11477 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11480 rdos*)
11481 dynamic_linker=no
11484 solaris*)
11485 version_type=linux
11486 need_lib_prefix=no
11487 need_version=no
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 hardcode_into_libs=yes
11493 # ldd complains unless libraries are executable
11494 postinstall_cmds='chmod +x $lib'
11497 sunos4*)
11498 version_type=sunos
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 if test "$with_gnu_ld" = yes; then
11504 need_lib_prefix=no
11506 need_version=yes
11509 sysv4 | sysv4.3*)
11510 version_type=linux
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 case $host_vendor in
11515 sni)
11516 shlibpath_overrides_runpath=no
11517 need_lib_prefix=no
11518 runpath_var=LD_RUN_PATH
11520 siemens)
11521 need_lib_prefix=no
11523 motorola)
11524 need_lib_prefix=no
11525 need_version=no
11526 shlibpath_overrides_runpath=no
11527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11529 esac
11532 sysv4*MP*)
11533 if test -d /usr/nec ;then
11534 version_type=linux
11535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11536 soname_spec='$libname${shared_ext}.$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11542 version_type=freebsd-elf
11543 need_lib_prefix=no
11544 need_version=no
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11549 hardcode_into_libs=yes
11550 if test "$with_gnu_ld" = yes; then
11551 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11552 else
11553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11554 case $host_os in
11555 sco3.2v5*)
11556 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11558 esac
11560 sys_lib_dlsearch_path_spec='/usr/lib'
11563 tpf*)
11564 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11565 version_type=linux
11566 need_lib_prefix=no
11567 need_version=no
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=no
11571 hardcode_into_libs=yes
11574 uts4*)
11575 version_type=linux
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11582 dynamic_linker=no
11584 esac
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11586 $as_echo "$dynamic_linker" >&6; }
11587 test "$dynamic_linker" = no && can_build_shared=no
11589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11590 if test "$GCC" = yes; then
11591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11594 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11595 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11597 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11598 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11693 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11694 hardcode_action=
11695 if test -n "$hardcode_libdir_flag_spec" ||
11696 test -n "$runpath_var" ||
11697 test "X$hardcode_automatic" = "Xyes" ; then
11699 # We can hardcode non-existent directories.
11700 if test "$hardcode_direct" != no &&
11701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11702 # have to relink, otherwise we might link with an installed library
11703 # when we should be linking with a yet-to-be-installed one
11704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11705 test "$hardcode_minus_L" != no; then
11706 # Linking always hardcodes the temporary library directory.
11707 hardcode_action=relink
11708 else
11709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11710 hardcode_action=immediate
11712 else
11713 # We cannot hardcode anything, or else we can only hardcode existing
11714 # directories.
11715 hardcode_action=unsupported
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11718 $as_echo "$hardcode_action" >&6; }
11720 if test "$hardcode_action" = relink ||
11721 test "$inherit_rpath" = yes; then
11722 # Fast installation is not supported
11723 enable_fast_install=no
11724 elif test "$shlibpath_overrides_runpath" = yes ||
11725 test "$enable_shared" = no; then
11726 # Fast installation is not necessary
11727 enable_fast_install=needless
11735 if test "x$enable_dlopen" != xyes; then
11736 enable_dlopen=unknown
11737 enable_dlopen_self=unknown
11738 enable_dlopen_self_static=unknown
11739 else
11740 lt_cv_dlopen=no
11741 lt_cv_dlopen_libs=
11743 case $host_os in
11744 beos*)
11745 lt_cv_dlopen="load_add_on"
11746 lt_cv_dlopen_libs=
11747 lt_cv_dlopen_self=yes
11750 mingw* | pw32* | cegcc*)
11751 lt_cv_dlopen="LoadLibrary"
11752 lt_cv_dlopen_libs=
11755 cygwin*)
11756 lt_cv_dlopen="dlopen"
11757 lt_cv_dlopen_libs=
11760 darwin*)
11761 # if libdl is installed we need to link against it
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 ac_check_lib_save_LIBS=$LIBS
11768 LIBS="-ldl $LIBS"
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11772 /* Override any GCC internal prototype to avoid an error.
11773 Use char because int might match the return type of a GCC
11774 builtin and then its argument prototype would still apply. */
11775 #ifdef __cplusplus
11776 extern "C"
11777 #endif
11778 char dlopen ();
11780 main ()
11782 return dlopen ();
11784 return 0;
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 ac_cv_lib_dl_dlopen=yes
11789 else
11790 ac_cv_lib_dl_dlopen=no
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11798 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11800 else
11802 lt_cv_dlopen="dyld"
11803 lt_cv_dlopen_libs=
11804 lt_cv_dlopen_self=yes
11811 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11812 if test "x$ac_cv_func_shl_load" = x""yes; then :
11813 lt_cv_dlopen="shl_load"
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11816 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-ldld $LIBS"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char shl_load ();
11833 main ()
11835 return shl_load ();
11837 return 0;
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841 ac_cv_lib_dld_shl_load=yes
11842 else
11843 ac_cv_lib_dld_shl_load=no
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11850 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11851 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11852 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11853 else
11854 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11855 if test "x$ac_cv_func_dlopen" = x""yes; then :
11856 lt_cv_dlopen="dlopen"
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11859 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11860 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-ldl $LIBS"
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char dlopen ();
11876 main ()
11878 return dlopen ();
11880 return 0;
11882 _ACEOF
11883 if ac_fn_c_try_link "$LINENO"; then :
11884 ac_cv_lib_dl_dlopen=yes
11885 else
11886 ac_cv_lib_dl_dlopen=no
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11894 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11898 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11899 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-lsvld $LIBS"
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11910 #ifdef __cplusplus
11911 extern "C"
11912 #endif
11913 char dlopen ();
11915 main ()
11917 return dlopen ();
11919 return 0;
11921 _ACEOF
11922 if ac_fn_c_try_link "$LINENO"; then :
11923 ac_cv_lib_svld_dlopen=yes
11924 else
11925 ac_cv_lib_svld_dlopen=no
11927 rm -f core conftest.err conftest.$ac_objext \
11928 conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_check_lib_save_LIBS
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11932 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11933 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11937 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-ldld $LIBS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char dld_link ();
11954 main ()
11956 return dld_link ();
11958 return 0;
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962 ac_cv_lib_dld_dld_link=yes
11963 else
11964 ac_cv_lib_dld_dld_link=no
11966 rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11971 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11972 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11973 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11992 esac
11994 if test "x$lt_cv_dlopen" != xno; then
11995 enable_dlopen=yes
11996 else
11997 enable_dlopen=no
12000 case $lt_cv_dlopen in
12001 dlopen)
12002 save_CPPFLAGS="$CPPFLAGS"
12003 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12005 save_LDFLAGS="$LDFLAGS"
12006 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12008 save_LIBS="$LIBS"
12009 LIBS="$lt_cv_dlopen_libs $LIBS"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12012 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12013 if test "${lt_cv_dlopen_self+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 if test "$cross_compiling" = yes; then :
12017 lt_cv_dlopen_self=cross
12018 else
12019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12020 lt_status=$lt_dlunknown
12021 cat > conftest.$ac_ext <<_LT_EOF
12022 #line 12022 "configure"
12023 #include "confdefs.h"
12025 #if HAVE_DLFCN_H
12026 #include <dlfcn.h>
12027 #endif
12029 #include <stdio.h>
12031 #ifdef RTLD_GLOBAL
12032 # define LT_DLGLOBAL RTLD_GLOBAL
12033 #else
12034 # ifdef DL_GLOBAL
12035 # define LT_DLGLOBAL DL_GLOBAL
12036 # else
12037 # define LT_DLGLOBAL 0
12038 # endif
12039 #endif
12041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12042 find out it does not work in some platform. */
12043 #ifndef LT_DLLAZY_OR_NOW
12044 # ifdef RTLD_LAZY
12045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12046 # else
12047 # ifdef DL_LAZY
12048 # define LT_DLLAZY_OR_NOW DL_LAZY
12049 # else
12050 # ifdef RTLD_NOW
12051 # define LT_DLLAZY_OR_NOW RTLD_NOW
12052 # else
12053 # ifdef DL_NOW
12054 # define LT_DLLAZY_OR_NOW DL_NOW
12055 # else
12056 # define LT_DLLAZY_OR_NOW 0
12057 # endif
12058 # endif
12059 # endif
12060 # endif
12061 #endif
12063 /* When -fvisbility=hidden is used, assume the code has been annotated
12064 correspondingly for the symbols needed. */
12065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12066 void fnord () __attribute__((visibility("default")));
12067 #endif
12069 void fnord () { int i=42; }
12070 int main ()
12072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12073 int status = $lt_dlunknown;
12075 if (self)
12077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12078 else
12080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12081 else puts (dlerror ());
12083 /* dlclose (self); */
12085 else
12086 puts (dlerror ());
12088 return status;
12090 _LT_EOF
12091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12092 (eval $ac_link) 2>&5
12093 ac_status=$?
12094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12096 (./conftest; exit; ) >&5 2>/dev/null
12097 lt_status=$?
12098 case x$lt_status in
12099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12102 esac
12103 else :
12104 # compilation failed
12105 lt_cv_dlopen_self=no
12108 rm -fr conftest*
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12113 $as_echo "$lt_cv_dlopen_self" >&6; }
12115 if test "x$lt_cv_dlopen_self" = xyes; then
12116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12118 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12119 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 if test "$cross_compiling" = yes; then :
12123 lt_cv_dlopen_self_static=cross
12124 else
12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126 lt_status=$lt_dlunknown
12127 cat > conftest.$ac_ext <<_LT_EOF
12128 #line 12128 "configure"
12129 #include "confdefs.h"
12131 #if HAVE_DLFCN_H
12132 #include <dlfcn.h>
12133 #endif
12135 #include <stdio.h>
12137 #ifdef RTLD_GLOBAL
12138 # define LT_DLGLOBAL RTLD_GLOBAL
12139 #else
12140 # ifdef DL_GLOBAL
12141 # define LT_DLGLOBAL DL_GLOBAL
12142 # else
12143 # define LT_DLGLOBAL 0
12144 # endif
12145 #endif
12147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148 find out it does not work in some platform. */
12149 #ifndef LT_DLLAZY_OR_NOW
12150 # ifdef RTLD_LAZY
12151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12152 # else
12153 # ifdef DL_LAZY
12154 # define LT_DLLAZY_OR_NOW DL_LAZY
12155 # else
12156 # ifdef RTLD_NOW
12157 # define LT_DLLAZY_OR_NOW RTLD_NOW
12158 # else
12159 # ifdef DL_NOW
12160 # define LT_DLLAZY_OR_NOW DL_NOW
12161 # else
12162 # define LT_DLLAZY_OR_NOW 0
12163 # endif
12164 # endif
12165 # endif
12166 # endif
12167 #endif
12169 /* When -fvisbility=hidden is used, assume the code has been annotated
12170 correspondingly for the symbols needed. */
12171 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12172 void fnord () __attribute__((visibility("default")));
12173 #endif
12175 void fnord () { int i=42; }
12176 int main ()
12178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12179 int status = $lt_dlunknown;
12181 if (self)
12183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12184 else
12186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12187 else puts (dlerror ());
12189 /* dlclose (self); */
12191 else
12192 puts (dlerror ());
12194 return status;
12196 _LT_EOF
12197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12198 (eval $ac_link) 2>&5
12199 ac_status=$?
12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12202 (./conftest; exit; ) >&5 2>/dev/null
12203 lt_status=$?
12204 case x$lt_status in
12205 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12206 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12207 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12208 esac
12209 else :
12210 # compilation failed
12211 lt_cv_dlopen_self_static=no
12214 rm -fr conftest*
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12219 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12222 CPPFLAGS="$save_CPPFLAGS"
12223 LDFLAGS="$save_LDFLAGS"
12224 LIBS="$save_LIBS"
12226 esac
12228 case $lt_cv_dlopen_self in
12229 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12230 *) enable_dlopen_self=unknown ;;
12231 esac
12233 case $lt_cv_dlopen_self_static in
12234 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12235 *) enable_dlopen_self_static=unknown ;;
12236 esac
12255 striplib=
12256 old_striplib=
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12258 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12259 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12264 else
12265 # FIXME - insert some real tests, host_os isn't really good enough
12266 case $host_os in
12267 darwin*)
12268 if test -n "$STRIP" ; then
12269 striplib="$STRIP -x"
12270 old_striplib="$STRIP -S"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272 $as_echo "yes" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12282 esac
12296 # Report which library types will actually be built
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12298 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12300 $as_echo "$can_build_shared" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12303 $as_echo_n "checking whether to build shared libraries... " >&6; }
12304 test "$can_build_shared" = "no" && enable_shared=no
12306 # On AIX, shared libraries and static libraries use the same namespace, and
12307 # are all built from PIC.
12308 case $host_os in
12309 aix3*)
12310 test "$enable_shared" = yes && enable_static=no
12311 if test -n "$RANLIB"; then
12312 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12313 postinstall_cmds='$RANLIB $lib'
12317 aix[4-9]*)
12318 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12319 test "$enable_shared" = yes && enable_static=no
12322 esac
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12324 $as_echo "$enable_shared" >&6; }
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12327 $as_echo_n "checking whether to build static libraries... " >&6; }
12328 # Make sure either enable_shared or enable_static is yes.
12329 test "$enable_shared" = yes || enable_static=yes
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12331 $as_echo "$enable_static" >&6; }
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12343 CC="$lt_save_CC"
12345 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12346 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12347 (test "X$CXX" != "Xg++"))) ; then
12348 ac_ext=cpp
12349 ac_cpp='$CXXCPP $CPPFLAGS'
12350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12354 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12355 if test -z "$CXXCPP"; then
12356 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 # Double quotes because CXXCPP needs to be expanded
12360 for CXXCPP in "$CXX -E" "/lib/cpp"
12362 ac_preproc_ok=false
12363 for ac_cxx_preproc_warn_flag in '' yes
12365 # Use a header file that comes with gcc, so configuring glibc
12366 # with a fresh cross-compiler works.
12367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12368 # <limits.h> exists even on freestanding compilers.
12369 # On the NeXT, cc -E runs the code through the compiler's parser,
12370 # not just through cpp. "Syntax error" is here to catch this case.
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 #ifdef __STDC__
12374 # include <limits.h>
12375 #else
12376 # include <assert.h>
12377 #endif
12378 Syntax error
12379 _ACEOF
12380 if ac_fn_cxx_try_cpp "$LINENO"; then :
12382 else
12383 # Broken: fails on valid input.
12384 continue
12386 rm -f conftest.err conftest.$ac_ext
12388 # OK, works on sane cases. Now check whether nonexistent headers
12389 # can be detected and how.
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392 #include <ac_nonexistent.h>
12393 _ACEOF
12394 if ac_fn_cxx_try_cpp "$LINENO"; then :
12395 # Broken: success on invalid input.
12396 continue
12397 else
12398 # Passes both tests.
12399 ac_preproc_ok=:
12400 break
12402 rm -f conftest.err conftest.$ac_ext
12404 done
12405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12406 rm -f conftest.err conftest.$ac_ext
12407 if $ac_preproc_ok; then :
12408 break
12411 done
12412 ac_cv_prog_CXXCPP=$CXXCPP
12415 CXXCPP=$ac_cv_prog_CXXCPP
12416 else
12417 ac_cv_prog_CXXCPP=$CXXCPP
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12420 $as_echo "$CXXCPP" >&6; }
12421 ac_preproc_ok=false
12422 for ac_cxx_preproc_warn_flag in '' yes
12424 # Use a header file that comes with gcc, so configuring glibc
12425 # with a fresh cross-compiler works.
12426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 # <limits.h> exists even on freestanding compilers.
12428 # On the NeXT, cc -E runs the code through the compiler's parser,
12429 # not just through cpp. "Syntax error" is here to catch this case.
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #ifdef __STDC__
12433 # include <limits.h>
12434 #else
12435 # include <assert.h>
12436 #endif
12437 Syntax error
12438 _ACEOF
12439 if ac_fn_cxx_try_cpp "$LINENO"; then :
12441 else
12442 # Broken: fails on valid input.
12443 continue
12445 rm -f conftest.err conftest.$ac_ext
12447 # OK, works on sane cases. Now check whether nonexistent headers
12448 # can be detected and how.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <ac_nonexistent.h>
12452 _ACEOF
12453 if ac_fn_cxx_try_cpp "$LINENO"; then :
12454 # Broken: success on invalid input.
12455 continue
12456 else
12457 # Passes both tests.
12458 ac_preproc_ok=:
12459 break
12461 rm -f conftest.err conftest.$ac_ext
12463 done
12464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12465 rm -f conftest.err conftest.$ac_ext
12466 if $ac_preproc_ok; then :
12468 else
12469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12471 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12472 See \`config.log' for more details." "$LINENO" 5; }
12475 ac_ext=c
12476 ac_cpp='$CPP $CPPFLAGS'
12477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481 else
12482 _lt_caught_CXX_error=yes
12485 ac_ext=cpp
12486 ac_cpp='$CXXCPP $CPPFLAGS'
12487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12491 archive_cmds_need_lc_CXX=no
12492 allow_undefined_flag_CXX=
12493 always_export_symbols_CXX=no
12494 archive_expsym_cmds_CXX=
12495 compiler_needs_object_CXX=no
12496 export_dynamic_flag_spec_CXX=
12497 hardcode_direct_CXX=no
12498 hardcode_direct_absolute_CXX=no
12499 hardcode_libdir_flag_spec_CXX=
12500 hardcode_libdir_flag_spec_ld_CXX=
12501 hardcode_libdir_separator_CXX=
12502 hardcode_minus_L_CXX=no
12503 hardcode_shlibpath_var_CXX=unsupported
12504 hardcode_automatic_CXX=no
12505 inherit_rpath_CXX=no
12506 module_cmds_CXX=
12507 module_expsym_cmds_CXX=
12508 link_all_deplibs_CXX=unknown
12509 old_archive_cmds_CXX=$old_archive_cmds
12510 reload_flag_CXX=$reload_flag
12511 reload_cmds_CXX=$reload_cmds
12512 no_undefined_flag_CXX=
12513 whole_archive_flag_spec_CXX=
12514 enable_shared_with_static_runtimes_CXX=no
12516 # Source file extension for C++ test sources.
12517 ac_ext=cpp
12519 # Object file extension for compiled C++ test sources.
12520 objext=o
12521 objext_CXX=$objext
12523 # No sense in running all these tests if we already determined that
12524 # the CXX compiler isn't working. Some variables (like enable_shared)
12525 # are currently assumed to apply to all compilers on this platform,
12526 # and will be corrupted by setting them based on a non-working compiler.
12527 if test "$_lt_caught_CXX_error" != yes; then
12528 # Code to be used in simple compile tests
12529 lt_simple_compile_test_code="int some_variable = 0;"
12531 # Code to be used in simple link tests
12532 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12541 # If no C compiler was specified, use CC.
12542 LTCC=${LTCC-"$CC"}
12544 # If no C compiler flags were specified, use CFLAGS.
12545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12547 # Allow CC to be a program name with arguments.
12548 compiler=$CC
12551 # save warnings/boilerplate of simple test code
12552 ac_outfile=conftest.$ac_objext
12553 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12554 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12555 _lt_compiler_boilerplate=`cat conftest.err`
12556 $RM conftest*
12558 ac_outfile=conftest.$ac_objext
12559 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12560 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12561 _lt_linker_boilerplate=`cat conftest.err`
12562 $RM -r conftest*
12565 # Allow CC to be a program name with arguments.
12566 lt_save_CC=$CC
12567 lt_save_LD=$LD
12568 lt_save_GCC=$GCC
12569 GCC=$GXX
12570 lt_save_with_gnu_ld=$with_gnu_ld
12571 lt_save_path_LD=$lt_cv_path_LD
12572 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12573 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12574 else
12575 $as_unset lt_cv_prog_gnu_ld
12577 if test -n "${lt_cv_path_LDCXX+set}"; then
12578 lt_cv_path_LD=$lt_cv_path_LDCXX
12579 else
12580 $as_unset lt_cv_path_LD
12582 test -z "${LDCXX+set}" || LD=$LDCXX
12583 CC=${CXX-"c++"}
12584 compiler=$CC
12585 compiler_CXX=$CC
12586 for cc_temp in $compiler""; do
12587 case $cc_temp in
12588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12590 \-*) ;;
12591 *) break;;
12592 esac
12593 done
12594 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12597 if test -n "$compiler"; then
12598 # We don't want -fno-exception when compiling C++ code, so set the
12599 # no_builtin_flag separately
12600 if test "$GXX" = yes; then
12601 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12602 else
12603 lt_prog_compiler_no_builtin_flag_CXX=
12606 if test "$GXX" = yes; then
12607 # Set up default GNU C++ configuration
12611 # Check whether --with-gnu-ld was given.
12612 if test "${with_gnu_ld+set}" = set; then :
12613 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12614 else
12615 with_gnu_ld=no
12618 ac_prog=ld
12619 if test "$GCC" = yes; then
12620 # Check if gcc -print-prog-name=ld gives a path.
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12622 $as_echo_n "checking for ld used by $CC... " >&6; }
12623 case $host in
12624 *-*-mingw*)
12625 # gcc leaves a trailing carriage return which upsets mingw
12626 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12628 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12629 esac
12630 case $ac_prog in
12631 # Accept absolute paths.
12632 [\\/]* | ?:[\\/]*)
12633 re_direlt='/[^/][^/]*/\.\./'
12634 # Canonicalize the pathname of ld
12635 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12636 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12637 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12638 done
12639 test -z "$LD" && LD="$ac_prog"
12642 # If it fails, then pretend we aren't using GCC.
12643 ac_prog=ld
12646 # If it is relative, then search for the first ld in PATH.
12647 with_gnu_ld=unknown
12649 esac
12650 elif test "$with_gnu_ld" = yes; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12652 $as_echo_n "checking for GNU ld... " >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12655 $as_echo_n "checking for non-GNU ld... " >&6; }
12657 if test "${lt_cv_path_LD+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -z "$LD"; then
12661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12662 for ac_dir in $PATH; do
12663 IFS="$lt_save_ifs"
12664 test -z "$ac_dir" && ac_dir=.
12665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12666 lt_cv_path_LD="$ac_dir/$ac_prog"
12667 # Check to see if the program is GNU ld. I'd rather use --version,
12668 # but apparently some variants of GNU ld only accept -v.
12669 # Break only if it was the GNU/non-GNU ld that we prefer.
12670 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12671 *GNU* | *'with BFD'*)
12672 test "$with_gnu_ld" != no && break
12675 test "$with_gnu_ld" != yes && break
12677 esac
12679 done
12680 IFS="$lt_save_ifs"
12681 else
12682 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12686 LD="$lt_cv_path_LD"
12687 if test -n "$LD"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12689 $as_echo "$LD" >&6; }
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12694 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12696 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12697 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12701 case `$LD -v 2>&1 </dev/null` in
12702 *GNU* | *'with BFD'*)
12703 lt_cv_prog_gnu_ld=yes
12706 lt_cv_prog_gnu_ld=no
12708 esac
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12711 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12712 with_gnu_ld=$lt_cv_prog_gnu_ld
12720 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12721 # archiving commands below assume that GNU ld is being used.
12722 if test "$with_gnu_ld" = yes; then
12723 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12729 # If archive_cmds runs LD, not CC, wlarc should be empty
12730 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12731 # investigate it a little bit more. (MM)
12732 wlarc='${wl}'
12734 # ancient GNU ld didn't support --whole-archive et. al.
12735 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12736 $GREP 'no-whole-archive' > /dev/null; then
12737 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12738 else
12739 whole_archive_flag_spec_CXX=
12741 else
12742 with_gnu_ld=no
12743 wlarc=
12745 # A generic and very simple default shared library creation
12746 # command for GNU C++ for the case where it uses the native
12747 # linker, instead of GNU ld. If possible, this setting should
12748 # overridden to take advantage of the native linker features on
12749 # the platform it is being used on.
12750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12753 # Commands to make compiler produce verbose output that lists
12754 # what "hidden" libraries, object files and flags are used when
12755 # linking a shared library.
12756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12758 else
12759 GXX=no
12760 with_gnu_ld=no
12761 wlarc=
12764 # PORTME: fill in a description of your system's C++ link characteristics
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12767 ld_shlibs_CXX=yes
12768 case $host_os in
12769 aix3*)
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12773 aix[4-9]*)
12774 if test "$host_cpu" = ia64; then
12775 # On IA64, the linker does run time linking by default, so we don't
12776 # have to do anything special.
12777 aix_use_runtimelinking=no
12778 exp_sym_flag='-Bexport'
12779 no_entry_flag=""
12780 else
12781 aix_use_runtimelinking=no
12783 # Test if we are trying to use run time linking or normal
12784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12785 # need to do runtime linking.
12786 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12787 for ld_flag in $LDFLAGS; do
12788 case $ld_flag in
12789 *-brtl*)
12790 aix_use_runtimelinking=yes
12791 break
12793 esac
12794 done
12796 esac
12798 exp_sym_flag='-bexport'
12799 no_entry_flag='-bnoentry'
12802 # When large executables or shared objects are built, AIX ld can
12803 # have problems creating the table of contents. If linking a library
12804 # or program results in "error TOC overflow" add -mminimal-toc to
12805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12808 archive_cmds_CXX=''
12809 hardcode_direct_CXX=yes
12810 hardcode_direct_absolute_CXX=yes
12811 hardcode_libdir_separator_CXX=':'
12812 link_all_deplibs_CXX=yes
12813 file_list_spec_CXX='${wl}-f,'
12815 if test "$GXX" = yes; then
12816 case $host_os in aix4.[012]|aix4.[012].*)
12817 # We only want to do this on AIX 4.2 and lower, the check
12818 # below for broken collect2 doesn't work under 4.3+
12819 collect2name=`${CC} -print-prog-name=collect2`
12820 if test -f "$collect2name" &&
12821 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12822 then
12823 # We have reworked collect2
12825 else
12826 # We have old collect2
12827 hardcode_direct_CXX=unsupported
12828 # It fails to find uninstalled libraries when the uninstalled
12829 # path is not listed in the libpath. Setting hardcode_minus_L
12830 # to unsupported forces relinking
12831 hardcode_minus_L_CXX=yes
12832 hardcode_libdir_flag_spec_CXX='-L$libdir'
12833 hardcode_libdir_separator_CXX=
12835 esac
12836 shared_flag='-shared'
12837 if test "$aix_use_runtimelinking" = yes; then
12838 shared_flag="$shared_flag "'${wl}-G'
12840 else
12841 # not using gcc
12842 if test "$host_cpu" = ia64; then
12843 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12844 # chokes on -Wl,-G. The following line is correct:
12845 shared_flag='-G'
12846 else
12847 if test "$aix_use_runtimelinking" = yes; then
12848 shared_flag='${wl}-G'
12849 else
12850 shared_flag='${wl}-bM:SRE'
12855 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12856 # It seems that -bexpall does not export symbols beginning with
12857 # underscore (_), so it is better to generate a list of symbols to
12858 # export.
12859 always_export_symbols_CXX=yes
12860 if test "$aix_use_runtimelinking" = yes; then
12861 # Warning - without using the other runtime loading flags (-brtl),
12862 # -berok will link without error, but may produce a broken library.
12863 allow_undefined_flag_CXX='-berok'
12864 # Determine the default libpath from the value encoded in an empty
12865 # executable.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12870 main ()
12874 return 0;
12876 _ACEOF
12877 if ac_fn_cxx_try_link "$LINENO"; then :
12879 lt_aix_libpath_sed='
12880 /Import File Strings/,/^$/ {
12881 /^0/ {
12882 s/^0 *\(.*\)$/\1/
12886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12887 # Check for a 64-bit object if we didn't find anything.
12888 if test -z "$aix_libpath"; then
12889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12896 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12898 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"
12899 else
12900 if test "$host_cpu" = ia64; then
12901 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12902 allow_undefined_flag_CXX="-z nodefs"
12903 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"
12904 else
12905 # Determine the default libpath from the value encoded in an
12906 # empty executable.
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12911 main ()
12915 return 0;
12917 _ACEOF
12918 if ac_fn_cxx_try_link "$LINENO"; then :
12920 lt_aix_libpath_sed='
12921 /Import File Strings/,/^$/ {
12922 /^0/ {
12923 s/^0 *\(.*\)$/\1/
12927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12928 # Check for a 64-bit object if we didn't find anything.
12929 if test -z "$aix_libpath"; then
12930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12938 # Warning - without using the other run time loading flags,
12939 # -berok will link without error, but may produce a broken library.
12940 no_undefined_flag_CXX=' ${wl}-bernotok'
12941 allow_undefined_flag_CXX=' ${wl}-berok'
12942 if test "$with_gnu_ld" = yes; then
12943 # We only use this code for GNU lds that support --whole-archive.
12944 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12945 else
12946 # Exported symbols can be pulled into shared objects from archives
12947 whole_archive_flag_spec_CXX='$convenience'
12949 archive_cmds_need_lc_CXX=yes
12950 # This is similar to how AIX traditionally builds its shared
12951 # libraries.
12952 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'
12957 beos*)
12958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12959 allow_undefined_flag_CXX=unsupported
12960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12961 # support --undefined. This deserves some investigation. FIXME
12962 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963 else
12964 ld_shlibs_CXX=no
12968 chorus*)
12969 case $cc_basename in
12971 # FIXME: insert proper C++ library support
12972 ld_shlibs_CXX=no
12974 esac
12977 cygwin* | mingw* | pw32* | cegcc*)
12978 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12979 # as there is no search path for DLLs.
12980 hardcode_libdir_flag_spec_CXX='-L$libdir'
12981 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12982 allow_undefined_flag_CXX=unsupported
12983 always_export_symbols_CXX=no
12984 enable_shared_with_static_runtimes_CXX=yes
12986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12987 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'
12988 # If the export-symbols file already is a .def file (1st line
12989 # is EXPORTS), use it as is; otherwise, prepend...
12990 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12991 cp $export_symbols $output_objdir/$soname.def;
12992 else
12993 echo EXPORTS > $output_objdir/$soname.def;
12994 cat $export_symbols >> $output_objdir/$soname.def;
12996 $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'
12997 else
12998 ld_shlibs_CXX=no
13001 darwin* | rhapsody*)
13004 archive_cmds_need_lc_CXX=no
13005 hardcode_direct_CXX=no
13006 hardcode_automatic_CXX=yes
13007 hardcode_shlibpath_var_CXX=unsupported
13008 if test "$lt_cv_ld_force_load" = "yes"; then
13009 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\"`'
13010 else
13011 whole_archive_flag_spec_CXX=''
13013 link_all_deplibs_CXX=yes
13014 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13015 case $cc_basename in
13016 ifort*) _lt_dar_can_shared=yes ;;
13017 *) _lt_dar_can_shared=$GCC ;;
13018 esac
13019 if test "$_lt_dar_can_shared" = "yes"; then
13020 output_verbose_link_cmd=func_echo_all
13021 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}"
13022 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13023 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}"
13024 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}"
13025 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13026 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}"
13027 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}"
13030 else
13031 ld_shlibs_CXX=no
13036 dgux*)
13037 case $cc_basename in
13038 ec++*)
13039 # FIXME: insert proper C++ library support
13040 ld_shlibs_CXX=no
13042 ghcx*)
13043 # Green Hills C++ Compiler
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13051 esac
13054 freebsd2.*)
13055 # C++ shared libraries reported to be fairly broken before
13056 # switch to ELF
13057 ld_shlibs_CXX=no
13060 freebsd-elf*)
13061 archive_cmds_need_lc_CXX=no
13064 freebsd* | dragonfly*)
13065 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13066 # conventions
13067 ld_shlibs_CXX=yes
13070 gnu*)
13073 haiku*)
13074 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075 link_all_deplibs_CXX=yes
13078 hpux9*)
13079 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13080 hardcode_libdir_separator_CXX=:
13081 export_dynamic_flag_spec_CXX='${wl}-E'
13082 hardcode_direct_CXX=yes
13083 hardcode_minus_L_CXX=yes # Not in the search PATH,
13084 # but as the default
13085 # location of the library.
13087 case $cc_basename in
13088 CC*)
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13092 aCC*)
13093 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'
13094 # Commands to make compiler produce verbose output that lists
13095 # what "hidden" libraries, object files and flags are used when
13096 # linking a shared library.
13098 # There doesn't appear to be a way to prevent this compiler from
13099 # explicitly linking system object files so we need to strip them
13100 # from the output so that they don't get included in the library
13101 # dependencies.
13102 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"'
13105 if test "$GXX" = yes; then
13106 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13107 else
13108 # FIXME: insert proper C++ library support
13109 ld_shlibs_CXX=no
13112 esac
13115 hpux10*|hpux11*)
13116 if test $with_gnu_ld = no; then
13117 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13118 hardcode_libdir_separator_CXX=:
13120 case $host_cpu in
13121 hppa*64*|ia64*)
13124 export_dynamic_flag_spec_CXX='${wl}-E'
13126 esac
13128 case $host_cpu in
13129 hppa*64*|ia64*)
13130 hardcode_direct_CXX=no
13131 hardcode_shlibpath_var_CXX=no
13134 hardcode_direct_CXX=yes
13135 hardcode_direct_absolute_CXX=yes
13136 hardcode_minus_L_CXX=yes # Not in the search PATH,
13137 # but as the default
13138 # location of the library.
13140 esac
13142 case $cc_basename in
13143 CC*)
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13147 aCC*)
13148 case $host_cpu in
13149 hppa*64*)
13150 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152 ia64*)
13153 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158 esac
13159 # Commands to make compiler produce verbose output that lists
13160 # what "hidden" libraries, object files and flags are used when
13161 # linking a shared library.
13163 # There doesn't appear to be a way to prevent this compiler from
13164 # explicitly linking system object files so we need to strip them
13165 # from the output so that they don't get included in the library
13166 # dependencies.
13167 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"'
13170 if test "$GXX" = yes; then
13171 if test $with_gnu_ld = no; then
13172 case $host_cpu in
13173 hppa*64*)
13174 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176 ia64*)
13177 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13182 esac
13184 else
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13189 esac
13192 interix[3-9]*)
13193 hardcode_direct_CXX=no
13194 hardcode_shlibpath_var_CXX=no
13195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13196 export_dynamic_flag_spec_CXX='${wl}-E'
13197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13198 # Instead, shared libraries are loaded at an image base (0x10000000 by
13199 # default) and relocated if they conflict, which is a slow very memory
13200 # consuming and fragmenting process. To avoid this, we pick a random,
13201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13203 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'
13204 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'
13206 irix5* | irix6*)
13207 case $cc_basename in
13208 CC*)
13209 # SGI C++
13210 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'
13212 # Archives containing C++ object files must be created using
13213 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13214 # necessary to make sure instantiated templates are included
13215 # in the archive.
13216 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13219 if test "$GXX" = yes; then
13220 if test "$with_gnu_ld" = no; then
13221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13222 else
13223 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13226 link_all_deplibs_CXX=yes
13228 esac
13229 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13230 hardcode_libdir_separator_CXX=:
13231 inherit_rpath_CXX=yes
13234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13235 case $cc_basename in
13236 KCC*)
13237 # Kuck and Associates, Inc. (KAI) C++ Compiler
13239 # KCC will only create a shared library if the output file
13240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13241 # to its proper name (with version) after linking.
13242 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'
13243 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'
13244 # Commands to make compiler produce verbose output that lists
13245 # what "hidden" libraries, object files and flags are used when
13246 # linking a shared library.
13248 # There doesn't appear to be a way to prevent this compiler from
13249 # explicitly linking system object files so we need to strip them
13250 # from the output so that they don't get included in the library
13251 # dependencies.
13252 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"'
13254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13257 # Archives containing C++ object files must be created using
13258 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13259 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13261 icpc* | ecpc* )
13262 # Intel C++
13263 with_gnu_ld=yes
13264 # version 8.0 and above of icpc choke on multiply defined symbols
13265 # if we add $predep_objects and $postdep_objects, however 7.1 and
13266 # earlier do not add the objects themselves.
13267 case `$CC -V 2>&1` in
13268 *"Version 7."*)
13269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270 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'
13272 *) # Version 8.0 or newer
13273 tmp_idyn=
13274 case $host_cpu in
13275 ia64*) tmp_idyn=' -i_dynamic';;
13276 esac
13277 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 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'
13280 esac
13281 archive_cmds_need_lc_CXX=no
13282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13286 pgCC* | pgcpp*)
13287 # Portland Group C++ compiler
13288 case `$CC -V` in
13289 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13290 prelink_cmds_CXX='tpldir=Template.dir~
13291 rm -rf $tpldir~
13292 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13293 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13294 old_archive_cmds_CXX='tpldir=Template.dir~
13295 rm -rf $tpldir~
13296 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13297 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13298 $RANLIB $oldlib'
13299 archive_cmds_CXX='tpldir=Template.dir~
13300 rm -rf $tpldir~
13301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13302 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13303 archive_expsym_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13306 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13308 *) # Version 6 and above use weak symbols
13309 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13310 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'
13312 esac
13314 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13316 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'
13318 cxx*)
13319 # Compaq C++
13320 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321 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'
13323 runpath_var=LD_RUN_PATH
13324 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13325 hardcode_libdir_separator_CXX=:
13327 # Commands to make compiler produce verbose output that lists
13328 # what "hidden" libraries, object files and flags are used when
13329 # linking a shared library.
13331 # There doesn't appear to be a way to prevent this compiler from
13332 # explicitly linking system object files so we need to strip them
13333 # from the output so that they don't get included in the library
13334 # dependencies.
13335 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'
13337 xl* | mpixl* | bgxl*)
13338 # IBM XL 8.0 on PPC, with GNU ld
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13341 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 if test "x$supports_anon_versioning" = xyes; then
13343 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13345 echo "local: *; };" >> $output_objdir/$libname.ver~
13346 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13350 case `$CC -V 2>&1 | sed 5q` in
13351 *Sun\ C*)
13352 # Sun C++ 5.9
13353 no_undefined_flag_CXX=' -zdefs'
13354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355 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'
13356 hardcode_libdir_flag_spec_CXX='-R$libdir'
13357 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'
13358 compiler_needs_object_CXX=yes
13360 # Not sure whether something based on
13361 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13362 # would be better.
13363 output_verbose_link_cmd='func_echo_all'
13365 # Archives containing C++ object files must be created using
13366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13367 # necessary to make sure instantiated templates are included
13368 # in the archive.
13369 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13371 esac
13373 esac
13376 lynxos*)
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13381 m88k*)
13382 # FIXME: insert proper C++ library support
13383 ld_shlibs_CXX=no
13386 mvs*)
13387 case $cc_basename in
13388 cxx*)
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13396 esac
13399 netbsd*)
13400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13401 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13402 wlarc=
13403 hardcode_libdir_flag_spec_CXX='-R$libdir'
13404 hardcode_direct_CXX=yes
13405 hardcode_shlibpath_var_CXX=no
13407 # Workaround some broken pre-1.5 toolchains
13408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13411 *nto* | *qnx*)
13412 ld_shlibs_CXX=yes
13415 openbsd2*)
13416 # C++ shared libraries are fairly broken
13417 ld_shlibs_CXX=no
13420 openbsd*)
13421 if test -f /usr/libexec/ld.so; then
13422 hardcode_direct_CXX=yes
13423 hardcode_shlibpath_var_CXX=no
13424 hardcode_direct_absolute_CXX=yes
13425 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13428 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13429 export_dynamic_flag_spec_CXX='${wl}-E'
13430 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13432 output_verbose_link_cmd=func_echo_all
13433 else
13434 ld_shlibs_CXX=no
13438 osf3* | osf4* | osf5*)
13439 case $cc_basename in
13440 KCC*)
13441 # Kuck and Associates, Inc. (KAI) C++ Compiler
13443 # KCC will only create a shared library if the output file
13444 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13445 # to its proper name (with version) after linking.
13446 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'
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449 hardcode_libdir_separator_CXX=:
13451 # Archives containing C++ object files must be created using
13452 # the KAI C++ compiler.
13453 case $host in
13454 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13455 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13456 esac
13458 RCC*)
13459 # Rational C++ 2.4.1
13460 # FIXME: insert proper C++ library support
13461 ld_shlibs_CXX=no
13463 cxx*)
13464 case $host in
13465 osf3*)
13466 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13467 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'
13468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13471 allow_undefined_flag_CXX=' -expect_unresolved \*'
13472 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'
13473 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13474 echo "-hidden">> $lib.exp~
13475 $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~
13476 $RM $lib.exp'
13477 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13479 esac
13481 hardcode_libdir_separator_CXX=:
13483 # Commands to make compiler produce verbose output that lists
13484 # what "hidden" libraries, object files and flags are used when
13485 # linking a shared library.
13487 # There doesn't appear to be a way to prevent this compiler from
13488 # explicitly linking system object files so we need to strip them
13489 # from the output so that they don't get included in the library
13490 # dependencies.
13491 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"'
13494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13496 case $host in
13497 osf3*)
13498 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'
13501 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13503 esac
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506 hardcode_libdir_separator_CXX=:
13508 # Commands to make compiler produce verbose output that lists
13509 # what "hidden" libraries, object files and flags are used when
13510 # linking a shared library.
13511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13513 else
13514 # FIXME: insert proper C++ library support
13515 ld_shlibs_CXX=no
13518 esac
13521 psos*)
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13526 sunos4*)
13527 case $cc_basename in
13528 CC*)
13529 # Sun C++ 4.x
13530 # FIXME: insert proper C++ library support
13531 ld_shlibs_CXX=no
13533 lcc*)
13534 # Lucid
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13539 # FIXME: insert proper C++ library support
13540 ld_shlibs_CXX=no
13542 esac
13545 solaris*)
13546 case $cc_basename in
13547 CC*)
13548 # Sun C++ 4.2, 5.x and Centerline C++
13549 archive_cmds_need_lc_CXX=yes
13550 no_undefined_flag_CXX=' -zdefs'
13551 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $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'
13555 hardcode_libdir_flag_spec_CXX='-R$libdir'
13556 hardcode_shlibpath_var_CXX=no
13557 case $host_os in
13558 solaris2.[0-5] | solaris2.[0-5].*) ;;
13560 # The compiler driver will combine and reorder linker options,
13561 # but understands `-z linker_flag'.
13562 # Supported since Solaris 2.6 (maybe 2.5.1?)
13563 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13565 esac
13566 link_all_deplibs_CXX=yes
13568 output_verbose_link_cmd='func_echo_all'
13570 # Archives containing C++ object files must be created using
13571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13572 # necessary to make sure instantiated templates are included
13573 # in the archive.
13574 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13576 gcx*)
13577 # Green Hills C++ Compiler
13578 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13580 # The C++ compiler must be used to create the archive.
13581 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13584 # GNU C++ compiler with Solaris linker
13585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13586 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13587 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13588 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13589 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13590 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13592 # Commands to make compiler produce verbose output that lists
13593 # what "hidden" libraries, object files and flags are used when
13594 # linking a shared library.
13595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13596 else
13597 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13598 # platform.
13599 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13600 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13601 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13603 # Commands to make compiler produce verbose output that lists
13604 # what "hidden" libraries, object files and flags are used when
13605 # linking a shared library.
13606 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13609 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13610 case $host_os in
13611 solaris2.[0-5] | solaris2.[0-5].*) ;;
13613 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13615 esac
13618 esac
13621 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13622 no_undefined_flag_CXX='${wl}-z,text'
13623 archive_cmds_need_lc_CXX=no
13624 hardcode_shlibpath_var_CXX=no
13625 runpath_var='LD_RUN_PATH'
13627 case $cc_basename in
13628 CC*)
13629 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13630 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 esac
13639 sysv5* | sco3.2v5* | sco5v6*)
13640 # Note: We can NOT use -z defs as we might desire, because we do not
13641 # link with -lc, and that would cause any symbols used from libc to
13642 # always be unresolved, which means just about no library would
13643 # ever link correctly. If we're not using GNU ld we use -z text
13644 # though, which does catch some bad symbols but isn't as heavy-handed
13645 # as -z defs.
13646 no_undefined_flag_CXX='${wl}-z,text'
13647 allow_undefined_flag_CXX='${wl}-z,nodefs'
13648 archive_cmds_need_lc_CXX=no
13649 hardcode_shlibpath_var_CXX=no
13650 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13651 hardcode_libdir_separator_CXX=':'
13652 link_all_deplibs_CXX=yes
13653 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13654 runpath_var='LD_RUN_PATH'
13656 case $cc_basename in
13657 CC*)
13658 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13661 '"$old_archive_cmds_CXX"
13662 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13663 '"$reload_cmds_CXX"
13666 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 esac
13672 tandem*)
13673 case $cc_basename in
13674 NCC*)
13675 # NonStop-UX NCC 3.20
13676 # FIXME: insert proper C++ library support
13677 ld_shlibs_CXX=no
13680 # FIXME: insert proper C++ library support
13681 ld_shlibs_CXX=no
13683 esac
13686 vxworks*)
13687 # FIXME: insert proper C++ library support
13688 ld_shlibs_CXX=no
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13695 esac
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13698 $as_echo "$ld_shlibs_CXX" >&6; }
13699 test "$ld_shlibs_CXX" = no && can_build_shared=no
13701 GCC_CXX="$GXX"
13702 LD_CXX="$LD"
13704 ## CAVEAT EMPTOR:
13705 ## There is no encapsulation within the following macros, do not change
13706 ## the running order or otherwise move them around unless you know exactly
13707 ## what you are doing...
13708 # Dependencies to place before and after the object being linked:
13709 predep_objects_CXX=
13710 postdep_objects_CXX=
13711 predeps_CXX=
13712 postdeps_CXX=
13713 compiler_lib_search_path_CXX=
13715 cat > conftest.$ac_ext <<_LT_EOF
13716 class Foo
13718 public:
13719 Foo (void) { a = 0; }
13720 private:
13721 int a;
13723 _LT_EOF
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13726 (eval $ac_compile) 2>&5
13727 ac_status=$?
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; }; then
13730 # Parse the compiler output and extract the necessary
13731 # objects, libraries and library flags.
13733 # Sentinel used to keep track of whether or not we are before
13734 # the conftest object file.
13735 pre_test_object_deps_done=no
13737 for p in `eval "$output_verbose_link_cmd"`; do
13738 case $p in
13740 -L* | -R* | -l*)
13741 # Some compilers place space between "-{L,R}" and the path.
13742 # Remove the space.
13743 if test $p = "-L" ||
13744 test $p = "-R"; then
13745 prev=$p
13746 continue
13747 else
13748 prev=
13751 if test "$pre_test_object_deps_done" = no; then
13752 case $p in
13753 -L* | -R*)
13754 # Internal compiler library paths should come after those
13755 # provided the user. The postdeps already come after the
13756 # user supplied libs so there is no need to process them.
13757 if test -z "$compiler_lib_search_path_CXX"; then
13758 compiler_lib_search_path_CXX="${prev}${p}"
13759 else
13760 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13763 # The "-l" case would never come before the object being
13764 # linked, so don't bother handling this case.
13765 esac
13766 else
13767 if test -z "$postdeps_CXX"; then
13768 postdeps_CXX="${prev}${p}"
13769 else
13770 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13775 *.$objext)
13776 # This assumes that the test object file only shows up
13777 # once in the compiler output.
13778 if test "$p" = "conftest.$objext"; then
13779 pre_test_object_deps_done=yes
13780 continue
13783 if test "$pre_test_object_deps_done" = no; then
13784 if test -z "$predep_objects_CXX"; then
13785 predep_objects_CXX="$p"
13786 else
13787 predep_objects_CXX="$predep_objects_CXX $p"
13789 else
13790 if test -z "$postdep_objects_CXX"; then
13791 postdep_objects_CXX="$p"
13792 else
13793 postdep_objects_CXX="$postdep_objects_CXX $p"
13798 *) ;; # Ignore the rest.
13800 esac
13801 done
13803 # Clean up.
13804 rm -f a.out a.exe
13805 else
13806 echo "libtool.m4: error: problem compiling CXX test program"
13809 $RM -f confest.$objext
13811 # PORTME: override above test on systems where it is broken
13812 case $host_os in
13813 interix[3-9]*)
13814 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13815 # hack all around it, let's just trust "g++" to DTRT.
13816 predep_objects_CXX=
13817 postdep_objects_CXX=
13818 postdeps_CXX=
13821 linux*)
13822 case `$CC -V 2>&1 | sed 5q` in
13823 *Sun\ C*)
13824 # Sun C++ 5.9
13826 # The more standards-conforming stlport4 library is
13827 # incompatible with the Cstd library. Avoid specifying
13828 # it if it's in CXXFLAGS. Ignore libCrun as
13829 # -library=stlport4 depends on it.
13830 case " $CXX $CXXFLAGS " in
13831 *" -library=stlport4 "*)
13832 solaris_use_stlport4=yes
13834 esac
13836 if test "$solaris_use_stlport4" != yes; then
13837 postdeps_CXX='-library=Cstd -library=Crun'
13840 esac
13843 solaris*)
13844 case $cc_basename in
13845 CC*)
13846 # The more standards-conforming stlport4 library is
13847 # incompatible with the Cstd library. Avoid specifying
13848 # it if it's in CXXFLAGS. Ignore libCrun as
13849 # -library=stlport4 depends on it.
13850 case " $CXX $CXXFLAGS " in
13851 *" -library=stlport4 "*)
13852 solaris_use_stlport4=yes
13854 esac
13856 # Adding this requires a known-good setup of shared libraries for
13857 # Sun compiler versions before 5.6, else PIC objects from an old
13858 # archive will be linked into the output, leading to subtle bugs.
13859 if test "$solaris_use_stlport4" != yes; then
13860 postdeps_CXX='-library=Cstd -library=Crun'
13863 esac
13865 esac
13868 case " $postdeps_CXX " in
13869 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13870 esac
13871 compiler_lib_search_dirs_CXX=
13872 if test -n "${compiler_lib_search_path_CXX}"; then
13873 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13906 lt_prog_compiler_wl_CXX=
13907 lt_prog_compiler_pic_CXX=
13908 lt_prog_compiler_static_CXX=
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13911 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13913 # C++ specific cases for pic, static, wl, etc.
13914 if test "$GXX" = yes; then
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_static_CXX='-static'
13918 case $host_os in
13919 aix*)
13920 # All AIX code is PIC.
13921 if test "$host_cpu" = ia64; then
13922 # AIX 5 now supports IA64 processor
13923 lt_prog_compiler_static_CXX='-Bstatic'
13925 lt_prog_compiler_pic_CXX='-fPIC'
13928 amigaos*)
13929 case $host_cpu in
13930 powerpc)
13931 # see comment about AmigaOS4 .so support
13932 lt_prog_compiler_pic_CXX='-fPIC'
13934 m68k)
13935 # FIXME: we need at least 68020 code to build shared libraries, but
13936 # adding the `-m68020' flag to GCC prevents building anything better,
13937 # like `-m68040'.
13938 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13940 esac
13943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13944 # PIC is the default for these OSes.
13946 mingw* | cygwin* | os2* | pw32* | cegcc*)
13947 # This hack is so that the source file can tell whether it is being
13948 # built for inclusion in a dll (and should export symbols for example).
13949 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13950 # (--disable-auto-import) libraries
13951 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13953 darwin* | rhapsody*)
13954 # PIC is the default on this platform
13955 # Common symbols not allowed in MH_DYLIB files
13956 lt_prog_compiler_pic_CXX='-fno-common'
13958 *djgpp*)
13959 # DJGPP does not support shared libraries at all
13960 lt_prog_compiler_pic_CXX=
13962 haiku*)
13963 # PIC is the default for Haiku.
13964 # The "-static" flag exists, but is broken.
13965 lt_prog_compiler_static_CXX=
13967 interix[3-9]*)
13968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13969 # Instead, we relocate shared libraries at runtime.
13971 sysv4*MP*)
13972 if test -d /usr/nec; then
13973 lt_prog_compiler_pic_CXX=-Kconform_pic
13976 hpux*)
13977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13979 # sets the default TLS model and affects inlining.
13980 case $host_cpu in
13981 hppa*64*)
13984 lt_prog_compiler_pic_CXX='-fPIC'
13986 esac
13988 *qnx* | *nto*)
13989 # QNX uses GNU C++, but need to define -shared option too, otherwise
13990 # it will coredump.
13991 lt_prog_compiler_pic_CXX='-fPIC -shared'
13994 lt_prog_compiler_pic_CXX='-fPIC'
13996 esac
13997 else
13998 case $host_os in
13999 aix[4-9]*)
14000 # All AIX code is PIC.
14001 if test "$host_cpu" = ia64; then
14002 # AIX 5 now supports IA64 processor
14003 lt_prog_compiler_static_CXX='-Bstatic'
14004 else
14005 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14008 chorus*)
14009 case $cc_basename in
14010 cxch68*)
14011 # Green Hills C++ Compiler
14012 # _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"
14014 esac
14016 dgux*)
14017 case $cc_basename in
14018 ec++*)
14019 lt_prog_compiler_pic_CXX='-KPIC'
14021 ghcx*)
14022 # Green Hills C++ Compiler
14023 lt_prog_compiler_pic_CXX='-pic'
14027 esac
14029 freebsd* | dragonfly*)
14030 # FreeBSD uses GNU C++
14032 hpux9* | hpux10* | hpux11*)
14033 case $cc_basename in
14034 CC*)
14035 lt_prog_compiler_wl_CXX='-Wl,'
14036 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14037 if test "$host_cpu" != ia64; then
14038 lt_prog_compiler_pic_CXX='+Z'
14041 aCC*)
14042 lt_prog_compiler_wl_CXX='-Wl,'
14043 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14044 case $host_cpu in
14045 hppa*64*|ia64*)
14046 # +Z the default
14049 lt_prog_compiler_pic_CXX='+Z'
14051 esac
14055 esac
14057 interix*)
14058 # This is c89, which is MS Visual C++ (no shared libs)
14059 # Anyone wants to do a port?
14061 irix5* | irix6* | nonstopux*)
14062 case $cc_basename in
14063 CC*)
14064 lt_prog_compiler_wl_CXX='-Wl,'
14065 lt_prog_compiler_static_CXX='-non_shared'
14066 # CC pic flag -KPIC is the default.
14070 esac
14072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14073 case $cc_basename in
14074 KCC*)
14075 # KAI C++ Compiler
14076 lt_prog_compiler_wl_CXX='--backend -Wl,'
14077 lt_prog_compiler_pic_CXX='-fPIC'
14079 ecpc* )
14080 # old Intel C++ for x86_64 which still supported -KPIC.
14081 lt_prog_compiler_wl_CXX='-Wl,'
14082 lt_prog_compiler_pic_CXX='-KPIC'
14083 lt_prog_compiler_static_CXX='-static'
14085 icpc* )
14086 # Intel C++, used to be incompatible with GCC.
14087 # ICC 10 doesn't accept -KPIC any more.
14088 lt_prog_compiler_wl_CXX='-Wl,'
14089 lt_prog_compiler_pic_CXX='-fPIC'
14090 lt_prog_compiler_static_CXX='-static'
14092 pgCC* | pgcpp*)
14093 # Portland Group C++ compiler
14094 lt_prog_compiler_wl_CXX='-Wl,'
14095 lt_prog_compiler_pic_CXX='-fpic'
14096 lt_prog_compiler_static_CXX='-Bstatic'
14098 cxx*)
14099 # Compaq C++
14100 # Make sure the PIC flag is empty. It appears that all Alpha
14101 # Linux and Compaq Tru64 Unix objects are PIC.
14102 lt_prog_compiler_pic_CXX=
14103 lt_prog_compiler_static_CXX='-non_shared'
14105 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14106 # IBM XL 8.0, 9.0 on PPC and BlueGene
14107 lt_prog_compiler_wl_CXX='-Wl,'
14108 lt_prog_compiler_pic_CXX='-qpic'
14109 lt_prog_compiler_static_CXX='-qstaticlink'
14112 case `$CC -V 2>&1 | sed 5q` in
14113 *Sun\ C*)
14114 # Sun C++ 5.9
14115 lt_prog_compiler_pic_CXX='-KPIC'
14116 lt_prog_compiler_static_CXX='-Bstatic'
14117 lt_prog_compiler_wl_CXX='-Qoption ld '
14119 esac
14121 esac
14123 lynxos*)
14125 m88k*)
14127 mvs*)
14128 case $cc_basename in
14129 cxx*)
14130 lt_prog_compiler_pic_CXX='-W c,exportall'
14134 esac
14136 netbsd*)
14138 *qnx* | *nto*)
14139 # QNX uses GNU C++, but need to define -shared option too, otherwise
14140 # it will coredump.
14141 lt_prog_compiler_pic_CXX='-fPIC -shared'
14143 osf3* | osf4* | osf5*)
14144 case $cc_basename in
14145 KCC*)
14146 lt_prog_compiler_wl_CXX='--backend -Wl,'
14148 RCC*)
14149 # Rational C++ 2.4.1
14150 lt_prog_compiler_pic_CXX='-pic'
14152 cxx*)
14153 # Digital/Compaq C++
14154 lt_prog_compiler_wl_CXX='-Wl,'
14155 # Make sure the PIC flag is empty. It appears that all Alpha
14156 # Linux and Compaq Tru64 Unix objects are PIC.
14157 lt_prog_compiler_pic_CXX=
14158 lt_prog_compiler_static_CXX='-non_shared'
14162 esac
14164 psos*)
14166 solaris*)
14167 case $cc_basename in
14168 CC*)
14169 # Sun C++ 4.2, 5.x and Centerline C++
14170 lt_prog_compiler_pic_CXX='-KPIC'
14171 lt_prog_compiler_static_CXX='-Bstatic'
14172 lt_prog_compiler_wl_CXX='-Qoption ld '
14174 gcx*)
14175 # Green Hills C++ Compiler
14176 lt_prog_compiler_pic_CXX='-PIC'
14180 esac
14182 sunos4*)
14183 case $cc_basename in
14184 CC*)
14185 # Sun C++ 4.x
14186 lt_prog_compiler_pic_CXX='-pic'
14187 lt_prog_compiler_static_CXX='-Bstatic'
14189 lcc*)
14190 # Lucid
14191 lt_prog_compiler_pic_CXX='-pic'
14195 esac
14197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14198 case $cc_basename in
14199 CC*)
14200 lt_prog_compiler_wl_CXX='-Wl,'
14201 lt_prog_compiler_pic_CXX='-KPIC'
14202 lt_prog_compiler_static_CXX='-Bstatic'
14204 esac
14206 tandem*)
14207 case $cc_basename in
14208 NCC*)
14209 # NonStop-UX NCC 3.20
14210 lt_prog_compiler_pic_CXX='-KPIC'
14214 esac
14216 vxworks*)
14219 lt_prog_compiler_can_build_shared_CXX=no
14221 esac
14224 case $host_os in
14225 # For platforms which do not support PIC, -DPIC is meaningless:
14226 *djgpp*)
14227 lt_prog_compiler_pic_CXX=
14230 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14232 esac
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14234 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14239 # Check to make sure the PIC flag actually works.
14241 if test -n "$lt_prog_compiler_pic_CXX"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14243 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14244 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 lt_cv_prog_compiler_pic_works_CXX=no
14248 ac_outfile=conftest.$ac_objext
14249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14250 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14251 # Insert the option either (1) after the last *FLAGS variable, or
14252 # (2) before a word containing "conftest.", or (3) at the end.
14253 # Note that $ac_compile itself does not contain backslashes and begins
14254 # with a dollar sign (not a hyphen), so the echo should work correctly.
14255 # The option is referenced via a variable to avoid confusing sed.
14256 lt_compile=`echo "$ac_compile" | $SED \
14257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14259 -e 's:$: $lt_compiler_flag:'`
14260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14261 (eval "$lt_compile" 2>conftest.err)
14262 ac_status=$?
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 if (exit $ac_status) && test -s "$ac_outfile"; then
14266 # The compiler can only warn and ignore the option if not recognized
14267 # So say no if there are warnings other than the usual output.
14268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14271 lt_cv_prog_compiler_pic_works_CXX=yes
14274 $RM conftest*
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14278 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14280 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14281 case $lt_prog_compiler_pic_CXX in
14282 "" | " "*) ;;
14283 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14284 esac
14285 else
14286 lt_prog_compiler_pic_CXX=
14287 lt_prog_compiler_can_build_shared_CXX=no
14295 # Check to make sure the static flag actually works.
14297 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14299 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14300 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14301 $as_echo_n "(cached) " >&6
14302 else
14303 lt_cv_prog_compiler_static_works_CXX=no
14304 save_LDFLAGS="$LDFLAGS"
14305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14306 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14308 # The linker can only warn and ignore the option if not recognized
14309 # So say no if there are warnings
14310 if test -s conftest.err; then
14311 # Append any errors to the config.log.
14312 cat conftest.err 1>&5
14313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14315 if diff conftest.exp conftest.er2 >/dev/null; then
14316 lt_cv_prog_compiler_static_works_CXX=yes
14318 else
14319 lt_cv_prog_compiler_static_works_CXX=yes
14322 $RM -r conftest*
14323 LDFLAGS="$save_LDFLAGS"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14327 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14329 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14331 else
14332 lt_prog_compiler_static_CXX=
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14340 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 lt_cv_prog_compiler_c_o_CXX=no
14344 $RM -r conftest 2>/dev/null
14345 mkdir conftest
14346 cd conftest
14347 mkdir out
14348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14350 lt_compiler_flag="-o out/conftest2.$ac_objext"
14351 # Insert the option either (1) after the last *FLAGS variable, or
14352 # (2) before a word containing "conftest.", or (3) at the end.
14353 # Note that $ac_compile itself does not contain backslashes and begins
14354 # with a dollar sign (not a hyphen), so the echo should work correctly.
14355 lt_compile=`echo "$ac_compile" | $SED \
14356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14358 -e 's:$: $lt_compiler_flag:'`
14359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14360 (eval "$lt_compile" 2>out/conftest.err)
14361 ac_status=$?
14362 cat out/conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14365 then
14366 # The compiler can only warn and ignore the option if not recognized
14367 # So say no if there are warnings
14368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14371 lt_cv_prog_compiler_c_o_CXX=yes
14374 chmod u+w . 2>&5
14375 $RM conftest*
14376 # SGI C++ compiler will create directory out/ii_files/ for
14377 # template instantiation
14378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14379 $RM out/* && rmdir out
14380 cd ..
14381 $RM -r conftest
14382 $RM conftest*
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14386 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 lt_cv_prog_compiler_c_o_CXX=no
14396 $RM -r conftest 2>/dev/null
14397 mkdir conftest
14398 cd conftest
14399 mkdir out
14400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14402 lt_compiler_flag="-o out/conftest2.$ac_objext"
14403 # Insert the option either (1) after the last *FLAGS variable, or
14404 # (2) before a word containing "conftest.", or (3) at the end.
14405 # Note that $ac_compile itself does not contain backslashes and begins
14406 # with a dollar sign (not a hyphen), so the echo should work correctly.
14407 lt_compile=`echo "$ac_compile" | $SED \
14408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14410 -e 's:$: $lt_compiler_flag:'`
14411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14412 (eval "$lt_compile" 2>out/conftest.err)
14413 ac_status=$?
14414 cat out/conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14417 then
14418 # The compiler can only warn and ignore the option if not recognized
14419 # So say no if there are warnings
14420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14423 lt_cv_prog_compiler_c_o_CXX=yes
14426 chmod u+w . 2>&5
14427 $RM conftest*
14428 # SGI C++ compiler will create directory out/ii_files/ for
14429 # template instantiation
14430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14431 $RM out/* && rmdir out
14432 cd ..
14433 $RM -r conftest
14434 $RM conftest*
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14438 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14443 hard_links="nottested"
14444 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14445 # do not overwrite the value of need_locks provided by the user
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14447 $as_echo_n "checking if we can lock with hard links... " >&6; }
14448 hard_links=yes
14449 $RM conftest*
14450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14451 touch conftest.a
14452 ln conftest.a conftest.b 2>&5 || hard_links=no
14453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14455 $as_echo "$hard_links" >&6; }
14456 if test "$hard_links" = no; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14459 need_locks=warn
14461 else
14462 need_locks=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14468 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14470 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14471 case $host_os in
14472 aix[4-9]*)
14473 # If we're using GNU nm, then we don't want the "-C" option.
14474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475 # Also, AIX nm treats weak defined symbols like other global defined
14476 # symbols, whereas GNU nm marks them as "W".
14477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14478 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'
14479 else
14480 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'
14483 pw32*)
14484 export_symbols_cmds_CXX="$ltdll_cmds"
14486 cygwin* | mingw* | cegcc*)
14487 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14492 esac
14493 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14496 $as_echo "$ld_shlibs_CXX" >&6; }
14497 test "$ld_shlibs_CXX" = no && can_build_shared=no
14499 with_gnu_ld_CXX=$with_gnu_ld
14507 # Do we need to explicitly link libc?
14509 case "x$archive_cmds_need_lc_CXX" in
14510 x|xyes)
14511 # Assume -lc should be added
14512 archive_cmds_need_lc_CXX=yes
14514 if test "$enable_shared" = yes && test "$GCC" = yes; then
14515 case $archive_cmds_CXX in
14516 *'~'*)
14517 # FIXME: we may have to deal with multi-command sequences.
14519 '$CC '*)
14520 # Test whether the compiler implicitly links with -lc since on some
14521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14522 # to ld, don't add -lc before -lgcc.
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14524 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14525 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 $RM conftest*
14529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14532 (eval $ac_compile) 2>&5
14533 ac_status=$?
14534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14535 test $ac_status = 0; } 2>conftest.err; then
14536 soname=conftest
14537 lib=conftest
14538 libobjs=conftest.$ac_objext
14539 deplibs=
14540 wl=$lt_prog_compiler_wl_CXX
14541 pic_flag=$lt_prog_compiler_pic_CXX
14542 compiler_flags=-v
14543 linker_flags=-v
14544 verstring=
14545 output_objdir=.
14546 libname=conftest
14547 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14548 allow_undefined_flag_CXX=
14549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14550 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14551 ac_status=$?
14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14553 test $ac_status = 0; }
14554 then
14555 lt_cv_archive_cmds_need_lc_CXX=no
14556 else
14557 lt_cv_archive_cmds_need_lc_CXX=yes
14559 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14560 else
14561 cat conftest.err 1>&5
14563 $RM conftest*
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14567 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14568 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14570 esac
14573 esac
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14639 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14641 library_names_spec=
14642 libname_spec='lib$name'
14643 soname_spec=
14644 shrext_cmds=".so"
14645 postinstall_cmds=
14646 postuninstall_cmds=
14647 finish_cmds=
14648 finish_eval=
14649 shlibpath_var=
14650 shlibpath_overrides_runpath=unknown
14651 version_type=none
14652 dynamic_linker="$host_os ld.so"
14653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14654 need_lib_prefix=unknown
14655 hardcode_into_libs=no
14657 # when you set need_version to no, make sure it does not cause -set_version
14658 # flags to be left without arguments
14659 need_version=unknown
14661 case $host_os in
14662 aix3*)
14663 version_type=linux
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14665 shlibpath_var=LIBPATH
14667 # AIX 3 has no versioning support, so we append a major version to the name.
14668 soname_spec='${libname}${release}${shared_ext}$major'
14671 aix[4-9]*)
14672 version_type=linux
14673 need_lib_prefix=no
14674 need_version=no
14675 hardcode_into_libs=yes
14676 if test "$host_cpu" = ia64; then
14677 # AIX 5 supports IA64
14678 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 else
14681 # With GCC up to 2.95.x, collect2 would create an import file
14682 # for dependence libraries. The import file would start with
14683 # the line `#! .'. This would cause the generated library to
14684 # depend on `.', always an invalid library. This was fixed in
14685 # development snapshots of GCC prior to 3.0.
14686 case $host_os in
14687 aix4 | aix4.[01] | aix4.[01].*)
14688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14689 echo ' yes '
14690 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14692 else
14693 can_build_shared=no
14696 esac
14697 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14698 # soname into executable. Probably we can add versioning support to
14699 # collect2, so additional links can be useful in future.
14700 if test "$aix_use_runtimelinking" = yes; then
14701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14702 # instead of lib<name>.a to let people know that these are not
14703 # typical AIX shared libraries.
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 else
14706 # We preserve .a as extension for shared libraries through AIX4.2
14707 # and later when we are not doing run time linking.
14708 library_names_spec='${libname}${release}.a $libname.a'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14711 shlibpath_var=LIBPATH
14715 amigaos*)
14716 case $host_cpu in
14717 powerpc)
14718 # Since July 2007 AmigaOS4 officially supports .so libraries.
14719 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 m68k)
14723 library_names_spec='$libname.ixlibrary $libname.a'
14724 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14725 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'
14727 esac
14730 beos*)
14731 library_names_spec='${libname}${shared_ext}'
14732 dynamic_linker="$host_os ld.so"
14733 shlibpath_var=LIBRARY_PATH
14736 bsdi[45]*)
14737 version_type=linux
14738 need_version=no
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14745 # the default ld.so.conf also contains /usr/contrib/lib and
14746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14747 # libtool to hard-code these into programs
14750 cygwin* | mingw* | pw32* | cegcc*)
14751 version_type=windows
14752 shrext_cmds=".dll"
14753 need_version=no
14754 need_lib_prefix=no
14756 case $GCC,$host_os in
14757 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14758 library_names_spec='$libname.dll.a'
14759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14760 postinstall_cmds='base_file=`basename \${file}`~
14761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14762 dldir=$destdir/`dirname \$dlpath`~
14763 test -d \$dldir || mkdir -p \$dldir~
14764 $install_prog $dir/$dlname \$dldir/$dlname~
14765 chmod a+x \$dldir/$dlname~
14766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14770 dlpath=$dir/\$dldll~
14771 $RM \$dlpath'
14772 shlibpath_overrides_runpath=yes
14774 case $host_os in
14775 cygwin*)
14776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14780 mingw* | cegcc*)
14781 # MinGW DLLs use traditional 'lib' prefix
14782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14784 pw32*)
14785 # pw32 DLLs use 'pw' prefix rather than 'lib'
14786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14788 esac
14792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14794 esac
14795 dynamic_linker='Win32 ld.exe'
14796 # FIXME: first we should search . and the directory the executable is in
14797 shlibpath_var=PATH
14800 darwin* | rhapsody*)
14801 dynamic_linker="$host_os dyld"
14802 version_type=darwin
14803 need_lib_prefix=no
14804 need_version=no
14805 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14806 soname_spec='${libname}${release}${major}$shared_ext'
14807 shlibpath_overrides_runpath=yes
14808 shlibpath_var=DYLD_LIBRARY_PATH
14809 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14814 dgux*)
14815 version_type=linux
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
14823 freebsd* | dragonfly*)
14824 # DragonFly does not have aout. When/if they implement a new
14825 # versioning mechanism, adjust this.
14826 if test -x /usr/bin/objformat; then
14827 objformat=`/usr/bin/objformat`
14828 else
14829 case $host_os in
14830 freebsd[23].*) objformat=aout ;;
14831 *) objformat=elf ;;
14832 esac
14834 version_type=freebsd-$objformat
14835 case $version_type in
14836 freebsd-elf*)
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14838 need_version=no
14839 need_lib_prefix=no
14841 freebsd-*)
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14843 need_version=yes
14845 esac
14846 shlibpath_var=LD_LIBRARY_PATH
14847 case $host_os in
14848 freebsd2.*)
14849 shlibpath_overrides_runpath=yes
14851 freebsd3.[01]* | freebsdelf3.[01]*)
14852 shlibpath_overrides_runpath=yes
14853 hardcode_into_libs=yes
14855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14857 shlibpath_overrides_runpath=no
14858 hardcode_into_libs=yes
14860 *) # from 4.6 on, and DragonFly
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14864 esac
14867 gnu*)
14868 version_type=linux
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 hardcode_into_libs=yes
14877 haiku*)
14878 version_type=linux
14879 need_lib_prefix=no
14880 need_version=no
14881 dynamic_linker="$host_os runtime_loader"
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 shlibpath_var=LIBRARY_PATH
14885 shlibpath_overrides_runpath=yes
14886 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14887 hardcode_into_libs=yes
14890 hpux9* | hpux10* | hpux11*)
14891 # Give a soname corresponding to the major version so that dld.sl refuses to
14892 # link against other versions.
14893 version_type=sunos
14894 need_lib_prefix=no
14895 need_version=no
14896 case $host_cpu in
14897 ia64*)
14898 shrext_cmds='.so'
14899 hardcode_into_libs=yes
14900 dynamic_linker="$host_os dld.so"
14901 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 if test "X$HPUX_IA64_MODE" = X32; then
14906 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14907 else
14908 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14912 hppa*64*)
14913 shrext_cmds='.sl'
14914 hardcode_into_libs=yes
14915 dynamic_linker="$host_os dld.sl"
14916 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14924 shrext_cmds='.sl'
14925 dynamic_linker="$host_os dld.sl"
14926 shlibpath_var=SHLIB_PATH
14927 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14931 esac
14932 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14933 postinstall_cmds='chmod 555 $lib'
14934 # or fails outright, so override atomically:
14935 install_override_mode=555
14938 interix[3-9]*)
14939 version_type=linux
14940 need_lib_prefix=no
14941 need_version=no
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14950 irix5* | irix6* | nonstopux*)
14951 case $host_os in
14952 nonstopux*) version_type=nonstopux ;;
14954 if test "$lt_cv_prog_gnu_ld" = yes; then
14955 version_type=linux
14956 else
14957 version_type=irix
14958 fi ;;
14959 esac
14960 need_lib_prefix=no
14961 need_version=no
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14964 case $host_os in
14965 irix5* | nonstopux*)
14966 libsuff= shlibsuff=
14969 case $LD in # libtool.m4 will add one of these switches to LD
14970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14971 libsuff= shlibsuff= libmagic=32-bit;;
14972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14973 libsuff=32 shlibsuff=N32 libmagic=N32;;
14974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14976 *) libsuff= shlibsuff= libmagic=never-match;;
14977 esac
14979 esac
14980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14981 shlibpath_overrides_runpath=no
14982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14984 hardcode_into_libs=yes
14987 # No shared lib support for Linux oldld, aout, or coff.
14988 linux*oldld* | linux*aout* | linux*coff*)
14989 dynamic_linker=no
14992 # This must be Linux ELF.
14993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14994 version_type=linux
14995 need_lib_prefix=no
14996 need_version=no
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=no
15003 # Some binutils ld are patched to set DT_RUNPATH
15004 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15005 $as_echo_n "(cached) " >&6
15006 else
15007 lt_cv_shlibpath_overrides_runpath=no
15008 save_LDFLAGS=$LDFLAGS
15009 save_libdir=$libdir
15010 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15011 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15016 main ()
15020 return 0;
15022 _ACEOF
15023 if ac_fn_cxx_try_link "$LINENO"; then :
15024 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15025 lt_cv_shlibpath_overrides_runpath=yes
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LDFLAGS=$save_LDFLAGS
15031 libdir=$save_libdir
15035 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15037 # This implies no fast_install, which is unacceptable.
15038 # Some rework will be needed to allow for fast_install
15039 # before this can be enabled.
15040 hardcode_into_libs=yes
15042 # Append ld.so.conf contents to the search path
15043 if test -f /etc/ld.so.conf; then
15044 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' ' '`
15045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15048 # We used to test for /lib/ld.so.1 and disable shared libraries on
15049 # powerpc, because MkLinux only supported shared libraries with the
15050 # GNU dynamic linker. Since this was broken with cross compilers,
15051 # most powerpc-linux boxes support dynamic linking these days and
15052 # people can always --disable-shared, the test was removed, and we
15053 # assume the GNU/Linux dynamic linker is in use.
15054 dynamic_linker='GNU/Linux ld.so'
15057 netbsd*)
15058 version_type=sunos
15059 need_lib_prefix=no
15060 need_version=no
15061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15064 dynamic_linker='NetBSD (a.out) ld.so'
15065 else
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 dynamic_linker='NetBSD ld.elf_so'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15075 newsos6)
15076 version_type=linux
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=yes
15082 *nto* | *qnx*)
15083 version_type=qnx
15084 need_lib_prefix=no
15085 need_version=no
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 shlibpath_overrides_runpath=no
15090 hardcode_into_libs=yes
15091 dynamic_linker='ldqnx.so'
15094 openbsd*)
15095 version_type=sunos
15096 sys_lib_dlsearch_path_spec="/usr/lib"
15097 need_lib_prefix=no
15098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15099 case $host_os in
15100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15101 *) need_version=no ;;
15102 esac
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15105 shlibpath_var=LD_LIBRARY_PATH
15106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15107 case $host_os in
15108 openbsd2.[89] | openbsd2.[89].*)
15109 shlibpath_overrides_runpath=no
15112 shlibpath_overrides_runpath=yes
15114 esac
15115 else
15116 shlibpath_overrides_runpath=yes
15120 os2*)
15121 libname_spec='$name'
15122 shrext_cmds=".dll"
15123 need_lib_prefix=no
15124 library_names_spec='$libname${shared_ext} $libname.a'
15125 dynamic_linker='OS/2 ld.exe'
15126 shlibpath_var=LIBPATH
15129 osf3* | osf4* | osf5*)
15130 version_type=osf
15131 need_lib_prefix=no
15132 need_version=no
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15140 rdos*)
15141 dynamic_linker=no
15144 solaris*)
15145 version_type=linux
15146 need_lib_prefix=no
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 hardcode_into_libs=yes
15153 # ldd complains unless libraries are executable
15154 postinstall_cmds='chmod +x $lib'
15157 sunos4*)
15158 version_type=sunos
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=yes
15163 if test "$with_gnu_ld" = yes; then
15164 need_lib_prefix=no
15166 need_version=yes
15169 sysv4 | sysv4.3*)
15170 version_type=linux
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 case $host_vendor in
15175 sni)
15176 shlibpath_overrides_runpath=no
15177 need_lib_prefix=no
15178 runpath_var=LD_RUN_PATH
15180 siemens)
15181 need_lib_prefix=no
15183 motorola)
15184 need_lib_prefix=no
15185 need_version=no
15186 shlibpath_overrides_runpath=no
15187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15189 esac
15192 sysv4*MP*)
15193 if test -d /usr/nec ;then
15194 version_type=linux
15195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15196 soname_spec='$libname${shared_ext}.$major'
15197 shlibpath_var=LD_LIBRARY_PATH
15201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15202 version_type=freebsd-elf
15203 need_lib_prefix=no
15204 need_version=no
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 shlibpath_overrides_runpath=yes
15209 hardcode_into_libs=yes
15210 if test "$with_gnu_ld" = yes; then
15211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15212 else
15213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15214 case $host_os in
15215 sco3.2v5*)
15216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15218 esac
15220 sys_lib_dlsearch_path_spec='/usr/lib'
15223 tpf*)
15224 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15225 version_type=linux
15226 need_lib_prefix=no
15227 need_version=no
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=no
15231 hardcode_into_libs=yes
15234 uts4*)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 shlibpath_var=LD_LIBRARY_PATH
15242 dynamic_linker=no
15244 esac
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15246 $as_echo "$dynamic_linker" >&6; }
15247 test "$dynamic_linker" = no && can_build_shared=no
15249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15250 if test "$GCC" = yes; then
15251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15254 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15255 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15257 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15258 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15300 hardcode_action_CXX=
15301 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15302 test -n "$runpath_var_CXX" ||
15303 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15305 # We can hardcode non-existent directories.
15306 if test "$hardcode_direct_CXX" != no &&
15307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15308 # have to relink, otherwise we might link with an installed library
15309 # when we should be linking with a yet-to-be-installed one
15310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15311 test "$hardcode_minus_L_CXX" != no; then
15312 # Linking always hardcodes the temporary library directory.
15313 hardcode_action_CXX=relink
15314 else
15315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15316 hardcode_action_CXX=immediate
15318 else
15319 # We cannot hardcode anything, or else we can only hardcode existing
15320 # directories.
15321 hardcode_action_CXX=unsupported
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15324 $as_echo "$hardcode_action_CXX" >&6; }
15326 if test "$hardcode_action_CXX" = relink ||
15327 test "$inherit_rpath_CXX" = yes; then
15328 # Fast installation is not supported
15329 enable_fast_install=no
15330 elif test "$shlibpath_overrides_runpath" = yes ||
15331 test "$enable_shared" = no; then
15332 # Fast installation is not necessary
15333 enable_fast_install=needless
15342 fi # test -n "$compiler"
15344 CC=$lt_save_CC
15345 LDCXX=$LD
15346 LD=$lt_save_LD
15347 GCC=$lt_save_GCC
15348 with_gnu_ld=$lt_save_with_gnu_ld
15349 lt_cv_path_LDCXX=$lt_cv_path_LD
15350 lt_cv_path_LD=$lt_save_path_LD
15351 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15352 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15353 fi # test "$_lt_caught_CXX_error" != yes
15355 ac_ext=c
15356 ac_cpp='$CPP $CPPFLAGS'
15357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373 ac_config_commands="$ac_config_commands libtool"
15378 # Only expand once:
15382 for ac_prog in gawk mawk nawk awk
15384 # Extract the first word of "$ac_prog", so it can be a program name with args.
15385 set dummy $ac_prog; ac_word=$2
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15387 $as_echo_n "checking for $ac_word... " >&6; }
15388 if test "${ac_cv_prog_AWK+set}" = set; then :
15389 $as_echo_n "(cached) " >&6
15390 else
15391 if test -n "$AWK"; then
15392 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15393 else
15394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15395 for as_dir in $PATH
15397 IFS=$as_save_IFS
15398 test -z "$as_dir" && as_dir=.
15399 for ac_exec_ext in '' $ac_executable_extensions; do
15400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15401 ac_cv_prog_AWK="$ac_prog"
15402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15403 break 2
15405 done
15406 done
15407 IFS=$as_save_IFS
15411 AWK=$ac_cv_prog_AWK
15412 if test -n "$AWK"; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15414 $as_echo "$AWK" >&6; }
15415 else
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15421 test -n "$AWK" && break
15422 done
15424 case "$AWK" in
15425 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15426 esac
15431 # The cast to long int works around a bug in the HP C Compiler
15432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15434 # This bug is HP SR number 8606223364.
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15436 $as_echo_n "checking size of void *... " >&6; }
15437 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15442 else
15443 if test "$ac_cv_type_void_p" = yes; then
15444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15446 { as_fn_set_status 77
15447 as_fn_error "cannot compute sizeof (void *)
15448 See \`config.log' for more details." "$LINENO" 5; }; }
15449 else
15450 ac_cv_sizeof_void_p=0
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15456 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15460 cat >>confdefs.h <<_ACEOF
15461 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15462 _ACEOF
15466 if test "${multilib}" = "yes"; then
15467 multilib_arg="--enable-multilib"
15468 else
15469 multilib_arg=
15472 # Get target configury.
15473 unset TSAN_SUPPORTED
15474 unset LSAN_SUPPORTED
15475 . ${srcdir}/configure.tgt
15476 if test "x$TSAN_SUPPORTED" = "xyes"; then
15477 TSAN_SUPPORTED_TRUE=
15478 TSAN_SUPPORTED_FALSE='#'
15479 else
15480 TSAN_SUPPORTED_TRUE='#'
15481 TSAN_SUPPORTED_FALSE=
15484 if test "x$LSAN_SUPPORTED" = "xyes"; then
15485 LSAN_SUPPORTED_TRUE=
15486 LSAN_SUPPORTED_FALSE='#'
15487 else
15488 LSAN_SUPPORTED_TRUE='#'
15489 LSAN_SUPPORTED_FALSE=
15493 # Check for functions needed.
15494 for ac_func in clock_getres clock_gettime clock_settime
15495 do :
15496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15498 eval as_val=\$$as_ac_var
15499 if test "x$as_val" = x""yes; then :
15500 cat >>confdefs.h <<_ACEOF
15501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15502 _ACEOF
15505 done
15508 # Common libraries that we need to link against for all sanitizer libs.
15509 link_sanitizer_common='-lpthread -ldl -lm'
15511 # Set up the set of additional libraries that we need to link against for libasan.
15512 link_libasan=$link_sanitizer_common
15515 # Set up the set of additional libraries that we need to link against for libtsan.
15516 link_libtsan=$link_sanitizer_common
15519 # Set up the set of additional libraries that we need to link against for libubsan.
15520 link_libubsan=$link_sanitizer_common
15523 # Set up the set of additional libraries that we need to link against for liblsan.
15524 link_liblsan=$link_sanitizer_common
15527 # At least for glibc, clock_gettime is in librt. But don't pull that
15528 # in if it still doesn't give us the function we want. This
15529 # test is copied from libgomp.
15530 if test $ac_cv_func_clock_gettime = no; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15532 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15533 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lrt $LIBS"
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h. */
15541 /* Override any GCC internal prototype to avoid an error.
15542 Use char because int might match the return type of a GCC
15543 builtin and then its argument prototype would still apply. */
15544 #ifdef __cplusplus
15545 extern "C"
15546 #endif
15547 char clock_gettime ();
15549 main ()
15551 return clock_gettime ();
15553 return 0;
15555 _ACEOF
15556 if ac_fn_c_try_link "$LINENO"; then :
15557 ac_cv_lib_rt_clock_gettime=yes
15558 else
15559 ac_cv_lib_rt_clock_gettime=no
15561 rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
15563 LIBS=$ac_check_lib_save_LIBS
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15566 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15567 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15568 link_libasan="-lrt $link_libasan"
15569 link_libtsan="-lrt $link_libtsan"
15570 # Other sanitizers do not override clock_* API
15576 case "$host" in
15577 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15578 *) MAC_INTERPOSE=false ;;
15579 esac
15580 if $MAC_INTERPOSE; then
15581 USING_MAC_INTERPOSE_TRUE=
15582 USING_MAC_INTERPOSE_FALSE='#'
15583 else
15584 USING_MAC_INTERPOSE_TRUE='#'
15585 USING_MAC_INTERPOSE_FALSE=
15589 backtrace_supported=yes
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15592 $as_echo_n "checking for necessary platform features... " >&6; }
15593 case "$target" in
15594 *-*-linux*)
15595 # Some old Linux distributions miss required syscalls.
15596 sanitizer_supported=no
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 #include <sys/syscall.h>
15601 main ()
15604 syscall (__NR_gettid);
15605 syscall (__NR_futex);
15606 syscall (__NR_exit_group);
15609 return 0;
15611 _ACEOF
15612 if ac_fn_c_try_compile "$LINENO"; then :
15613 sanitizer_supported=yes
15615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 sanitizer_supported=yes
15620 esac
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15622 $as_echo "$sanitizer_supported" >&6; }
15623 if test "$sanitizer_supported" = yes; then
15624 SANITIZER_SUPPORTED_TRUE=
15625 SANITIZER_SUPPORTED_FALSE='#'
15626 else
15627 SANITIZER_SUPPORTED_TRUE='#'
15628 SANITIZER_SUPPORTED_FALSE=
15632 # Test for __sync support.
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15634 $as_echo_n "checking __sync extensions... " >&6; }
15635 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if test -n "${with_target_subdir}"; then
15639 libsanitizer_cv_sys_sync=yes
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15645 main ()
15647 __sync_bool_compare_and_swap (&i, i, i);
15648 __sync_lock_test_and_set (&i, 1);
15649 __sync_lock_release (&i);
15651 return 0;
15653 _ACEOF
15654 if ac_fn_c_try_link "$LINENO"; then :
15655 libsanitizer_cv_sys_sync=yes
15656 else
15657 libsanitizer_cv_sys_sync=no
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15664 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15665 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15667 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15671 # Test for __atomic support.
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15673 $as_echo_n "checking __atomic extensions... " >&6; }
15674 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 if test -n "${with_target_subdir}"; then
15678 libsanitizer_cv_sys_atomic=yes
15679 else
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 int i;
15684 main ()
15686 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15687 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15689 return 0;
15691 _ACEOF
15692 if ac_fn_c_try_link "$LINENO"; then :
15693 libsanitizer_cv_sys_atomic=yes
15694 else
15695 libsanitizer_cv_sys_atomic=no
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15702 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15703 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15705 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15709 # The library needs to be able to read the executable itself. Compile
15710 # a file to determine the executable format. The awk script
15711 # filetype.awk prints out the file type.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15713 $as_echo_n "checking output filetype... " >&6; }
15714 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 filetype=
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15720 int i;
15722 main ()
15724 int j;
15726 return 0;
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15731 else
15732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15734 as_fn_error "compiler failed
15735 See \`config.log' for more details." "$LINENO" 5; }
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 libsanitizer_cv_sys_filetype=$filetype
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15741 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15743 # Match the file type to decide what files to compile.
15744 FORMAT_FILE=
15745 case "$libsanitizer_cv_sys_filetype" in
15746 elf*) FORMAT_FILE="elf.lo" ;;
15747 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15748 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15749 FORMAT_FILE="unknown.lo"
15750 backtrace_supported=no
15752 esac
15755 # ELF defines.
15756 elfsize=
15757 case "$libsanitizer_cv_sys_filetype" in
15758 elf32) elfsize=32 ;;
15759 elf64) elfsize=64 ;;
15760 esac
15762 cat >>confdefs.h <<_ACEOF
15763 #define BACKTRACE_ELF_SIZE $elfsize
15764 _ACEOF
15767 BACKTRACE_SUPPORTED=0
15768 if test "$backtrace_supported" = "yes"; then
15769 BACKTRACE_SUPPORTED=1
15775 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15777 acx_cv_header_stdint=stddef.h
15778 acx_cv_header_stdint_kind="(already complete)"
15779 for i in stdint.h $inttype_headers; do
15780 unset ac_cv_type_uintptr_t
15781 unset ac_cv_type_uintmax_t
15782 unset ac_cv_type_int_least32_t
15783 unset ac_cv_type_int_fast32_t
15784 unset ac_cv_type_uint64_t
15785 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15786 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15787 #include <$i>
15789 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15790 acx_cv_header_stdint=$i
15791 else
15792 continue
15795 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15796 #include <$i>
15798 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15800 else
15801 acx_cv_header_stdint_kind="(mostly complete)"
15804 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15805 #include <$i>
15807 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15809 else
15810 acx_cv_header_stdint_kind="(mostly complete)"
15813 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15814 #include <$i>
15816 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15818 else
15819 acx_cv_header_stdint_kind="(mostly complete)"
15822 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15823 #include <$i>
15825 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15827 else
15828 acx_cv_header_stdint_kind="(lacks uint64_t)"
15831 break
15832 done
15833 if test "$acx_cv_header_stdint" = stddef.h; then
15834 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15835 for i in stdint.h $inttype_headers; do
15836 unset ac_cv_type_uintptr_t
15837 unset ac_cv_type_uint32_t
15838 unset ac_cv_type_uint64_t
15839 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15840 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15841 #include <$i>
15843 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15844 acx_cv_header_stdint=$i
15845 else
15846 continue
15849 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15850 #include <$i>
15852 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15856 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15857 #include <$i>
15859 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15863 break
15864 done
15866 if test "$acx_cv_header_stdint" = stddef.h; then
15867 acx_cv_header_stdint_kind="(u_intXX_t style)"
15868 for i in sys/types.h $inttype_headers; do
15869 unset ac_cv_type_u_int32_t
15870 unset ac_cv_type_u_int64_t
15871 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15872 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15873 #include <$i>
15875 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15876 acx_cv_header_stdint=$i
15877 else
15878 continue
15881 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15882 #include <$i>
15884 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15888 break
15889 done
15891 if test "$acx_cv_header_stdint" = stddef.h; then
15892 acx_cv_header_stdint_kind="(using manual detection)"
15895 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15896 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15897 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15898 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15899 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15901 # ----------------- Summarize what we found so far
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15904 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15906 case `$as_basename -- gstdint.h ||
15907 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15908 Xgstdint.h : 'X\(//\)$' \| \
15909 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15910 $as_echo X/gstdint.h |
15911 sed '/^.*\/\([^/][^/]*\)\/*$/{
15912 s//\1/
15915 /^X\/\(\/\/\)$/{
15916 s//\1/
15919 /^X\/\(\/\).*/{
15920 s//\1/
15923 s/.*/./; q'` in
15924 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15925 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15926 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15927 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15928 *) ;;
15929 esac
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15932 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15934 # ----------------- done included file, check C basic types --------
15936 # Lacking an uintptr_t? Test size of void *
15937 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15938 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15941 # This bug is HP SR number 8606223364.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15943 $as_echo_n "checking size of void *... " >&6; }
15944 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15949 else
15950 if test "$ac_cv_type_void_p" = yes; then
15951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15953 { as_fn_set_status 77
15954 as_fn_error "cannot compute sizeof (void *)
15955 See \`config.log' for more details." "$LINENO" 5; }; }
15956 else
15957 ac_cv_sizeof_void_p=0
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15963 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15967 cat >>confdefs.h <<_ACEOF
15968 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15969 _ACEOF
15972 esac
15974 # Lacking an uint64_t? Test size of long
15975 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15976 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15979 # This bug is HP SR number 8606223364.
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15981 $as_echo_n "checking size of long... " >&6; }
15982 if test "${ac_cv_sizeof_long+set}" = set; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15987 else
15988 if test "$ac_cv_type_long" = yes; then
15989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15991 { as_fn_set_status 77
15992 as_fn_error "cannot compute sizeof (long)
15993 See \`config.log' for more details." "$LINENO" 5; }; }
15994 else
15995 ac_cv_sizeof_long=0
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16001 $as_echo "$ac_cv_sizeof_long" >&6; }
16005 cat >>confdefs.h <<_ACEOF
16006 #define SIZEOF_LONG $ac_cv_sizeof_long
16007 _ACEOF
16010 esac
16012 if test $acx_cv_header_stdint = stddef.h; then
16013 # Lacking a good header? Test size of everything and deduce all types.
16014 # The cast to long int works around a bug in the HP C Compiler
16015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16017 # This bug is HP SR number 8606223364.
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16019 $as_echo_n "checking size of int... " >&6; }
16020 if test "${ac_cv_sizeof_int+set}" = set; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16025 else
16026 if test "$ac_cv_type_int" = yes; then
16027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16029 { as_fn_set_status 77
16030 as_fn_error "cannot compute sizeof (int)
16031 See \`config.log' for more details." "$LINENO" 5; }; }
16032 else
16033 ac_cv_sizeof_int=0
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16039 $as_echo "$ac_cv_sizeof_int" >&6; }
16043 cat >>confdefs.h <<_ACEOF
16044 #define SIZEOF_INT $ac_cv_sizeof_int
16045 _ACEOF
16048 # The cast to long int works around a bug in the HP C Compiler
16049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16051 # This bug is HP SR number 8606223364.
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16053 $as_echo_n "checking size of short... " >&6; }
16054 if test "${ac_cv_sizeof_short+set}" = set; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16059 else
16060 if test "$ac_cv_type_short" = yes; then
16061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16063 { as_fn_set_status 77
16064 as_fn_error "cannot compute sizeof (short)
16065 See \`config.log' for more details." "$LINENO" 5; }; }
16066 else
16067 ac_cv_sizeof_short=0
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16073 $as_echo "$ac_cv_sizeof_short" >&6; }
16077 cat >>confdefs.h <<_ACEOF
16078 #define SIZEOF_SHORT $ac_cv_sizeof_short
16079 _ACEOF
16082 # The cast to long int works around a bug in the HP C Compiler
16083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16085 # This bug is HP SR number 8606223364.
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16087 $as_echo_n "checking size of char... " >&6; }
16088 if test "${ac_cv_sizeof_char+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16090 else
16091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16093 else
16094 if test "$ac_cv_type_char" = yes; then
16095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16097 { as_fn_set_status 77
16098 as_fn_error "cannot compute sizeof (char)
16099 See \`config.log' for more details." "$LINENO" 5; }; }
16100 else
16101 ac_cv_sizeof_char=0
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16107 $as_echo "$ac_cv_sizeof_char" >&6; }
16111 cat >>confdefs.h <<_ACEOF
16112 #define SIZEOF_CHAR $ac_cv_sizeof_char
16113 _ACEOF
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16118 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16119 case "$ac_cv_sizeof_char" in
16120 1) acx_cv_type_int8_t=char ;;
16121 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16122 esac
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16124 $as_echo "$acx_cv_type_int8_t" >&6; }
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16127 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16128 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16129 2:*) acx_cv_type_int16_t=int ;;
16130 *:2) acx_cv_type_int16_t=short ;;
16131 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16132 esac
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16134 $as_echo "$acx_cv_type_int16_t" >&6; }
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16137 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16138 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16139 4:*) acx_cv_type_int32_t=int ;;
16140 *:4) acx_cv_type_int32_t=long ;;
16141 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16142 esac
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16144 $as_echo "$acx_cv_type_int32_t" >&6; }
16147 # These tests are here to make the output prettier
16149 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16150 case "$ac_cv_sizeof_long" in
16151 8) acx_cv_type_int64_t=long ;;
16152 esac
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16154 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16156 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16159 # Now we can use the above types
16161 if test "$ac_cv_type_uintptr_t" != yes; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16163 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16164 case $ac_cv_sizeof_void_p in
16165 2) acx_cv_type_intptr_t=int16_t ;;
16166 4) acx_cv_type_intptr_t=int32_t ;;
16167 8) acx_cv_type_intptr_t=int64_t ;;
16168 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16169 esac
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16171 $as_echo "$acx_cv_type_intptr_t" >&6; }
16174 # ----------------- done all checks, emit header -------------
16175 ac_config_commands="$ac_config_commands gstdint.h"
16180 for ac_header in sys/mman.h alloca.h
16181 do :
16182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16183 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16184 eval as_val=\$$as_ac_Header
16185 if test "x$as_val" = x""yes; then :
16186 cat >>confdefs.h <<_ACEOF
16187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16188 _ACEOF
16192 done
16194 if test "$ac_cv_header_sys_mman_h" = "no"; then
16195 have_mmap=no
16196 else
16197 if test -n "${with_target_subdir}"; then
16198 # When built as a GCC target library, we can't do a link test. We
16199 # simply assume that if we have mman.h, we have mmap.
16200 have_mmap=yes
16201 else
16202 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16203 if test "x$ac_cv_func_mmap" = x""yes; then :
16204 have_mmap=yes
16205 else
16206 have_mmap=no
16211 if test "$have_mmap" = "no"; then
16212 VIEW_FILE=read.lo
16213 ALLOC_FILE=alloc.lo
16214 else
16215 VIEW_FILE=mmapio.lo
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16219 #include <sys/mman.h>
16220 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16221 #error no MAP_ANONYMOUS
16222 #endif
16224 _ACEOF
16225 if ac_fn_c_try_cpp "$LINENO"; then :
16226 ALLOC_FILE=mmap.lo
16227 else
16228 ALLOC_FILE=alloc.lo
16230 rm -f conftest.err conftest.$ac_ext
16235 BACKTRACE_USES_MALLOC=0
16236 if test "$ALLOC_FILE" = "alloc.lo"; then
16237 BACKTRACE_USES_MALLOC=1
16241 # Don't care about thread support
16242 BACKTRACE_SUPPORTS_THREADS=0
16245 # Check for dl_iterate_phdr.
16246 for ac_header in link.h
16247 do :
16248 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16249 if test "x$ac_cv_header_link_h" = x""yes; then :
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_LINK_H 1
16252 _ACEOF
16256 done
16258 if test "$ac_cv_header_link_h" = "no"; then
16259 have_dl_iterate_phdr=no
16260 else
16261 # When built as a GCC target library, we can't do a link test.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <link.h>
16266 _ACEOF
16267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16268 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16269 have_dl_iterate_phdr=yes
16270 else
16271 have_dl_iterate_phdr=no
16273 rm -f conftest*
16275 case "${host}" in
16276 *-*-solaris2.10*)
16277 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16278 # header file but is only in -ldl.
16279 have_dl_iterate_phdr=no ;;
16280 esac
16282 if test "$have_dl_iterate_phdr" = "yes"; then
16284 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16288 # Check for the fcntl function.
16289 if test -n "${with_target_subdir}"; then
16290 case "${host}" in
16291 *-*-mingw*) have_fcntl=no ;;
16292 *) have_fcntl=yes ;;
16293 esac
16294 else
16295 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16296 if test "x$ac_cv_func_fcntl" = x""yes; then :
16297 have_fcntl=yes
16298 else
16299 have_fcntl=no
16303 if test "$have_fcntl" = "yes"; then
16305 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16309 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16310 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16311 ac_have_decl=1
16312 else
16313 ac_have_decl=0
16316 cat >>confdefs.h <<_ACEOF
16317 #define HAVE_DECL_STRNLEN $ac_have_decl
16318 _ACEOF
16321 # Check for getexecname function.
16322 if test -n "${with_target_subdir}"; then
16323 case "${host}" in
16324 *-*-solaris2*) have_getexecname=yes ;;
16325 *) have_getexecname=no ;;
16326 esac
16327 else
16328 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16329 if test "x$ac_cv_func_getexecname" = x""yes; then :
16330 have_getexecname=yes
16331 else
16332 have_getexecname=no
16336 if test "$have_getexecname" = "yes"; then
16338 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16342 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16343 LIBBACKTRACE_SUPPORTED_TRUE=
16344 LIBBACKTRACE_SUPPORTED_FALSE='#'
16345 else
16346 LIBBACKTRACE_SUPPORTED_TRUE='#'
16347 LIBBACKTRACE_SUPPORTED_FALSE=
16352 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16354 ac_config_headers="$ac_config_headers config.h"
16357 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16360 if test "x$TSAN_SUPPORTED" = "xyes"; then
16361 ac_config_files="$ac_config_files tsan/Makefile"
16365 cat >confcache <<\_ACEOF
16366 # This file is a shell script that caches the results of configure
16367 # tests run on this system so they can be shared between configure
16368 # scripts and configure runs, see configure's option --config-cache.
16369 # It is not useful on other systems. If it contains results you don't
16370 # want to keep, you may remove or edit it.
16372 # config.status only pays attention to the cache file if you give it
16373 # the --recheck option to rerun configure.
16375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16377 # following values.
16379 _ACEOF
16381 # The following way of writing the cache mishandles newlines in values,
16382 # but we know of no workaround that is simple, portable, and efficient.
16383 # So, we kill variables containing newlines.
16384 # Ultrix sh set writes to stderr and can't be redirected directly,
16385 # and sets the high bit in the cache file unless we assign to the vars.
16387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16388 eval ac_val=\$$ac_var
16389 case $ac_val in #(
16390 *${as_nl}*)
16391 case $ac_var in #(
16392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16394 esac
16395 case $ac_var in #(
16396 _ | IFS | as_nl) ;; #(
16397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16398 *) { eval $ac_var=; unset $ac_var;} ;;
16399 esac ;;
16400 esac
16401 done
16403 (set) 2>&1 |
16404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16405 *${as_nl}ac_space=\ *)
16406 # `set' does not quote correctly, so add quotes: double-quote
16407 # substitution turns \\\\ into \\, and sed turns \\ into \.
16408 sed -n \
16409 "s/'/'\\\\''/g;
16410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16411 ;; #(
16413 # `set' quotes correctly as required by POSIX, so do not add quotes.
16414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16416 esac |
16417 sort
16419 sed '
16420 /^ac_cv_env_/b end
16421 t clear
16422 :clear
16423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16424 t end
16425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16426 :end' >>confcache
16427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16428 if test -w "$cache_file"; then
16429 test "x$cache_file" != "x/dev/null" &&
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16431 $as_echo "$as_me: updating cache $cache_file" >&6;}
16432 cat confcache >$cache_file
16433 else
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16435 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16438 rm -f confcache
16440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16441 # Let make expand exec_prefix.
16442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16444 DEFS=-DHAVE_CONFIG_H
16446 ac_libobjs=
16447 ac_ltlibobjs=
16448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16449 # 1. Remove the extension, and $U if already installed.
16450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16453 # will be set to the directory where LIBOBJS objects are built.
16454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16456 done
16457 LIBOBJS=$ac_libobjs
16459 LTLIBOBJS=$ac_ltlibobjs
16462 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16463 as_fn_error "conditional \"AMDEP\" was never defined.
16464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16467 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16470 if test -n "$EXEEXT"; then
16471 am__EXEEXT_TRUE=
16472 am__EXEEXT_FALSE='#'
16473 else
16474 am__EXEEXT_TRUE='#'
16475 am__EXEEXT_FALSE=
16478 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16479 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16482 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16483 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16486 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16487 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16490 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16491 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16494 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16495 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16498 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16499 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16502 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16503 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16507 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 : ${CONFIG_STATUS=./config.status}
16512 ac_write_fail=0
16513 ac_clean_files_save=$ac_clean_files
16514 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16516 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16517 as_write_fail=0
16518 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16519 #! $SHELL
16520 # Generated by $as_me.
16521 # Run this file to recreate the current configuration.
16522 # Compiler output produced by configure, useful for debugging
16523 # configure, is in config.log if it exists.
16525 debug=false
16526 ac_cs_recheck=false
16527 ac_cs_silent=false
16529 SHELL=\${CONFIG_SHELL-$SHELL}
16530 export SHELL
16531 _ASEOF
16532 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16533 ## -------------------- ##
16534 ## M4sh Initialization. ##
16535 ## -------------------- ##
16537 # Be more Bourne compatible
16538 DUALCASE=1; export DUALCASE # for MKS sh
16539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16540 emulate sh
16541 NULLCMD=:
16542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16543 # is contrary to our usage. Disable this feature.
16544 alias -g '${1+"$@"}'='"$@"'
16545 setopt NO_GLOB_SUBST
16546 else
16547 case `(set -o) 2>/dev/null` in #(
16548 *posix*) :
16549 set -o posix ;; #(
16550 *) :
16552 esac
16556 as_nl='
16558 export as_nl
16559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16563 # Prefer a ksh shell builtin over an external printf program on Solaris,
16564 # but without wasting forks for bash or zsh.
16565 if test -z "$BASH_VERSION$ZSH_VERSION" \
16566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16567 as_echo='print -r --'
16568 as_echo_n='print -rn --'
16569 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16570 as_echo='printf %s\n'
16571 as_echo_n='printf %s'
16572 else
16573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16574 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16575 as_echo_n='/usr/ucb/echo -n'
16576 else
16577 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16578 as_echo_n_body='eval
16579 arg=$1;
16580 case $arg in #(
16581 *"$as_nl"*)
16582 expr "X$arg" : "X\\(.*\\)$as_nl";
16583 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16584 esac;
16585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16587 export as_echo_n_body
16588 as_echo_n='sh -c $as_echo_n_body as_echo'
16590 export as_echo_body
16591 as_echo='sh -c $as_echo_body as_echo'
16594 # The user is always right.
16595 if test "${PATH_SEPARATOR+set}" != set; then
16596 PATH_SEPARATOR=:
16597 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16598 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16599 PATH_SEPARATOR=';'
16604 # IFS
16605 # We need space, tab and new line, in precisely that order. Quoting is
16606 # there to prevent editors from complaining about space-tab.
16607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16608 # splitting by setting IFS to empty value.)
16609 IFS=" "" $as_nl"
16611 # Find who we are. Look in the path if we contain no directory separator.
16612 case $0 in #((
16613 *[\\/]* ) as_myself=$0 ;;
16614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16615 for as_dir in $PATH
16617 IFS=$as_save_IFS
16618 test -z "$as_dir" && as_dir=.
16619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16620 done
16621 IFS=$as_save_IFS
16624 esac
16625 # We did not find ourselves, most probably we were run as `sh COMMAND'
16626 # in which case we are not to be found in the path.
16627 if test "x$as_myself" = x; then
16628 as_myself=$0
16630 if test ! -f "$as_myself"; then
16631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16632 exit 1
16635 # Unset variables that we do not need and which cause bugs (e.g. in
16636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16637 # suppresses any "Segmentation fault" message there. '((' could
16638 # trigger a bug in pdksh 5.2.14.
16639 for as_var in BASH_ENV ENV MAIL MAILPATH
16640 do eval test x\${$as_var+set} = xset \
16641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16642 done
16643 PS1='$ '
16644 PS2='> '
16645 PS4='+ '
16647 # NLS nuisances.
16648 LC_ALL=C
16649 export LC_ALL
16650 LANGUAGE=C
16651 export LANGUAGE
16653 # CDPATH.
16654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16657 # as_fn_error ERROR [LINENO LOG_FD]
16658 # ---------------------------------
16659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16661 # script with status $?, using 1 if that was 0.
16662 as_fn_error ()
16664 as_status=$?; test $as_status -eq 0 && as_status=1
16665 if test "$3"; then
16666 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16669 $as_echo "$as_me: error: $1" >&2
16670 as_fn_exit $as_status
16671 } # as_fn_error
16674 # as_fn_set_status STATUS
16675 # -----------------------
16676 # Set $? to STATUS, without forking.
16677 as_fn_set_status ()
16679 return $1
16680 } # as_fn_set_status
16682 # as_fn_exit STATUS
16683 # -----------------
16684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16685 as_fn_exit ()
16687 set +e
16688 as_fn_set_status $1
16689 exit $1
16690 } # as_fn_exit
16692 # as_fn_unset VAR
16693 # ---------------
16694 # Portably unset VAR.
16695 as_fn_unset ()
16697 { eval $1=; unset $1;}
16699 as_unset=as_fn_unset
16700 # as_fn_append VAR VALUE
16701 # ----------------------
16702 # Append the text in VALUE to the end of the definition contained in VAR. Take
16703 # advantage of any shell optimizations that allow amortized linear growth over
16704 # repeated appends, instead of the typical quadratic growth present in naive
16705 # implementations.
16706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16707 eval 'as_fn_append ()
16709 eval $1+=\$2
16711 else
16712 as_fn_append ()
16714 eval $1=\$$1\$2
16716 fi # as_fn_append
16718 # as_fn_arith ARG...
16719 # ------------------
16720 # Perform arithmetic evaluation on the ARGs, and store the result in the
16721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16722 # must be portable across $(()) and expr.
16723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16724 eval 'as_fn_arith ()
16726 as_val=$(( $* ))
16728 else
16729 as_fn_arith ()
16731 as_val=`expr "$@" || test $? -eq 1`
16733 fi # as_fn_arith
16736 if expr a : '\(a\)' >/dev/null 2>&1 &&
16737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16738 as_expr=expr
16739 else
16740 as_expr=false
16743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16744 as_basename=basename
16745 else
16746 as_basename=false
16749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16750 as_dirname=dirname
16751 else
16752 as_dirname=false
16755 as_me=`$as_basename -- "$0" ||
16756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16757 X"$0" : 'X\(//\)$' \| \
16758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16759 $as_echo X/"$0" |
16760 sed '/^.*\/\([^/][^/]*\)\/*$/{
16761 s//\1/
16764 /^X\/\(\/\/\)$/{
16765 s//\1/
16768 /^X\/\(\/\).*/{
16769 s//\1/
16772 s/.*/./; q'`
16774 # Avoid depending upon Character Ranges.
16775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16778 as_cr_digits='0123456789'
16779 as_cr_alnum=$as_cr_Letters$as_cr_digits
16781 ECHO_C= ECHO_N= ECHO_T=
16782 case `echo -n x` in #(((((
16783 -n*)
16784 case `echo 'xy\c'` in
16785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16786 xy) ECHO_C='\c';;
16787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16788 ECHO_T=' ';;
16789 esac;;
16791 ECHO_N='-n';;
16792 esac
16794 rm -f conf$$ conf$$.exe conf$$.file
16795 if test -d conf$$.dir; then
16796 rm -f conf$$.dir/conf$$.file
16797 else
16798 rm -f conf$$.dir
16799 mkdir conf$$.dir 2>/dev/null
16801 if (echo >conf$$.file) 2>/dev/null; then
16802 if ln -s conf$$.file conf$$ 2>/dev/null; then
16803 as_ln_s='ln -s'
16804 # ... but there are two gotchas:
16805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16807 # In both cases, we have to default to `cp -p'.
16808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16809 as_ln_s='cp -p'
16810 elif ln conf$$.file conf$$ 2>/dev/null; then
16811 as_ln_s=ln
16812 else
16813 as_ln_s='cp -p'
16815 else
16816 as_ln_s='cp -p'
16818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16819 rmdir conf$$.dir 2>/dev/null
16822 # as_fn_mkdir_p
16823 # -------------
16824 # Create "$as_dir" as a directory, including parents if necessary.
16825 as_fn_mkdir_p ()
16828 case $as_dir in #(
16829 -*) as_dir=./$as_dir;;
16830 esac
16831 test -d "$as_dir" || eval $as_mkdir_p || {
16832 as_dirs=
16833 while :; do
16834 case $as_dir in #(
16835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16836 *) as_qdir=$as_dir;;
16837 esac
16838 as_dirs="'$as_qdir' $as_dirs"
16839 as_dir=`$as_dirname -- "$as_dir" ||
16840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16841 X"$as_dir" : 'X\(//\)[^/]' \| \
16842 X"$as_dir" : 'X\(//\)$' \| \
16843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16844 $as_echo X"$as_dir" |
16845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16846 s//\1/
16849 /^X\(\/\/\)[^/].*/{
16850 s//\1/
16853 /^X\(\/\/\)$/{
16854 s//\1/
16857 /^X\(\/\).*/{
16858 s//\1/
16861 s/.*/./; q'`
16862 test -d "$as_dir" && break
16863 done
16864 test -z "$as_dirs" || eval "mkdir $as_dirs"
16865 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16868 } # as_fn_mkdir_p
16869 if mkdir -p . 2>/dev/null; then
16870 as_mkdir_p='mkdir -p "$as_dir"'
16871 else
16872 test -d ./-p && rmdir ./-p
16873 as_mkdir_p=false
16876 if test -x / >/dev/null 2>&1; then
16877 as_test_x='test -x'
16878 else
16879 if ls -dL / >/dev/null 2>&1; then
16880 as_ls_L_option=L
16881 else
16882 as_ls_L_option=
16884 as_test_x='
16885 eval sh -c '\''
16886 if test -d "$1"; then
16887 test -d "$1/.";
16888 else
16889 case $1 in #(
16890 -*)set "./$1";;
16891 esac;
16892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16893 ???[sx]*):;;*)false;;esac;fi
16894 '\'' sh
16897 as_executable_p=$as_test_x
16899 # Sed expression to map a string onto a valid CPP name.
16900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16902 # Sed expression to map a string onto a valid variable name.
16903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16906 exec 6>&1
16907 ## ----------------------------------- ##
16908 ## Main body of $CONFIG_STATUS script. ##
16909 ## ----------------------------------- ##
16910 _ASEOF
16911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 # Save the log message, to keep $0 and so on meaningful, and to
16915 # report actual input values of CONFIG_FILES etc. instead of their
16916 # values after options handling.
16917 ac_log="
16918 This file was extended by package-unused $as_me version-unused, which was
16919 generated by GNU Autoconf 2.64. Invocation command line was
16921 CONFIG_FILES = $CONFIG_FILES
16922 CONFIG_HEADERS = $CONFIG_HEADERS
16923 CONFIG_LINKS = $CONFIG_LINKS
16924 CONFIG_COMMANDS = $CONFIG_COMMANDS
16925 $ $0 $@
16927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16930 _ACEOF
16932 case $ac_config_files in *"
16933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16934 esac
16936 case $ac_config_headers in *"
16937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16938 esac
16941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16942 # Files that config.status was made for.
16943 config_files="$ac_config_files"
16944 config_headers="$ac_config_headers"
16945 config_commands="$ac_config_commands"
16947 _ACEOF
16949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16950 ac_cs_usage="\
16951 \`$as_me' instantiates files and other configuration actions
16952 from templates according to the current configuration. Unless the files
16953 and actions are specified as TAGs, all are instantiated by default.
16955 Usage: $0 [OPTION]... [TAG]...
16957 -h, --help print this help, then exit
16958 -V, --version print version number and configuration settings, then exit
16959 -q, --quiet, --silent
16960 do not print progress messages
16961 -d, --debug don't remove temporary files
16962 --recheck update $as_me by reconfiguring in the same conditions
16963 --file=FILE[:TEMPLATE]
16964 instantiate the configuration file FILE
16965 --header=FILE[:TEMPLATE]
16966 instantiate the configuration header FILE
16968 Configuration files:
16969 $config_files
16971 Configuration headers:
16972 $config_headers
16974 Configuration commands:
16975 $config_commands
16977 Report bugs to <libsanitizer>."
16979 _ACEOF
16980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 ac_cs_version="\\
16982 package-unused config.status version-unused
16983 configured by $0, generated by GNU Autoconf 2.64,
16984 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16986 Copyright (C) 2009 Free Software Foundation, Inc.
16987 This config.status script is free software; the Free Software Foundation
16988 gives unlimited permission to copy, distribute and modify it."
16990 ac_pwd='$ac_pwd'
16991 srcdir='$srcdir'
16992 INSTALL='$INSTALL'
16993 MKDIR_P='$MKDIR_P'
16994 AWK='$AWK'
16995 test -n "\$AWK" || AWK=awk
16996 _ACEOF
16998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16999 # The default lists apply if the user does not specify any file.
17000 ac_need_defaults=:
17001 while test $# != 0
17003 case $1 in
17004 --*=*)
17005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17007 ac_shift=:
17010 ac_option=$1
17011 ac_optarg=$2
17012 ac_shift=shift
17014 esac
17016 case $ac_option in
17017 # Handling of the options.
17018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17019 ac_cs_recheck=: ;;
17020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17021 $as_echo "$ac_cs_version"; exit ;;
17022 --debug | --debu | --deb | --de | --d | -d )
17023 debug=: ;;
17024 --file | --fil | --fi | --f )
17025 $ac_shift
17026 case $ac_optarg in
17027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17028 esac
17029 as_fn_append CONFIG_FILES " '$ac_optarg'"
17030 ac_need_defaults=false;;
17031 --header | --heade | --head | --hea )
17032 $ac_shift
17033 case $ac_optarg in
17034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17035 esac
17036 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17037 ac_need_defaults=false;;
17038 --he | --h)
17039 # Conflict between --help and --header
17040 as_fn_error "ambiguous option: \`$1'
17041 Try \`$0 --help' for more information.";;
17042 --help | --hel | -h )
17043 $as_echo "$ac_cs_usage"; exit ;;
17044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17046 ac_cs_silent=: ;;
17048 # This is an error.
17049 -*) as_fn_error "unrecognized option: \`$1'
17050 Try \`$0 --help' for more information." ;;
17052 *) as_fn_append ac_config_targets " $1"
17053 ac_need_defaults=false ;;
17055 esac
17056 shift
17057 done
17059 ac_configure_extra_args=
17061 if $ac_cs_silent; then
17062 exec 6>/dev/null
17063 ac_configure_extra_args="$ac_configure_extra_args --silent"
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17068 if \$ac_cs_recheck; then
17069 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17070 shift
17071 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17072 CONFIG_SHELL='$SHELL'
17073 export CONFIG_SHELL
17074 exec "\$@"
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 exec 5>>config.log
17081 echo
17082 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17083 ## Running $as_me. ##
17084 _ASBOX
17085 $as_echo "$ac_log"
17086 } >&5
17088 _ACEOF
17089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 # INIT-COMMANDS
17093 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17095 srcdir="$srcdir"
17096 host="$host"
17097 target="$target"
17098 with_multisubdir="$with_multisubdir"
17099 with_multisrctop="$with_multisrctop"
17100 with_target_subdir="$with_target_subdir"
17101 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17102 multi_basedir="$multi_basedir"
17103 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17104 CC="$CC"
17105 CXX="$CXX"
17106 GFORTRAN="$GFORTRAN"
17107 GCJ="$GCJ"
17110 # The HP-UX ksh and POSIX shell print the target directory to stdout
17111 # if CDPATH is set.
17112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17114 sed_quote_subst='$sed_quote_subst'
17115 double_quote_subst='$double_quote_subst'
17116 delay_variable_subst='$delay_variable_subst'
17117 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17118 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17119 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17120 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17121 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17122 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17123 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17124 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17125 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17126 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17127 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17128 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17129 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17130 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17131 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17132 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17133 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17134 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17135 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17136 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17137 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17138 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17139 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17140 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17141 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17142 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17143 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17144 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17145 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17146 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17147 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17148 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17149 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17150 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17151 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17152 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17153 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17154 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17155 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17156 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17157 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17158 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17159 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17160 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17161 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17162 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17165 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"`'
17166 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17167 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17168 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17169 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17170 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17171 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17172 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17173 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17174 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17175 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17176 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17177 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17178 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17179 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17180 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17181 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17182 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17183 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17184 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17185 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17186 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17187 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17188 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17189 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17190 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17191 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17192 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17193 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17194 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17195 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17196 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17197 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17198 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17199 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17200 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17201 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17202 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17203 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17204 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17205 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17206 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17207 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17208 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17209 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17210 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17211 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17212 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17213 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17214 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17215 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17216 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17217 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17218 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17219 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17220 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17221 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17222 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17223 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17224 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17225 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17226 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17227 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17228 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17229 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17230 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17231 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17232 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17233 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17234 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17235 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17236 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17237 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17238 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17239 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17240 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17241 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17242 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17243 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17244 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17245 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17246 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17247 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17248 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17249 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17250 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17251 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17252 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17253 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17254 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17255 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17256 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17257 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17258 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17259 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17260 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17261 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17262 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17263 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17264 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17265 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17266 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17267 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17268 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17269 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17270 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17271 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17272 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17273 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17274 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17275 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17276 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17277 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17278 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17279 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17280 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17281 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17282 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17283 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17284 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17285 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17286 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17287 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17288 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17289 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17290 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17291 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17293 LTCC='$LTCC'
17294 LTCFLAGS='$LTCFLAGS'
17295 compiler='$compiler_DEFAULT'
17297 # A function that is used when there is no print builtin or printf.
17298 func_fallback_echo ()
17300 eval 'cat <<_LTECHO_EOF
17302 _LTECHO_EOF'
17305 # Quote evaled strings.
17306 for var in SHELL \
17307 ECHO \
17308 SED \
17309 GREP \
17310 EGREP \
17311 FGREP \
17312 LD \
17313 NM \
17314 LN_S \
17315 lt_SP2NL \
17316 lt_NL2SP \
17317 reload_flag \
17318 OBJDUMP \
17319 deplibs_check_method \
17320 file_magic_cmd \
17321 AR \
17322 AR_FLAGS \
17323 STRIP \
17324 RANLIB \
17325 CC \
17326 CFLAGS \
17327 compiler \
17328 lt_cv_sys_global_symbol_pipe \
17329 lt_cv_sys_global_symbol_to_cdecl \
17330 lt_cv_sys_global_symbol_to_c_name_address \
17331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17332 lt_prog_compiler_no_builtin_flag \
17333 lt_prog_compiler_wl \
17334 lt_prog_compiler_pic \
17335 lt_prog_compiler_static \
17336 lt_cv_prog_compiler_c_o \
17337 need_locks \
17338 DSYMUTIL \
17339 NMEDIT \
17340 LIPO \
17341 OTOOL \
17342 OTOOL64 \
17343 shrext_cmds \
17344 export_dynamic_flag_spec \
17345 whole_archive_flag_spec \
17346 compiler_needs_object \
17347 with_gnu_ld \
17348 allow_undefined_flag \
17349 no_undefined_flag \
17350 hardcode_libdir_flag_spec \
17351 hardcode_libdir_flag_spec_ld \
17352 hardcode_libdir_separator \
17353 fix_srcfile_path \
17354 exclude_expsyms \
17355 include_expsyms \
17356 file_list_spec \
17357 variables_saved_for_relink \
17358 libname_spec \
17359 library_names_spec \
17360 soname_spec \
17361 install_override_mode \
17362 finish_eval \
17363 old_striplib \
17364 striplib \
17365 compiler_lib_search_dirs \
17366 predep_objects \
17367 postdep_objects \
17368 predeps \
17369 postdeps \
17370 compiler_lib_search_path \
17371 LD_CXX \
17372 reload_flag_CXX \
17373 compiler_CXX \
17374 lt_prog_compiler_no_builtin_flag_CXX \
17375 lt_prog_compiler_wl_CXX \
17376 lt_prog_compiler_pic_CXX \
17377 lt_prog_compiler_static_CXX \
17378 lt_cv_prog_compiler_c_o_CXX \
17379 export_dynamic_flag_spec_CXX \
17380 whole_archive_flag_spec_CXX \
17381 compiler_needs_object_CXX \
17382 with_gnu_ld_CXX \
17383 allow_undefined_flag_CXX \
17384 no_undefined_flag_CXX \
17385 hardcode_libdir_flag_spec_CXX \
17386 hardcode_libdir_flag_spec_ld_CXX \
17387 hardcode_libdir_separator_CXX \
17388 fix_srcfile_path_CXX \
17389 exclude_expsyms_CXX \
17390 include_expsyms_CXX \
17391 file_list_spec_CXX \
17392 compiler_lib_search_dirs_CXX \
17393 predep_objects_CXX \
17394 postdep_objects_CXX \
17395 predeps_CXX \
17396 postdeps_CXX \
17397 compiler_lib_search_path_CXX; do
17398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17399 *[\\\\\\\`\\"\\\$]*)
17400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17405 esac
17406 done
17408 # Double-quote double-evaled strings.
17409 for var in reload_cmds \
17410 old_postinstall_cmds \
17411 old_postuninstall_cmds \
17412 old_archive_cmds \
17413 extract_expsyms_cmds \
17414 old_archive_from_new_cmds \
17415 old_archive_from_expsyms_cmds \
17416 archive_cmds \
17417 archive_expsym_cmds \
17418 module_cmds \
17419 module_expsym_cmds \
17420 export_symbols_cmds \
17421 prelink_cmds \
17422 postinstall_cmds \
17423 postuninstall_cmds \
17424 finish_cmds \
17425 sys_lib_search_path_spec \
17426 sys_lib_dlsearch_path_spec \
17427 reload_cmds_CXX \
17428 old_archive_cmds_CXX \
17429 old_archive_from_new_cmds_CXX \
17430 old_archive_from_expsyms_cmds_CXX \
17431 archive_cmds_CXX \
17432 archive_expsym_cmds_CXX \
17433 module_cmds_CXX \
17434 module_expsym_cmds_CXX \
17435 export_symbols_cmds_CXX \
17436 prelink_cmds_CXX; do
17437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17438 *[\\\\\\\`\\"\\\$]*)
17439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17444 esac
17445 done
17447 ac_aux_dir='$ac_aux_dir'
17448 xsi_shell='$xsi_shell'
17449 lt_shell_append='$lt_shell_append'
17451 # See if we are running on zsh, and set the options which allow our
17452 # commands through without removal of \ escapes INIT.
17453 if test -n "\${ZSH_VERSION+set}" ; then
17454 setopt NO_GLOB_SUBST
17458 PACKAGE='$PACKAGE'
17459 VERSION='$VERSION'
17460 TIMESTAMP='$TIMESTAMP'
17461 RM='$RM'
17462 ofile='$ofile'
17469 GCC="$GCC"
17470 CC="$CC"
17471 acx_cv_header_stdint="$acx_cv_header_stdint"
17472 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17473 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17474 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17475 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17476 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17477 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17478 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17479 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17480 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17481 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17482 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17483 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17484 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17487 _ACEOF
17489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # Handling of arguments.
17492 for ac_config_target in $ac_config_targets
17494 case $ac_config_target in
17495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17496 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17497 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17498 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17499 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17500 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17501 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17502 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17503 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17504 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17505 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17506 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17507 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17508 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17509 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17511 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17512 esac
17513 done
17516 # If the user did not use the arguments to specify the items to instantiate,
17517 # then the envvar interface is used. Set only those that are not.
17518 # We use the long form for the default assignment because of an extremely
17519 # bizarre bug on SunOS 4.1.3.
17520 if $ac_need_defaults; then
17521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17526 # Have a temporary directory for convenience. Make it in the build tree
17527 # simply because there is no reason against having it here, and in addition,
17528 # creating and moving files from /tmp can sometimes cause problems.
17529 # Hook for its removal unless debugging.
17530 # Note that there is a small window in which the directory will not be cleaned:
17531 # after its creation but before its name has been assigned to `$tmp'.
17532 $debug ||
17534 tmp=
17535 trap 'exit_status=$?
17536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17538 trap 'as_fn_exit 1' 1 2 13 15
17540 # Create a (secure) tmp directory for tmp files.
17543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17544 test -n "$tmp" && test -d "$tmp"
17545 } ||
17547 tmp=./conf$$-$RANDOM
17548 (umask 077 && mkdir "$tmp")
17549 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17551 # Set up the scripts for CONFIG_FILES section.
17552 # No need to generate them if there are no CONFIG_FILES.
17553 # This happens for instance with `./config.status config.h'.
17554 if test -n "$CONFIG_FILES"; then
17557 ac_cr=`echo X | tr X '\015'`
17558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17559 # But we know of no other shell where ac_cr would be empty at this
17560 # point, so we can use a bashism as a fallback.
17561 if test "x$ac_cr" = x; then
17562 eval ac_cr=\$\'\\r\'
17564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17566 ac_cs_awk_cr='\r'
17567 else
17568 ac_cs_awk_cr=$ac_cr
17571 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17572 _ACEOF
17576 echo "cat >conf$$subs.awk <<_ACEOF" &&
17577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17578 echo "_ACEOF"
17579 } >conf$$subs.sh ||
17580 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17582 ac_delim='%!_!# '
17583 for ac_last_try in false false false false false :; do
17584 . ./conf$$subs.sh ||
17585 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17588 if test $ac_delim_n = $ac_delim_num; then
17589 break
17590 elif $ac_last_try; then
17591 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17592 else
17593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17595 done
17596 rm -f conf$$subs.sh
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17600 _ACEOF
17601 sed -n '
17603 s/^/S["/; s/!.*/"]=/
17606 s/^[^!]*!//
17607 :repl
17608 t repl
17609 s/'"$ac_delim"'$//
17610 t delim
17613 s/\(.\{148\}\).*/\1/
17614 t more1
17615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17618 b repl
17619 :more1
17620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17623 s/.\{148\}//
17624 t nl
17625 :delim
17627 s/\(.\{148\}\).*/\1/
17628 t more2
17629 s/["\\]/\\&/g; s/^/"/; s/$/"/
17632 :more2
17633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17636 s/.\{148\}//
17637 t delim
17638 ' <conf$$subs.awk | sed '
17639 /^[^""]/{
17641 s/\n//
17643 ' >>$CONFIG_STATUS || ac_write_fail=1
17644 rm -f conf$$subs.awk
17645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646 _ACAWK
17647 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17648 for (key in S) S_is_set[key] = 1
17649 FS = "\a"
17653 line = $ 0
17654 nfields = split(line, field, "@")
17655 substed = 0
17656 len = length(field[1])
17657 for (i = 2; i < nfields; i++) {
17658 key = field[i]
17659 keylen = length(key)
17660 if (S_is_set[key]) {
17661 value = S[key]
17662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17663 len += length(value) + length(field[++i])
17664 substed = 1
17665 } else
17666 len += 1 + keylen
17669 print line
17672 _ACAWK
17673 _ACEOF
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17677 else
17679 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17680 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17681 _ACEOF
17683 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17684 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17685 # trailing colons and then remove the whole line if VPATH becomes empty
17686 # (actually we leave an empty line to preserve line numbers).
17687 if test "x$srcdir" = x.; then
17688 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17689 s/:*\$(srcdir):*/:/
17690 s/:*\${srcdir}:*/:/
17691 s/:*@srcdir@:*/:/
17692 s/^\([^=]*=[ ]*\):*/\1/
17693 s/:*$//
17694 s/^[^=]*=[ ]*$//
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699 fi # test -n "$CONFIG_FILES"
17701 # Set up the scripts for CONFIG_HEADERS section.
17702 # No need to generate them if there are no CONFIG_HEADERS.
17703 # This happens for instance with `./config.status Makefile'.
17704 if test -n "$CONFIG_HEADERS"; then
17705 cat >"$tmp/defines.awk" <<\_ACAWK ||
17706 BEGIN {
17707 _ACEOF
17709 # Transform confdefs.h into an awk script `defines.awk', embedded as
17710 # here-document in config.status, that substitutes the proper values into
17711 # config.h.in to produce config.h.
17713 # Create a delimiter string that does not exist in confdefs.h, to ease
17714 # handling of long lines.
17715 ac_delim='%!_!# '
17716 for ac_last_try in false false :; do
17717 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17718 if test -z "$ac_t"; then
17719 break
17720 elif $ac_last_try; then
17721 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17722 else
17723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17725 done
17727 # For the awk script, D is an array of macro values keyed by name,
17728 # likewise P contains macro parameters if any. Preserve backslash
17729 # newline sequences.
17731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17732 sed -n '
17733 s/.\{148\}/&'"$ac_delim"'/g
17734 t rset
17735 :rset
17736 s/^[ ]*#[ ]*define[ ][ ]*/ /
17737 t def
17739 :def
17740 s/\\$//
17741 t bsnl
17742 s/["\\]/\\&/g
17743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17744 D["\1"]=" \3"/p
17745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17747 :bsnl
17748 s/["\\]/\\&/g
17749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17750 D["\1"]=" \3\\\\\\n"\\/p
17751 t cont
17752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17753 t cont
17755 :cont
17757 s/.\{148\}/&'"$ac_delim"'/g
17758 t clear
17759 :clear
17760 s/\\$//
17761 t bsnlc
17762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17764 :bsnlc
17765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17766 b cont
17767 ' <confdefs.h | sed '
17768 s/'"$ac_delim"'/"\\\
17769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17772 for (key in D) D_is_set[key] = 1
17773 FS = "\a"
17775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17776 line = \$ 0
17777 split(line, arg, " ")
17778 if (arg[1] == "#") {
17779 defundef = arg[2]
17780 mac1 = arg[3]
17781 } else {
17782 defundef = substr(arg[1], 2)
17783 mac1 = arg[2]
17785 split(mac1, mac2, "(") #)
17786 macro = mac2[1]
17787 prefix = substr(line, 1, index(line, defundef) - 1)
17788 if (D_is_set[macro]) {
17789 # Preserve the white space surrounding the "#".
17790 print prefix "define", macro P[macro] D[macro]
17791 next
17792 } else {
17793 # Replace #undef with comments. This is necessary, for example,
17794 # in the case of _POSIX_SOURCE, which is predefined and required
17795 # on some systems where configure will not decide to define it.
17796 if (defundef == "undef") {
17797 print "/*", prefix defundef, macro, "*/"
17798 next
17802 { print }
17803 _ACAWK
17804 _ACEOF
17805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17806 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17807 fi # test -n "$CONFIG_HEADERS"
17810 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17811 shift
17812 for ac_tag
17814 case $ac_tag in
17815 :[FHLC]) ac_mode=$ac_tag; continue;;
17816 esac
17817 case $ac_mode$ac_tag in
17818 :[FHL]*:*);;
17819 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17820 :[FH]-) ac_tag=-:-;;
17821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17822 esac
17823 ac_save_IFS=$IFS
17824 IFS=:
17825 set x $ac_tag
17826 IFS=$ac_save_IFS
17827 shift
17828 ac_file=$1
17829 shift
17831 case $ac_mode in
17832 :L) ac_source=$1;;
17833 :[FH])
17834 ac_file_inputs=
17835 for ac_f
17837 case $ac_f in
17838 -) ac_f="$tmp/stdin";;
17839 *) # Look for the file first in the build tree, then in the source tree
17840 # (if the path is not absolute). The absolute path cannot be DOS-style,
17841 # because $ac_f cannot contain `:'.
17842 test -f "$ac_f" ||
17843 case $ac_f in
17844 [\\/$]*) false;;
17845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17846 esac ||
17847 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17848 esac
17849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17850 as_fn_append ac_file_inputs " '$ac_f'"
17851 done
17853 # Let's still pretend it is `configure' which instantiates (i.e., don't
17854 # use $as_me), people would be surprised to read:
17855 # /* config.h. Generated by config.status. */
17856 configure_input='Generated from '`
17857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17858 `' by configure.'
17859 if test x"$ac_file" != x-; then
17860 configure_input="$ac_file. $configure_input"
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17862 $as_echo "$as_me: creating $ac_file" >&6;}
17864 # Neutralize special characters interpreted by sed in replacement strings.
17865 case $configure_input in #(
17866 *\&* | *\|* | *\\* )
17867 ac_sed_conf_input=`$as_echo "$configure_input" |
17868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17869 *) ac_sed_conf_input=$configure_input;;
17870 esac
17872 case $ac_tag in
17873 *:-:* | *:-) cat >"$tmp/stdin" \
17874 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17875 esac
17877 esac
17879 ac_dir=`$as_dirname -- "$ac_file" ||
17880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17881 X"$ac_file" : 'X\(//\)[^/]' \| \
17882 X"$ac_file" : 'X\(//\)$' \| \
17883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17884 $as_echo X"$ac_file" |
17885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17886 s//\1/
17889 /^X\(\/\/\)[^/].*/{
17890 s//\1/
17893 /^X\(\/\/\)$/{
17894 s//\1/
17897 /^X\(\/\).*/{
17898 s//\1/
17901 s/.*/./; q'`
17902 as_dir="$ac_dir"; as_fn_mkdir_p
17903 ac_builddir=.
17905 case "$ac_dir" in
17906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17909 # A ".." for each directory in $ac_dir_suffix.
17910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17911 case $ac_top_builddir_sub in
17912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17914 esac ;;
17915 esac
17916 ac_abs_top_builddir=$ac_pwd
17917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17918 # for backward compatibility:
17919 ac_top_builddir=$ac_top_build_prefix
17921 case $srcdir in
17922 .) # We are building in place.
17923 ac_srcdir=.
17924 ac_top_srcdir=$ac_top_builddir_sub
17925 ac_abs_top_srcdir=$ac_pwd ;;
17926 [\\/]* | ?:[\\/]* ) # Absolute name.
17927 ac_srcdir=$srcdir$ac_dir_suffix;
17928 ac_top_srcdir=$srcdir
17929 ac_abs_top_srcdir=$srcdir ;;
17930 *) # Relative name.
17931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17932 ac_top_srcdir=$ac_top_build_prefix$srcdir
17933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17934 esac
17935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17938 case $ac_mode in
17941 # CONFIG_FILE
17944 case $INSTALL in
17945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17947 esac
17948 ac_MKDIR_P=$MKDIR_P
17949 case $MKDIR_P in
17950 [\\/$]* | ?:[\\/]* ) ;;
17951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17952 esac
17953 _ACEOF
17955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17956 # If the template does not know about datarootdir, expand it.
17957 # FIXME: This hack should be removed a few years after 2.60.
17958 ac_datarootdir_hack=; ac_datarootdir_seen=
17959 ac_sed_dataroot='
17960 /datarootdir/ {
17964 /@datadir@/p
17965 /@docdir@/p
17966 /@infodir@/p
17967 /@localedir@/p
17968 /@mandir@/p'
17969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17970 *datarootdir*) ac_datarootdir_seen=yes;;
17971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17974 _ACEOF
17975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17976 ac_datarootdir_hack='
17977 s&@datadir@&$datadir&g
17978 s&@docdir@&$docdir&g
17979 s&@infodir@&$infodir&g
17980 s&@localedir@&$localedir&g
17981 s&@mandir@&$mandir&g
17982 s&\\\${datarootdir}&$datarootdir&g' ;;
17983 esac
17984 _ACEOF
17986 # Neutralize VPATH when `$srcdir' = `.'.
17987 # Shell code in configure.ac might set extrasub.
17988 # FIXME: do we really want to maintain this feature?
17989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17990 ac_sed_extra="$ac_vpsub
17991 $extrasub
17992 _ACEOF
17993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17996 s|@configure_input@|$ac_sed_conf_input|;t t
17997 s&@top_builddir@&$ac_top_builddir_sub&;t t
17998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17999 s&@srcdir@&$ac_srcdir&;t t
18000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18001 s&@top_srcdir@&$ac_top_srcdir&;t t
18002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18003 s&@builddir@&$ac_builddir&;t t
18004 s&@abs_builddir@&$ac_abs_builddir&;t t
18005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18006 s&@INSTALL@&$ac_INSTALL&;t t
18007 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18008 $ac_datarootdir_hack
18010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18011 || as_fn_error "could not create $ac_file" "$LINENO" 5
18013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18014 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18017 which seems to be undefined. Please make sure it is defined." >&5
18018 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18019 which seems to be undefined. Please make sure it is defined." >&2;}
18021 rm -f "$tmp/stdin"
18022 case $ac_file in
18023 -) cat "$tmp/out" && rm -f "$tmp/out";;
18024 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18025 esac \
18026 || as_fn_error "could not create $ac_file" "$LINENO" 5
18030 # CONFIG_HEADER
18032 if test x"$ac_file" != x-; then
18034 $as_echo "/* $configure_input */" \
18035 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18036 } >"$tmp/config.h" \
18037 || as_fn_error "could not create $ac_file" "$LINENO" 5
18038 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18040 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18041 else
18042 rm -f "$ac_file"
18043 mv "$tmp/config.h" "$ac_file" \
18044 || as_fn_error "could not create $ac_file" "$LINENO" 5
18046 else
18047 $as_echo "/* $configure_input */" \
18048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18049 || as_fn_error "could not create -" "$LINENO" 5
18051 # Compute "$ac_file"'s index in $config_headers.
18052 _am_arg="$ac_file"
18053 _am_stamp_count=1
18054 for _am_header in $config_headers :; do
18055 case $_am_header in
18056 $_am_arg | $_am_arg:* )
18057 break ;;
18059 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18060 esac
18061 done
18062 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18063 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18064 X"$_am_arg" : 'X\(//\)[^/]' \| \
18065 X"$_am_arg" : 'X\(//\)$' \| \
18066 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18067 $as_echo X"$_am_arg" |
18068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18069 s//\1/
18072 /^X\(\/\/\)[^/].*/{
18073 s//\1/
18076 /^X\(\/\/\)$/{
18077 s//\1/
18080 /^X\(\/\).*/{
18081 s//\1/
18084 s/.*/./; q'`/stamp-h$_am_stamp_count
18087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18088 $as_echo "$as_me: executing $ac_file commands" >&6;}
18090 esac
18093 case $ac_file$ac_mode in
18094 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18095 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18096 # are listed without --file. Let's play safe and only enable the eval
18097 # if we detect the quoting.
18098 case $CONFIG_FILES in
18099 *\'*) eval set x "$CONFIG_FILES" ;;
18100 *) set x $CONFIG_FILES ;;
18101 esac
18102 shift
18103 for mf
18105 # Strip MF so we end up with the name of the file.
18106 mf=`echo "$mf" | sed -e 's/:.*$//'`
18107 # Check whether this is an Automake generated Makefile or not.
18108 # We used to match only the files named `Makefile.in', but
18109 # some people rename them; so instead we look at the file content.
18110 # Grep'ing the first line is not enough: some people post-process
18111 # each Makefile.in and add a new line on top of each file to say so.
18112 # Grep'ing the whole file is not good either: AIX grep has a line
18113 # limit of 2048, but all sed's we know have understand at least 4000.
18114 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18115 dirpart=`$as_dirname -- "$mf" ||
18116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18117 X"$mf" : 'X\(//\)[^/]' \| \
18118 X"$mf" : 'X\(//\)$' \| \
18119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18120 $as_echo X"$mf" |
18121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18122 s//\1/
18125 /^X\(\/\/\)[^/].*/{
18126 s//\1/
18129 /^X\(\/\/\)$/{
18130 s//\1/
18133 /^X\(\/\).*/{
18134 s//\1/
18137 s/.*/./; q'`
18138 else
18139 continue
18141 # Extract the definition of DEPDIR, am__include, and am__quote
18142 # from the Makefile without running `make'.
18143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18144 test -z "$DEPDIR" && continue
18145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18146 test -z "am__include" && continue
18147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18148 # When using ansi2knr, U may be empty or an underscore; expand it
18149 U=`sed -n 's/^U = //p' < "$mf"`
18150 # Find all dependency output files, they are included files with
18151 # $(DEPDIR) in their names. We invoke sed twice because it is the
18152 # simplest approach to changing $(DEPDIR) to its actual value in the
18153 # expansion.
18154 for file in `sed -n "
18155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18157 # Make sure the directory exists.
18158 test -f "$dirpart/$file" && continue
18159 fdir=`$as_dirname -- "$file" ||
18160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18161 X"$file" : 'X\(//\)[^/]' \| \
18162 X"$file" : 'X\(//\)$' \| \
18163 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18164 $as_echo X"$file" |
18165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18166 s//\1/
18169 /^X\(\/\/\)[^/].*/{
18170 s//\1/
18173 /^X\(\/\/\)$/{
18174 s//\1/
18177 /^X\(\/\).*/{
18178 s//\1/
18181 s/.*/./; q'`
18182 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18183 # echo "creating $dirpart/$file"
18184 echo '# dummy' > "$dirpart/$file"
18185 done
18186 done
18189 "default-1":C)
18190 # Only add multilib support code if we just rebuilt the top-level
18191 # Makefile.
18192 case " $CONFIG_FILES " in
18193 *" Makefile "*)
18194 ac_file=Makefile . ${multi_basedir}/config-ml.in
18196 esac ;;
18197 "libtool":C)
18199 # See if we are running on zsh, and set the options which allow our
18200 # commands through without removal of \ escapes.
18201 if test -n "${ZSH_VERSION+set}" ; then
18202 setopt NO_GLOB_SUBST
18205 cfgfile="${ofile}T"
18206 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18207 $RM "$cfgfile"
18209 cat <<_LT_EOF >> "$cfgfile"
18210 #! $SHELL
18212 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18213 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18217 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18218 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18219 # Written by Gordon Matzigkeit, 1996
18221 # This file is part of GNU Libtool.
18223 # GNU Libtool is free software; you can redistribute it and/or
18224 # modify it under the terms of the GNU General Public License as
18225 # published by the Free Software Foundation; either version 2 of
18226 # the License, or (at your option) any later version.
18228 # As a special exception to the GNU General Public License,
18229 # if you distribute this file as part of a program or library that
18230 # is built using GNU Libtool, you may include this file under the
18231 # same distribution terms that you use for the rest of that program.
18233 # GNU Libtool is distributed in the hope that it will be useful,
18234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18236 # GNU General Public License for more details.
18238 # You should have received a copy of the GNU General Public License
18239 # along with GNU Libtool; see the file COPYING. If not, a copy
18240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18241 # obtained by writing to the Free Software Foundation, Inc.,
18242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18245 # The names of the tagged configurations supported by this script.
18246 available_tags="CXX "
18248 # ### BEGIN LIBTOOL CONFIG
18250 # Which release of libtool.m4 was used?
18251 macro_version=$macro_version
18252 macro_revision=$macro_revision
18254 # Whether or not to build shared libraries.
18255 build_libtool_libs=$enable_shared
18257 # Whether or not to build static libraries.
18258 build_old_libs=$enable_static
18260 # What type of objects to build.
18261 pic_mode=$pic_mode
18263 # Whether or not to optimize for fast installation.
18264 fast_install=$enable_fast_install
18266 # Shell to use when invoking shell scripts.
18267 SHELL=$lt_SHELL
18269 # An echo program that protects backslashes.
18270 ECHO=$lt_ECHO
18272 # The host system.
18273 host_alias=$host_alias
18274 host=$host
18275 host_os=$host_os
18277 # The build system.
18278 build_alias=$build_alias
18279 build=$build
18280 build_os=$build_os
18282 # A sed program that does not truncate output.
18283 SED=$lt_SED
18285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18286 Xsed="\$SED -e 1s/^X//"
18288 # A grep program that handles long lines.
18289 GREP=$lt_GREP
18291 # An ERE matcher.
18292 EGREP=$lt_EGREP
18294 # A literal string matcher.
18295 FGREP=$lt_FGREP
18297 # A BSD- or MS-compatible name lister.
18298 NM=$lt_NM
18300 # Whether we need soft or hard links.
18301 LN_S=$lt_LN_S
18303 # What is the maximum length of a command?
18304 max_cmd_len=$max_cmd_len
18306 # Object file suffix (normally "o").
18307 objext=$ac_objext
18309 # Executable file suffix (normally "").
18310 exeext=$exeext
18312 # whether the shell understands "unset".
18313 lt_unset=$lt_unset
18315 # turn spaces into newlines.
18316 SP2NL=$lt_lt_SP2NL
18318 # turn newlines into spaces.
18319 NL2SP=$lt_lt_NL2SP
18321 # An object symbol dumper.
18322 OBJDUMP=$lt_OBJDUMP
18324 # Method to check whether dependent libraries are shared objects.
18325 deplibs_check_method=$lt_deplibs_check_method
18327 # Command to use when deplibs_check_method == "file_magic".
18328 file_magic_cmd=$lt_file_magic_cmd
18330 # The archiver.
18331 AR=$lt_AR
18332 AR_FLAGS=$lt_AR_FLAGS
18334 # A symbol stripping program.
18335 STRIP=$lt_STRIP
18337 # Commands used to install an old-style archive.
18338 RANLIB=$lt_RANLIB
18339 old_postinstall_cmds=$lt_old_postinstall_cmds
18340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18342 # Whether to use a lock for old archive extraction.
18343 lock_old_archive_extraction=$lock_old_archive_extraction
18345 # A C compiler.
18346 LTCC=$lt_CC
18348 # LTCC compiler flags.
18349 LTCFLAGS=$lt_CFLAGS
18351 # Take the output of nm and produce a listing of raw symbols and C names.
18352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18354 # Transform the output of nm in a proper C declaration.
18355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18357 # Transform the output of nm in a C name address pair.
18358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18360 # Transform the output of nm in a C name address pair when lib prefix is needed.
18361 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18363 # The name of the directory that contains temporary libtool files.
18364 objdir=$objdir
18366 # Used to examine libraries when file_magic_cmd begins with "file".
18367 MAGIC_CMD=$MAGIC_CMD
18369 # Must we lock files when doing compilation?
18370 need_locks=$lt_need_locks
18372 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18373 DSYMUTIL=$lt_DSYMUTIL
18375 # Tool to change global to local symbols on Mac OS X.
18376 NMEDIT=$lt_NMEDIT
18378 # Tool to manipulate fat objects and archives on Mac OS X.
18379 LIPO=$lt_LIPO
18381 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18382 OTOOL=$lt_OTOOL
18384 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18385 OTOOL64=$lt_OTOOL64
18387 # Old archive suffix (normally "a").
18388 libext=$libext
18390 # Shared library suffix (normally ".so").
18391 shrext_cmds=$lt_shrext_cmds
18393 # The commands to extract the exported symbol list from a shared archive.
18394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18396 # Variables whose values should be saved in libtool wrapper scripts and
18397 # restored at link time.
18398 variables_saved_for_relink=$lt_variables_saved_for_relink
18400 # Do we need the "lib" prefix for modules?
18401 need_lib_prefix=$need_lib_prefix
18403 # Do we need a version for libraries?
18404 need_version=$need_version
18406 # Library versioning type.
18407 version_type=$version_type
18409 # Shared library runtime path variable.
18410 runpath_var=$runpath_var
18412 # Shared library path variable.
18413 shlibpath_var=$shlibpath_var
18415 # Is shlibpath searched before the hard-coded library search path?
18416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18418 # Format of library name prefix.
18419 libname_spec=$lt_libname_spec
18421 # List of archive names. First name is the real one, the rest are links.
18422 # The last name is the one that the linker finds with -lNAME
18423 library_names_spec=$lt_library_names_spec
18425 # The coded name of the library, if different from the real name.
18426 soname_spec=$lt_soname_spec
18428 # Permission mode override for installation of shared libraries.
18429 install_override_mode=$lt_install_override_mode
18431 # Command to use after installation of a shared archive.
18432 postinstall_cmds=$lt_postinstall_cmds
18434 # Command to use after uninstallation of a shared archive.
18435 postuninstall_cmds=$lt_postuninstall_cmds
18437 # Commands used to finish a libtool library installation in a directory.
18438 finish_cmds=$lt_finish_cmds
18440 # As "finish_cmds", except a single script fragment to be evaled but
18441 # not shown.
18442 finish_eval=$lt_finish_eval
18444 # Whether we should hardcode library paths into libraries.
18445 hardcode_into_libs=$hardcode_into_libs
18447 # Compile-time system search path for libraries.
18448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18450 # Run-time system search path for libraries.
18451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18453 # Whether dlopen is supported.
18454 dlopen_support=$enable_dlopen
18456 # Whether dlopen of programs is supported.
18457 dlopen_self=$enable_dlopen_self
18459 # Whether dlopen of statically linked programs is supported.
18460 dlopen_self_static=$enable_dlopen_self_static
18462 # Commands to strip libraries.
18463 old_striplib=$lt_old_striplib
18464 striplib=$lt_striplib
18467 # The linker used to build libraries.
18468 LD=$lt_LD
18470 # How to create reloadable object files.
18471 reload_flag=$lt_reload_flag
18472 reload_cmds=$lt_reload_cmds
18474 # Commands used to build an old-style archive.
18475 old_archive_cmds=$lt_old_archive_cmds
18477 # A language specific compiler.
18478 CC=$lt_compiler
18480 # Is the compiler the GNU compiler?
18481 with_gcc=$GCC
18483 # Compiler flag to turn off builtin functions.
18484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18486 # How to pass a linker flag through the compiler.
18487 wl=$lt_lt_prog_compiler_wl
18489 # Additional compiler flags for building library objects.
18490 pic_flag=$lt_lt_prog_compiler_pic
18492 # Compiler flag to prevent dynamic linking.
18493 link_static_flag=$lt_lt_prog_compiler_static
18495 # Does compiler simultaneously support -c and -o options?
18496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18498 # Whether or not to add -lc for building shared libraries.
18499 build_libtool_need_lc=$archive_cmds_need_lc
18501 # Whether or not to disallow shared libs when runtime libs are static.
18502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18504 # Compiler flag to allow reflexive dlopens.
18505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18507 # Compiler flag to generate shared objects directly from archives.
18508 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18510 # Whether the compiler copes with passing no objects directly.
18511 compiler_needs_object=$lt_compiler_needs_object
18513 # Create an old-style archive from a shared archive.
18514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18516 # Create a temporary old-style archive to link instead of a shared archive.
18517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18519 # Commands used to build a shared archive.
18520 archive_cmds=$lt_archive_cmds
18521 archive_expsym_cmds=$lt_archive_expsym_cmds
18523 # Commands used to build a loadable module if different from building
18524 # a shared archive.
18525 module_cmds=$lt_module_cmds
18526 module_expsym_cmds=$lt_module_expsym_cmds
18528 # Whether we are building with GNU ld or not.
18529 with_gnu_ld=$lt_with_gnu_ld
18531 # Flag that allows shared libraries with undefined symbols to be built.
18532 allow_undefined_flag=$lt_allow_undefined_flag
18534 # Flag that enforces no undefined symbols.
18535 no_undefined_flag=$lt_no_undefined_flag
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18541 # If ld is used when linking, flag to hardcode \$libdir into a binary
18542 # during linking. This must work even if \$libdir does not exist.
18543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18545 # Whether we need a single "-rpath" flag with a separated argument.
18546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18549 # DIR into the resulting binary.
18550 hardcode_direct=$hardcode_direct
18552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18553 # DIR into the resulting binary and the resulting library dependency is
18554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18555 # library is relocated.
18556 hardcode_direct_absolute=$hardcode_direct_absolute
18558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18559 # into the resulting binary.
18560 hardcode_minus_L=$hardcode_minus_L
18562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18563 # into the resulting binary.
18564 hardcode_shlibpath_var=$hardcode_shlibpath_var
18566 # Set to "yes" if building a shared library automatically hardcodes DIR
18567 # into the library and all subsequent libraries and executables linked
18568 # against it.
18569 hardcode_automatic=$hardcode_automatic
18571 # Set to yes if linker adds runtime paths of dependent libraries
18572 # to runtime path list.
18573 inherit_rpath=$inherit_rpath
18575 # Whether libtool must link a program against all its dependency libraries.
18576 link_all_deplibs=$link_all_deplibs
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path=$lt_fix_srcfile_path
18581 # Set to "yes" if exported symbols are required.
18582 always_export_symbols=$always_export_symbols
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds
18587 # Symbols that should not be listed in the preloaded symbols.
18588 exclude_expsyms=$lt_exclude_expsyms
18590 # Symbols that must always be exported.
18591 include_expsyms=$lt_include_expsyms
18593 # Commands necessary for linking programs (against libraries) with templates.
18594 prelink_cmds=$lt_prelink_cmds
18596 # Specify filename containing input files.
18597 file_list_spec=$lt_file_list_spec
18599 # How to hardcode a shared library path into an executable.
18600 hardcode_action=$hardcode_action
18602 # The directories searched by this compiler when creating a shared library.
18603 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18605 # Dependencies to place before and after the objects being linked to
18606 # create a shared library.
18607 predep_objects=$lt_predep_objects
18608 postdep_objects=$lt_postdep_objects
18609 predeps=$lt_predeps
18610 postdeps=$lt_postdeps
18612 # The library search path used internally by the compiler when linking
18613 # a shared library.
18614 compiler_lib_search_path=$lt_compiler_lib_search_path
18616 # ### END LIBTOOL CONFIG
18618 _LT_EOF
18620 case $host_os in
18621 aix3*)
18622 cat <<\_LT_EOF >> "$cfgfile"
18623 # AIX sometimes has problems with the GCC collect2 program. For some
18624 # reason, if we set the COLLECT_NAMES environment variable, the problems
18625 # vanish in a puff of smoke.
18626 if test "X${COLLECT_NAMES+set}" != Xset; then
18627 COLLECT_NAMES=
18628 export COLLECT_NAMES
18630 _LT_EOF
18632 esac
18635 ltmain="$ac_aux_dir/ltmain.sh"
18638 # We use sed instead of cat because bash on DJGPP gets confused if
18639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18640 # text mode, it properly converts lines to CR/LF. This bash problem
18641 # is reportedly fixed, but why not run on old versions too?
18642 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18643 || (rm -f "$cfgfile"; exit 1)
18645 case $xsi_shell in
18646 yes)
18647 cat << \_LT_EOF >> "$cfgfile"
18649 # func_dirname file append nondir_replacement
18650 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18651 # otherwise set result to NONDIR_REPLACEMENT.
18652 func_dirname ()
18654 case ${1} in
18655 */*) func_dirname_result="${1%/*}${2}" ;;
18656 * ) func_dirname_result="${3}" ;;
18657 esac
18660 # func_basename file
18661 func_basename ()
18663 func_basename_result="${1##*/}"
18666 # func_dirname_and_basename file append nondir_replacement
18667 # perform func_basename and func_dirname in a single function
18668 # call:
18669 # dirname: Compute the dirname of FILE. If nonempty,
18670 # add APPEND to the result, otherwise set result
18671 # to NONDIR_REPLACEMENT.
18672 # value returned in "$func_dirname_result"
18673 # basename: Compute filename of FILE.
18674 # value retuned in "$func_basename_result"
18675 # Implementation must be kept synchronized with func_dirname
18676 # and func_basename. For efficiency, we do not delegate to
18677 # those functions but instead duplicate the functionality here.
18678 func_dirname_and_basename ()
18680 case ${1} in
18681 */*) func_dirname_result="${1%/*}${2}" ;;
18682 * ) func_dirname_result="${3}" ;;
18683 esac
18684 func_basename_result="${1##*/}"
18687 # func_stripname prefix suffix name
18688 # strip PREFIX and SUFFIX off of NAME.
18689 # PREFIX and SUFFIX must not contain globbing or regex special
18690 # characters, hashes, percent signs, but SUFFIX may contain a leading
18691 # dot (in which case that matches only a dot).
18692 func_stripname ()
18694 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18695 # positional parameters, so assign one to ordinary parameter first.
18696 func_stripname_result=${3}
18697 func_stripname_result=${func_stripname_result#"${1}"}
18698 func_stripname_result=${func_stripname_result%"${2}"}
18701 # func_opt_split
18702 func_opt_split ()
18704 func_opt_split_opt=${1%%=*}
18705 func_opt_split_arg=${1#*=}
18708 # func_lo2o object
18709 func_lo2o ()
18711 case ${1} in
18712 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18713 *) func_lo2o_result=${1} ;;
18714 esac
18717 # func_xform libobj-or-source
18718 func_xform ()
18720 func_xform_result=${1%.*}.lo
18723 # func_arith arithmetic-term...
18724 func_arith ()
18726 func_arith_result=$(( $* ))
18729 # func_len string
18730 # STRING may not start with a hyphen.
18731 func_len ()
18733 func_len_result=${#1}
18736 _LT_EOF
18738 *) # Bourne compatible functions.
18739 cat << \_LT_EOF >> "$cfgfile"
18741 # func_dirname file append nondir_replacement
18742 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18743 # otherwise set result to NONDIR_REPLACEMENT.
18744 func_dirname ()
18746 # Extract subdirectory from the argument.
18747 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18748 if test "X$func_dirname_result" = "X${1}"; then
18749 func_dirname_result="${3}"
18750 else
18751 func_dirname_result="$func_dirname_result${2}"
18755 # func_basename file
18756 func_basename ()
18758 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18762 # func_stripname prefix suffix name
18763 # strip PREFIX and SUFFIX off of NAME.
18764 # PREFIX and SUFFIX must not contain globbing or regex special
18765 # characters, hashes, percent signs, but SUFFIX may contain a leading
18766 # dot (in which case that matches only a dot).
18767 # func_strip_suffix prefix name
18768 func_stripname ()
18770 case ${2} in
18771 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18772 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18773 esac
18776 # sed scripts:
18777 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18778 my_sed_long_arg='1s/^-[^=]*=//'
18780 # func_opt_split
18781 func_opt_split ()
18783 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18784 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18787 # func_lo2o object
18788 func_lo2o ()
18790 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18793 # func_xform libobj-or-source
18794 func_xform ()
18796 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18799 # func_arith arithmetic-term...
18800 func_arith ()
18802 func_arith_result=`expr "$@"`
18805 # func_len string
18806 # STRING may not start with a hyphen.
18807 func_len ()
18809 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18812 _LT_EOF
18813 esac
18815 case $lt_shell_append in
18816 yes)
18817 cat << \_LT_EOF >> "$cfgfile"
18819 # func_append var value
18820 # Append VALUE to the end of shell variable VAR.
18821 func_append ()
18823 eval "$1+=\$2"
18825 _LT_EOF
18828 cat << \_LT_EOF >> "$cfgfile"
18830 # func_append var value
18831 # Append VALUE to the end of shell variable VAR.
18832 func_append ()
18834 eval "$1=\$$1\$2"
18837 _LT_EOF
18839 esac
18842 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18843 || (rm -f "$cfgfile"; exit 1)
18845 mv -f "$cfgfile" "$ofile" ||
18846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18847 chmod +x "$ofile"
18850 cat <<_LT_EOF >> "$ofile"
18852 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18854 # The linker used to build libraries.
18855 LD=$lt_LD_CXX
18857 # How to create reloadable object files.
18858 reload_flag=$lt_reload_flag_CXX
18859 reload_cmds=$lt_reload_cmds_CXX
18861 # Commands used to build an old-style archive.
18862 old_archive_cmds=$lt_old_archive_cmds_CXX
18864 # A language specific compiler.
18865 CC=$lt_compiler_CXX
18867 # Is the compiler the GNU compiler?
18868 with_gcc=$GCC_CXX
18870 # Compiler flag to turn off builtin functions.
18871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18873 # How to pass a linker flag through the compiler.
18874 wl=$lt_lt_prog_compiler_wl_CXX
18876 # Additional compiler flags for building library objects.
18877 pic_flag=$lt_lt_prog_compiler_pic_CXX
18879 # Compiler flag to prevent dynamic linking.
18880 link_static_flag=$lt_lt_prog_compiler_static_CXX
18882 # Does compiler simultaneously support -c and -o options?
18883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18885 # Whether or not to add -lc for building shared libraries.
18886 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18888 # Whether or not to disallow shared libs when runtime libs are static.
18889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18891 # Compiler flag to allow reflexive dlopens.
18892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18894 # Compiler flag to generate shared objects directly from archives.
18895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18897 # Whether the compiler copes with passing no objects directly.
18898 compiler_needs_object=$lt_compiler_needs_object_CXX
18900 # Create an old-style archive from a shared archive.
18901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18903 # Create a temporary old-style archive to link instead of a shared archive.
18904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18906 # Commands used to build a shared archive.
18907 archive_cmds=$lt_archive_cmds_CXX
18908 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18910 # Commands used to build a loadable module if different from building
18911 # a shared archive.
18912 module_cmds=$lt_module_cmds_CXX
18913 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18915 # Whether we are building with GNU ld or not.
18916 with_gnu_ld=$lt_with_gnu_ld_CXX
18918 # Flag that allows shared libraries with undefined symbols to be built.
18919 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18921 # Flag that enforces no undefined symbols.
18922 no_undefined_flag=$lt_no_undefined_flag_CXX
18924 # Flag to hardcode \$libdir into a binary during linking.
18925 # This must work even if \$libdir does not exist
18926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18928 # If ld is used when linking, flag to hardcode \$libdir into a binary
18929 # during linking. This must work even if \$libdir does not exist.
18930 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18932 # Whether we need a single "-rpath" flag with a separated argument.
18933 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18936 # DIR into the resulting binary.
18937 hardcode_direct=$hardcode_direct_CXX
18939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18940 # DIR into the resulting binary and the resulting library dependency is
18941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18942 # library is relocated.
18943 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18946 # into the resulting binary.
18947 hardcode_minus_L=$hardcode_minus_L_CXX
18949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18950 # into the resulting binary.
18951 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18953 # Set to "yes" if building a shared library automatically hardcodes DIR
18954 # into the library and all subsequent libraries and executables linked
18955 # against it.
18956 hardcode_automatic=$hardcode_automatic_CXX
18958 # Set to yes if linker adds runtime paths of dependent libraries
18959 # to runtime path list.
18960 inherit_rpath=$inherit_rpath_CXX
18962 # Whether libtool must link a program against all its dependency libraries.
18963 link_all_deplibs=$link_all_deplibs_CXX
18965 # Fix the shell variable \$srcfile for the compiler.
18966 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18968 # Set to "yes" if exported symbols are required.
18969 always_export_symbols=$always_export_symbols_CXX
18971 # The commands to list exported symbols.
18972 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18974 # Symbols that should not be listed in the preloaded symbols.
18975 exclude_expsyms=$lt_exclude_expsyms_CXX
18977 # Symbols that must always be exported.
18978 include_expsyms=$lt_include_expsyms_CXX
18980 # Commands necessary for linking programs (against libraries) with templates.
18981 prelink_cmds=$lt_prelink_cmds_CXX
18983 # Specify filename containing input files.
18984 file_list_spec=$lt_file_list_spec_CXX
18986 # How to hardcode a shared library path into an executable.
18987 hardcode_action=$hardcode_action_CXX
18989 # The directories searched by this compiler when creating a shared library.
18990 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18992 # Dependencies to place before and after the objects being linked to
18993 # create a shared library.
18994 predep_objects=$lt_predep_objects_CXX
18995 postdep_objects=$lt_postdep_objects_CXX
18996 predeps=$lt_predeps_CXX
18997 postdeps=$lt_postdeps_CXX
18999 # The library search path used internally by the compiler when linking
19000 # a shared library.
19001 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19003 # ### END LIBTOOL TAG CONFIG: CXX
19004 _LT_EOF
19007 "gstdint.h":C)
19008 if test "$GCC" = yes; then
19009 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19010 else
19011 echo "/* generated for $CC */" > tmp-stdint.h
19014 sed 's/^ *//' >> tmp-stdint.h <<EOF
19016 #ifndef GCC_GENERATED_STDINT_H
19017 #define GCC_GENERATED_STDINT_H 1
19019 #include <sys/types.h>
19022 if test "$acx_cv_header_stdint" != stdint.h; then
19023 echo "#include <stddef.h>" >> tmp-stdint.h
19025 if test "$acx_cv_header_stdint" != stddef.h; then
19026 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19029 sed 's/^ *//' >> tmp-stdint.h <<EOF
19030 /* glibc uses these symbols as guards to prevent redefinitions. */
19031 #ifdef __int8_t_defined
19032 #define _INT8_T
19033 #define _INT16_T
19034 #define _INT32_T
19035 #endif
19036 #ifdef __uint32_t_defined
19037 #define _UINT32_T
19038 #endif
19042 # ----------------- done header, emit basic int types -------------
19043 if test "$acx_cv_header_stdint" = stddef.h; then
19044 sed 's/^ *//' >> tmp-stdint.h <<EOF
19046 #ifndef _UINT8_T
19047 #define _UINT8_T
19048 #ifndef __uint8_t_defined
19049 #define __uint8_t_defined
19050 #ifndef uint8_t
19051 typedef unsigned $acx_cv_type_int8_t uint8_t;
19052 #endif
19053 #endif
19054 #endif
19056 #ifndef _UINT16_T
19057 #define _UINT16_T
19058 #ifndef __uint16_t_defined
19059 #define __uint16_t_defined
19060 #ifndef uint16_t
19061 typedef unsigned $acx_cv_type_int16_t uint16_t;
19062 #endif
19063 #endif
19064 #endif
19066 #ifndef _UINT32_T
19067 #define _UINT32_T
19068 #ifndef __uint32_t_defined
19069 #define __uint32_t_defined
19070 #ifndef uint32_t
19071 typedef unsigned $acx_cv_type_int32_t uint32_t;
19072 #endif
19073 #endif
19074 #endif
19076 #ifndef _INT8_T
19077 #define _INT8_T
19078 #ifndef __int8_t_defined
19079 #define __int8_t_defined
19080 #ifndef int8_t
19081 typedef $acx_cv_type_int8_t int8_t;
19082 #endif
19083 #endif
19084 #endif
19086 #ifndef _INT16_T
19087 #define _INT16_T
19088 #ifndef __int16_t_defined
19089 #define __int16_t_defined
19090 #ifndef int16_t
19091 typedef $acx_cv_type_int16_t int16_t;
19092 #endif
19093 #endif
19094 #endif
19096 #ifndef _INT32_T
19097 #define _INT32_T
19098 #ifndef __int32_t_defined
19099 #define __int32_t_defined
19100 #ifndef int32_t
19101 typedef $acx_cv_type_int32_t int32_t;
19102 #endif
19103 #endif
19104 #endif
19106 elif test "$ac_cv_type_u_int32_t" = yes; then
19107 sed 's/^ *//' >> tmp-stdint.h <<EOF
19109 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19110 #ifndef _INT8_T
19111 #define _INT8_T
19112 #endif
19113 #ifndef _INT16_T
19114 #define _INT16_T
19115 #endif
19116 #ifndef _INT32_T
19117 #define _INT32_T
19118 #endif
19120 #ifndef _UINT8_T
19121 #define _UINT8_T
19122 #ifndef __uint8_t_defined
19123 #define __uint8_t_defined
19124 #ifndef uint8_t
19125 typedef u_int8_t uint8_t;
19126 #endif
19127 #endif
19128 #endif
19130 #ifndef _UINT16_T
19131 #define _UINT16_T
19132 #ifndef __uint16_t_defined
19133 #define __uint16_t_defined
19134 #ifndef uint16_t
19135 typedef u_int16_t uint16_t;
19136 #endif
19137 #endif
19138 #endif
19140 #ifndef _UINT32_T
19141 #define _UINT32_T
19142 #ifndef __uint32_t_defined
19143 #define __uint32_t_defined
19144 #ifndef uint32_t
19145 typedef u_int32_t uint32_t;
19146 #endif
19147 #endif
19148 #endif
19150 else
19151 sed 's/^ *//' >> tmp-stdint.h <<EOF
19153 /* Some systems have guard macros to prevent redefinitions, define them. */
19154 #ifndef _INT8_T
19155 #define _INT8_T
19156 #endif
19157 #ifndef _INT16_T
19158 #define _INT16_T
19159 #endif
19160 #ifndef _INT32_T
19161 #define _INT32_T
19162 #endif
19163 #ifndef _UINT8_T
19164 #define _UINT8_T
19165 #endif
19166 #ifndef _UINT16_T
19167 #define _UINT16_T
19168 #endif
19169 #ifndef _UINT32_T
19170 #define _UINT32_T
19171 #endif
19175 # ------------- done basic int types, emit int64_t types ------------
19176 if test "$ac_cv_type_uint64_t" = yes; then
19177 sed 's/^ *//' >> tmp-stdint.h <<EOF
19179 /* system headers have good uint64_t and int64_t */
19180 #ifndef _INT64_T
19181 #define _INT64_T
19182 #endif
19183 #ifndef _UINT64_T
19184 #define _UINT64_T
19185 #endif
19187 elif test "$ac_cv_type_u_int64_t" = yes; then
19188 sed 's/^ *//' >> tmp-stdint.h <<EOF
19190 /* system headers have an u_int64_t (and int64_t) */
19191 #ifndef _INT64_T
19192 #define _INT64_T
19193 #endif
19194 #ifndef _UINT64_T
19195 #define _UINT64_T
19196 #ifndef __uint64_t_defined
19197 #define __uint64_t_defined
19198 #ifndef uint64_t
19199 typedef u_int64_t uint64_t;
19200 #endif
19201 #endif
19202 #endif
19204 elif test -n "$acx_cv_type_int64_t"; then
19205 sed 's/^ *//' >> tmp-stdint.h <<EOF
19207 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19208 #ifndef _INT64_T
19209 #define _INT64_T
19210 #ifndef int64_t
19211 typedef $acx_cv_type_int64_t int64_t;
19212 #endif
19213 #endif
19214 #ifndef _UINT64_T
19215 #define _UINT64_T
19216 #ifndef __uint64_t_defined
19217 #define __uint64_t_defined
19218 #ifndef uint64_t
19219 typedef unsigned $acx_cv_type_int64_t uint64_t;
19220 #endif
19221 #endif
19222 #endif
19224 else
19225 sed 's/^ *//' >> tmp-stdint.h <<EOF
19227 /* some common heuristics for int64_t, using compiler-specific tests */
19228 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19229 #ifndef _INT64_T
19230 #define _INT64_T
19231 #ifndef __int64_t_defined
19232 #ifndef int64_t
19233 typedef long long int64_t;
19234 #endif
19235 #endif
19236 #endif
19237 #ifndef _UINT64_T
19238 #define _UINT64_T
19239 #ifndef uint64_t
19240 typedef unsigned long long uint64_t;
19241 #endif
19242 #endif
19244 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19245 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19246 does not implement __extension__. But that compiler doesn't define
19247 __GNUC_MINOR__. */
19248 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19249 # define __extension__
19250 # endif
19252 # ifndef _INT64_T
19253 # define _INT64_T
19254 # ifndef int64_t
19255 __extension__ typedef long long int64_t;
19256 # endif
19257 # endif
19258 # ifndef _UINT64_T
19259 # define _UINT64_T
19260 # ifndef uint64_t
19261 __extension__ typedef unsigned long long uint64_t;
19262 # endif
19263 # endif
19265 #elif !defined __STRICT_ANSI__
19266 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19268 # ifndef _INT64_T
19269 # define _INT64_T
19270 # ifndef int64_t
19271 typedef __int64 int64_t;
19272 # endif
19273 # endif
19274 # ifndef _UINT64_T
19275 # define _UINT64_T
19276 # ifndef uint64_t
19277 typedef unsigned __int64 uint64_t;
19278 # endif
19279 # endif
19280 # endif /* compiler */
19282 #endif /* ANSI version */
19286 # ------------- done int64_t types, emit intptr types ------------
19287 if test "$ac_cv_type_uintptr_t" != yes; then
19288 sed 's/^ *//' >> tmp-stdint.h <<EOF
19290 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19291 #ifndef __uintptr_t_defined
19292 #ifndef uintptr_t
19293 typedef u$acx_cv_type_intptr_t uintptr_t;
19294 #endif
19295 #endif
19296 #ifndef __intptr_t_defined
19297 #ifndef intptr_t
19298 typedef $acx_cv_type_intptr_t intptr_t;
19299 #endif
19300 #endif
19304 # ------------- done intptr types, emit int_least types ------------
19305 if test "$ac_cv_type_int_least32_t" != yes; then
19306 sed 's/^ *//' >> tmp-stdint.h <<EOF
19308 /* Define int_least types */
19309 typedef int8_t int_least8_t;
19310 typedef int16_t int_least16_t;
19311 typedef int32_t int_least32_t;
19312 #ifdef _INT64_T
19313 typedef int64_t int_least64_t;
19314 #endif
19316 typedef uint8_t uint_least8_t;
19317 typedef uint16_t uint_least16_t;
19318 typedef uint32_t uint_least32_t;
19319 #ifdef _UINT64_T
19320 typedef uint64_t uint_least64_t;
19321 #endif
19325 # ------------- done intptr types, emit int_fast types ------------
19326 if test "$ac_cv_type_int_fast32_t" != yes; then
19327 sed 's/^ *//' >> tmp-stdint.h <<EOF
19329 /* Define int_fast types. short is often slow */
19330 typedef int8_t int_fast8_t;
19331 typedef int int_fast16_t;
19332 typedef int32_t int_fast32_t;
19333 #ifdef _INT64_T
19334 typedef int64_t int_fast64_t;
19335 #endif
19337 typedef uint8_t uint_fast8_t;
19338 typedef unsigned int uint_fast16_t;
19339 typedef uint32_t uint_fast32_t;
19340 #ifdef _UINT64_T
19341 typedef uint64_t uint_fast64_t;
19342 #endif
19346 if test "$ac_cv_type_uintmax_t" != yes; then
19347 sed 's/^ *//' >> tmp-stdint.h <<EOF
19349 /* Define intmax based on what we found */
19350 #ifndef intmax_t
19351 #ifdef _INT64_T
19352 typedef int64_t intmax_t;
19353 #else
19354 typedef long intmax_t;
19355 #endif
19356 #endif
19357 #ifndef uintmax_t
19358 #ifdef _UINT64_T
19359 typedef uint64_t uintmax_t;
19360 #else
19361 typedef unsigned long uintmax_t;
19362 #endif
19363 #endif
19367 sed 's/^ *//' >> tmp-stdint.h <<EOF
19369 #endif /* GCC_GENERATED_STDINT_H */
19372 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19373 rm -f tmp-stdint.h
19374 else
19375 mv -f tmp-stdint.h gstdint.h
19379 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19380 s!`test -f '$<' || echo '$(srcdir)/'`!!
19381 _EOF
19382 sed -f vpsed$$ $ac_file > tmp$$
19383 mv tmp$$ $ac_file
19384 rm vpsed$$
19385 echo 'MULTISUBDIR =' >> $ac_file
19386 ml_norecursion=yes
19387 . ${multi_basedir}/config-ml.in
19388 { ml_norecursion=; unset ml_norecursion;}
19390 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19391 s!`test -f '$<' || echo '$(srcdir)/'`!!
19392 _EOF
19393 sed -f vpsed$$ $ac_file > tmp$$
19394 mv tmp$$ $ac_file
19395 rm vpsed$$
19396 echo 'MULTISUBDIR =' >> $ac_file
19397 ml_norecursion=yes
19398 . ${multi_basedir}/config-ml.in
19399 { ml_norecursion=; unset ml_norecursion;}
19401 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19402 s!`test -f '$<' || echo '$(srcdir)/'`!!
19403 _EOF
19404 sed -f vpsed$$ $ac_file > tmp$$
19405 mv tmp$$ $ac_file
19406 rm vpsed$$
19407 echo 'MULTISUBDIR =' >> $ac_file
19408 ml_norecursion=yes
19409 . ${multi_basedir}/config-ml.in
19410 { ml_norecursion=; unset ml_norecursion;}
19412 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19413 s!`test -f '$<' || echo '$(srcdir)/'`!!
19414 _EOF
19415 sed -f vpsed$$ $ac_file > tmp$$
19416 mv tmp$$ $ac_file
19417 rm vpsed$$
19418 echo 'MULTISUBDIR =' >> $ac_file
19419 ml_norecursion=yes
19420 . ${multi_basedir}/config-ml.in
19421 { ml_norecursion=; unset ml_norecursion;}
19423 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19424 s!`test -f '$<' || echo '$(srcdir)/'`!!
19425 _EOF
19426 sed -f vpsed$$ $ac_file > tmp$$
19427 mv tmp$$ $ac_file
19428 rm vpsed$$
19429 echo 'MULTISUBDIR =' >> $ac_file
19430 ml_norecursion=yes
19431 . ${multi_basedir}/config-ml.in
19432 { ml_norecursion=; unset ml_norecursion;}
19434 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19435 s!`test -f '$<' || echo '$(srcdir)/'`!!
19436 _EOF
19437 sed -f vpsed$$ $ac_file > tmp$$
19438 mv tmp$$ $ac_file
19439 rm vpsed$$
19440 echo 'MULTISUBDIR =' >> $ac_file
19441 ml_norecursion=yes
19442 . ${multi_basedir}/config-ml.in
19443 { ml_norecursion=; unset ml_norecursion;}
19445 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19446 s!`test -f '$<' || echo '$(srcdir)/'`!!
19447 _EOF
19448 sed -f vpsed$$ $ac_file > tmp$$
19449 mv tmp$$ $ac_file
19450 rm vpsed$$
19451 echo 'MULTISUBDIR =' >> $ac_file
19452 ml_norecursion=yes
19453 . ${multi_basedir}/config-ml.in
19454 { ml_norecursion=; unset ml_norecursion;}
19457 esac
19458 done # for ac_tag
19461 as_fn_exit 0
19462 _ACEOF
19463 ac_clean_files=$ac_clean_files_save
19465 test $ac_write_fail = 0 ||
19466 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19469 # configure is writing to config.log, and then calls config.status.
19470 # config.status does its own redirection, appending to config.log.
19471 # Unfortunately, on DOS this fails, as config.log is still kept open
19472 # by configure, so config.status won't be able to write to it; its
19473 # output is simply discarded. So we exec the FD to /dev/null,
19474 # effectively closing config.log, so it can be properly (re)opened and
19475 # appended to by config.status. When coming back to configure, we
19476 # need to make the FD available again.
19477 if test "$no_create" != yes; then
19478 ac_cs_success=:
19479 ac_config_status_args=
19480 test "$silent" = yes &&
19481 ac_config_status_args="$ac_config_status_args --quiet"
19482 exec 5>/dev/null
19483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19484 exec 5>>config.log
19485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19486 # would make configure fail if this is the last instruction.
19487 $ac_cs_success || as_fn_exit $?
19489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}