Daily bump.
[official-gcc.git] / libsanitizer / configure
blobc550ad61057b7464e9ab3c75e9296e4bc53abf0d
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 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 LIBSTDCXX_RAW_CXX_LDFLAGS
695 LIBSTDCXX_RAW_CXX_CXXFLAGS
696 target_noncanonical
697 target_os
698 target_vendor
699 target_cpu
700 target
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 EGREP
710 GREP
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
719 multi_basedir
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_multilib
762 enable_version_specific_runtime_libs
763 enable_dependency_tracking
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-multilib build many library versions (default)
1408 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
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 # Default to --enable-multilib
2629 # Check whether --enable-multilib was given.
2630 if test "${enable_multilib+set}" = set; then :
2631 enableval=$enable_multilib; case "$enableval" in
2632 yes) multilib=yes ;;
2633 no) multilib=no ;;
2634 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2635 esac
2636 else
2637 multilib=yes
2641 # We may get other options which we leave undocumented:
2642 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2643 # See config-ml.in if you want the gory details.
2645 if test "$srcdir" = "."; then
2646 if test "$with_target_subdir" != "."; then
2647 multi_basedir="$srcdir/$with_multisrctop../.."
2648 else
2649 multi_basedir="$srcdir/$with_multisrctop.."
2651 else
2652 multi_basedir="$srcdir/.."
2656 # Even if the default multilib is not a cross compilation,
2657 # it may be that some of the other multilibs are.
2658 if test $cross_compiling = no && test $multilib = yes \
2659 && test "x${with_multisubdir}" != x ; then
2660 cross_compiling=maybe
2663 ac_config_commands="$ac_config_commands default-1"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2667 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2668 # Check whether --enable-version-specific-runtime-libs was given.
2669 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2670 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2671 yes) version_specific_libs=yes ;;
2672 no) version_specific_libs=no ;;
2673 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2674 esac
2675 else
2676 version_specific_libs=no
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2680 $as_echo "$version_specific_libs" >&6; }
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2709 done
2710 done
2711 IFS=$as_save_IFS
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$ac_cv_prog_CC"; then
2727 ac_ct_CC=$CC
2728 # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="gcc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2749 done
2750 done
2751 IFS=$as_save_IFS
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2764 if test "x$ac_ct_CC" = x; then
2765 CC=""
2766 else
2767 case $cross_compiling:$ac_tool_warned in
2768 yes:)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773 CC=$ac_ct_CC
2775 else
2776 CC="$ac_cv_prog_CC"
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2802 done
2803 done
2804 IFS=$as_save_IFS
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2841 continue
2843 ac_cv_prog_CC="cc"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2851 if test $ac_prog_rejected = yes; then
2852 # We found a bogon in the path, so make sure we never use it.
2853 set dummy $ac_cv_prog_CC
2854 shift
2855 if test $# != 0; then
2856 # We chose a different compiler from the bogus one.
2857 # However, it has the same basename, so the bogon will be chosen
2858 # first if we set CC to just the basename; use the full file name.
2859 shift
2860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$CC" && break
2918 done
2920 if test -z "$CC"; then
2921 ac_ct_CC=$CC
2922 for ac_prog in cl.exe
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2961 test -n "$ac_ct_CC" && break
2962 done
2964 if test "x$ac_ct_CC" = x; then
2965 CC=""
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 CC=$ac_ct_CC
2980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error "no acceptable C compiler found in \$PATH
2983 See \`config.log' for more details." "$LINENO" 5; }
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2987 set X $ac_compile
2988 ac_compiler=$2
2989 for ac_option in --version -v -V -qversion; do
2990 { { ac_try="$ac_compiler $ac_option >&5"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998 ac_status=$?
2999 if test -s conftest.err; then
3000 sed '10a\
3001 ... rest of stderr output deleted ...
3002 10q' conftest.err >conftest.er1
3003 cat conftest.er1 >&5
3004 rm -f conftest.er1 conftest.err
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }
3008 done
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3014 main ()
3018 return 0;
3020 _ACEOF
3021 ac_clean_files_save=$ac_clean_files
3022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3025 # of exeext.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3027 $as_echo_n "checking for C compiler default output file name... " >&6; }
3028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3030 # The possible output files:
3031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3033 ac_rmfiles=
3034 for ac_file in $ac_files
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039 esac
3040 done
3041 rm -f $ac_rmfiles
3043 if { { ac_try="$ac_link_default"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link_default") 2>&5
3051 ac_status=$?
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }; then :
3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3058 # Autoconf.
3059 for ac_file in $ac_files ''
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071 then :; else
3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # We set ac_cv_exeext here because the later test for it is not
3075 # safe: cross compilers may not add the suffix if given an `-o'
3076 # argument, so we may need to know it at that point already.
3077 # Even if this section looks crufty: it has the advantage of
3078 # actually working.
3079 break;;
3081 break;;
3082 esac
3083 done
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3086 else
3087 ac_file=''
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 if test -z "$ac_file"; then :
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 { as_fn_set_status 77
3098 as_fn_error "C compiler cannot create executables
3099 See \`config.log' for more details." "$LINENO" 5; }; }
3101 ac_exeext=$ac_cv_exeext
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3106 $as_echo_n "checking whether the C compiler works... " >&6; }
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109 if { ac_try='./$ac_file'
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_try") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; }; then
3120 cross_compiling=no
3121 else
3122 if test "$cross_compiling" = maybe; then
3123 cross_compiling=yes
3124 else
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error "cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." "$LINENO" 5; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3136 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 # Check that the compiler produces executables we can run. If not, either
3139 # the compiler is broken, or we cross compile.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3141 $as_echo_n "checking whether we are cross compiling... " >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3143 $as_echo "$cross_compiling" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146 $as_echo_n "checking for suffix of executables... " >&6; }
3147 if { { ac_try="$ac_link"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 # `rm'.
3162 for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 break;;
3168 * ) break;;
3169 esac
3170 done
3171 else
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." "$LINENO" 5; }
3177 rm -f conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3183 ac_exeext=$EXEEXT
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217 break;;
3218 esac
3219 done
3220 else
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details." "$LINENO" 5; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3246 #ifndef __GNUC__
3247 choke me
3248 #endif
3251 return 0;
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_compiler_gnu=yes
3256 else
3257 ac_compiler_gnu=no
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3266 GCC=yes
3267 else
3268 GCC=
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if test "${ac_cv_prog_cc_g+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3279 ac_cv_prog_cc_g=no
3280 CFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 main ()
3289 return 0;
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_g=yes
3294 else
3295 CFLAGS=""
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3300 main ()
3304 return 0;
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3309 else
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3311 CFLAGS="-g"
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_cv_prog_cc_g=yes
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3339 CFLAGS="-g -O2"
3340 else
3341 CFLAGS="-g"
3343 else
3344 if test "$GCC" = yes; then
3345 CFLAGS="-O2"
3346 else
3347 CFLAGS=
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3367 char **p;
3368 int i;
3370 return p[i];
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3374 char *s;
3375 va_list v;
3376 va_start (v,p);
3377 s = g (p, va_arg (v,int));
3378 va_end (v);
3379 return s;
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3393 #define FOO(x) 'x'
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3403 main ()
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3407 return 0;
3409 _ACEOF
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 done
3420 rm -f conftest.$ac_ext
3421 CC=$ac_save_CC
3424 # AC_CACHE_VAL
3425 case "x$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3429 xno)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3436 esac
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3455 # On Suns, sometimes $CPP names a directory.
3456 if test -n "$CPP" && test -d "$CPP"; then
3457 CPP=
3459 if test -z "$CPP"; then
3460 if test "${ac_cv_prog_CPP+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 # Double quotes because CPP needs to be expanded
3464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466 ac_preproc_ok=false
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482 Syntax error
3483 _ACEOF
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3486 else
3487 # Broken: fails on valid input.
3488 continue
3490 rm -f conftest.err conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499 # Broken: success on invalid input.
3500 continue
3501 else
3502 # Passes both tests.
3503 ac_preproc_ok=:
3504 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then :
3512 break
3515 done
3516 ac_cv_prog_CPP=$CPP
3519 CPP=$ac_cv_prog_CPP
3520 else
3521 ac_cv_prog_CPP=$CPP
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3524 $as_echo "$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #ifdef __STDC__
3537 # include <limits.h>
3538 #else
3539 # include <assert.h>
3540 #endif
3541 Syntax error
3542 _ACEOF
3543 if ac_fn_c_try_cpp "$LINENO"; then :
3545 else
3546 # Broken: fails on valid input.
3547 continue
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558 # Broken: success on invalid input.
3559 continue
3560 else
3561 # Passes both tests.
3562 ac_preproc_ok=:
3563 break
3565 rm -f conftest.err conftest.$ac_ext
3567 done
3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569 rm -f conftest.err conftest.$ac_ext
3570 if $ac_preproc_ok; then :
3572 else
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3576 See \`config.log' for more details." "$LINENO" 5; }
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3588 if test "${ac_cv_path_GREP+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -z "$GREP"; then
3592 ac_path_GREP_found=false
3593 # Loop through the user's path and test for each of PROGNAME-LIST
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_prog in grep ggrep; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604 # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3606 *GNU*)
3607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3609 ac_count=0
3610 $as_echo_n 0123456789 >"conftest.in"
3611 while :
3613 cat "conftest.in" "conftest.in" >"conftest.tmp"
3614 mv "conftest.tmp" "conftest.in"
3615 cp "conftest.in" "conftest.nl"
3616 $as_echo 'GREP' >> "conftest.nl"
3617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619 as_fn_arith $ac_count + 1 && ac_count=$as_val
3620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 # Best one so far, save it but keep looking for a better one
3622 ac_cv_path_GREP="$ac_path_GREP"
3623 ac_path_GREP_max=$ac_count
3625 # 10*(2^10) chars as input seems more than enough
3626 test $ac_count -gt 10 && break
3627 done
3628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629 esac
3631 $ac_path_GREP_found && break 3
3632 done
3633 done
3634 done
3635 IFS=$as_save_IFS
3636 if test -z "$ac_cv_path_GREP"; then
3637 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3639 else
3640 ac_cv_path_GREP=$GREP
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3645 $as_echo "$ac_cv_path_GREP" >&6; }
3646 GREP="$ac_cv_path_GREP"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3650 $as_echo_n "checking for egrep... " >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655 then ac_cv_path_EGREP="$GREP -E"
3656 else
3657 if test -z "$EGREP"; then
3658 ac_path_EGREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in egrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3669 # Check for GNU ac_path_EGREP and select it if it is found.
3670 # Check for GNU $ac_path_EGREP
3671 case `"$ac_path_EGREP" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3675 ac_count=0
3676 $as_echo_n 0123456789 >"conftest.in"
3677 while :
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 $as_echo 'EGREP' >> "conftest.nl"
3683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 as_fn_arith $ac_count + 1 && ac_count=$as_val
3686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_EGREP="$ac_path_EGREP"
3689 ac_path_EGREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3697 $ac_path_EGREP_found && break 3
3698 done
3699 done
3700 done
3701 IFS=$as_save_IFS
3702 if test -z "$ac_cv_path_EGREP"; then
3703 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3705 else
3706 ac_cv_path_EGREP=$EGREP
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3712 $as_echo "$ac_cv_path_EGREP" >&6; }
3713 EGREP="$ac_cv_path_EGREP"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3717 $as_echo_n "checking for ANSI C header files... " >&6; }
3718 if test "${ac_cv_header_stdc+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <stdlib.h>
3724 #include <stdarg.h>
3725 #include <string.h>
3726 #include <float.h>
3729 main ()
3733 return 0;
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_header_stdc=yes
3738 else
3739 ac_cv_header_stdc=no
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 if test $ac_cv_header_stdc = yes; then
3744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <string.h>
3749 _ACEOF
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 $EGREP "memchr" >/dev/null 2>&1; then :
3753 else
3754 ac_cv_header_stdc=no
3756 rm -f conftest*
3760 if test $ac_cv_header_stdc = yes; then
3761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdlib.h>
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 $EGREP "free" >/dev/null 2>&1; then :
3770 else
3771 ac_cv_header_stdc=no
3773 rm -f conftest*
3777 if test $ac_cv_header_stdc = yes; then
3778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3779 if test "$cross_compiling" = yes; then :
3781 else
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 #include <ctype.h>
3785 #include <stdlib.h>
3786 #if ((' ' & 0x0FF) == 0x020)
3787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789 #else
3790 # define ISLOWER(c) \
3791 (('a' <= (c) && (c) <= 'i') \
3792 || ('j' <= (c) && (c) <= 'r') \
3793 || ('s' <= (c) && (c) <= 'z'))
3794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795 #endif
3797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3799 main ()
3801 int i;
3802 for (i = 0; i < 256; i++)
3803 if (XOR (islower (i), ISLOWER (i))
3804 || toupper (i) != TOUPPER (i))
3805 return 2;
3806 return 0;
3808 _ACEOF
3809 if ac_fn_c_try_run "$LINENO"; then :
3811 else
3812 ac_cv_header_stdc=no
3814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3815 conftest.$ac_objext conftest.beam conftest.$ac_ext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3821 $as_echo "$ac_cv_header_stdc" >&6; }
3822 if test $ac_cv_header_stdc = yes; then
3824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3830 inttypes.h stdint.h unistd.h
3831 do :
3832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3835 eval as_val=\$$as_ac_Header
3836 if test "x$as_val" = x""yes; then :
3837 cat >>confdefs.h <<_ACEOF
3838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3839 _ACEOF
3843 done
3847 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3848 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3849 MINIX=yes
3850 else
3851 MINIX=
3855 if test "$MINIX" = yes; then
3857 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3860 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3863 $as_echo "#define _MINIX 1" >>confdefs.h
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3869 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3870 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3876 # define __EXTENSIONS__ 1
3877 $ac_includes_default
3879 main ()
3883 return 0;
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_safe_to_define___extensions__=yes
3888 else
3889 ac_cv_safe_to_define___extensions__=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3895 test $ac_cv_safe_to_define___extensions__ = yes &&
3896 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3898 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3900 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3902 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3904 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3908 # Do not delete or change the following two lines. For why, see
3909 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3910 ac_aux_dir=
3911 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3912 for ac_t in install-sh install.sh shtool; do
3913 if test -f "$ac_dir/$ac_t"; then
3914 ac_aux_dir=$ac_dir
3915 ac_install_sh="$ac_aux_dir/$ac_t -c"
3916 break 2
3918 done
3919 done
3920 if test -z "$ac_aux_dir"; then
3921 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3924 # These three variables are undocumented and unsupported,
3925 # and are intended to be withdrawn in a future Autoconf release.
3926 # They can cause serious problems if a builder's source tree is in a directory
3927 # whose full name contains unusual characters.
3928 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3929 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3930 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3933 # Make sure we can run config.sub.
3934 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3935 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3938 $as_echo_n "checking build system type... " >&6; }
3939 if test "${ac_cv_build+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 ac_build_alias=$build_alias
3943 test "x$ac_build_alias" = x &&
3944 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3945 test "x$ac_build_alias" = x &&
3946 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3947 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3948 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3952 $as_echo "$ac_cv_build" >&6; }
3953 case $ac_cv_build in
3954 *-*-*) ;;
3955 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3956 esac
3957 build=$ac_cv_build
3958 ac_save_IFS=$IFS; IFS='-'
3959 set x $ac_cv_build
3960 shift
3961 build_cpu=$1
3962 build_vendor=$2
3963 shift; shift
3964 # Remember, the first character of IFS is used to create $*,
3965 # except with old shells:
3966 build_os=$*
3967 IFS=$ac_save_IFS
3968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3972 $as_echo_n "checking host system type... " >&6; }
3973 if test "${ac_cv_host+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test "x$host_alias" = x; then
3977 ac_cv_host=$ac_cv_build
3978 else
3979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3980 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3985 $as_echo "$ac_cv_host" >&6; }
3986 case $ac_cv_host in
3987 *-*-*) ;;
3988 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3989 esac
3990 host=$ac_cv_host
3991 ac_save_IFS=$IFS; IFS='-'
3992 set x $ac_cv_host
3993 shift
3994 host_cpu=$1
3995 host_vendor=$2
3996 shift; shift
3997 # Remember, the first character of IFS is used to create $*,
3998 # except with old shells:
3999 host_os=$*
4000 IFS=$ac_save_IFS
4001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4005 $as_echo_n "checking target system type... " >&6; }
4006 if test "${ac_cv_target+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test "x$target_alias" = x; then
4010 ac_cv_target=$ac_cv_host
4011 else
4012 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4013 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4018 $as_echo "$ac_cv_target" >&6; }
4019 case $ac_cv_target in
4020 *-*-*) ;;
4021 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4022 esac
4023 target=$ac_cv_target
4024 ac_save_IFS=$IFS; IFS='-'
4025 set x $ac_cv_target
4026 shift
4027 target_cpu=$1
4028 target_vendor=$2
4029 shift; shift
4030 # Remember, the first character of IFS is used to create $*,
4031 # except with old shells:
4032 target_os=$*
4033 IFS=$ac_save_IFS
4034 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4037 # The aliases save the names the user supplied, while $host etc.
4038 # will get canonicalized.
4039 test -n "$target_alias" &&
4040 test "$program_prefix$program_suffix$program_transform_name" = \
4041 NONENONEs,x,x, &&
4042 program_prefix=${target_alias}-
4044 target_alias=${target_alias-$host_alias}
4046 case ${build_alias} in
4047 "") build_noncanonical=${build} ;;
4048 *) build_noncanonical=${build_alias} ;;
4049 esac
4051 case ${host_alias} in
4052 "") host_noncanonical=${build_noncanonical} ;;
4053 *) host_noncanonical=${host_alias} ;;
4054 esac
4056 case ${target_alias} in
4057 "") target_noncanonical=${host_noncanonical} ;;
4058 *) target_noncanonical=${target_alias} ;;
4059 esac
4065 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4066 -I\$(top_builddir)/../libstdc++-v3/include \
4067 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4068 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4069 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4070 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4075 am__api_version='1.11'
4077 # Find a good install program. We prefer a C program (faster),
4078 # so one script is as good as another. But avoid the broken or
4079 # incompatible versions:
4080 # SysV /etc/install, /usr/sbin/install
4081 # SunOS /usr/etc/install
4082 # IRIX /sbin/install
4083 # AIX /bin/install
4084 # AmigaOS /C/install, which installs bootblocks on floppy discs
4085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4088 # OS/2's system install, which has a completely different semantic
4089 # ./install, which can be erroneously created by make from ./install.sh.
4090 # Reject install programs that cannot install multiple files.
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4093 if test -z "$INSTALL"; then
4094 if test "${ac_cv_path_install+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 # Account for people who put trailing slashes in PATH elements.
4103 case $as_dir/ in #((
4104 ./ | .// | /[cC]/* | \
4105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4106 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4107 /usr/ucb/* ) ;;
4109 # OSF1 and SCO ODT 3.0 have their own names for install.
4110 # Don't use installbsd from OSF since it installs stuff as root
4111 # by default.
4112 for ac_prog in ginstall scoinst install; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4115 if test $ac_prog = install &&
4116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4117 # AIX install. It has an incompatible calling convention.
4119 elif test $ac_prog = install &&
4120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4121 # program-specific install script used by HP pwplus--don't use.
4123 else
4124 rm -rf conftest.one conftest.two conftest.dir
4125 echo one > conftest.one
4126 echo two > conftest.two
4127 mkdir conftest.dir
4128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4129 test -s conftest.one && test -s conftest.two &&
4130 test -s conftest.dir/conftest.one &&
4131 test -s conftest.dir/conftest.two
4132 then
4133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4134 break 3
4138 done
4139 done
4141 esac
4143 done
4144 IFS=$as_save_IFS
4146 rm -rf conftest.one conftest.two conftest.dir
4149 if test "${ac_cv_path_install+set}" = set; then
4150 INSTALL=$ac_cv_path_install
4151 else
4152 # As a last resort, use the slow shell script. Don't cache a
4153 # value for INSTALL within a source directory, because that will
4154 # break other packages using the cache if that directory is
4155 # removed, or if the value is a relative name.
4156 INSTALL=$ac_install_sh
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4160 $as_echo "$INSTALL" >&6; }
4162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4163 # It thinks the first close brace ends the variable substitution.
4164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4171 $as_echo_n "checking whether build environment is sane... " >&6; }
4172 # Just in case
4173 sleep 1
4174 echo timestamp > conftest.file
4175 # Reject unsafe characters in $srcdir or the absolute working directory
4176 # name. Accept space and tab only in the latter.
4177 am_lf='
4179 case `pwd` in
4180 *[\\\"\#\$\&\'\`$am_lf]*)
4181 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4182 esac
4183 case $srcdir in
4184 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4185 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4186 esac
4188 # Do `set' in a subshell so we don't clobber the current shell's
4189 # arguments. Must try -L first in case configure is actually a
4190 # symlink; some systems play weird games with the mod time of symlinks
4191 # (eg FreeBSD returns the mod time of the symlink's containing
4192 # directory).
4193 if (
4194 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4195 if test "$*" = "X"; then
4196 # -L didn't work.
4197 set X `ls -t "$srcdir/configure" conftest.file`
4199 rm -f conftest.file
4200 if test "$*" != "X $srcdir/configure conftest.file" \
4201 && test "$*" != "X conftest.file $srcdir/configure"; then
4203 # If neither matched, then we have a broken ls. This can happen
4204 # if, for instance, CONFIG_SHELL is bash and it inherits a
4205 # broken ls alias from the environment. This has actually
4206 # happened. Such a system could not be considered "sane".
4207 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4208 alias in your environment" "$LINENO" 5
4211 test "$2" = conftest.file
4213 then
4214 # Ok.
4216 else
4217 as_fn_error "newly created file is older than distributed files!
4218 Check your system clock" "$LINENO" 5
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4221 $as_echo "yes" >&6; }
4222 test "$program_prefix" != NONE &&
4223 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4224 # Use a double $ so make ignores it.
4225 test "$program_suffix" != NONE &&
4226 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4227 # Double any \ or $.
4228 # By default was `s,x,x', remove it if useless.
4229 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4230 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4232 # expand $ac_aux_dir to an absolute path
4233 am_aux_dir=`cd $ac_aux_dir && pwd`
4235 if test x"${MISSING+set}" != xset; then
4236 case $am_aux_dir in
4237 *\ * | *\ *)
4238 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4240 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4241 esac
4243 # Use eval to expand $SHELL
4244 if eval "$MISSING --run true"; then
4245 am_missing_run="$MISSING --run "
4246 else
4247 am_missing_run=
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4249 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4252 if test x"${install_sh}" != xset; then
4253 case $am_aux_dir in
4254 *\ * | *\ *)
4255 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4257 install_sh="\${SHELL} $am_aux_dir/install-sh"
4258 esac
4261 # Installed binaries are usually stripped using `strip' when the user
4262 # run `make install-strip'. However `strip' might not be the right
4263 # tool to use in cross-compilation environments, therefore Automake
4264 # will honor the `STRIP' environment variable to overrule this program.
4265 if test "$cross_compiling" != no; then
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}strip; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_STRIP+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$STRIP"; then
4275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 STRIP=$ac_cv_prog_STRIP
4295 if test -n "$STRIP"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4297 $as_echo "$STRIP" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4305 if test -z "$ac_cv_prog_STRIP"; then
4306 ac_ct_STRIP=$STRIP
4307 # Extract the first word of "strip", so it can be a program name with args.
4308 set dummy strip; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$ac_ct_STRIP"; then
4315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_STRIP="strip"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4335 if test -n "$ac_ct_STRIP"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4337 $as_echo "$ac_ct_STRIP" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4343 if test "x$ac_ct_STRIP" = x; then
4344 STRIP=":"
4345 else
4346 case $cross_compiling:$ac_tool_warned in
4347 yes:)
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350 ac_tool_warned=yes ;;
4351 esac
4352 STRIP=$ac_ct_STRIP
4354 else
4355 STRIP="$ac_cv_prog_STRIP"
4359 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4362 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4363 if test -z "$MKDIR_P"; then
4364 if test "${ac_cv_path_mkdir+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in mkdir gmkdir; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4375 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4376 'mkdir (GNU coreutils) '* | \
4377 'mkdir (coreutils) '* | \
4378 'mkdir (fileutils) '4.1*)
4379 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4380 break 3;;
4381 esac
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 if test "${ac_cv_path_mkdir+set}" = set; then
4390 MKDIR_P="$ac_cv_path_mkdir -p"
4391 else
4392 # As a last resort, use the slow shell script. Don't cache a
4393 # value for MKDIR_P within a source directory, because that will
4394 # break other packages using the cache if that directory is
4395 # removed, or if the value is a relative name.
4396 test -d ./--version && rmdir ./--version
4397 MKDIR_P="$ac_install_sh -d"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4401 $as_echo "$MKDIR_P" >&6; }
4403 mkdir_p="$MKDIR_P"
4404 case $mkdir_p in
4405 [\\/$]* | ?:[\\/]*) ;;
4406 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4407 esac
4409 for ac_prog in gawk mawk nawk awk
4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_AWK+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$AWK"; then
4419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_AWK="$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 AWK=$ac_cv_prog_AWK
4439 if test -n "$AWK"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4441 $as_echo "$AWK" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$AWK" && break
4449 done
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4453 set x ${MAKE-make}
4454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 cat >conftest.make <<\_ACEOF
4459 SHELL = /bin/sh
4460 all:
4461 @echo '@@@%%%=$(MAKE)=@@@%%%'
4462 _ACEOF
4463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4465 *@@@%%%=?*=@@@%%%*)
4466 eval ac_cv_prog_make_${ac_make}_set=yes;;
4468 eval ac_cv_prog_make_${ac_make}_set=no;;
4469 esac
4470 rm -f conftest.make
4472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 $as_echo "yes" >&6; }
4475 SET_MAKE=
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 SET_MAKE="MAKE=${MAKE-make}"
4482 rm -rf .tst 2>/dev/null
4483 mkdir .tst 2>/dev/null
4484 if test -d .tst; then
4485 am__leading_dot=.
4486 else
4487 am__leading_dot=_
4489 rmdir .tst 2>/dev/null
4491 DEPDIR="${am__leading_dot}deps"
4493 ac_config_commands="$ac_config_commands depfiles"
4496 am_make=${MAKE-make}
4497 cat > confinc << 'END'
4498 am__doit:
4499 @echo this is the am__doit target
4500 .PHONY: am__doit
4502 # If we don't find an include directive, just comment out the code.
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4504 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4505 am__include="#"
4506 am__quote=
4507 _am_result=none
4508 # First try GNU make style include.
4509 echo "include confinc" > confmf
4510 # Ignore all kinds of additional output from `make'.
4511 case `$am_make -s -f confmf 2> /dev/null` in #(
4512 *the\ am__doit\ target*)
4513 am__include=include
4514 am__quote=
4515 _am_result=GNU
4517 esac
4518 # Now try BSD make style include.
4519 if test "$am__include" = "#"; then
4520 echo '.include "confinc"' > confmf
4521 case `$am_make -s -f confmf 2> /dev/null` in #(
4522 *the\ am__doit\ target*)
4523 am__include=.include
4524 am__quote="\""
4525 _am_result=BSD
4527 esac
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4532 $as_echo "$_am_result" >&6; }
4533 rm -f confinc confmf
4535 # Check whether --enable-dependency-tracking was given.
4536 if test "${enable_dependency_tracking+set}" = set; then :
4537 enableval=$enable_dependency_tracking;
4540 if test "x$enable_dependency_tracking" != xno; then
4541 am_depcomp="$ac_aux_dir/depcomp"
4542 AMDEPBACKSLASH='\'
4544 if test "x$enable_dependency_tracking" != xno; then
4545 AMDEP_TRUE=
4546 AMDEP_FALSE='#'
4547 else
4548 AMDEP_TRUE='#'
4549 AMDEP_FALSE=
4553 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4554 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4555 # is not polluted with repeated "-I."
4556 am__isrc=' -I$(srcdir)'
4557 # test to see if srcdir already configured
4558 if test -f $srcdir/config.status; then
4559 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4563 # test whether we have cygpath
4564 if test -z "$CYGPATH_W"; then
4565 if (cygpath --version) >/dev/null 2>/dev/null; then
4566 CYGPATH_W='cygpath -w'
4567 else
4568 CYGPATH_W=echo
4573 # Define the identity of the package.
4574 PACKAGE='package-unused'
4575 VERSION='version-unused'
4578 cat >>confdefs.h <<_ACEOF
4579 #define PACKAGE "$PACKAGE"
4580 _ACEOF
4583 cat >>confdefs.h <<_ACEOF
4584 #define VERSION "$VERSION"
4585 _ACEOF
4587 # Some tools Automake needs.
4589 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4592 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4595 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4598 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4601 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4603 # We need awk for the "check" target. The system "awk" is bad on
4604 # some platforms.
4605 # Always define AMTAR for backward compatibility.
4607 AMTAR=${AMTAR-"${am_missing_run}tar"}
4609 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4614 depcc="$CC" am_compiler_list=
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4617 $as_echo_n "checking dependency style of $depcc... " >&6; }
4618 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4622 # We make a subdir and do the tests there. Otherwise we can end up
4623 # making bogus files that we don't know about and never remove. For
4624 # instance it was reported that on HP-UX the gcc test will end up
4625 # making a dummy file named `D' -- because `-MD' means `put the output
4626 # in D'.
4627 mkdir conftest.dir
4628 # Copy depcomp to subdir because otherwise we won't find it if we're
4629 # using a relative directory.
4630 cp "$am_depcomp" conftest.dir
4631 cd conftest.dir
4632 # We will build objects and dependencies in a subdirectory because
4633 # it helps to detect inapplicable dependency modes. For instance
4634 # both Tru64's cc and ICC support -MD to output dependencies as a
4635 # side effect of compilation, but ICC will put the dependencies in
4636 # the current directory while Tru64 will put them in the object
4637 # directory.
4638 mkdir sub
4640 am_cv_CC_dependencies_compiler_type=none
4641 if test "$am_compiler_list" = ""; then
4642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4644 am__universal=false
4645 case " $depcc " in #(
4646 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4647 esac
4649 for depmode in $am_compiler_list; do
4650 # Setup a source with many dependencies, because some compilers
4651 # like to wrap large dependency lists on column 80 (with \), and
4652 # we should not choose a depcomp mode which is confused by this.
4654 # We need to recreate these files for each test, as the compiler may
4655 # overwrite some of them when testing with obscure command lines.
4656 # This happens at least with the AIX C compiler.
4657 : > sub/conftest.c
4658 for i in 1 2 3 4 5 6; do
4659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661 # Solaris 8's {/usr,}/bin/sh.
4662 touch sub/conftst$i.h
4663 done
4664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4667 # mode. It turns out that the SunPro C++ compiler does not properly
4668 # handle `-M -o', and we need to detect this. Also, some Intel
4669 # versions had trouble with output in subdirs
4670 am__obj=sub/conftest.${OBJEXT-o}
4671 am__minus_obj="-o $am__obj"
4672 case $depmode in
4673 gcc)
4674 # This depmode causes a compiler race in universal mode.
4675 test "$am__universal" = false || continue
4677 nosideeffect)
4678 # after this tag, mechanisms are not by side-effect, so they'll
4679 # only be used when explicitly requested
4680 if test "x$enable_dependency_tracking" = xyes; then
4681 continue
4682 else
4683 break
4686 msvisualcpp | msvcmsys)
4687 # This compiler won't grok `-c -o', but also, the minuso test has
4688 # not run yet. These depmodes are late enough in the game, and
4689 # so weak that their functioning should not be impacted.
4690 am__obj=conftest.${OBJEXT-o}
4691 am__minus_obj=
4693 none) break ;;
4694 esac
4695 if depmode=$depmode \
4696 source=sub/conftest.c object=$am__obj \
4697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4698 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4699 >/dev/null 2>conftest.err &&
4700 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4702 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4704 # icc doesn't choke on unknown options, it will just issue warnings
4705 # or remarks (even with -Werror). So we grep stderr for any message
4706 # that says an option was ignored or not supported.
4707 # When given -MP, icc 7.0 and 7.1 complain thusly:
4708 # icc: Command line warning: ignoring option '-M'; no argument required
4709 # The diagnosis changed in icc 8.0:
4710 # icc: Command line remark: option '-MP' not supported
4711 if (grep 'ignoring option' conftest.err ||
4712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4713 am_cv_CC_dependencies_compiler_type=$depmode
4714 break
4717 done
4719 cd ..
4720 rm -rf conftest.dir
4721 else
4722 am_cv_CC_dependencies_compiler_type=none
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4727 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4728 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4731 test "x$enable_dependency_tracking" != xno \
4732 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4733 am__fastdepCC_TRUE=
4734 am__fastdepCC_FALSE='#'
4735 else
4736 am__fastdepCC_TRUE='#'
4737 am__fastdepCC_FALSE=
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4744 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4745 # Check whether --enable-maintainer-mode was given.
4746 if test "${enable_maintainer_mode+set}" = set; then :
4747 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4748 else
4749 USE_MAINTAINER_MODE=no
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4753 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4754 if test $USE_MAINTAINER_MODE = yes; then
4755 MAINTAINER_MODE_TRUE=
4756 MAINTAINER_MODE_FALSE='#'
4757 else
4758 MAINTAINER_MODE_TRUE='#'
4759 MAINTAINER_MODE_FALSE=
4762 MAINT=$MAINTAINER_MODE_TRUE
4766 # Calculate toolexeclibdir
4767 # Also toolexecdir, though it's only used in toolexeclibdir
4768 case ${version_specific_libs} in
4769 yes)
4770 # Need the gcc compiler version to know where to install libraries
4771 # and header files if --enable-version-specific-runtime-libs option
4772 # is selected.
4773 toolexecdir='$(libdir)/gcc/$(target_alias)'
4774 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4777 if test -n "$with_cross_host" &&
4778 test x"$with_cross_host" != x"no"; then
4779 # Install a library built with a cross compiler in tooldir, not libdir.
4780 toolexecdir='$(exec_prefix)/$(target_alias)'
4781 toolexeclibdir='$(toolexecdir)/lib'
4782 else
4783 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4784 toolexeclibdir='$(libdir)'
4786 multi_os_directory=`$CC -print-multi-os-directory`
4787 case $multi_os_directory in
4788 .) ;; # Avoid trailing /.
4789 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4790 esac
4792 esac
4796 # Checks for programs.
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_CC+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 CC=$ac_cv_prog_CC
4831 if test -n "$CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4833 $as_echo "$CC" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4841 if test -z "$ac_cv_prog_CC"; then
4842 ac_ct_CC=$CC
4843 # Extract the first word of "gcc", so it can be a program name with args.
4844 set dummy gcc; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$ac_ct_CC"; then
4851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_ac_ct_CC="gcc"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4871 if test -n "$ac_ct_CC"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4873 $as_echo "$ac_ct_CC" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4879 if test "x$ac_ct_CC" = x; then
4880 CC=""
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888 CC=$ac_ct_CC
4890 else
4891 CC="$ac_cv_prog_CC"
4894 if test -z "$CC"; then
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}cc; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$CC"; then
4904 ac_cv_prog_CC="$CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_CC="${ac_tool_prefix}cc"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 CC=$ac_cv_prog_CC
4924 if test -n "$CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4926 $as_echo "$CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4935 if test -z "$CC"; then
4936 # Extract the first word of "cc", so it can be a program name with args.
4937 set dummy cc; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_CC+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$CC"; then
4944 ac_cv_prog_CC="$CC" # Let the user override the test.
4945 else
4946 ac_prog_rejected=no
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4955 ac_prog_rejected=yes
4956 continue
4958 ac_cv_prog_CC="cc"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4966 if test $ac_prog_rejected = yes; then
4967 # We found a bogon in the path, so make sure we never use it.
4968 set dummy $ac_cv_prog_CC
4969 shift
4970 if test $# != 0; then
4971 # We chose a different compiler from the bogus one.
4972 # However, it has the same basename, so the bogon will be chosen
4973 # first if we set CC to just the basename; use the full file name.
4974 shift
4975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4980 CC=$ac_cv_prog_CC
4981 if test -n "$CC"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983 $as_echo "$CC" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4991 if test -z "$CC"; then
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in cl.exe
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 CC=$ac_cv_prog_CC
5023 if test -n "$CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5025 $as_echo "$CC" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 test -n "$CC" && break
5033 done
5035 if test -z "$CC"; then
5036 ac_ct_CC=$CC
5037 for ac_prog in cl.exe
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_CC"; then
5047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_CC="$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5067 if test -n "$ac_ct_CC"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5069 $as_echo "$ac_ct_CC" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 test -n "$ac_ct_CC" && break
5077 done
5079 if test "x$ac_ct_CC" = x; then
5080 CC=""
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083 yes:)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086 ac_tool_warned=yes ;;
5087 esac
5088 CC=$ac_ct_CC
5095 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "no acceptable C compiler found in \$PATH
5098 See \`config.log' for more details." "$LINENO" 5; }
5100 # Provide some information about the compiler.
5101 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5102 set X $ac_compile
5103 ac_compiler=$2
5104 for ac_option in --version -v -V -qversion; do
5105 { { ac_try="$ac_compiler $ac_option >&5"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5113 ac_status=$?
5114 if test -s conftest.err; then
5115 sed '10a\
5116 ... rest of stderr output deleted ...
5117 10q' conftest.err >conftest.er1
5118 cat conftest.er1 >&5
5119 rm -f conftest.er1 conftest.err
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }
5123 done
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5127 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5134 main ()
5136 #ifndef __GNUC__
5137 choke me
5138 #endif
5141 return 0;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 ac_compiler_gnu=yes
5146 else
5147 ac_compiler_gnu=no
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5155 if test $ac_compiler_gnu = yes; then
5156 GCC=yes
5157 else
5158 GCC=
5160 ac_test_CFLAGS=${CFLAGS+set}
5161 ac_save_CFLAGS=$CFLAGS
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5164 if test "${ac_cv_prog_cc_g+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 ac_save_c_werror_flag=$ac_c_werror_flag
5168 ac_c_werror_flag=yes
5169 ac_cv_prog_cc_g=no
5170 CFLAGS="-g"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5175 main ()
5179 return 0;
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_cv_prog_cc_g=yes
5184 else
5185 CFLAGS=""
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5190 main ()
5194 return 0;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5199 else
5200 ac_c_werror_flag=$ac_save_c_werror_flag
5201 CFLAGS="-g"
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5206 main ()
5210 return 0;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_cv_prog_cc_g=yes
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_c_werror_flag=$ac_save_c_werror_flag
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5224 $as_echo "$ac_cv_prog_cc_g" >&6; }
5225 if test "$ac_test_CFLAGS" = set; then
5226 CFLAGS=$ac_save_CFLAGS
5227 elif test $ac_cv_prog_cc_g = yes; then
5228 if test "$GCC" = yes; then
5229 CFLAGS="-g -O2"
5230 else
5231 CFLAGS="-g"
5233 else
5234 if test "$GCC" = yes; then
5235 CFLAGS="-O2"
5236 else
5237 CFLAGS=
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5242 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 ac_cv_prog_cc_c89=no
5246 ac_save_CC=$CC
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <stdarg.h>
5250 #include <stdio.h>
5251 #include <sys/types.h>
5252 #include <sys/stat.h>
5253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5254 struct buf { int x; };
5255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5256 static char *e (p, i)
5257 char **p;
5258 int i;
5260 return p[i];
5262 static char *f (char * (*g) (char **, int), char **p, ...)
5264 char *s;
5265 va_list v;
5266 va_start (v,p);
5267 s = g (p, va_arg (v,int));
5268 va_end (v);
5269 return s;
5272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5273 function prototypes and stuff, but not '\xHH' hex character constants.
5274 These don't provoke an error unfortunately, instead are silently treated
5275 as 'x'. The following induces an error, until -std is added to get
5276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5277 array size at least. It's necessary to write '\x00'==0 to get something
5278 that's true only with -std. */
5279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5282 inside strings and character constants. */
5283 #define FOO(x) 'x'
5284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5286 int test (int i, double x);
5287 struct s1 {int (*f) (int a);};
5288 struct s2 {int (*f) (double a);};
5289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5290 int argc;
5291 char **argv;
5293 main ()
5295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5297 return 0;
5299 _ACEOF
5300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5303 CC="$ac_save_CC $ac_arg"
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_cv_prog_cc_c89=$ac_arg
5307 rm -f core conftest.err conftest.$ac_objext
5308 test "x$ac_cv_prog_cc_c89" != "xno" && break
5309 done
5310 rm -f conftest.$ac_ext
5311 CC=$ac_save_CC
5314 # AC_CACHE_VAL
5315 case "x$ac_cv_prog_cc_c89" in
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5318 $as_echo "none needed" >&6; } ;;
5319 xno)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5321 $as_echo "unsupported" >&6; } ;;
5323 CC="$CC $ac_cv_prog_cc_c89"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5325 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5326 esac
5327 if test "x$ac_cv_prog_cc_c89" != xno; then :
5331 ac_ext=c
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337 ac_ext=cpp
5338 ac_cpp='$CXXCPP $CPPFLAGS'
5339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5342 if test -z "$CXX"; then
5343 if test -n "$CCC"; then
5344 CXX=$CCC
5345 else
5346 if test -n "$ac_tool_prefix"; then
5347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_CXX+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$CXX"; then
5357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 CXX=$ac_cv_prog_CXX
5377 if test -n "$CXX"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5379 $as_echo "$CXX" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5386 test -n "$CXX" && break
5387 done
5389 if test -z "$CXX"; then
5390 ac_ct_CXX=$CXX
5391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$ac_ct_CXX"; then
5401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_CXX="$ac_prog"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5421 if test -n "$ac_ct_CXX"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5423 $as_echo "$ac_ct_CXX" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5430 test -n "$ac_ct_CXX" && break
5431 done
5433 if test "x$ac_ct_CXX" = x; then
5434 CXX="g++"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 CXX=$ac_ct_CXX
5448 # Provide some information about the compiler.
5449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5450 set X $ac_compile
5451 ac_compiler=$2
5452 for ac_option in --version -v -V -qversion; do
5453 { { ac_try="$ac_compiler $ac_option >&5"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5461 ac_status=$?
5462 if test -s conftest.err; then
5463 sed '10a\
5464 ... rest of stderr output deleted ...
5465 10q' conftest.err >conftest.er1
5466 cat conftest.er1 >&5
5467 rm -f conftest.er1 conftest.err
5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5470 test $ac_status = 0; }
5471 done
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5474 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5475 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5482 main ()
5484 #ifndef __GNUC__
5485 choke me
5486 #endif
5489 return 0;
5491 _ACEOF
5492 if ac_fn_cxx_try_compile "$LINENO"; then :
5493 ac_compiler_gnu=yes
5494 else
5495 ac_compiler_gnu=no
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5502 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5503 if test $ac_compiler_gnu = yes; then
5504 GXX=yes
5505 else
5506 GXX=
5508 ac_test_CXXFLAGS=${CXXFLAGS+set}
5509 ac_save_CXXFLAGS=$CXXFLAGS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5511 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5512 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5516 ac_cxx_werror_flag=yes
5517 ac_cv_prog_cxx_g=no
5518 CXXFLAGS="-g"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5523 main ()
5527 return 0;
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_prog_cxx_g=yes
5532 else
5533 CXXFLAGS=""
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5538 main ()
5542 return 0;
5544 _ACEOF
5545 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 else
5548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5549 CXXFLAGS="-g"
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 main ()
5558 return 0;
5560 _ACEOF
5561 if ac_fn_cxx_try_compile "$LINENO"; then :
5562 ac_cv_prog_cxx_g=yes
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5572 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5573 if test "$ac_test_CXXFLAGS" = set; then
5574 CXXFLAGS=$ac_save_CXXFLAGS
5575 elif test $ac_cv_prog_cxx_g = yes; then
5576 if test "$GXX" = yes; then
5577 CXXFLAGS="-g -O2"
5578 else
5579 CXXFLAGS="-g"
5581 else
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-O2"
5584 else
5585 CXXFLAGS=
5588 ac_ext=c
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 depcc="$CXX" am_compiler_list=
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5597 $as_echo_n "checking dependency style of $depcc... " >&6; }
5598 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5602 # We make a subdir and do the tests there. Otherwise we can end up
5603 # making bogus files that we don't know about and never remove. For
5604 # instance it was reported that on HP-UX the gcc test will end up
5605 # making a dummy file named `D' -- because `-MD' means `put the output
5606 # in D'.
5607 mkdir conftest.dir
5608 # Copy depcomp to subdir because otherwise we won't find it if we're
5609 # using a relative directory.
5610 cp "$am_depcomp" conftest.dir
5611 cd conftest.dir
5612 # We will build objects and dependencies in a subdirectory because
5613 # it helps to detect inapplicable dependency modes. For instance
5614 # both Tru64's cc and ICC support -MD to output dependencies as a
5615 # side effect of compilation, but ICC will put the dependencies in
5616 # the current directory while Tru64 will put them in the object
5617 # directory.
5618 mkdir sub
5620 am_cv_CXX_dependencies_compiler_type=none
5621 if test "$am_compiler_list" = ""; then
5622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5624 am__universal=false
5625 case " $depcc " in #(
5626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5627 esac
5629 for depmode in $am_compiler_list; do
5630 # Setup a source with many dependencies, because some compilers
5631 # like to wrap large dependency lists on column 80 (with \), and
5632 # we should not choose a depcomp mode which is confused by this.
5634 # We need to recreate these files for each test, as the compiler may
5635 # overwrite some of them when testing with obscure command lines.
5636 # This happens at least with the AIX C compiler.
5637 : > sub/conftest.c
5638 for i in 1 2 3 4 5 6; do
5639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5641 # Solaris 8's {/usr,}/bin/sh.
5642 touch sub/conftst$i.h
5643 done
5644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5647 # mode. It turns out that the SunPro C++ compiler does not properly
5648 # handle `-M -o', and we need to detect this. Also, some Intel
5649 # versions had trouble with output in subdirs
5650 am__obj=sub/conftest.${OBJEXT-o}
5651 am__minus_obj="-o $am__obj"
5652 case $depmode in
5653 gcc)
5654 # This depmode causes a compiler race in universal mode.
5655 test "$am__universal" = false || continue
5657 nosideeffect)
5658 # after this tag, mechanisms are not by side-effect, so they'll
5659 # only be used when explicitly requested
5660 if test "x$enable_dependency_tracking" = xyes; then
5661 continue
5662 else
5663 break
5666 msvisualcpp | msvcmsys)
5667 # This compiler won't grok `-c -o', but also, the minuso test has
5668 # not run yet. These depmodes are late enough in the game, and
5669 # so weak that their functioning should not be impacted.
5670 am__obj=conftest.${OBJEXT-o}
5671 am__minus_obj=
5673 none) break ;;
5674 esac
5675 if depmode=$depmode \
5676 source=sub/conftest.c object=$am__obj \
5677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5679 >/dev/null 2>conftest.err &&
5680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5684 # icc doesn't choke on unknown options, it will just issue warnings
5685 # or remarks (even with -Werror). So we grep stderr for any message
5686 # that says an option was ignored or not supported.
5687 # When given -MP, icc 7.0 and 7.1 complain thusly:
5688 # icc: Command line warning: ignoring option '-M'; no argument required
5689 # The diagnosis changed in icc 8.0:
5690 # icc: Command line remark: option '-MP' not supported
5691 if (grep 'ignoring option' conftest.err ||
5692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5693 am_cv_CXX_dependencies_compiler_type=$depmode
5694 break
5697 done
5699 cd ..
5700 rm -rf conftest.dir
5701 else
5702 am_cv_CXX_dependencies_compiler_type=none
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5707 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5711 test "x$enable_dependency_tracking" != xno \
5712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5713 am__fastdepCXX_TRUE=
5714 am__fastdepCXX_FALSE='#'
5715 else
5716 am__fastdepCXX_TRUE='#'
5717 am__fastdepCXX_FALSE=
5721 # By default we simply use the C compiler to build assembly code.
5723 test "${CCAS+set}" = set || CCAS=$CC
5724 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5728 depcc="$CCAS" am_compiler_list=
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5731 $as_echo_n "checking dependency style of $depcc... " >&6; }
5732 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5736 # We make a subdir and do the tests there. Otherwise we can end up
5737 # making bogus files that we don't know about and never remove. For
5738 # instance it was reported that on HP-UX the gcc test will end up
5739 # making a dummy file named `D' -- because `-MD' means `put the output
5740 # in D'.
5741 mkdir conftest.dir
5742 # Copy depcomp to subdir because otherwise we won't find it if we're
5743 # using a relative directory.
5744 cp "$am_depcomp" conftest.dir
5745 cd conftest.dir
5746 # We will build objects and dependencies in a subdirectory because
5747 # it helps to detect inapplicable dependency modes. For instance
5748 # both Tru64's cc and ICC support -MD to output dependencies as a
5749 # side effect of compilation, but ICC will put the dependencies in
5750 # the current directory while Tru64 will put them in the object
5751 # directory.
5752 mkdir sub
5754 am_cv_CCAS_dependencies_compiler_type=none
5755 if test "$am_compiler_list" = ""; then
5756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758 am__universal=false
5761 for depmode in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5769 : > sub/conftest.c
5770 for i in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub/conftst$i.h
5775 done
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5779 # mode. It turns out that the SunPro C++ compiler does not properly
5780 # handle `-M -o', and we need to detect this. Also, some Intel
5781 # versions had trouble with output in subdirs
5782 am__obj=sub/conftest.${OBJEXT-o}
5783 am__minus_obj="-o $am__obj"
5784 case $depmode in
5785 gcc)
5786 # This depmode causes a compiler race in universal mode.
5787 test "$am__universal" = false || continue
5789 nosideeffect)
5790 # after this tag, mechanisms are not by side-effect, so they'll
5791 # only be used when explicitly requested
5792 if test "x$enable_dependency_tracking" = xyes; then
5793 continue
5794 else
5795 break
5798 msvisualcpp | msvcmsys)
5799 # This compiler won't grok `-c -o', but also, the minuso test has
5800 # not run yet. These depmodes are late enough in the game, and
5801 # so weak that their functioning should not be impacted.
5802 am__obj=conftest.${OBJEXT-o}
5803 am__minus_obj=
5805 none) break ;;
5806 esac
5807 if depmode=$depmode \
5808 source=sub/conftest.c object=$am__obj \
5809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5811 >/dev/null 2>conftest.err &&
5812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5816 # icc doesn't choke on unknown options, it will just issue warnings
5817 # or remarks (even with -Werror). So we grep stderr for any message
5818 # that says an option was ignored or not supported.
5819 # When given -MP, icc 7.0 and 7.1 complain thusly:
5820 # icc: Command line warning: ignoring option '-M'; no argument required
5821 # The diagnosis changed in icc 8.0:
5822 # icc: Command line remark: option '-MP' not supported
5823 if (grep 'ignoring option' conftest.err ||
5824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5825 am_cv_CCAS_dependencies_compiler_type=$depmode
5826 break
5829 done
5831 cd ..
5832 rm -rf conftest.dir
5833 else
5834 am_cv_CCAS_dependencies_compiler_type=none
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5839 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5840 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5843 test "x$enable_dependency_tracking" != xno \
5844 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5845 am__fastdepCCAS_TRUE=
5846 am__fastdepCCAS_FALSE='#'
5847 else
5848 am__fastdepCCAS_TRUE='#'
5849 am__fastdepCCAS_FALSE=
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$RANLIB"; then
5862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5875 done
5876 done
5877 IFS=$as_save_IFS
5881 RANLIB=$ac_cv_prog_RANLIB
5882 if test -n "$RANLIB"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5884 $as_echo "$RANLIB" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5892 if test -z "$ac_cv_prog_RANLIB"; then
5893 ac_ct_RANLIB=$RANLIB
5894 # Extract the first word of "ranlib", so it can be a program name with args.
5895 set dummy ranlib; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$ac_ct_RANLIB"; then
5902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_ac_ct_RANLIB="ranlib"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5922 if test -n "$ac_ct_RANLIB"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5924 $as_echo "$ac_ct_RANLIB" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5930 if test "x$ac_ct_RANLIB" = x; then
5931 RANLIB=":"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 RANLIB=$ac_ct_RANLIB
5941 else
5942 RANLIB="$ac_cv_prog_RANLIB"
5946 enable_dlopen=yes
5950 case `pwd` in
5951 *\ * | *\ *)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5953 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5954 esac
5958 macro_version='2.2.7a'
5959 macro_revision='1.3134'
5973 ltmain="$ac_aux_dir/ltmain.sh"
5975 # Backslashify metacharacters that are still active within
5976 # double-quoted strings.
5977 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5979 # Same as above, but do not quote variable references.
5980 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5982 # Sed substitution to delay expansion of an escaped shell variable in a
5983 # double_quote_subst'ed string.
5984 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5986 # Sed substitution to delay expansion of an escaped single quote.
5987 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5989 # Sed substitution to avoid accidental globbing in evaled expressions
5990 no_glob_subst='s/\*/\\\*/g'
5992 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5997 $as_echo_n "checking how to print strings... " >&6; }
5998 # Test print first, because it will be a builtin if present.
5999 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6000 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6001 ECHO='print -r --'
6002 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6003 ECHO='printf %s\n'
6004 else
6005 # Use this function as a fallback that always works.
6006 func_fallback_echo ()
6008 eval 'cat <<_LTECHO_EOF
6010 _LTECHO_EOF'
6012 ECHO='func_fallback_echo'
6015 # func_echo_all arg...
6016 # Invoke $ECHO with all args, space-separated.
6017 func_echo_all ()
6019 $ECHO ""
6022 case "$ECHO" in
6023 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6024 $as_echo "printf" >&6; } ;;
6025 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6026 $as_echo "print -r" >&6; } ;;
6027 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6028 $as_echo "cat" >&6; } ;;
6029 esac
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6045 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6046 if test "${ac_cv_path_SED+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6050 for ac_i in 1 2 3 4 5 6 7; do
6051 ac_script="$ac_script$as_nl$ac_script"
6052 done
6053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6054 { ac_script=; unset ac_script;}
6055 if test -z "$SED"; then
6056 ac_path_SED_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_prog in sed gsed; do
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6067 # Check for GNU ac_path_SED and select it if it is found.
6068 # Check for GNU $ac_path_SED
6069 case `"$ac_path_SED" --version 2>&1` in
6070 *GNU*)
6071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6073 ac_count=0
6074 $as_echo_n 0123456789 >"conftest.in"
6075 while :
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo '' >> "conftest.nl"
6081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 as_fn_arith $ac_count + 1 && ac_count=$as_val
6084 if test $ac_count -gt ${ac_path_SED_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_SED="$ac_path_SED"
6087 ac_path_SED_max=$ac_count
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
6091 done
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 esac
6095 $ac_path_SED_found && break 3
6096 done
6097 done
6098 done
6099 IFS=$as_save_IFS
6100 if test -z "$ac_cv_path_SED"; then
6101 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6103 else
6104 ac_cv_path_SED=$SED
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6109 $as_echo "$ac_cv_path_SED" >&6; }
6110 SED="$ac_cv_path_SED"
6111 rm -f conftest.sed
6113 test -z "$SED" && SED=sed
6114 Xsed="$SED -e 1s/^X//"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6127 $as_echo_n "checking for fgrep... " >&6; }
6128 if test "${ac_cv_path_FGREP+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6132 then ac_cv_path_FGREP="$GREP -F"
6133 else
6134 if test -z "$FGREP"; then
6135 ac_path_FGREP_found=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in fgrep; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6145 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6146 # Check for GNU ac_path_FGREP and select it if it is found.
6147 # Check for GNU $ac_path_FGREP
6148 case `"$ac_path_FGREP" --version 2>&1` in
6149 *GNU*)
6150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6152 ac_count=0
6153 $as_echo_n 0123456789 >"conftest.in"
6154 while :
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo 'FGREP' >> "conftest.nl"
6160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162 as_fn_arith $ac_count + 1 && ac_count=$as_val
6163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_FGREP="$ac_path_FGREP"
6166 ac_path_FGREP_max=$ac_count
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6170 done
6171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6172 esac
6174 $ac_path_FGREP_found && break 3
6175 done
6176 done
6177 done
6178 IFS=$as_save_IFS
6179 if test -z "$ac_cv_path_FGREP"; then
6180 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6182 else
6183 ac_cv_path_FGREP=$FGREP
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6189 $as_echo "$ac_cv_path_FGREP" >&6; }
6190 FGREP="$ac_cv_path_FGREP"
6193 test -z "$GREP" && GREP=grep
6213 # Check whether --with-gnu-ld was given.
6214 if test "${with_gnu_ld+set}" = set; then :
6215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6216 else
6217 with_gnu_ld=no
6220 ac_prog=ld
6221 if test "$GCC" = yes; then
6222 # Check if gcc -print-prog-name=ld gives a path.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6224 $as_echo_n "checking for ld used by $CC... " >&6; }
6225 case $host in
6226 *-*-mingw*)
6227 # gcc leaves a trailing carriage return which upsets mingw
6228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6231 esac
6232 case $ac_prog in
6233 # Accept absolute paths.
6234 [\\/]* | ?:[\\/]*)
6235 re_direlt='/[^/][^/]*/\.\./'
6236 # Canonicalize the pathname of ld
6237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6240 done
6241 test -z "$LD" && LD="$ac_prog"
6244 # If it fails, then pretend we aren't using GCC.
6245 ac_prog=ld
6248 # If it is relative, then search for the first ld in PATH.
6249 with_gnu_ld=unknown
6251 esac
6252 elif test "$with_gnu_ld" = yes; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6254 $as_echo_n "checking for GNU ld... " >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6257 $as_echo_n "checking for non-GNU ld... " >&6; }
6259 if test "${lt_cv_path_LD+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -z "$LD"; then
6263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6264 for ac_dir in $PATH; do
6265 IFS="$lt_save_ifs"
6266 test -z "$ac_dir" && ac_dir=.
6267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6268 lt_cv_path_LD="$ac_dir/$ac_prog"
6269 # Check to see if the program is GNU ld. I'd rather use --version,
6270 # but apparently some variants of GNU ld only accept -v.
6271 # Break only if it was the GNU/non-GNU ld that we prefer.
6272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6273 *GNU* | *'with BFD'*)
6274 test "$with_gnu_ld" != no && break
6277 test "$with_gnu_ld" != yes && break
6279 esac
6281 done
6282 IFS="$lt_save_ifs"
6283 else
6284 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6288 LD="$lt_cv_path_LD"
6289 if test -n "$LD"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6291 $as_echo "$LD" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6296 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6299 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6303 case `$LD -v 2>&1 </dev/null` in
6304 *GNU* | *'with BFD'*)
6305 lt_cv_prog_gnu_ld=yes
6308 lt_cv_prog_gnu_ld=no
6310 esac
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6313 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6314 with_gnu_ld=$lt_cv_prog_gnu_ld
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6326 if test "${lt_cv_path_NM+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$NM"; then
6330 # Let the user override the test.
6331 lt_cv_path_NM="$NM"
6332 else
6333 lt_nm_to_check="${ac_tool_prefix}nm"
6334 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6335 lt_nm_to_check="$lt_nm_to_check nm"
6337 for lt_tmp_nm in $lt_nm_to_check; do
6338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6340 IFS="$lt_save_ifs"
6341 test -z "$ac_dir" && ac_dir=.
6342 tmp_nm="$ac_dir/$lt_tmp_nm"
6343 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6344 # Check to see if the nm accepts a BSD-compat flag.
6345 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6346 # nm: unknown option "B" ignored
6347 # Tru64's nm complains that /dev/null is an invalid object file
6348 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6349 */dev/null* | *'Invalid file or object type'*)
6350 lt_cv_path_NM="$tmp_nm -B"
6351 break
6354 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6355 */dev/null*)
6356 lt_cv_path_NM="$tmp_nm -p"
6357 break
6360 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6361 continue # so that we can try to find one that supports BSD flags
6363 esac
6365 esac
6367 done
6368 IFS="$lt_save_ifs"
6369 done
6370 : ${lt_cv_path_NM=no}
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6374 $as_echo "$lt_cv_path_NM" >&6; }
6375 if test "$lt_cv_path_NM" != "no"; then
6376 NM="$lt_cv_path_NM"
6377 else
6378 # Didn't find any BSD compatible name lister, look for dumpbin.
6379 if test -n "$DUMPBIN"; then :
6380 # Let the user override the test.
6381 else
6382 if test -n "$ac_tool_prefix"; then
6383 for ac_prog in dumpbin "link -dump"
6385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$DUMPBIN"; then
6393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6406 done
6407 done
6408 IFS=$as_save_IFS
6412 DUMPBIN=$ac_cv_prog_DUMPBIN
6413 if test -n "$DUMPBIN"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6415 $as_echo "$DUMPBIN" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6422 test -n "$DUMPBIN" && break
6423 done
6425 if test -z "$DUMPBIN"; then
6426 ac_ct_DUMPBIN=$DUMPBIN
6427 for ac_prog in dumpbin "link -dump"
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_DUMPBIN"; then
6437 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6457 if test -n "$ac_ct_DUMPBIN"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6459 $as_echo "$ac_ct_DUMPBIN" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6466 test -n "$ac_ct_DUMPBIN" && break
6467 done
6469 if test "x$ac_ct_DUMPBIN" = x; then
6470 DUMPBIN=":"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478 DUMPBIN=$ac_ct_DUMPBIN
6482 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6483 *COFF*)
6484 DUMPBIN="$DUMPBIN -symbols"
6487 DUMPBIN=:
6489 esac
6492 if test "$DUMPBIN" != ":"; then
6493 NM="$DUMPBIN"
6496 test -z "$NM" && NM=nm
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6504 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6505 if test "${lt_cv_nm_interface+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 lt_cv_nm_interface="BSD nm"
6509 echo "int some_variable = 0;" > conftest.$ac_ext
6510 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6511 (eval "$ac_compile" 2>conftest.err)
6512 cat conftest.err >&5
6513 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6514 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6515 cat conftest.err >&5
6516 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6517 cat conftest.out >&5
6518 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6519 lt_cv_nm_interface="MS dumpbin"
6521 rm -f conftest*
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6524 $as_echo "$lt_cv_nm_interface" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6527 $as_echo_n "checking whether ln -s works... " >&6; }
6528 LN_S=$as_ln_s
6529 if test "$LN_S" = "ln -s"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6531 $as_echo "yes" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6534 $as_echo "no, using $LN_S" >&6; }
6537 # find the maximum length of command line arguments
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6539 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6540 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6544 teststring="ABCD"
6546 case $build_os in
6547 msdosdjgpp*)
6548 # On DJGPP, this test can blow up pretty badly due to problems in libc
6549 # (any single argument exceeding 2000 bytes causes a buffer overrun
6550 # during glob expansion). Even if it were fixed, the result of this
6551 # check would be larger than it should be.
6552 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6555 gnu*)
6556 # Under GNU Hurd, this test is not required because there is
6557 # no limit to the length of command line arguments.
6558 # Libtool will interpret -1 as no limit whatsoever
6559 lt_cv_sys_max_cmd_len=-1;
6562 cygwin* | mingw* | cegcc*)
6563 # On Win9x/ME, this test blows up -- it succeeds, but takes
6564 # about 5 minutes as the teststring grows exponentially.
6565 # Worse, since 9x/ME are not pre-emptively multitasking,
6566 # you end up with a "frozen" computer, even though with patience
6567 # the test eventually succeeds (with a max line length of 256k).
6568 # Instead, let's just punt: use the minimum linelength reported by
6569 # all of the supported platforms: 8192 (on NT/2K/XP).
6570 lt_cv_sys_max_cmd_len=8192;
6573 mint*)
6574 # On MiNT this can take a long time and run out of memory.
6575 lt_cv_sys_max_cmd_len=8192;
6578 amigaos*)
6579 # On AmigaOS with pdksh, this test takes hours, literally.
6580 # So we just punt and use a minimum line length of 8192.
6581 lt_cv_sys_max_cmd_len=8192;
6584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6585 # This has been around since 386BSD, at least. Likely further.
6586 if test -x /sbin/sysctl; then
6587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6588 elif test -x /usr/sbin/sysctl; then
6589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6590 else
6591 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6593 # And add a safety zone
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6598 interix*)
6599 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6600 lt_cv_sys_max_cmd_len=196608
6603 osf*)
6604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6606 # nice to cause kernel panics so lets avoid the loop below.
6607 # First set a reasonable default.
6608 lt_cv_sys_max_cmd_len=16384
6610 if test -x /sbin/sysconfig; then
6611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6613 esac
6616 sco3.2v5*)
6617 lt_cv_sys_max_cmd_len=102400
6619 sysv5* | sco5v6* | sysv4.2uw2*)
6620 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6621 if test -n "$kargmax"; then
6622 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6623 else
6624 lt_cv_sys_max_cmd_len=32768
6628 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6629 if test -n "$lt_cv_sys_max_cmd_len"; then
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6632 else
6633 # Make teststring a little bigger before we do anything with it.
6634 # a 1K string should be a reasonable start.
6635 for i in 1 2 3 4 5 6 7 8 ; do
6636 teststring=$teststring$teststring
6637 done
6638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6639 # If test is not a shell built-in, we'll probably end up computing a
6640 # maximum length that is only half of the actual maximum length, but
6641 # we can't tell.
6642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6643 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6644 test $i != 17 # 1/2 MB should be enough
6646 i=`expr $i + 1`
6647 teststring=$teststring$teststring
6648 done
6649 # Only check the string length outside the loop.
6650 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6651 teststring=
6652 # Add a significant safety factor because C++ compilers can tack on
6653 # massive amounts of additional arguments before passing them to the
6654 # linker. It appears as though 1/2 is a usable value.
6655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6658 esac
6662 if test -n $lt_cv_sys_max_cmd_len ; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6664 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6667 $as_echo "none" >&6; }
6669 max_cmd_len=$lt_cv_sys_max_cmd_len
6676 : ${CP="cp -f"}
6677 : ${MV="mv -f"}
6678 : ${RM="rm -f"}
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6681 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6682 # Try some XSI features
6683 xsi_shell=no
6684 ( _lt_dummy="a/b/c"
6685 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6686 = c,a/b,, \
6687 && eval 'test $(( 1 + 1 )) -eq 2 \
6688 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6689 && xsi_shell=yes
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6691 $as_echo "$xsi_shell" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6695 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6696 lt_shell_append=no
6697 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6698 >/dev/null 2>&1 \
6699 && lt_shell_append=yes
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6701 $as_echo "$lt_shell_append" >&6; }
6704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6705 lt_unset=unset
6706 else
6707 lt_unset=false
6714 # test EBCDIC or ASCII
6715 case `echo X|tr X '\101'` in
6716 A) # ASCII based system
6717 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6718 lt_SP2NL='tr \040 \012'
6719 lt_NL2SP='tr \015\012 \040\040'
6721 *) # EBCDIC based system
6722 lt_SP2NL='tr \100 \n'
6723 lt_NL2SP='tr \r\n \100\100'
6725 esac
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6737 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 lt_cv_ld_reload_flag='-r'
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6744 reload_flag=$lt_cv_ld_reload_flag
6745 case $reload_flag in
6746 "" | " "*) ;;
6747 *) reload_flag=" $reload_flag" ;;
6748 esac
6749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6750 case $host_os in
6751 darwin*)
6752 if test "$GCC" = yes; then
6753 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6754 else
6755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758 esac
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$OBJDUMP"; then
6777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6790 done
6791 done
6792 IFS=$as_save_IFS
6796 OBJDUMP=$ac_cv_prog_OBJDUMP
6797 if test -n "$OBJDUMP"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6799 $as_echo "$OBJDUMP" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6807 if test -z "$ac_cv_prog_OBJDUMP"; then
6808 ac_ct_OBJDUMP=$OBJDUMP
6809 # Extract the first word of "objdump", so it can be a program name with args.
6810 set dummy objdump; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$ac_ct_OBJDUMP"; then
6817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6837 if test -n "$ac_ct_OBJDUMP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6839 $as_echo "$ac_ct_OBJDUMP" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6845 if test "x$ac_ct_OBJDUMP" = x; then
6846 OBJDUMP="false"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854 OBJDUMP=$ac_ct_OBJDUMP
6856 else
6857 OBJDUMP="$ac_cv_prog_OBJDUMP"
6860 test -z "$OBJDUMP" && OBJDUMP=objdump
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6872 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 lt_cv_file_magic_cmd='$MAGIC_CMD'
6876 lt_cv_file_magic_test_file=
6877 lt_cv_deplibs_check_method='unknown'
6878 # Need to set the preceding variable on all platforms that support
6879 # interlibrary dependencies.
6880 # 'none' -- dependencies not supported.
6881 # `unknown' -- same as none, but documents that we really don't know.
6882 # 'pass_all' -- all dependencies passed with no checks.
6883 # 'test_compile' -- check by making test program.
6884 # 'file_magic [[regex]]' -- check by looking for files in library path
6885 # which responds to the $file_magic_cmd with a given extended regex.
6886 # If you have `file' or equivalent on your system and you're not sure
6887 # whether `pass_all' will *always* work, you probably want this one.
6889 case $host_os in
6890 aix[4-9]*)
6891 lt_cv_deplibs_check_method=pass_all
6894 beos*)
6895 lt_cv_deplibs_check_method=pass_all
6898 bsdi[45]*)
6899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6900 lt_cv_file_magic_cmd='/usr/bin/file -L'
6901 lt_cv_file_magic_test_file=/shlib/libc.so
6904 cygwin*)
6905 # func_win32_libid is a shell function defined in ltmain.sh
6906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6907 lt_cv_file_magic_cmd='func_win32_libid'
6910 mingw* | pw32*)
6911 # Base MSYS/MinGW do not provide the 'file' command needed by
6912 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6913 # unless we find 'file', for example because we are cross-compiling.
6914 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6915 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6917 lt_cv_file_magic_cmd='func_win32_libid'
6918 else
6919 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6920 lt_cv_file_magic_cmd='$OBJDUMP -f'
6924 cegcc*)
6925 # use the weaker test based on 'objdump'. See mingw*.
6926 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6927 lt_cv_file_magic_cmd='$OBJDUMP -f'
6930 darwin* | rhapsody*)
6931 lt_cv_deplibs_check_method=pass_all
6934 freebsd* | dragonfly*)
6935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6936 case $host_cpu in
6937 i*86 )
6938 # Not sure whether the presence of OpenBSD here was a mistake.
6939 # Let's accept both of them until this is cleared up.
6940 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6941 lt_cv_file_magic_cmd=/usr/bin/file
6942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6944 esac
6945 else
6946 lt_cv_deplibs_check_method=pass_all
6950 gnu*)
6951 lt_cv_deplibs_check_method=pass_all
6954 haiku*)
6955 lt_cv_deplibs_check_method=pass_all
6958 hpux10.20* | hpux11*)
6959 lt_cv_file_magic_cmd=/usr/bin/file
6960 case $host_cpu in
6961 ia64*)
6962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6965 hppa*64*)
6966 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]'
6967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6973 esac
6976 interix[3-9]*)
6977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6981 irix5* | irix6* | nonstopux*)
6982 case $LD in
6983 *-32|*"-32 ") libmagic=32-bit;;
6984 *-n32|*"-n32 ") libmagic=N32;;
6985 *-64|*"-64 ") libmagic=64-bit;;
6986 *) libmagic=never-match;;
6987 esac
6988 lt_cv_deplibs_check_method=pass_all
6991 # This must be Linux ELF.
6992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6993 lt_cv_deplibs_check_method=pass_all
6996 netbsd*)
6997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6999 else
7000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7004 newos6*)
7005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7006 lt_cv_file_magic_cmd=/usr/bin/file
7007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7010 *nto* | *qnx*)
7011 lt_cv_deplibs_check_method=pass_all
7014 openbsd*)
7015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7017 else
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7022 osf3* | osf4* | osf5*)
7023 lt_cv_deplibs_check_method=pass_all
7026 rdos*)
7027 lt_cv_deplibs_check_method=pass_all
7030 solaris*)
7031 lt_cv_deplibs_check_method=pass_all
7034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7035 lt_cv_deplibs_check_method=pass_all
7038 sysv4 | sysv4.3*)
7039 case $host_vendor in
7040 motorola)
7041 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]'
7042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7044 ncr)
7045 lt_cv_deplibs_check_method=pass_all
7047 sequent)
7048 lt_cv_file_magic_cmd='/bin/file'
7049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7051 sni)
7052 lt_cv_file_magic_cmd='/bin/file'
7053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7054 lt_cv_file_magic_test_file=/lib/libc.so
7056 siemens)
7057 lt_cv_deplibs_check_method=pass_all
7060 lt_cv_deplibs_check_method=pass_all
7062 esac
7065 tpf*)
7066 lt_cv_deplibs_check_method=pass_all
7068 esac
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7073 file_magic_cmd=$lt_cv_file_magic_cmd
7074 deplibs_check_method=$lt_cv_deplibs_check_method
7075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}ar; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_prog_AR+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$AR"; then
7097 ac_cv_prog_AR="$AR" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_prog_AR="${ac_tool_prefix}ar"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7116 AR=$ac_cv_prog_AR
7117 if test -n "$AR"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7119 $as_echo "$AR" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7127 if test -z "$ac_cv_prog_AR"; then
7128 ac_ct_AR=$AR
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7150 done
7151 done
7152 IFS=$as_save_IFS
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7159 $as_echo "$ac_ct_AR" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test "x$ac_ct_AR" = x; then
7166 AR="false"
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174 AR=$ac_ct_AR
7176 else
7177 AR="$ac_cv_prog_AR"
7180 test -z "$AR" && AR=ar
7181 test -z "$AR_FLAGS" && AR_FLAGS=cru
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}strip; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_STRIP+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$STRIP"; then
7202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 STRIP=$ac_cv_prog_STRIP
7222 if test -n "$STRIP"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7224 $as_echo "$STRIP" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$ac_cv_prog_STRIP"; then
7233 ac_ct_STRIP=$STRIP
7234 # Extract the first word of "strip", so it can be a program name with args.
7235 set dummy strip; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_STRIP"; then
7242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_STRIP="strip"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7262 if test -n "$ac_ct_STRIP"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7264 $as_echo "$ac_ct_STRIP" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 if test "x$ac_ct_STRIP" = x; then
7271 STRIP=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 STRIP=$ac_ct_STRIP
7281 else
7282 STRIP="$ac_cv_prog_STRIP"
7285 test -z "$STRIP" && STRIP=:
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 if test -n "$RANLIB"; then
7301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7314 done
7315 done
7316 IFS=$as_save_IFS
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7323 $as_echo "$RANLIB" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_RANLIB"; then
7332 ac_ct_RANLIB=$RANLIB
7333 # Extract the first word of "ranlib", so it can be a program name with args.
7334 set dummy ranlib; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$ac_ct_RANLIB"; then
7341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_RANLIB="ranlib"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7356 IFS=$as_save_IFS
7360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7361 if test -n "$ac_ct_RANLIB"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7363 $as_echo "$ac_ct_RANLIB" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_RANLIB" = x; then
7370 RANLIB=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378 RANLIB=$ac_ct_RANLIB
7380 else
7381 RANLIB="$ac_cv_prog_RANLIB"
7384 test -z "$RANLIB" && RANLIB=:
7391 # Determine commands to create old-style static archives.
7392 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7393 old_postinstall_cmds='chmod 644 $oldlib'
7394 old_postuninstall_cmds=
7396 if test -n "$RANLIB"; then
7397 case $host_os in
7398 openbsd*)
7399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7404 esac
7405 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7408 case $host_os in
7409 darwin*)
7410 lock_old_archive_extraction=yes ;;
7412 lock_old_archive_extraction=no ;;
7413 esac
7453 # If no C compiler was specified, use CC.
7454 LTCC=${LTCC-"$CC"}
7456 # If no C compiler flags were specified, use CFLAGS.
7457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7459 # Allow CC to be a program name with arguments.
7460 compiler=$CC
7463 # Check for command to grab the raw symbol name followed by C symbol from nm.
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7465 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7470 # These are sane defaults that work on at least a few old systems.
7471 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7473 # Character class describing NM global symbol codes.
7474 symcode='[BCDEGRST]'
7476 # Regexp to match symbols that can be accessed directly from C.
7477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7479 # Define system-specific variables.
7480 case $host_os in
7481 aix*)
7482 symcode='[BCDT]'
7484 cygwin* | mingw* | pw32* | cegcc*)
7485 symcode='[ABCDGISTW]'
7487 hpux*)
7488 if test "$host_cpu" = ia64; then
7489 symcode='[ABCDEGRST]'
7492 irix* | nonstopux*)
7493 symcode='[BCDEGRST]'
7495 osf*)
7496 symcode='[BCDEGQRST]'
7498 solaris*)
7499 symcode='[BDRT]'
7501 sco3.2v5*)
7502 symcode='[DT]'
7504 sysv4.2uw2*)
7505 symcode='[DT]'
7507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7508 symcode='[ABDT]'
7510 sysv4)
7511 symcode='[DFNSTU]'
7513 esac
7515 # If we're using GNU nm, then use its standard symbol codes.
7516 case `$NM -V 2>&1` in
7517 *GNU* | *'with BFD'*)
7518 symcode='[ABCDGIRSTW]' ;;
7519 esac
7521 # Transform an extracted symbol line into a proper C declaration.
7522 # Some systems (esp. on ia64) link data and code symbols differently,
7523 # so use this general approach.
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7526 # Transform an extracted symbol line into symbol name and symbol address
7527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7528 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'"
7530 # Handle CRLF in mingw tool chain
7531 opt_cr=
7532 case $build_os in
7533 mingw*)
7534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7536 esac
7538 # Try without a prefix underscore, then with it.
7539 for ac_symprfx in "" "_"; do
7541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7542 symxfrm="\\1 $ac_symprfx\\2 \\2"
7544 # Write the raw and C identifiers.
7545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7546 # Fake it for dumpbin and say T for any non-static function
7547 # and D for any global variable.
7548 # Also find C++ and __fastcall symbols from MSVC++,
7549 # which start with @ or ?.
7550 lt_cv_sys_global_symbol_pipe="$AWK '"\
7551 " {last_section=section; section=\$ 3};"\
7552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7553 " \$ 0!~/External *\|/{next};"\
7554 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7555 " {if(hide[section]) next};"\
7556 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7557 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7558 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7559 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7560 " ' prfx=^$ac_symprfx"
7561 else
7562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7565 # Check to see that the pipe works correctly.
7566 pipe_works=no
7568 rm -f conftest*
7569 cat > conftest.$ac_ext <<_LT_EOF
7570 #ifdef __cplusplus
7571 extern "C" {
7572 #endif
7573 char nm_test_var;
7574 void nm_test_func(void);
7575 void nm_test_func(void){}
7576 #ifdef __cplusplus
7578 #endif
7579 int main(){nm_test_var='a';nm_test_func();return(0);}
7580 _LT_EOF
7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583 (eval $ac_compile) 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 # Now try to grab the symbols.
7588 nlist=conftest.nm
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7590 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7591 ac_status=$?
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; } && test -s "$nlist"; then
7594 # Try sorting and uniquifying the output.
7595 if sort "$nlist" | uniq > "$nlist"T; then
7596 mv -f "$nlist"T "$nlist"
7597 else
7598 rm -f "$nlist"T
7601 # Make sure that we snagged all the symbols we need.
7602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7604 cat <<_LT_EOF > conftest.$ac_ext
7605 #ifdef __cplusplus
7606 extern "C" {
7607 #endif
7609 _LT_EOF
7610 # Now generate the symbol file.
7611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7613 cat <<_LT_EOF >> conftest.$ac_ext
7615 /* The mapping between symbol names and symbols. */
7616 const struct {
7617 const char *name;
7618 void *address;
7620 lt__PROGRAM__LTX_preloaded_symbols[] =
7622 { "@PROGRAM@", (void *) 0 },
7623 _LT_EOF
7624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7625 cat <<\_LT_EOF >> conftest.$ac_ext
7626 {0, (void *) 0}
7629 /* This works around a problem in FreeBSD linker */
7630 #ifdef FREEBSD_WORKAROUND
7631 static const void *lt_preloaded_setup() {
7632 return lt__PROGRAM__LTX_preloaded_symbols;
7634 #endif
7636 #ifdef __cplusplus
7638 #endif
7639 _LT_EOF
7640 # Now try linking the two files.
7641 mv conftest.$ac_objext conftstm.$ac_objext
7642 lt_save_LIBS="$LIBS"
7643 lt_save_CFLAGS="$CFLAGS"
7644 LIBS="conftstm.$ac_objext"
7645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7647 (eval $ac_link) 2>&5
7648 ac_status=$?
7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7651 pipe_works=yes
7653 LIBS="$lt_save_LIBS"
7654 CFLAGS="$lt_save_CFLAGS"
7655 else
7656 echo "cannot find nm_test_func in $nlist" >&5
7658 else
7659 echo "cannot find nm_test_var in $nlist" >&5
7661 else
7662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7664 else
7665 echo "$progname: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7668 rm -rf conftest* conftst*
7670 # Do not use the global_symbol_pipe unless it works.
7671 if test "$pipe_works" = yes; then
7672 break
7673 else
7674 lt_cv_sys_global_symbol_pipe=
7676 done
7680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7681 lt_cv_sys_global_symbol_to_cdecl=
7683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7685 $as_echo "failed" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7688 $as_echo "ok" >&6; }
7712 # Check whether --enable-libtool-lock was given.
7713 if test "${enable_libtool_lock+set}" = set; then :
7714 enableval=$enable_libtool_lock;
7717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7719 # Some flags need to be propagated to the compiler or linker for good
7720 # libtool support.
7721 case $host in
7722 ia64-*-hpux*)
7723 # Find out which ABI we are using.
7724 echo 'int i;' > conftest.$ac_ext
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726 (eval $ac_compile) 2>&5
7727 ac_status=$?
7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }; then
7730 case `/usr/bin/file conftest.$ac_objext` in
7731 *ELF-32*)
7732 HPUX_IA64_MODE="32"
7734 *ELF-64*)
7735 HPUX_IA64_MODE="64"
7737 esac
7739 rm -rf conftest*
7741 *-*-irix6*)
7742 # Find out which ABI we are using.
7743 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 if test "$lt_cv_prog_gnu_ld" = yes; then
7750 case `/usr/bin/file conftest.$ac_objext` in
7751 *32-bit*)
7752 LD="${LD-ld} -melf32bsmip"
7754 *N32*)
7755 LD="${LD-ld} -melf32bmipn32"
7757 *64-bit*)
7758 LD="${LD-ld} -melf64bmip"
7760 esac
7761 else
7762 case `/usr/bin/file conftest.$ac_objext` in
7763 *32-bit*)
7764 LD="${LD-ld} -32"
7766 *N32*)
7767 LD="${LD-ld} -n32"
7769 *64-bit*)
7770 LD="${LD-ld} -64"
7772 esac
7775 rm -rf conftest*
7778 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7779 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7780 # Find out which ABI we are using.
7781 echo 'int i;' > conftest.$ac_ext
7782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 case `/usr/bin/file conftest.o` in
7788 *32-bit*)
7789 case $host in
7790 x86_64-*kfreebsd*-gnu)
7791 LD="${LD-ld} -m elf_i386_fbsd"
7793 x86_64-*linux*)
7794 case `/usr/bin/file conftest.o` in
7795 *x86-64*)
7796 LD="${LD-ld} -m elf32_x86_64"
7799 LD="${LD-ld} -m elf_i386"
7801 esac
7803 powerpc64le-*linux*)
7804 LD="${LD-ld} -m elf32lppclinux"
7806 powerpc64-*linux*)
7807 LD="${LD-ld} -m elf32ppclinux"
7809 s390x-*linux*)
7810 LD="${LD-ld} -m elf_s390"
7812 sparc64-*linux*)
7813 LD="${LD-ld} -m elf32_sparc"
7815 esac
7817 *64-bit*)
7818 case $host in
7819 x86_64-*kfreebsd*-gnu)
7820 LD="${LD-ld} -m elf_x86_64_fbsd"
7822 x86_64-*linux*)
7823 LD="${LD-ld} -m elf_x86_64"
7825 powerpcle-*linux*)
7826 LD="${LD-ld} -m elf64lppc"
7828 powerpc-*linux*)
7829 LD="${LD-ld} -m elf64ppc"
7831 s390*-*linux*|s390*-*tpf*)
7832 LD="${LD-ld} -m elf64_s390"
7834 sparc*-*linux*)
7835 LD="${LD-ld} -m elf64_sparc"
7837 esac
7839 esac
7841 rm -rf conftest*
7844 *-*-sco3.2v5*)
7845 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7846 SAVE_CFLAGS="$CFLAGS"
7847 CFLAGS="$CFLAGS -belf"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7849 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7850 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 ac_ext=c
7854 ac_cpp='$CPP $CPPFLAGS'
7855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7863 main ()
7867 return 0;
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 lt_cv_cc_needs_belf=yes
7872 else
7873 lt_cv_cc_needs_belf=no
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 ac_ext=c
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7885 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7888 CFLAGS="$SAVE_CFLAGS"
7891 sparc*-*solaris*)
7892 # Find out which ABI we are using.
7893 echo 'int i;' > conftest.$ac_ext
7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7895 (eval $ac_compile) 2>&5
7896 ac_status=$?
7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; then
7899 case `/usr/bin/file conftest.o` in
7900 *64-bit*)
7901 case $lt_cv_prog_gnu_ld in
7902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7904 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7905 LD="${LD-ld} -64"
7908 esac
7910 esac
7912 rm -rf conftest*
7914 esac
7916 need_locks="$enable_libtool_lock"
7919 case $host_os in
7920 rhapsody* | darwin*)
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$DSYMUTIL"; then
7930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7950 if test -n "$DSYMUTIL"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7952 $as_echo "$DSYMUTIL" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_DSYMUTIL"; then
7961 ac_ct_DSYMUTIL=$DSYMUTIL
7962 # Extract the first word of "dsymutil", so it can be a program name with args.
7963 set dummy dsymutil; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$ac_ct_DSYMUTIL"; then
7970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7990 if test -n "$ac_ct_DSYMUTIL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_DSYMUTIL" = x; then
7999 DSYMUTIL=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 DSYMUTIL=$ac_ct_DSYMUTIL
8009 else
8010 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$NMEDIT"; then
8022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8041 NMEDIT=$ac_cv_prog_NMEDIT
8042 if test -n "$NMEDIT"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8044 $as_echo "$NMEDIT" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_prog_NMEDIT"; then
8053 ac_ct_NMEDIT=$NMEDIT
8054 # Extract the first word of "nmedit", so it can be a program name with args.
8055 set dummy nmedit; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$ac_ct_NMEDIT"; then
8062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8082 if test -n "$ac_ct_NMEDIT"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8084 $as_echo "$ac_ct_NMEDIT" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_ct_NMEDIT" = x; then
8091 NMEDIT=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099 NMEDIT=$ac_ct_NMEDIT
8101 else
8102 NMEDIT="$ac_cv_prog_NMEDIT"
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_LIPO+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$LIPO"; then
8114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8133 LIPO=$ac_cv_prog_LIPO
8134 if test -n "$LIPO"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8136 $as_echo "$LIPO" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_LIPO"; then
8145 ac_ct_LIPO=$LIPO
8146 # Extract the first word of "lipo", so it can be a program name with args.
8147 set dummy lipo; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$ac_ct_LIPO"; then
8154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_prog_ac_ct_LIPO="lipo"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8169 IFS=$as_save_IFS
8173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8174 if test -n "$ac_ct_LIPO"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8176 $as_echo "$ac_ct_LIPO" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_LIPO" = x; then
8183 LIPO=":"
8184 else
8185 case $cross_compiling:$ac_tool_warned in
8186 yes:)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191 LIPO=$ac_ct_LIPO
8193 else
8194 LIPO="$ac_cv_prog_LIPO"
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}otool; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$OTOOL"; then
8206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8219 done
8220 done
8221 IFS=$as_save_IFS
8225 OTOOL=$ac_cv_prog_OTOOL
8226 if test -n "$OTOOL"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8228 $as_echo "$OTOOL" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test -z "$ac_cv_prog_OTOOL"; then
8237 ac_ct_OTOOL=$OTOOL
8238 # Extract the first word of "otool", so it can be a program name with args.
8239 set dummy otool; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$ac_ct_OTOOL"; then
8246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_ac_ct_OTOOL="otool"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8266 if test -n "$ac_ct_OTOOL"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8268 $as_echo "$ac_ct_OTOOL" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8274 if test "x$ac_ct_OTOOL" = x; then
8275 OTOOL=":"
8276 else
8277 case $cross_compiling:$ac_tool_warned in
8278 yes:)
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281 ac_tool_warned=yes ;;
8282 esac
8283 OTOOL=$ac_ct_OTOOL
8285 else
8286 OTOOL="$ac_cv_prog_OTOOL"
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$OTOOL64"; then
8298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8317 OTOOL64=$ac_cv_prog_OTOOL64
8318 if test -n "$OTOOL64"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8320 $as_echo "$OTOOL64" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test -z "$ac_cv_prog_OTOOL64"; then
8329 ac_ct_OTOOL64=$OTOOL64
8330 # Extract the first word of "otool64", so it can be a program name with args.
8331 set dummy otool64; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$ac_ct_OTOOL64"; then
8338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_ac_ct_OTOOL64="otool64"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8358 if test -n "$ac_ct_OTOOL64"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8360 $as_echo "$ac_ct_OTOOL64" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8366 if test "x$ac_ct_OTOOL64" = x; then
8367 OTOOL64=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 OTOOL64=$ac_ct_OTOOL64
8377 else
8378 OTOOL64="$ac_cv_prog_OTOOL64"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8408 $as_echo_n "checking for -single_module linker flag... " >&6; }
8409 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 lt_cv_apple_cc_single_mod=no
8413 if test -z "${LT_MULTI_MODULE}"; then
8414 # By default we will add the -single_module flag. You can override
8415 # by either setting the environment variable LT_MULTI_MODULE
8416 # non-empty at configure time, or by adding -multi_module to the
8417 # link flags.
8418 rm -rf libconftest.dylib*
8419 echo "int foo(void){return 1;}" > conftest.c
8420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8421 -dynamiclib -Wl,-single_module conftest.c" >&5
8422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8424 _lt_result=$?
8425 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8426 lt_cv_apple_cc_single_mod=yes
8427 else
8428 cat conftest.err >&5
8430 rm -rf libconftest.dylib*
8431 rm -f conftest.*
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8435 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8437 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8438 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 lt_cv_ld_exported_symbols_list=no
8442 save_LDFLAGS=$LDFLAGS
8443 echo "_main" > conftest.sym
8444 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8449 main ()
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 lt_cv_ld_exported_symbols_list=yes
8458 else
8459 lt_cv_ld_exported_symbols_list=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LDFLAGS="$save_LDFLAGS"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8467 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8469 $as_echo_n "checking for -force_load linker flag... " >&6; }
8470 if test "${lt_cv_ld_force_load+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 lt_cv_ld_force_load=no
8474 cat > conftest.c << _LT_EOF
8475 int forced_loaded() { return 2;}
8476 _LT_EOF
8477 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8478 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8479 echo "$AR cru libconftest.a conftest.o" >&5
8480 $AR cru libconftest.a conftest.o 2>&5
8481 cat > conftest.c << _LT_EOF
8482 int main() { return 0;}
8483 _LT_EOF
8484 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8485 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8486 _lt_result=$?
8487 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8488 lt_cv_ld_force_load=yes
8489 else
8490 cat conftest.err >&5
8492 rm -f conftest.err libconftest.a conftest conftest.c
8493 rm -rf conftest.dSYM
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8497 $as_echo "$lt_cv_ld_force_load" >&6; }
8498 case $host_os in
8499 rhapsody* | darwin1.[012])
8500 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8501 darwin1.*)
8502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8503 darwin*) # darwin 5.x on
8504 # if running on 10.5 or later, the deployment target defaults
8505 # to the OS version, if on x86, and 10.4, the deployment
8506 # target defaults to 10.4. Don't you love it?
8507 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8508 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8510 10.[012]*)
8511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8512 10.*)
8513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8514 esac
8516 esac
8517 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8518 _lt_dar_single_mod='$single_module'
8520 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8521 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8522 else
8523 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8525 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8526 _lt_dsymutil='~$DSYMUTIL $lib || :'
8527 else
8528 _lt_dsymutil=
8531 esac
8533 for ac_header in dlfcn.h
8534 do :
8535 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8537 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_DLFCN_H 1
8540 _ACEOF
8544 done
8551 # Set options
8556 enable_win32_dll=no
8559 # Check whether --enable-shared was given.
8560 if test "${enable_shared+set}" = set; then :
8561 enableval=$enable_shared; p=${PACKAGE-default}
8562 case $enableval in
8563 yes) enable_shared=yes ;;
8564 no) enable_shared=no ;;
8566 enable_shared=no
8567 # Look at the argument we got. We use all the common list separators.
8568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8569 for pkg in $enableval; do
8570 IFS="$lt_save_ifs"
8571 if test "X$pkg" = "X$p"; then
8572 enable_shared=yes
8574 done
8575 IFS="$lt_save_ifs"
8577 esac
8578 else
8579 enable_shared=yes
8590 # Check whether --enable-static was given.
8591 if test "${enable_static+set}" = set; then :
8592 enableval=$enable_static; p=${PACKAGE-default}
8593 case $enableval in
8594 yes) enable_static=yes ;;
8595 no) enable_static=no ;;
8597 enable_static=no
8598 # Look at the argument we got. We use all the common list separators.
8599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8600 for pkg in $enableval; do
8601 IFS="$lt_save_ifs"
8602 if test "X$pkg" = "X$p"; then
8603 enable_static=yes
8605 done
8606 IFS="$lt_save_ifs"
8608 esac
8609 else
8610 enable_static=yes
8622 # Check whether --with-pic was given.
8623 if test "${with_pic+set}" = set; then :
8624 withval=$with_pic; pic_mode="$withval"
8625 else
8626 pic_mode=default
8630 test -z "$pic_mode" && pic_mode=default
8638 # Check whether --enable-fast-install was given.
8639 if test "${enable_fast_install+set}" = set; then :
8640 enableval=$enable_fast_install; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_fast_install=yes ;;
8643 no) enable_fast_install=no ;;
8645 enable_fast_install=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8649 IFS="$lt_save_ifs"
8650 if test "X$pkg" = "X$p"; then
8651 enable_fast_install=yes
8653 done
8654 IFS="$lt_save_ifs"
8656 esac
8657 else
8658 enable_fast_install=yes
8671 # This can be used to rebuild libtool when needed
8672 LIBTOOL_DEPS="$ltmain"
8674 # Always use our own libtool.
8675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8702 test -z "$LN_S" && LN_S="ln -s"
8717 if test -n "${ZSH_VERSION+set}" ; then
8718 setopt NO_GLOB_SUBST
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8722 $as_echo_n "checking for objdir... " >&6; }
8723 if test "${lt_cv_objdir+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 rm -f .libs 2>/dev/null
8727 mkdir .libs 2>/dev/null
8728 if test -d .libs; then
8729 lt_cv_objdir=.libs
8730 else
8731 # MS-DOS does not allow filenames that begin with a dot.
8732 lt_cv_objdir=_libs
8734 rmdir .libs 2>/dev/null
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8737 $as_echo "$lt_cv_objdir" >&6; }
8738 objdir=$lt_cv_objdir
8744 cat >>confdefs.h <<_ACEOF
8745 #define LT_OBJDIR "$lt_cv_objdir/"
8746 _ACEOF
8751 case $host_os in
8752 aix3*)
8753 # AIX sometimes has problems with the GCC collect2 program. For some
8754 # reason, if we set the COLLECT_NAMES environment variable, the problems
8755 # vanish in a puff of smoke.
8756 if test "X${COLLECT_NAMES+set}" != Xset; then
8757 COLLECT_NAMES=
8758 export COLLECT_NAMES
8761 esac
8763 # Global variables:
8764 ofile=libtool
8765 can_build_shared=yes
8767 # All known linkers require a `.a' archive for static linking (except MSVC,
8768 # which needs '.lib').
8769 libext=a
8771 with_gnu_ld="$lt_cv_prog_gnu_ld"
8773 old_CC="$CC"
8774 old_CFLAGS="$CFLAGS"
8776 # Set sane defaults for various variables
8777 test -z "$CC" && CC=cc
8778 test -z "$LTCC" && LTCC=$CC
8779 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8780 test -z "$LD" && LD=ld
8781 test -z "$ac_objext" && ac_objext=o
8783 for cc_temp in $compiler""; do
8784 case $cc_temp in
8785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8787 \-*) ;;
8788 *) break;;
8789 esac
8790 done
8791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8794 # Only perform the check for file, if the check method requires it
8795 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8796 case $deplibs_check_method in
8797 file_magic*)
8798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8800 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 case $MAGIC_CMD in
8805 [\\/*] | ?:[\\/]*)
8806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8809 lt_save_MAGIC_CMD="$MAGIC_CMD"
8810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8812 for ac_dir in $ac_dummy; do
8813 IFS="$lt_save_ifs"
8814 test -z "$ac_dir" && ac_dir=.
8815 if test -f $ac_dir/${ac_tool_prefix}file; then
8816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8817 if test -n "$file_magic_test_file"; then
8818 case $deplibs_check_method in
8819 "file_magic "*)
8820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8823 $EGREP "$file_magic_regex" > /dev/null; then
8825 else
8826 cat <<_LT_EOF 1>&2
8828 *** Warning: the command libtool uses to detect shared libraries,
8829 *** $file_magic_cmd, produces output that libtool cannot recognize.
8830 *** The result is that libtool may fail to recognize shared libraries
8831 *** as such. This will affect the creation of libtool libraries that
8832 *** depend on shared libraries, but programs linked with such libtool
8833 *** libraries will work regardless of this problem. Nevertheless, you
8834 *** may want to report the problem to your system manager and/or to
8835 *** bug-libtool@gnu.org
8837 _LT_EOF
8838 fi ;;
8839 esac
8841 break
8843 done
8844 IFS="$lt_save_ifs"
8845 MAGIC_CMD="$lt_save_MAGIC_CMD"
8847 esac
8850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8851 if test -n "$MAGIC_CMD"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8853 $as_echo "$MAGIC_CMD" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8863 if test -z "$lt_cv_path_MAGIC_CMD"; then
8864 if test -n "$ac_tool_prefix"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8866 $as_echo_n "checking for file... " >&6; }
8867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 case $MAGIC_CMD in
8871 [\\/*] | ?:[\\/]*)
8872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8875 lt_save_MAGIC_CMD="$MAGIC_CMD"
8876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878 for ac_dir in $ac_dummy; do
8879 IFS="$lt_save_ifs"
8880 test -z "$ac_dir" && ac_dir=.
8881 if test -f $ac_dir/file; then
8882 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8883 if test -n "$file_magic_test_file"; then
8884 case $deplibs_check_method in
8885 "file_magic "*)
8886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889 $EGREP "$file_magic_regex" > /dev/null; then
8891 else
8892 cat <<_LT_EOF 1>&2
8894 *** Warning: the command libtool uses to detect shared libraries,
8895 *** $file_magic_cmd, produces output that libtool cannot recognize.
8896 *** The result is that libtool may fail to recognize shared libraries
8897 *** as such. This will affect the creation of libtool libraries that
8898 *** depend on shared libraries, but programs linked with such libtool
8899 *** libraries will work regardless of this problem. Nevertheless, you
8900 *** may want to report the problem to your system manager and/or to
8901 *** bug-libtool@gnu.org
8903 _LT_EOF
8904 fi ;;
8905 esac
8907 break
8909 done
8910 IFS="$lt_save_ifs"
8911 MAGIC_CMD="$lt_save_MAGIC_CMD"
8913 esac
8916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917 if test -n "$MAGIC_CMD"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8919 $as_echo "$MAGIC_CMD" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8926 else
8927 MAGIC_CMD=:
8933 esac
8935 # Use C for the default configuration in the libtool script
8937 lt_save_CC="$CC"
8938 ac_ext=c
8939 ac_cpp='$CPP $CPPFLAGS'
8940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945 # Source file extension for C test sources.
8946 ac_ext=c
8948 # Object file extension for compiled C test sources.
8949 objext=o
8950 objext=$objext
8952 # Code to be used in simple compile tests
8953 lt_simple_compile_test_code="int some_variable = 0;"
8955 # Code to be used in simple link tests
8956 lt_simple_link_test_code='int main(){return(0);}'
8964 # If no C compiler was specified, use CC.
8965 LTCC=${LTCC-"$CC"}
8967 # If no C compiler flags were specified, use CFLAGS.
8968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8970 # Allow CC to be a program name with arguments.
8971 compiler=$CC
8973 # Save the default compiler, since it gets overwritten when the other
8974 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8975 compiler_DEFAULT=$CC
8977 # save warnings/boilerplate of simple test code
8978 ac_outfile=conftest.$ac_objext
8979 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8981 _lt_compiler_boilerplate=`cat conftest.err`
8982 $RM conftest*
8984 ac_outfile=conftest.$ac_objext
8985 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8987 _lt_linker_boilerplate=`cat conftest.err`
8988 $RM -r conftest*
8991 ## CAVEAT EMPTOR:
8992 ## There is no encapsulation within the following macros, do not change
8993 ## the running order or otherwise move them around unless you know exactly
8994 ## what you are doing...
8995 if test -n "$compiler"; then
8997 lt_prog_compiler_no_builtin_flag=
8999 if test "$GCC" = yes; then
9000 case $cc_basename in
9001 nvcc*)
9002 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9004 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9005 esac
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9008 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9009 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_rtti_exceptions=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="-fno-rtti -fno-exceptions"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9027 ac_status=$?
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_rtti_exceptions=yes
9039 $RM conftest*
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9043 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9045 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9046 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9047 else
9058 lt_prog_compiler_wl=
9059 lt_prog_compiler_pic=
9060 lt_prog_compiler_static=
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9065 if test "$GCC" = yes; then
9066 lt_prog_compiler_wl='-Wl,'
9067 lt_prog_compiler_static='-static'
9069 case $host_os in
9070 aix*)
9071 # All AIX code is PIC.
9072 if test "$host_cpu" = ia64; then
9073 # AIX 5 now supports IA64 processor
9074 lt_prog_compiler_static='-Bstatic'
9076 lt_prog_compiler_pic='-fPIC'
9079 amigaos*)
9080 case $host_cpu in
9081 powerpc)
9082 # see comment about AmigaOS4 .so support
9083 lt_prog_compiler_pic='-fPIC'
9085 m68k)
9086 # FIXME: we need at least 68020 code to build shared libraries, but
9087 # adding the `-m68020' flag to GCC prevents building anything better,
9088 # like `-m68040'.
9089 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9091 esac
9094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9095 # PIC is the default for these OSes.
9098 mingw* | cygwin* | pw32* | os2* | cegcc*)
9099 # This hack is so that the source file can tell whether it is being
9100 # built for inclusion in a dll (and should export symbols for example).
9101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9102 # (--disable-auto-import) libraries
9103 lt_prog_compiler_pic='-DDLL_EXPORT'
9106 darwin* | rhapsody*)
9107 # PIC is the default on this platform
9108 # Common symbols not allowed in MH_DYLIB files
9109 lt_prog_compiler_pic='-fno-common'
9112 haiku*)
9113 # PIC is the default for Haiku.
9114 # The "-static" flag exists, but is broken.
9115 lt_prog_compiler_static=
9118 hpux*)
9119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9121 # sets the default TLS model and affects inlining.
9122 case $host_cpu in
9123 hppa*64*)
9124 # +Z the default
9127 lt_prog_compiler_pic='-fPIC'
9129 esac
9132 interix[3-9]*)
9133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9134 # Instead, we relocate shared libraries at runtime.
9137 msdosdjgpp*)
9138 # Just because we use GCC doesn't mean we suddenly get shared libraries
9139 # on systems that don't support them.
9140 lt_prog_compiler_can_build_shared=no
9141 enable_shared=no
9144 *nto* | *qnx*)
9145 # QNX uses GNU C++, but need to define -shared option too, otherwise
9146 # it will coredump.
9147 lt_prog_compiler_pic='-fPIC -shared'
9150 sysv4*MP*)
9151 if test -d /usr/nec; then
9152 lt_prog_compiler_pic=-Kconform_pic
9157 lt_prog_compiler_pic='-fPIC'
9159 esac
9161 case $cc_basename in
9162 nvcc*) # Cuda Compiler Driver 2.2
9163 lt_prog_compiler_wl='-Xlinker '
9164 lt_prog_compiler_pic='-Xcompiler -fPIC'
9166 esac
9167 else
9168 # PORTME Check for flag to pass linker flags through the system compiler.
9169 case $host_os in
9170 aix*)
9171 lt_prog_compiler_wl='-Wl,'
9172 if test "$host_cpu" = ia64; then
9173 # AIX 5 now supports IA64 processor
9174 lt_prog_compiler_static='-Bstatic'
9175 else
9176 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9180 mingw* | cygwin* | pw32* | os2* | cegcc*)
9181 # This hack is so that the source file can tell whether it is being
9182 # built for inclusion in a dll (and should export symbols for example).
9183 lt_prog_compiler_pic='-DDLL_EXPORT'
9186 hpux9* | hpux10* | hpux11*)
9187 lt_prog_compiler_wl='-Wl,'
9188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9189 # not for PA HP-UX.
9190 case $host_cpu in
9191 hppa*64*|ia64*)
9192 # +Z the default
9195 lt_prog_compiler_pic='+Z'
9197 esac
9198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9199 lt_prog_compiler_static='${wl}-a ${wl}archive'
9202 irix5* | irix6* | nonstopux*)
9203 lt_prog_compiler_wl='-Wl,'
9204 # PIC (with -KPIC) is the default.
9205 lt_prog_compiler_static='-non_shared'
9208 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9209 case $cc_basename in
9210 # old Intel for x86_64 which still supported -KPIC.
9211 ecc*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-static'
9216 # icc used to be incompatible with GCC.
9217 # ICC 10 doesn't accept -KPIC any more.
9218 icc* | ifort*)
9219 lt_prog_compiler_wl='-Wl,'
9220 lt_prog_compiler_pic='-fPIC'
9221 lt_prog_compiler_static='-static'
9223 # Lahey Fortran 8.1.
9224 lf95*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='--shared'
9227 lt_prog_compiler_static='--static'
9229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group compilers (*not* the Pentium gcc compiler,
9231 # which looks to be a dead project)
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_pic='-fpic'
9234 lt_prog_compiler_static='-Bstatic'
9236 ccc*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # All Alpha code is PIC.
9239 lt_prog_compiler_static='-non_shared'
9241 xl* | bgxl* | bgf* | mpixl*)
9242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-qpic'
9245 lt_prog_compiler_static='-qstaticlink'
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ F* | *Sun*Fortran*)
9250 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9251 lt_prog_compiler_pic='-KPIC'
9252 lt_prog_compiler_static='-Bstatic'
9253 lt_prog_compiler_wl=''
9255 *Sun\ C*)
9256 # Sun C 5.9
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9259 lt_prog_compiler_wl='-Wl,'
9261 esac
9263 esac
9266 newsos6)
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-Bstatic'
9271 *nto* | *qnx*)
9272 # QNX uses GNU C++, but need to define -shared option too, otherwise
9273 # it will coredump.
9274 lt_prog_compiler_pic='-fPIC -shared'
9277 osf3* | osf4* | osf5*)
9278 lt_prog_compiler_wl='-Wl,'
9279 # All OSF/1 code is PIC.
9280 lt_prog_compiler_static='-non_shared'
9283 rdos*)
9284 lt_prog_compiler_static='-non_shared'
9287 solaris*)
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 case $cc_basename in
9291 f77* | f90* | f95*)
9292 lt_prog_compiler_wl='-Qoption ld ';;
9294 lt_prog_compiler_wl='-Wl,';;
9295 esac
9298 sunos4*)
9299 lt_prog_compiler_wl='-Qoption ld '
9300 lt_prog_compiler_pic='-PIC'
9301 lt_prog_compiler_static='-Bstatic'
9304 sysv4 | sysv4.2uw2* | sysv4.3*)
9305 lt_prog_compiler_wl='-Wl,'
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9310 sysv4*MP*)
9311 if test -d /usr/nec ;then
9312 lt_prog_compiler_pic='-Kconform_pic'
9313 lt_prog_compiler_static='-Bstatic'
9317 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9318 lt_prog_compiler_wl='-Wl,'
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9323 unicos*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_can_build_shared=no
9328 uts4*)
9329 lt_prog_compiler_pic='-pic'
9330 lt_prog_compiler_static='-Bstatic'
9334 lt_prog_compiler_can_build_shared=no
9336 esac
9339 case $host_os in
9340 # For platforms which do not support PIC, -DPIC is meaningless:
9341 *djgpp*)
9342 lt_prog_compiler_pic=
9345 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9347 esac
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9349 $as_echo "$lt_prog_compiler_pic" >&6; }
9357 # Check to make sure the PIC flag actually works.
9359 if test -n "$lt_prog_compiler_pic"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9361 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9362 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 lt_cv_prog_compiler_pic_works=no
9366 ac_outfile=conftest.$ac_objext
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9369 # Insert the option either (1) after the last *FLAGS variable, or
9370 # (2) before a word containing "conftest.", or (3) at the end.
9371 # Note that $ac_compile itself does not contain backslashes and begins
9372 # with a dollar sign (not a hyphen), so the echo should work correctly.
9373 # The option is referenced via a variable to avoid confusing sed.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>conftest.err)
9380 ac_status=$?
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s "$ac_outfile"; then
9384 # The compiler can only warn and ignore the option if not recognized
9385 # So say no if there are warnings other than the usual output.
9386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_pic_works=yes
9392 $RM conftest*
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9398 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9399 case $lt_prog_compiler_pic in
9400 "" | " "*) ;;
9401 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9402 esac
9403 else
9404 lt_prog_compiler_pic=
9405 lt_prog_compiler_can_build_shared=no
9416 # Check to make sure the static flag actually works.
9418 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9421 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_prog_compiler_static_works=no
9425 save_LDFLAGS="$LDFLAGS"
9426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err; then
9432 # Append any errors to the config.log.
9433 cat conftest.err 1>&5
9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_static_works=yes
9439 else
9440 lt_cv_prog_compiler_static_works=yes
9443 $RM -r conftest*
9444 LDFLAGS="$save_LDFLAGS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9448 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9450 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9452 else
9453 lt_prog_compiler_static=
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9464 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 lt_cv_prog_compiler_c_o=no
9468 $RM -r conftest 2>/dev/null
9469 mkdir conftest
9470 cd conftest
9471 mkdir out
9472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9474 lt_compiler_flag="-o out/conftest2.$ac_objext"
9475 # Insert the option either (1) after the last *FLAGS variable, or
9476 # (2) before a word containing "conftest.", or (3) at the end.
9477 # Note that $ac_compile itself does not contain backslashes and begins
9478 # with a dollar sign (not a hyphen), so the echo should work correctly.
9479 lt_compile=`echo "$ac_compile" | $SED \
9480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9482 -e 's:$: $lt_compiler_flag:'`
9483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9484 (eval "$lt_compile" 2>out/conftest.err)
9485 ac_status=$?
9486 cat out/conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9489 then
9490 # The compiler can only warn and ignore the option if not recognized
9491 # So say no if there are warnings
9492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9495 lt_cv_prog_compiler_c_o=yes
9498 chmod u+w . 2>&5
9499 $RM conftest*
9500 # SGI C++ compiler will create directory out/ii_files/ for
9501 # template instantiation
9502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9503 $RM out/* && rmdir out
9504 cd ..
9505 $RM -r conftest
9506 $RM conftest*
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9519 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 lt_cv_prog_compiler_c_o=no
9523 $RM -r conftest 2>/dev/null
9524 mkdir conftest
9525 cd conftest
9526 mkdir out
9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9529 lt_compiler_flag="-o out/conftest2.$ac_objext"
9530 # Insert the option either (1) after the last *FLAGS variable, or
9531 # (2) before a word containing "conftest.", or (3) at the end.
9532 # Note that $ac_compile itself does not contain backslashes and begins
9533 # with a dollar sign (not a hyphen), so the echo should work correctly.
9534 lt_compile=`echo "$ac_compile" | $SED \
9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9537 -e 's:$: $lt_compiler_flag:'`
9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9539 (eval "$lt_compile" 2>out/conftest.err)
9540 ac_status=$?
9541 cat out/conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9544 then
9545 # The compiler can only warn and ignore the option if not recognized
9546 # So say no if there are warnings
9547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9550 lt_cv_prog_compiler_c_o=yes
9553 chmod u+w . 2>&5
9554 $RM conftest*
9555 # SGI C++ compiler will create directory out/ii_files/ for
9556 # template instantiation
9557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9558 $RM out/* && rmdir out
9559 cd ..
9560 $RM -r conftest
9561 $RM conftest*
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9570 hard_links="nottested"
9571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9572 # do not overwrite the value of need_locks provided by the user
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9574 $as_echo_n "checking if we can lock with hard links... " >&6; }
9575 hard_links=yes
9576 $RM conftest*
9577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9578 touch conftest.a
9579 ln conftest.a conftest.b 2>&5 || hard_links=no
9580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9582 $as_echo "$hard_links" >&6; }
9583 if test "$hard_links" = no; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9586 need_locks=warn
9588 else
9589 need_locks=no
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9600 runpath_var=
9601 allow_undefined_flag=
9602 always_export_symbols=no
9603 archive_cmds=
9604 archive_expsym_cmds=
9605 compiler_needs_object=no
9606 enable_shared_with_static_runtimes=no
9607 export_dynamic_flag_spec=
9608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9609 hardcode_automatic=no
9610 hardcode_direct=no
9611 hardcode_direct_absolute=no
9612 hardcode_libdir_flag_spec=
9613 hardcode_libdir_flag_spec_ld=
9614 hardcode_libdir_separator=
9615 hardcode_minus_L=no
9616 hardcode_shlibpath_var=unsupported
9617 inherit_rpath=no
9618 link_all_deplibs=unknown
9619 module_cmds=
9620 module_expsym_cmds=
9621 old_archive_from_new_cmds=
9622 old_archive_from_expsyms_cmds=
9623 thread_safe_flag_spec=
9624 whole_archive_flag_spec=
9625 # include_expsyms should be a list of space-separated symbols to be *always*
9626 # included in the symbol list
9627 include_expsyms=
9628 # exclude_expsyms can be an extended regexp of symbols to exclude
9629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9631 # as well as any symbol that contains `d'.
9632 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9634 # platforms (ab)use it in PIC code, but their linkers get confused if
9635 # the symbol is explicitly referenced. Since portable code cannot
9636 # rely on this symbol name, it's probably fine to never include it in
9637 # preloaded symbol tables.
9638 # Exclude shared library initialization/finalization symbols.
9639 extract_expsyms_cmds=
9641 case $host_os in
9642 cygwin* | mingw* | pw32* | cegcc*)
9643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9644 # When not using gcc, we currently assume that we are using
9645 # Microsoft Visual C++.
9646 if test "$GCC" != yes; then
9647 with_gnu_ld=no
9650 interix*)
9651 # we just hope/assume this is gcc and not c89 (= MSVC++)
9652 with_gnu_ld=yes
9654 openbsd*)
9655 with_gnu_ld=no
9657 esac
9659 ld_shlibs=yes
9661 # On some targets, GNU ld is compatible enough with the native linker
9662 # that we're better off using the native interface for both.
9663 lt_use_gnu_ld_interface=no
9664 if test "$with_gnu_ld" = yes; then
9665 case $host_os in
9666 aix*)
9667 # The AIX port of GNU ld has always aspired to compatibility
9668 # with the native linker. However, as the warning in the GNU ld
9669 # block says, versions before 2.19.5* couldn't really create working
9670 # shared libraries, regardless of the interface used.
9671 case `$LD -v 2>&1` in
9672 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9673 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9674 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9676 lt_use_gnu_ld_interface=yes
9678 esac
9681 lt_use_gnu_ld_interface=yes
9683 esac
9686 if test "$lt_use_gnu_ld_interface" = yes; then
9687 # If archive_cmds runs LD, not CC, wlarc should be empty
9688 wlarc='${wl}'
9690 # Set some defaults for GNU ld with shared library support. These
9691 # are reset later if shared libraries are not supported. Putting them
9692 # here allows them to be overridden if necessary.
9693 runpath_var=LD_RUN_PATH
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 export_dynamic_flag_spec='${wl}--export-dynamic'
9696 # ancient GNU ld didn't support --whole-archive et. al.
9697 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9698 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9699 else
9700 whole_archive_flag_spec=
9702 supports_anon_versioning=no
9703 case `$LD -v 2>&1` in
9704 *GNU\ gold*) supports_anon_versioning=yes ;;
9705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9708 *\ 2.11.*) ;; # other 2.11 versions
9709 *) supports_anon_versioning=yes ;;
9710 esac
9712 # See if GNU ld supports shared libraries.
9713 case $host_os in
9714 aix[3-9]*)
9715 # On AIX/PPC, the GNU linker is very broken
9716 if test "$host_cpu" != ia64; then
9717 ld_shlibs=no
9718 cat <<_LT_EOF 1>&2
9720 *** Warning: the GNU linker, at least up to release 2.19, is reported
9721 *** to be unable to reliably create shared libraries on AIX.
9722 *** Therefore, libtool is disabling shared libraries support. If you
9723 *** really care for shared libraries, you may want to install binutils
9724 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9725 *** You will then need to restart the configuration process.
9727 _LT_EOF
9731 amigaos*)
9732 case $host_cpu in
9733 powerpc)
9734 # see comment about AmigaOS4 .so support
9735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 archive_expsym_cmds=''
9738 m68k)
9739 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)'
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_minus_L=yes
9743 esac
9746 beos*)
9747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748 allow_undefined_flag=unsupported
9749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9750 # support --undefined. This deserves some investigation. FIXME
9751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 else
9753 ld_shlibs=no
9757 cygwin* | mingw* | pw32* | cegcc*)
9758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9759 # as there is no search path for DLLs.
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 export_dynamic_flag_spec='${wl}--export-all-symbols'
9762 allow_undefined_flag=unsupported
9763 always_export_symbols=no
9764 enable_shared_with_static_runtimes=yes
9765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769 # If the export-symbols file already is a .def file (1st line
9770 # is EXPORTS), use it as is; otherwise, prepend...
9771 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772 cp $export_symbols $output_objdir/$soname.def;
9773 else
9774 echo EXPORTS > $output_objdir/$soname.def;
9775 cat $export_symbols >> $output_objdir/$soname.def;
9777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9778 else
9779 ld_shlibs=no
9783 haiku*)
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 link_all_deplibs=yes
9788 interix[3-9]*)
9789 hardcode_direct=no
9790 hardcode_shlibpath_var=no
9791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9792 export_dynamic_flag_spec='${wl}-E'
9793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9794 # Instead, shared libraries are loaded at an image base (0x10000000 by
9795 # default) and relocated if they conflict, which is a slow very memory
9796 # consuming and fragmenting process. To avoid this, we pick a random,
9797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9800 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'
9803 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9804 tmp_diet=no
9805 if test "$host_os" = linux-dietlibc; then
9806 case $cc_basename in
9807 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9808 esac
9810 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9811 && test "$tmp_diet" = no
9812 then
9813 tmp_addflag=
9814 tmp_sharedflag='-shared'
9815 case $cc_basename,$host_cpu in
9816 pgcc*) # Portland Group C compiler
9817 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'
9818 tmp_addflag=' $pic_flag'
9820 pgf77* | pgf90* | pgf95* | pgfortran*)
9821 # Portland Group f77 and f90 compilers
9822 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'
9823 tmp_addflag=' $pic_flag -Mnomain' ;;
9824 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9825 tmp_addflag=' -i_dynamic' ;;
9826 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9827 tmp_addflag=' -i_dynamic -nofor_main' ;;
9828 ifc* | ifort*) # Intel Fortran compiler
9829 tmp_addflag=' -nofor_main' ;;
9830 lf95*) # Lahey Fortran 8.1
9831 whole_archive_flag_spec=
9832 tmp_sharedflag='--shared' ;;
9833 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9834 tmp_sharedflag='-qmkshrobj'
9835 tmp_addflag= ;;
9836 nvcc*) # Cuda Compiler Driver 2.2
9837 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'
9838 compiler_needs_object=yes
9840 esac
9841 case `$CC -V 2>&1 | sed 5q` in
9842 *Sun\ C*) # Sun C 5.9
9843 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'
9844 compiler_needs_object=yes
9845 tmp_sharedflag='-G' ;;
9846 *Sun\ F*) # Sun Fortran 8.3
9847 tmp_sharedflag='-G' ;;
9848 esac
9849 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 if test "x$supports_anon_versioning" = xyes; then
9852 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9854 echo "local: *; };" >> $output_objdir/$libname.ver~
9855 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9858 case $cc_basename in
9859 xlf* | bgf* | bgxlf* | mpixlf*)
9860 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9861 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9862 hardcode_libdir_flag_spec=
9863 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9864 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9865 if test "x$supports_anon_versioning" = xyes; then
9866 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868 echo "local: *; };" >> $output_objdir/$libname.ver~
9869 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9872 esac
9873 else
9874 ld_shlibs=no
9878 netbsd*)
9879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9881 wlarc=
9882 else
9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9888 solaris*)
9889 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9890 ld_shlibs=no
9891 cat <<_LT_EOF 1>&2
9893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9894 *** create shared libraries on Solaris systems. Therefore, libtool
9895 *** is disabling shared libraries support. We urge you to upgrade GNU
9896 *** binutils to release 2.9.1 or newer. Another option is to modify
9897 *** your PATH or compiler configuration so that the native linker is
9898 *** used, and then restart.
9900 _LT_EOF
9901 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904 else
9905 ld_shlibs=no
9909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9910 case `$LD -v 2>&1` in
9911 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9912 ld_shlibs=no
9913 cat <<_LT_EOF 1>&2
9915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9916 *** reliably create shared libraries on SCO systems. Therefore, libtool
9917 *** is disabling shared libraries support. We urge you to upgrade GNU
9918 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9919 *** your PATH or compiler configuration so that the native linker is
9920 *** used, and then restart.
9922 _LT_EOF
9925 # For security reasons, it is highly recommended that you always
9926 # use absolute paths for naming shared libraries, and exclude the
9927 # DT_RUNPATH tag from executables and libraries. But doing so
9928 # requires that you compile everything twice, which is a pain.
9929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9933 else
9934 ld_shlibs=no
9937 esac
9940 sunos4*)
9941 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 wlarc=
9943 hardcode_direct=yes
9944 hardcode_shlibpath_var=no
9948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 else
9952 ld_shlibs=no
9955 esac
9957 if test "$ld_shlibs" = no; then
9958 runpath_var=
9959 hardcode_libdir_flag_spec=
9960 export_dynamic_flag_spec=
9961 whole_archive_flag_spec=
9963 else
9964 # PORTME fill in a description of your system's linker (not GNU ld)
9965 case $host_os in
9966 aix3*)
9967 allow_undefined_flag=unsupported
9968 always_export_symbols=yes
9969 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'
9970 # Note: this linker hardcodes the directories in LIBPATH if there
9971 # are no directories specified by -L.
9972 hardcode_minus_L=yes
9973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9974 # Neither direct hardcoding nor static linking is supported with a
9975 # broken collect2.
9976 hardcode_direct=unsupported
9980 aix[4-9]*)
9981 if test "$host_cpu" = ia64; then
9982 # On IA64, the linker does run time linking by default, so we don't
9983 # have to do anything special.
9984 aix_use_runtimelinking=no
9985 exp_sym_flag='-Bexport'
9986 no_entry_flag=""
9987 else
9988 # If we're using GNU nm, then we don't want the "-C" option.
9989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9990 # Also, AIX nm treats weak defined symbols like other global
9991 # defined symbols, whereas GNU nm marks them as "W".
9992 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9993 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'
9994 else
9995 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'
9997 aix_use_runtimelinking=no
9999 # Test if we are trying to use run time linking or normal
10000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10001 # need to do runtime linking.
10002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10003 for ld_flag in $LDFLAGS; do
10004 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10005 aix_use_runtimelinking=yes
10006 break
10008 done
10010 esac
10012 exp_sym_flag='-bexport'
10013 no_entry_flag='-bnoentry'
10016 # When large executables or shared objects are built, AIX ld can
10017 # have problems creating the table of contents. If linking a library
10018 # or program results in "error TOC overflow" add -mminimal-toc to
10019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10022 archive_cmds=''
10023 hardcode_direct=yes
10024 hardcode_direct_absolute=yes
10025 hardcode_libdir_separator=':'
10026 link_all_deplibs=yes
10027 file_list_spec='${wl}-f,'
10029 if test "$GCC" = yes; then
10030 case $host_os in aix4.[012]|aix4.[012].*)
10031 # We only want to do this on AIX 4.2 and lower, the check
10032 # below for broken collect2 doesn't work under 4.3+
10033 collect2name=`${CC} -print-prog-name=collect2`
10034 if test -f "$collect2name" &&
10035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10036 then
10037 # We have reworked collect2
10039 else
10040 # We have old collect2
10041 hardcode_direct=unsupported
10042 # It fails to find uninstalled libraries when the uninstalled
10043 # path is not listed in the libpath. Setting hardcode_minus_L
10044 # to unsupported forces relinking
10045 hardcode_minus_L=yes
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_libdir_separator=
10050 esac
10051 shared_flag='-shared'
10052 if test "$aix_use_runtimelinking" = yes; then
10053 shared_flag="$shared_flag "'${wl}-G'
10055 else
10056 # not using gcc
10057 if test "$host_cpu" = ia64; then
10058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10059 # chokes on -Wl,-G. The following line is correct:
10060 shared_flag='-G'
10061 else
10062 if test "$aix_use_runtimelinking" = yes; then
10063 shared_flag='${wl}-G'
10064 else
10065 shared_flag='${wl}-bM:SRE'
10070 export_dynamic_flag_spec='${wl}-bexpall'
10071 # It seems that -bexpall does not export symbols beginning with
10072 # underscore (_), so it is better to generate a list of symbols to export.
10073 always_export_symbols=yes
10074 if test "$aix_use_runtimelinking" = yes; then
10075 # Warning - without using the other runtime loading flags (-brtl),
10076 # -berok will link without error, but may produce a broken library.
10077 allow_undefined_flag='-berok'
10078 # Determine the default libpath from the value encoded in an
10079 # empty executable.
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10084 main ()
10088 return 0;
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10093 lt_aix_libpath_sed='
10094 /Import File Strings/,/^$/ {
10095 /^0/ {
10096 s/^0 *\(.*\)$/\1/
10100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 # Check for a 64-bit object if we didn't find anything.
10102 if test -z "$aix_libpath"; then
10103 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10111 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"
10112 else
10113 if test "$host_cpu" = ia64; then
10114 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10115 allow_undefined_flag="-z nodefs"
10116 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"
10117 else
10118 # Determine the default libpath from the value encoded in an
10119 # empty executable.
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10124 main ()
10128 return 0;
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10133 lt_aix_libpath_sed='
10134 /Import File Strings/,/^$/ {
10135 /^0/ {
10136 s/^0 *\(.*\)$/\1/
10140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10141 # Check for a 64-bit object if we didn't find anything.
10142 if test -z "$aix_libpath"; then
10143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10151 # Warning - without using the other run time loading flags,
10152 # -berok will link without error, but may produce a broken library.
10153 no_undefined_flag=' ${wl}-bernotok'
10154 allow_undefined_flag=' ${wl}-berok'
10155 if test "$with_gnu_ld" = yes; then
10156 # We only use this code for GNU lds that support --whole-archive.
10157 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10158 else
10159 # Exported symbols can be pulled into shared objects from archives
10160 whole_archive_flag_spec='$convenience'
10162 archive_cmds_need_lc=yes
10163 # This is similar to how AIX traditionally builds its shared libraries.
10164 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'
10169 amigaos*)
10170 case $host_cpu in
10171 powerpc)
10172 # see comment about AmigaOS4 .so support
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds=''
10176 m68k)
10177 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)'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10181 esac
10184 bsdi[45]*)
10185 export_dynamic_flag_spec=-rdynamic
10188 cygwin* | mingw* | pw32* | cegcc*)
10189 # When not using gcc, we currently assume that we are using
10190 # Microsoft Visual C++.
10191 # hardcode_libdir_flag_spec is actually meaningless, as there is
10192 # no search path for DLLs.
10193 hardcode_libdir_flag_spec=' '
10194 allow_undefined_flag=unsupported
10195 # Tell ltmain to make .lib files, not .a files.
10196 libext=lib
10197 # Tell ltmain to make .dll files, not .so files.
10198 shrext_cmds=".dll"
10199 # FIXME: Setting linknames here is a bad hack.
10200 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10201 # The linker will automatically build a .lib file if we build a DLL.
10202 old_archive_from_new_cmds='true'
10203 # FIXME: Should let the user specify the lib program.
10204 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10205 fix_srcfile_path='`cygpath -w "$srcfile"`'
10206 enable_shared_with_static_runtimes=yes
10209 darwin* | rhapsody*)
10212 archive_cmds_need_lc=no
10213 hardcode_direct=no
10214 hardcode_automatic=yes
10215 hardcode_shlibpath_var=unsupported
10216 if test "$lt_cv_ld_force_load" = "yes"; then
10217 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\"`'
10218 else
10219 whole_archive_flag_spec=''
10221 link_all_deplibs=yes
10222 allow_undefined_flag="$_lt_dar_allow_undefined"
10223 case $cc_basename in
10224 ifort*) _lt_dar_can_shared=yes ;;
10225 *) _lt_dar_can_shared=$GCC ;;
10226 esac
10227 if test "$_lt_dar_can_shared" = "yes"; then
10228 output_verbose_link_cmd=func_echo_all
10229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10231 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}"
10232 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}"
10234 else
10235 ld_shlibs=no
10240 dgux*)
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_shlibpath_var=no
10246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10247 # support. Future versions do this automatically, but an explicit c++rt0.o
10248 # does not break anything, and helps significantly (at the cost of a little
10249 # extra space).
10250 freebsd2.2*)
10251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10252 hardcode_libdir_flag_spec='-R$libdir'
10253 hardcode_direct=yes
10254 hardcode_shlibpath_var=no
10257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10258 freebsd2.*)
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10266 freebsd* | dragonfly*)
10267 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10268 hardcode_libdir_flag_spec='-R$libdir'
10269 hardcode_direct=yes
10270 hardcode_shlibpath_var=no
10273 hpux9*)
10274 if test "$GCC" = yes; then
10275 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'
10276 else
10277 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'
10279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 hardcode_direct=yes
10283 # hardcode_minus_L: Not really in the search PATH,
10284 # but as the default location of the library.
10285 hardcode_minus_L=yes
10286 export_dynamic_flag_spec='${wl}-E'
10289 hpux10*)
10290 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10291 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10292 else
10293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10295 if test "$with_gnu_ld" = no; then
10296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10297 hardcode_libdir_flag_spec_ld='+b $libdir'
10298 hardcode_libdir_separator=:
10299 hardcode_direct=yes
10300 hardcode_direct_absolute=yes
10301 export_dynamic_flag_spec='${wl}-E'
10302 # hardcode_minus_L: Not really in the search PATH,
10303 # but as the default location of the library.
10304 hardcode_minus_L=yes
10308 hpux11*)
10309 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10310 case $host_cpu in
10311 hppa*64*)
10312 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 ia64*)
10315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10320 esac
10321 else
10322 case $host_cpu in
10323 hppa*64*)
10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 ia64*)
10327 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10331 # Older versions of the 11.00 compiler do not understand -b yet
10332 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10334 $as_echo_n "checking if $CC understands -b... " >&6; }
10335 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_prog_compiler__b=no
10339 save_LDFLAGS="$LDFLAGS"
10340 LDFLAGS="$LDFLAGS -b"
10341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10343 # The linker can only warn and ignore the option if not recognized
10344 # So say no if there are warnings
10345 if test -s conftest.err; then
10346 # Append any errors to the config.log.
10347 cat conftest.err 1>&5
10348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10350 if diff conftest.exp conftest.er2 >/dev/null; then
10351 lt_cv_prog_compiler__b=yes
10353 else
10354 lt_cv_prog_compiler__b=yes
10357 $RM -r conftest*
10358 LDFLAGS="$save_LDFLAGS"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10362 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10364 if test x"$lt_cv_prog_compiler__b" = xyes; then
10365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10366 else
10367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10371 esac
10373 if test "$with_gnu_ld" = no; then
10374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10375 hardcode_libdir_separator=:
10377 case $host_cpu in
10378 hppa*64*|ia64*)
10379 hardcode_direct=no
10380 hardcode_shlibpath_var=no
10383 hardcode_direct=yes
10384 hardcode_direct_absolute=yes
10385 export_dynamic_flag_spec='${wl}-E'
10387 # hardcode_minus_L: Not really in the search PATH,
10388 # but as the default location of the library.
10389 hardcode_minus_L=yes
10391 esac
10395 irix5* | irix6* | nonstopux*)
10396 if test "$GCC" = yes; then
10397 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'
10398 # Try to use the -exported_symbol ld option, if it does not
10399 # work, assume that -exports_file does not work either and
10400 # implicitly export all symbols.
10401 save_LDFLAGS="$LDFLAGS"
10402 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int foo(void) {}
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"; then :
10408 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'
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS="$save_LDFLAGS"
10414 else
10415 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'
10416 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'
10418 archive_cmds_need_lc='no'
10419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 hardcode_libdir_separator=:
10421 inherit_rpath=yes
10422 link_all_deplibs=yes
10425 netbsd*)
10426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10428 else
10429 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10431 hardcode_libdir_flag_spec='-R$libdir'
10432 hardcode_direct=yes
10433 hardcode_shlibpath_var=no
10436 newsos6)
10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_direct=yes
10439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10440 hardcode_libdir_separator=:
10441 hardcode_shlibpath_var=no
10444 *nto* | *qnx*)
10447 openbsd*)
10448 if test -f /usr/libexec/ld.so; then
10449 hardcode_direct=yes
10450 hardcode_shlibpath_var=no
10451 hardcode_direct_absolute=yes
10452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10456 export_dynamic_flag_spec='${wl}-E'
10457 else
10458 case $host_os in
10459 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_libdir_flag_spec='-R$libdir'
10464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10467 esac
10469 else
10470 ld_shlibs=no
10474 os2*)
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_minus_L=yes
10477 allow_undefined_flag=unsupported
10478 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'
10479 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10482 osf3*)
10483 if test "$GCC" = yes; then
10484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10485 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'
10486 else
10487 allow_undefined_flag=' -expect_unresolved \*'
10488 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'
10490 archive_cmds_need_lc='no'
10491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10492 hardcode_libdir_separator=:
10495 osf4* | osf5*) # as osf3* with the addition of -msym flag
10496 if test "$GCC" = yes; then
10497 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10498 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'
10499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 else
10501 allow_undefined_flag=' -expect_unresolved \*'
10502 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'
10503 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~
10504 $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'
10506 # Both c and cxx compiler support -rpath directly
10507 hardcode_libdir_flag_spec='-rpath $libdir'
10509 archive_cmds_need_lc='no'
10510 hardcode_libdir_separator=:
10513 solaris*)
10514 no_undefined_flag=' -z defs'
10515 if test "$GCC" = yes; then
10516 wlarc='${wl}'
10517 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10519 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10520 else
10521 case `$CC -V 2>&1` in
10522 *"Compilers 5.0"*)
10523 wlarc=''
10524 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10529 wlarc='${wl}'
10530 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10534 esac
10536 hardcode_libdir_flag_spec='-R$libdir'
10537 hardcode_shlibpath_var=no
10538 case $host_os in
10539 solaris2.[0-5] | solaris2.[0-5].*) ;;
10541 # The compiler driver will combine and reorder linker options,
10542 # but understands `-z linker_flag'. GCC discards it without `$wl',
10543 # but is careful enough not to reorder.
10544 # Supported since Solaris 2.6 (maybe 2.5.1?)
10545 if test "$GCC" = yes; then
10546 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10547 else
10548 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10551 esac
10552 link_all_deplibs=yes
10555 sunos4*)
10556 if test "x$host_vendor" = xsequent; then
10557 # Use $CC to link under sequent, because it throws in some extra .o
10558 # files that make .init and .fini sections work.
10559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10560 else
10561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_libdir_flag_spec='-L$libdir'
10564 hardcode_direct=yes
10565 hardcode_minus_L=yes
10566 hardcode_shlibpath_var=no
10569 sysv4)
10570 case $host_vendor in
10571 sni)
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_direct=yes # is this really true???
10575 siemens)
10576 ## LD is ld it makes a PLAMLIB
10577 ## CC just makes a GrossModule.
10578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10579 reload_cmds='$CC -r -o $output$reload_objs'
10580 hardcode_direct=no
10582 motorola)
10583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10586 esac
10587 runpath_var='LD_RUN_PATH'
10588 hardcode_shlibpath_var=no
10591 sysv4.3*)
10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_shlibpath_var=no
10594 export_dynamic_flag_spec='-Bexport'
10597 sysv4*MP*)
10598 if test -d /usr/nec; then
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_shlibpath_var=no
10601 runpath_var=LD_RUN_PATH
10602 hardcode_runpath_var=yes
10603 ld_shlibs=yes
10607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10608 no_undefined_flag='${wl}-z,text'
10609 archive_cmds_need_lc=no
10610 hardcode_shlibpath_var=no
10611 runpath_var='LD_RUN_PATH'
10613 if test "$GCC" = yes; then
10614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 else
10617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 sysv5* | sco3.2v5* | sco5v6*)
10623 # Note: We can NOT use -z defs as we might desire, because we do not
10624 # link with -lc, and that would cause any symbols used from libc to
10625 # always be unresolved, which means just about no library would
10626 # ever link correctly. If we're not using GNU ld we use -z text
10627 # though, which does catch some bad symbols but isn't as heavy-handed
10628 # as -z defs.
10629 no_undefined_flag='${wl}-z,text'
10630 allow_undefined_flag='${wl}-z,nodefs'
10631 archive_cmds_need_lc=no
10632 hardcode_shlibpath_var=no
10633 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10634 hardcode_libdir_separator=':'
10635 link_all_deplibs=yes
10636 export_dynamic_flag_spec='${wl}-Bexport'
10637 runpath_var='LD_RUN_PATH'
10639 if test "$GCC" = yes; then
10640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 uts4*)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_shlibpath_var=no
10655 ld_shlibs=no
10657 esac
10659 if test x$host_vendor = xsni; then
10660 case $host in
10661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10662 export_dynamic_flag_spec='${wl}-Blargedynsym'
10664 esac
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10669 $as_echo "$ld_shlibs" >&6; }
10670 test "$ld_shlibs" = no && can_build_shared=no
10672 with_gnu_ld=$with_gnu_ld
10689 # Do we need to explicitly link libc?
10691 case "x$archive_cmds_need_lc" in
10692 x|xyes)
10693 # Assume -lc should be added
10694 archive_cmds_need_lc=yes
10696 if test "$enable_shared" = yes && test "$GCC" = yes; then
10697 case $archive_cmds in
10698 *'~'*)
10699 # FIXME: we may have to deal with multi-command sequences.
10701 '$CC '*)
10702 # Test whether the compiler implicitly links with -lc since on some
10703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10704 # to ld, don't add -lc before -lgcc.
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10706 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10707 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 $RM conftest*
10711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10714 (eval $ac_compile) 2>&5
10715 ac_status=$?
10716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717 test $ac_status = 0; } 2>conftest.err; then
10718 soname=conftest
10719 lib=conftest
10720 libobjs=conftest.$ac_objext
10721 deplibs=
10722 wl=$lt_prog_compiler_wl
10723 pic_flag=$lt_prog_compiler_pic
10724 compiler_flags=-v
10725 linker_flags=-v
10726 verstring=
10727 output_objdir=.
10728 libname=conftest
10729 lt_save_allow_undefined_flag=$allow_undefined_flag
10730 allow_undefined_flag=
10731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10732 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10733 ac_status=$?
10734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735 test $ac_status = 0; }
10736 then
10737 lt_cv_archive_cmds_need_lc=no
10738 else
10739 lt_cv_archive_cmds_need_lc=yes
10741 allow_undefined_flag=$lt_save_allow_undefined_flag
10742 else
10743 cat conftest.err 1>&5
10745 $RM conftest*
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10749 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10750 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10752 esac
10755 esac
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10916 if test "$GCC" = yes; then
10917 case $host_os in
10918 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10919 *) lt_awk_arg="/^libraries:/" ;;
10920 esac
10921 case $host_os in
10922 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10923 *) lt_sed_strip_eq="s,=/,/,g" ;;
10924 esac
10925 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10926 case $lt_search_path_spec in
10927 *\;*)
10928 # if the path contains ";" then we assume it to be the separator
10929 # otherwise default to the standard path separator (i.e. ":") - it is
10930 # assumed that no part of a normal pathname contains ";" but that should
10931 # okay in the real world where ";" in dirpaths is itself problematic.
10932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10937 esac
10938 # Ok, now we have the path, separated by spaces, we can step through it
10939 # and add multilib dir if necessary.
10940 lt_tmp_lt_search_path_spec=
10941 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10942 for lt_sys_path in $lt_search_path_spec; do
10943 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10945 else
10946 test -d "$lt_sys_path" && \
10947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10949 done
10950 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10951 BEGIN {RS=" "; FS="/|\n";} {
10952 lt_foo="";
10953 lt_count=0;
10954 for (lt_i = NF; lt_i > 0; lt_i--) {
10955 if ($lt_i != "" && $lt_i != ".") {
10956 if ($lt_i == "..") {
10957 lt_count++;
10958 } else {
10959 if (lt_count == 0) {
10960 lt_foo="/" $lt_i lt_foo;
10961 } else {
10962 lt_count--;
10967 if (lt_foo != "") { lt_freq[lt_foo]++; }
10968 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10970 # AWK program above erroneously prepends '/' to C:/dos/paths
10971 # for these hosts.
10972 case $host_os in
10973 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10974 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10975 esac
10976 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10977 else
10978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10980 library_names_spec=
10981 libname_spec='lib$name'
10982 soname_spec=
10983 shrext_cmds=".so"
10984 postinstall_cmds=
10985 postuninstall_cmds=
10986 finish_cmds=
10987 finish_eval=
10988 shlibpath_var=
10989 shlibpath_overrides_runpath=unknown
10990 version_type=none
10991 dynamic_linker="$host_os ld.so"
10992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10993 need_lib_prefix=unknown
10994 hardcode_into_libs=no
10996 # when you set need_version to no, make sure it does not cause -set_version
10997 # flags to be left without arguments
10998 need_version=unknown
11000 case $host_os in
11001 aix3*)
11002 version_type=linux
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11004 shlibpath_var=LIBPATH
11006 # AIX 3 has no versioning support, so we append a major version to the name.
11007 soname_spec='${libname}${release}${shared_ext}$major'
11010 aix[4-9]*)
11011 version_type=linux
11012 need_lib_prefix=no
11013 need_version=no
11014 hardcode_into_libs=yes
11015 if test "$host_cpu" = ia64; then
11016 # AIX 5 supports IA64
11017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 else
11020 # With GCC up to 2.95.x, collect2 would create an import file
11021 # for dependence libraries. The import file would start with
11022 # the line `#! .'. This would cause the generated library to
11023 # depend on `.', always an invalid library. This was fixed in
11024 # development snapshots of GCC prior to 3.0.
11025 case $host_os in
11026 aix4 | aix4.[01] | aix4.[01].*)
11027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11028 echo ' yes '
11029 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11031 else
11032 can_build_shared=no
11035 esac
11036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11037 # soname into executable. Probably we can add versioning support to
11038 # collect2, so additional links can be useful in future.
11039 if test "$aix_use_runtimelinking" = yes; then
11040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11041 # instead of lib<name>.a to let people know that these are not
11042 # typical AIX shared libraries.
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 else
11045 # We preserve .a as extension for shared libraries through AIX4.2
11046 # and later when we are not doing run time linking.
11047 library_names_spec='${libname}${release}.a $libname.a'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LIBPATH
11054 amigaos*)
11055 case $host_cpu in
11056 powerpc)
11057 # Since July 2007 AmigaOS4 officially supports .so libraries.
11058 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 m68k)
11062 library_names_spec='$libname.ixlibrary $libname.a'
11063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11064 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'
11066 esac
11069 beos*)
11070 library_names_spec='${libname}${shared_ext}'
11071 dynamic_linker="$host_os ld.so"
11072 shlibpath_var=LIBRARY_PATH
11075 bsdi[45]*)
11076 version_type=linux
11077 need_version=no
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11084 # the default ld.so.conf also contains /usr/contrib/lib and
11085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11086 # libtool to hard-code these into programs
11089 cygwin* | mingw* | pw32* | cegcc*)
11090 version_type=windows
11091 shrext_cmds=".dll"
11092 need_version=no
11093 need_lib_prefix=no
11095 case $GCC,$host_os in
11096 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11097 library_names_spec='$libname.dll.a'
11098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11099 postinstall_cmds='base_file=`basename \${file}`~
11100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11101 dldir=$destdir/`dirname \$dlpath`~
11102 test -d \$dldir || mkdir -p \$dldir~
11103 $install_prog $dir/$dlname \$dldir/$dlname~
11104 chmod a+x \$dldir/$dlname~
11105 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11106 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11109 dlpath=$dir/\$dldll~
11110 $RM \$dlpath'
11111 shlibpath_overrides_runpath=yes
11113 case $host_os in
11114 cygwin*)
11115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11120 mingw* | cegcc*)
11121 # MinGW DLLs use traditional 'lib' prefix
11122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124 pw32*)
11125 # pw32 DLLs use 'pw' prefix rather than 'lib'
11126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11128 esac
11132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11134 esac
11135 dynamic_linker='Win32 ld.exe'
11136 # FIXME: first we should search . and the directory the executable is in
11137 shlibpath_var=PATH
11140 darwin* | rhapsody*)
11141 dynamic_linker="$host_os dyld"
11142 version_type=darwin
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11146 soname_spec='${libname}${release}${major}$shared_ext'
11147 shlibpath_overrides_runpath=yes
11148 shlibpath_var=DYLD_LIBRARY_PATH
11149 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11151 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11155 dgux*)
11156 version_type=linux
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11164 freebsd* | dragonfly*)
11165 # DragonFly does not have aout. When/if they implement a new
11166 # versioning mechanism, adjust this.
11167 if test -x /usr/bin/objformat; then
11168 objformat=`/usr/bin/objformat`
11169 else
11170 case $host_os in
11171 freebsd[23].*) objformat=aout ;;
11172 *) objformat=elf ;;
11173 esac
11175 version_type=freebsd-$objformat
11176 case $version_type in
11177 freebsd-elf*)
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179 need_version=no
11180 need_lib_prefix=no
11182 freebsd-*)
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11184 need_version=yes
11186 esac
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_os in
11189 freebsd2.*)
11190 shlibpath_overrides_runpath=yes
11192 freebsd3.[01]* | freebsdelf3.[01]*)
11193 shlibpath_overrides_runpath=yes
11194 hardcode_into_libs=yes
11196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11198 shlibpath_overrides_runpath=no
11199 hardcode_into_libs=yes
11201 *) # from 4.6 on, and DragonFly
11202 shlibpath_overrides_runpath=yes
11203 hardcode_into_libs=yes
11205 esac
11208 gnu*)
11209 version_type=linux
11210 need_lib_prefix=no
11211 need_version=no
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 hardcode_into_libs=yes
11218 haiku*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 dynamic_linker="$host_os runtime_loader"
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 shlibpath_var=LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11228 hardcode_into_libs=yes
11231 hpux9* | hpux10* | hpux11*)
11232 # Give a soname corresponding to the major version so that dld.sl refuses to
11233 # link against other versions.
11234 version_type=sunos
11235 need_lib_prefix=no
11236 need_version=no
11237 case $host_cpu in
11238 ia64*)
11239 shrext_cmds='.so'
11240 hardcode_into_libs=yes
11241 dynamic_linker="$host_os dld.so"
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 if test "X$HPUX_IA64_MODE" = X32; then
11247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11248 else
11249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11253 hppa*64*)
11254 shrext_cmds='.sl'
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.sl"
11257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11265 shrext_cmds='.sl'
11266 dynamic_linker="$host_os dld.sl"
11267 shlibpath_var=SHLIB_PATH
11268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11272 esac
11273 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11274 postinstall_cmds='chmod 555 $lib'
11275 # or fails outright, so override atomically:
11276 install_override_mode=555
11279 interix[3-9]*)
11280 version_type=linux
11281 need_lib_prefix=no
11282 need_version=no
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=no
11288 hardcode_into_libs=yes
11291 irix5* | irix6* | nonstopux*)
11292 case $host_os in
11293 nonstopux*) version_type=nonstopux ;;
11295 if test "$lt_cv_prog_gnu_ld" = yes; then
11296 version_type=linux
11297 else
11298 version_type=irix
11299 fi ;;
11300 esac
11301 need_lib_prefix=no
11302 need_version=no
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 case $host_os in
11306 irix5* | nonstopux*)
11307 libsuff= shlibsuff=
11310 case $LD in # libtool.m4 will add one of these switches to LD
11311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11312 libsuff= shlibsuff= libmagic=32-bit;;
11313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11314 libsuff=32 shlibsuff=N32 libmagic=N32;;
11315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11317 *) libsuff= shlibsuff= libmagic=never-match;;
11318 esac
11320 esac
11321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11322 shlibpath_overrides_runpath=no
11323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11325 hardcode_into_libs=yes
11328 # No shared lib support for Linux oldld, aout, or coff.
11329 linux*oldld* | linux*aout* | linux*coff*)
11330 dynamic_linker=no
11333 # This must be Linux ELF.
11334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=no
11344 # Some binutils ld are patched to set DT_RUNPATH
11345 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 lt_cv_shlibpath_overrides_runpath=no
11349 save_LDFLAGS=$LDFLAGS
11350 save_libdir=$libdir
11351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11357 main ()
11361 return 0;
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11366 lt_cv_shlibpath_overrides_runpath=yes
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LDFLAGS=$save_LDFLAGS
11372 libdir=$save_libdir
11376 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11378 # This implies no fast_install, which is unacceptable.
11379 # Some rework will be needed to allow for fast_install
11380 # before this can be enabled.
11381 hardcode_into_libs=yes
11383 # Append ld.so.conf contents to the search path
11384 if test -f /etc/ld.so.conf; then
11385 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' ' '`
11386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11389 # We used to test for /lib/ld.so.1 and disable shared libraries on
11390 # powerpc, because MkLinux only supported shared libraries with the
11391 # GNU dynamic linker. Since this was broken with cross compilers,
11392 # most powerpc-linux boxes support dynamic linking these days and
11393 # people can always --disable-shared, the test was removed, and we
11394 # assume the GNU/Linux dynamic linker is in use.
11395 dynamic_linker='GNU/Linux ld.so'
11398 netbsd*)
11399 version_type=sunos
11400 need_lib_prefix=no
11401 need_version=no
11402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11405 dynamic_linker='NetBSD (a.out) ld.so'
11406 else
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 dynamic_linker='NetBSD ld.elf_so'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11416 newsos6)
11417 version_type=linux
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11423 *nto* | *qnx*)
11424 version_type=qnx
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=no
11431 hardcode_into_libs=yes
11432 dynamic_linker='ldqnx.so'
11435 openbsd*)
11436 version_type=sunos
11437 sys_lib_dlsearch_path_spec="/usr/lib"
11438 need_lib_prefix=no
11439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11440 case $host_os in
11441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11442 *) need_version=no ;;
11443 esac
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11448 case $host_os in
11449 openbsd2.[89] | openbsd2.[89].*)
11450 shlibpath_overrides_runpath=no
11453 shlibpath_overrides_runpath=yes
11455 esac
11456 else
11457 shlibpath_overrides_runpath=yes
11461 os2*)
11462 libname_spec='$name'
11463 shrext_cmds=".dll"
11464 need_lib_prefix=no
11465 library_names_spec='$libname${shared_ext} $libname.a'
11466 dynamic_linker='OS/2 ld.exe'
11467 shlibpath_var=LIBPATH
11470 osf3* | osf4* | osf5*)
11471 version_type=osf
11472 need_lib_prefix=no
11473 need_version=no
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11481 rdos*)
11482 dynamic_linker=no
11485 solaris*)
11486 version_type=linux
11487 need_lib_prefix=no
11488 need_version=no
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11494 # ldd complains unless libraries are executable
11495 postinstall_cmds='chmod +x $lib'
11498 sunos4*)
11499 version_type=sunos
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 if test "$with_gnu_ld" = yes; then
11505 need_lib_prefix=no
11507 need_version=yes
11510 sysv4 | sysv4.3*)
11511 version_type=linux
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 case $host_vendor in
11516 sni)
11517 shlibpath_overrides_runpath=no
11518 need_lib_prefix=no
11519 runpath_var=LD_RUN_PATH
11521 siemens)
11522 need_lib_prefix=no
11524 motorola)
11525 need_lib_prefix=no
11526 need_version=no
11527 shlibpath_overrides_runpath=no
11528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11530 esac
11533 sysv4*MP*)
11534 if test -d /usr/nec ;then
11535 version_type=linux
11536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11537 soname_spec='$libname${shared_ext}.$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11543 version_type=freebsd-elf
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 if test "$with_gnu_ld" = yes; then
11552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11553 else
11554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11555 case $host_os in
11556 sco3.2v5*)
11557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11559 esac
11561 sys_lib_dlsearch_path_spec='/usr/lib'
11564 tpf*)
11565 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11566 version_type=linux
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=no
11572 hardcode_into_libs=yes
11575 uts4*)
11576 version_type=linux
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11583 dynamic_linker=no
11585 esac
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11587 $as_echo "$dynamic_linker" >&6; }
11588 test "$dynamic_linker" = no && can_build_shared=no
11590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11591 if test "$GCC" = yes; then
11592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11599 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11695 hardcode_action=
11696 if test -n "$hardcode_libdir_flag_spec" ||
11697 test -n "$runpath_var" ||
11698 test "X$hardcode_automatic" = "Xyes" ; then
11700 # We can hardcode non-existent directories.
11701 if test "$hardcode_direct" != no &&
11702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11703 # have to relink, otherwise we might link with an installed library
11704 # when we should be linking with a yet-to-be-installed one
11705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11706 test "$hardcode_minus_L" != no; then
11707 # Linking always hardcodes the temporary library directory.
11708 hardcode_action=relink
11709 else
11710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11711 hardcode_action=immediate
11713 else
11714 # We cannot hardcode anything, or else we can only hardcode existing
11715 # directories.
11716 hardcode_action=unsupported
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11719 $as_echo "$hardcode_action" >&6; }
11721 if test "$hardcode_action" = relink ||
11722 test "$inherit_rpath" = yes; then
11723 # Fast installation is not supported
11724 enable_fast_install=no
11725 elif test "$shlibpath_overrides_runpath" = yes ||
11726 test "$enable_shared" = no; then
11727 # Fast installation is not necessary
11728 enable_fast_install=needless
11736 if test "x$enable_dlopen" != xyes; then
11737 enable_dlopen=unknown
11738 enable_dlopen_self=unknown
11739 enable_dlopen_self_static=unknown
11740 else
11741 lt_cv_dlopen=no
11742 lt_cv_dlopen_libs=
11744 case $host_os in
11745 beos*)
11746 lt_cv_dlopen="load_add_on"
11747 lt_cv_dlopen_libs=
11748 lt_cv_dlopen_self=yes
11751 mingw* | pw32* | cegcc*)
11752 lt_cv_dlopen="LoadLibrary"
11753 lt_cv_dlopen_libs=
11756 cygwin*)
11757 lt_cv_dlopen="dlopen"
11758 lt_cv_dlopen_libs=
11761 darwin*)
11762 # if libdl is installed we need to link against it
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 ac_check_lib_save_LIBS=$LIBS
11769 LIBS="-ldl $LIBS"
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11773 /* Override any GCC internal prototype to avoid an error.
11774 Use char because int might match the return type of a GCC
11775 builtin and then its argument prototype would still apply. */
11776 #ifdef __cplusplus
11777 extern "C"
11778 #endif
11779 char dlopen ();
11781 main ()
11783 return dlopen ();
11785 return 0;
11787 _ACEOF
11788 if ac_fn_c_try_link "$LINENO"; then :
11789 ac_cv_lib_dl_dlopen=yes
11790 else
11791 ac_cv_lib_dl_dlopen=no
11793 rm -f core conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11799 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11801 else
11803 lt_cv_dlopen="dyld"
11804 lt_cv_dlopen_libs=
11805 lt_cv_dlopen_self=yes
11812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11813 if test "x$ac_cv_func_shl_load" = x""yes; then :
11814 lt_cv_dlopen="shl_load"
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11817 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-ldld $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char shl_load ();
11834 main ()
11836 return shl_load ();
11838 return 0;
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 ac_cv_lib_dld_shl_load=yes
11843 else
11844 ac_cv_lib_dld_shl_load=no
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11852 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11854 else
11855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11856 if test "x$ac_cv_func_dlopen" = x""yes; then :
11857 lt_cv_dlopen="dlopen"
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldl $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char dlopen ();
11877 main ()
11879 return dlopen ();
11881 return 0;
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dl_dlopen=yes
11886 else
11887 ac_cv_lib_dl_dlopen=no
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897 else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11899 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-lsvld $LIBS"
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 /* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11911 #ifdef __cplusplus
11912 extern "C"
11913 #endif
11914 char dlopen ();
11916 main ()
11918 return dlopen ();
11920 return 0;
11922 _ACEOF
11923 if ac_fn_c_try_link "$LINENO"; then :
11924 ac_cv_lib_svld_dlopen=yes
11925 else
11926 ac_cv_lib_svld_dlopen=no
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11934 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-ldld $LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char dld_link ();
11955 main ()
11957 return dld_link ();
11959 return 0;
11961 _ACEOF
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_lib_dld_dld_link=yes
11964 else
11965 ac_cv_lib_dld_dld_link=no
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11972 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11973 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11974 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11993 esac
11995 if test "x$lt_cv_dlopen" != xno; then
11996 enable_dlopen=yes
11997 else
11998 enable_dlopen=no
12001 case $lt_cv_dlopen in
12002 dlopen)
12003 save_CPPFLAGS="$CPPFLAGS"
12004 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12006 save_LDFLAGS="$LDFLAGS"
12007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12009 save_LIBS="$LIBS"
12010 LIBS="$lt_cv_dlopen_libs $LIBS"
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12013 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12014 if test "${lt_cv_dlopen_self+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test "$cross_compiling" = yes; then :
12018 lt_cv_dlopen_self=cross
12019 else
12020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12021 lt_status=$lt_dlunknown
12022 cat > conftest.$ac_ext <<_LT_EOF
12023 #line 12023 "configure"
12024 #include "confdefs.h"
12026 #if HAVE_DLFCN_H
12027 #include <dlfcn.h>
12028 #endif
12030 #include <stdio.h>
12032 #ifdef RTLD_GLOBAL
12033 # define LT_DLGLOBAL RTLD_GLOBAL
12034 #else
12035 # ifdef DL_GLOBAL
12036 # define LT_DLGLOBAL DL_GLOBAL
12037 # else
12038 # define LT_DLGLOBAL 0
12039 # endif
12040 #endif
12042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12043 find out it does not work in some platform. */
12044 #ifndef LT_DLLAZY_OR_NOW
12045 # ifdef RTLD_LAZY
12046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12047 # else
12048 # ifdef DL_LAZY
12049 # define LT_DLLAZY_OR_NOW DL_LAZY
12050 # else
12051 # ifdef RTLD_NOW
12052 # define LT_DLLAZY_OR_NOW RTLD_NOW
12053 # else
12054 # ifdef DL_NOW
12055 # define LT_DLLAZY_OR_NOW DL_NOW
12056 # else
12057 # define LT_DLLAZY_OR_NOW 0
12058 # endif
12059 # endif
12060 # endif
12061 # endif
12062 #endif
12064 /* When -fvisbility=hidden is used, assume the code has been annotated
12065 correspondingly for the symbols needed. */
12066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12067 void fnord () __attribute__((visibility("default")));
12068 #endif
12070 void fnord () { int i=42; }
12071 int main ()
12073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12074 int status = $lt_dlunknown;
12076 if (self)
12078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12079 else
12081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12082 else puts (dlerror ());
12084 /* dlclose (self); */
12086 else
12087 puts (dlerror ());
12089 return status;
12091 _LT_EOF
12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12093 (eval $ac_link) 2>&5
12094 ac_status=$?
12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12097 (./conftest; exit; ) >&5 2>/dev/null
12098 lt_status=$?
12099 case x$lt_status in
12100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12103 esac
12104 else :
12105 # compilation failed
12106 lt_cv_dlopen_self=no
12109 rm -fr conftest*
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12114 $as_echo "$lt_cv_dlopen_self" >&6; }
12116 if test "x$lt_cv_dlopen_self" = xyes; then
12117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12119 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12120 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 if test "$cross_compiling" = yes; then :
12124 lt_cv_dlopen_self_static=cross
12125 else
12126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12127 lt_status=$lt_dlunknown
12128 cat > conftest.$ac_ext <<_LT_EOF
12129 #line 12129 "configure"
12130 #include "confdefs.h"
12132 #if HAVE_DLFCN_H
12133 #include <dlfcn.h>
12134 #endif
12136 #include <stdio.h>
12138 #ifdef RTLD_GLOBAL
12139 # define LT_DLGLOBAL RTLD_GLOBAL
12140 #else
12141 # ifdef DL_GLOBAL
12142 # define LT_DLGLOBAL DL_GLOBAL
12143 # else
12144 # define LT_DLGLOBAL 0
12145 # endif
12146 #endif
12148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12149 find out it does not work in some platform. */
12150 #ifndef LT_DLLAZY_OR_NOW
12151 # ifdef RTLD_LAZY
12152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12153 # else
12154 # ifdef DL_LAZY
12155 # define LT_DLLAZY_OR_NOW DL_LAZY
12156 # else
12157 # ifdef RTLD_NOW
12158 # define LT_DLLAZY_OR_NOW RTLD_NOW
12159 # else
12160 # ifdef DL_NOW
12161 # define LT_DLLAZY_OR_NOW DL_NOW
12162 # else
12163 # define LT_DLLAZY_OR_NOW 0
12164 # endif
12165 # endif
12166 # endif
12167 # endif
12168 #endif
12170 /* When -fvisbility=hidden is used, assume the code has been annotated
12171 correspondingly for the symbols needed. */
12172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12173 void fnord () __attribute__((visibility("default")));
12174 #endif
12176 void fnord () { int i=42; }
12177 int main ()
12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180 int status = $lt_dlunknown;
12182 if (self)
12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12185 else
12187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12188 else puts (dlerror ());
12190 /* dlclose (self); */
12192 else
12193 puts (dlerror ());
12195 return status;
12197 _LT_EOF
12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199 (eval $ac_link) 2>&5
12200 ac_status=$?
12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12203 (./conftest; exit; ) >&5 2>/dev/null
12204 lt_status=$?
12205 case x$lt_status in
12206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12209 esac
12210 else :
12211 # compilation failed
12212 lt_cv_dlopen_self_static=no
12215 rm -fr conftest*
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12220 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12223 CPPFLAGS="$save_CPPFLAGS"
12224 LDFLAGS="$save_LDFLAGS"
12225 LIBS="$save_LIBS"
12227 esac
12229 case $lt_cv_dlopen_self in
12230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12231 *) enable_dlopen_self=unknown ;;
12232 esac
12234 case $lt_cv_dlopen_self_static in
12235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12236 *) enable_dlopen_self_static=unknown ;;
12237 esac
12256 striplib=
12257 old_striplib=
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12259 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264 $as_echo "yes" >&6; }
12265 else
12266 # FIXME - insert some real tests, host_os isn't really good enough
12267 case $host_os in
12268 darwin*)
12269 if test -n "$STRIP" ; then
12270 striplib="$STRIP -x"
12271 old_striplib="$STRIP -S"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12283 esac
12297 # Report which library types will actually be built
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12299 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12301 $as_echo "$can_build_shared" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12304 $as_echo_n "checking whether to build shared libraries... " >&6; }
12305 test "$can_build_shared" = "no" && enable_shared=no
12307 # On AIX, shared libraries and static libraries use the same namespace, and
12308 # are all built from PIC.
12309 case $host_os in
12310 aix3*)
12311 test "$enable_shared" = yes && enable_static=no
12312 if test -n "$RANLIB"; then
12313 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12314 postinstall_cmds='$RANLIB $lib'
12318 aix[4-9]*)
12319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12320 test "$enable_shared" = yes && enable_static=no
12323 esac
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12325 $as_echo "$enable_shared" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12328 $as_echo_n "checking whether to build static libraries... " >&6; }
12329 # Make sure either enable_shared or enable_static is yes.
12330 test "$enable_shared" = yes || enable_static=yes
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12332 $as_echo "$enable_static" >&6; }
12338 ac_ext=c
12339 ac_cpp='$CPP $CPPFLAGS'
12340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 CC="$lt_save_CC"
12346 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12347 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12348 (test "X$CXX" != "Xg++"))) ; then
12349 ac_ext=cpp
12350 ac_cpp='$CXXCPP $CPPFLAGS'
12351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12355 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12356 if test -z "$CXXCPP"; then
12357 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 # Double quotes because CXXCPP needs to be expanded
12361 for CXXCPP in "$CXX -E" "/lib/cpp"
12363 ac_preproc_ok=false
12364 for ac_cxx_preproc_warn_flag in '' yes
12366 # Use a header file that comes with gcc, so configuring glibc
12367 # with a fresh cross-compiler works.
12368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 # <limits.h> exists even on freestanding compilers.
12370 # On the NeXT, cc -E runs the code through the compiler's parser,
12371 # not just through cpp. "Syntax error" is here to catch this case.
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379 Syntax error
12380 _ACEOF
12381 if ac_fn_cxx_try_cpp "$LINENO"; then :
12383 else
12384 # Broken: fails on valid input.
12385 continue
12387 rm -f conftest.err conftest.$ac_ext
12389 # OK, works on sane cases. Now check whether nonexistent headers
12390 # can be detected and how.
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <ac_nonexistent.h>
12394 _ACEOF
12395 if ac_fn_cxx_try_cpp "$LINENO"; then :
12396 # Broken: success on invalid input.
12397 continue
12398 else
12399 # Passes both tests.
12400 ac_preproc_ok=:
12401 break
12403 rm -f conftest.err conftest.$ac_ext
12405 done
12406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12407 rm -f conftest.err conftest.$ac_ext
12408 if $ac_preproc_ok; then :
12409 break
12412 done
12413 ac_cv_prog_CXXCPP=$CXXCPP
12416 CXXCPP=$ac_cv_prog_CXXCPP
12417 else
12418 ac_cv_prog_CXXCPP=$CXXCPP
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12421 $as_echo "$CXXCPP" >&6; }
12422 ac_preproc_ok=false
12423 for ac_cxx_preproc_warn_flag in '' yes
12425 # Use a header file that comes with gcc, so configuring glibc
12426 # with a fresh cross-compiler works.
12427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 # <limits.h> exists even on freestanding compilers.
12429 # On the NeXT, cc -E runs the code through the compiler's parser,
12430 # not just through cpp. "Syntax error" is here to catch this case.
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 #ifdef __STDC__
12434 # include <limits.h>
12435 #else
12436 # include <assert.h>
12437 #endif
12438 Syntax error
12439 _ACEOF
12440 if ac_fn_cxx_try_cpp "$LINENO"; then :
12442 else
12443 # Broken: fails on valid input.
12444 continue
12446 rm -f conftest.err conftest.$ac_ext
12448 # OK, works on sane cases. Now check whether nonexistent headers
12449 # can be detected and how.
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 #include <ac_nonexistent.h>
12453 _ACEOF
12454 if ac_fn_cxx_try_cpp "$LINENO"; then :
12455 # Broken: success on invalid input.
12456 continue
12457 else
12458 # Passes both tests.
12459 ac_preproc_ok=:
12460 break
12462 rm -f conftest.err conftest.$ac_ext
12464 done
12465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12466 rm -f conftest.err conftest.$ac_ext
12467 if $ac_preproc_ok; then :
12469 else
12470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12472 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12473 See \`config.log' for more details." "$LINENO" 5; }
12476 ac_ext=c
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12482 else
12483 _lt_caught_CXX_error=yes
12486 ac_ext=cpp
12487 ac_cpp='$CXXCPP $CPPFLAGS'
12488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12492 archive_cmds_need_lc_CXX=no
12493 allow_undefined_flag_CXX=
12494 always_export_symbols_CXX=no
12495 archive_expsym_cmds_CXX=
12496 compiler_needs_object_CXX=no
12497 export_dynamic_flag_spec_CXX=
12498 hardcode_direct_CXX=no
12499 hardcode_direct_absolute_CXX=no
12500 hardcode_libdir_flag_spec_CXX=
12501 hardcode_libdir_flag_spec_ld_CXX=
12502 hardcode_libdir_separator_CXX=
12503 hardcode_minus_L_CXX=no
12504 hardcode_shlibpath_var_CXX=unsupported
12505 hardcode_automatic_CXX=no
12506 inherit_rpath_CXX=no
12507 module_cmds_CXX=
12508 module_expsym_cmds_CXX=
12509 link_all_deplibs_CXX=unknown
12510 old_archive_cmds_CXX=$old_archive_cmds
12511 reload_flag_CXX=$reload_flag
12512 reload_cmds_CXX=$reload_cmds
12513 no_undefined_flag_CXX=
12514 whole_archive_flag_spec_CXX=
12515 enable_shared_with_static_runtimes_CXX=no
12517 # Source file extension for C++ test sources.
12518 ac_ext=cpp
12520 # Object file extension for compiled C++ test sources.
12521 objext=o
12522 objext_CXX=$objext
12524 # No sense in running all these tests if we already determined that
12525 # the CXX compiler isn't working. Some variables (like enable_shared)
12526 # are currently assumed to apply to all compilers on this platform,
12527 # and will be corrupted by setting them based on a non-working compiler.
12528 if test "$_lt_caught_CXX_error" != yes; then
12529 # Code to be used in simple compile tests
12530 lt_simple_compile_test_code="int some_variable = 0;"
12532 # Code to be used in simple link tests
12533 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12542 # If no C compiler was specified, use CC.
12543 LTCC=${LTCC-"$CC"}
12545 # If no C compiler flags were specified, use CFLAGS.
12546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12548 # Allow CC to be a program name with arguments.
12549 compiler=$CC
12552 # save warnings/boilerplate of simple test code
12553 ac_outfile=conftest.$ac_objext
12554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12556 _lt_compiler_boilerplate=`cat conftest.err`
12557 $RM conftest*
12559 ac_outfile=conftest.$ac_objext
12560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12562 _lt_linker_boilerplate=`cat conftest.err`
12563 $RM -r conftest*
12566 # Allow CC to be a program name with arguments.
12567 lt_save_CC=$CC
12568 lt_save_LD=$LD
12569 lt_save_GCC=$GCC
12570 GCC=$GXX
12571 lt_save_with_gnu_ld=$with_gnu_ld
12572 lt_save_path_LD=$lt_cv_path_LD
12573 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12574 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12575 else
12576 $as_unset lt_cv_prog_gnu_ld
12578 if test -n "${lt_cv_path_LDCXX+set}"; then
12579 lt_cv_path_LD=$lt_cv_path_LDCXX
12580 else
12581 $as_unset lt_cv_path_LD
12583 test -z "${LDCXX+set}" || LD=$LDCXX
12584 CC=${CXX-"c++"}
12585 compiler=$CC
12586 compiler_CXX=$CC
12587 for cc_temp in $compiler""; do
12588 case $cc_temp in
12589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12591 \-*) ;;
12592 *) break;;
12593 esac
12594 done
12595 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12598 if test -n "$compiler"; then
12599 # We don't want -fno-exception when compiling C++ code, so set the
12600 # no_builtin_flag separately
12601 if test "$GXX" = yes; then
12602 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12603 else
12604 lt_prog_compiler_no_builtin_flag_CXX=
12607 if test "$GXX" = yes; then
12608 # Set up default GNU C++ configuration
12612 # Check whether --with-gnu-ld was given.
12613 if test "${with_gnu_ld+set}" = set; then :
12614 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12615 else
12616 with_gnu_ld=no
12619 ac_prog=ld
12620 if test "$GCC" = yes; then
12621 # Check if gcc -print-prog-name=ld gives a path.
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12623 $as_echo_n "checking for ld used by $CC... " >&6; }
12624 case $host in
12625 *-*-mingw*)
12626 # gcc leaves a trailing carriage return which upsets mingw
12627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12630 esac
12631 case $ac_prog in
12632 # Accept absolute paths.
12633 [\\/]* | ?:[\\/]*)
12634 re_direlt='/[^/][^/]*/\.\./'
12635 # Canonicalize the pathname of ld
12636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12639 done
12640 test -z "$LD" && LD="$ac_prog"
12643 # If it fails, then pretend we aren't using GCC.
12644 ac_prog=ld
12647 # If it is relative, then search for the first ld in PATH.
12648 with_gnu_ld=unknown
12650 esac
12651 elif test "$with_gnu_ld" = yes; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12653 $as_echo_n "checking for GNU ld... " >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12656 $as_echo_n "checking for non-GNU ld... " >&6; }
12658 if test "${lt_cv_path_LD+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test -z "$LD"; then
12662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12663 for ac_dir in $PATH; do
12664 IFS="$lt_save_ifs"
12665 test -z "$ac_dir" && ac_dir=.
12666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12667 lt_cv_path_LD="$ac_dir/$ac_prog"
12668 # Check to see if the program is GNU ld. I'd rather use --version,
12669 # but apparently some variants of GNU ld only accept -v.
12670 # Break only if it was the GNU/non-GNU ld that we prefer.
12671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12672 *GNU* | *'with BFD'*)
12673 test "$with_gnu_ld" != no && break
12676 test "$with_gnu_ld" != yes && break
12678 esac
12680 done
12681 IFS="$lt_save_ifs"
12682 else
12683 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12687 LD="$lt_cv_path_LD"
12688 if test -n "$LD"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12690 $as_echo "$LD" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12695 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12698 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12702 case `$LD -v 2>&1 </dev/null` in
12703 *GNU* | *'with BFD'*)
12704 lt_cv_prog_gnu_ld=yes
12707 lt_cv_prog_gnu_ld=no
12709 esac
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12712 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12713 with_gnu_ld=$lt_cv_prog_gnu_ld
12721 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12722 # archiving commands below assume that GNU ld is being used.
12723 if test "$with_gnu_ld" = yes; then
12724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12725 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'
12727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12730 # If archive_cmds runs LD, not CC, wlarc should be empty
12731 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12732 # investigate it a little bit more. (MM)
12733 wlarc='${wl}'
12735 # ancient GNU ld didn't support --whole-archive et. al.
12736 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12737 $GREP 'no-whole-archive' > /dev/null; then
12738 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12739 else
12740 whole_archive_flag_spec_CXX=
12742 else
12743 with_gnu_ld=no
12744 wlarc=
12746 # A generic and very simple default shared library creation
12747 # command for GNU C++ for the case where it uses the native
12748 # linker, instead of GNU ld. If possible, this setting should
12749 # overridden to take advantage of the native linker features on
12750 # the platform it is being used on.
12751 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12759 else
12760 GXX=no
12761 with_gnu_ld=no
12762 wlarc=
12765 # PORTME: fill in a description of your system's C++ link characteristics
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12768 ld_shlibs_CXX=yes
12769 case $host_os in
12770 aix3*)
12771 # FIXME: insert proper C++ library support
12772 ld_shlibs_CXX=no
12774 aix[4-9]*)
12775 if test "$host_cpu" = ia64; then
12776 # On IA64, the linker does run time linking by default, so we don't
12777 # have to do anything special.
12778 aix_use_runtimelinking=no
12779 exp_sym_flag='-Bexport'
12780 no_entry_flag=""
12781 else
12782 aix_use_runtimelinking=no
12784 # Test if we are trying to use run time linking or normal
12785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12786 # need to do runtime linking.
12787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12788 for ld_flag in $LDFLAGS; do
12789 case $ld_flag in
12790 *-brtl*)
12791 aix_use_runtimelinking=yes
12792 break
12794 esac
12795 done
12797 esac
12799 exp_sym_flag='-bexport'
12800 no_entry_flag='-bnoentry'
12803 # When large executables or shared objects are built, AIX ld can
12804 # have problems creating the table of contents. If linking a library
12805 # or program results in "error TOC overflow" add -mminimal-toc to
12806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12809 archive_cmds_CXX=''
12810 hardcode_direct_CXX=yes
12811 hardcode_direct_absolute_CXX=yes
12812 hardcode_libdir_separator_CXX=':'
12813 link_all_deplibs_CXX=yes
12814 file_list_spec_CXX='${wl}-f,'
12816 if test "$GXX" = yes; then
12817 case $host_os in aix4.[012]|aix4.[012].*)
12818 # We only want to do this on AIX 4.2 and lower, the check
12819 # below for broken collect2 doesn't work under 4.3+
12820 collect2name=`${CC} -print-prog-name=collect2`
12821 if test -f "$collect2name" &&
12822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12823 then
12824 # We have reworked collect2
12826 else
12827 # We have old collect2
12828 hardcode_direct_CXX=unsupported
12829 # It fails to find uninstalled libraries when the uninstalled
12830 # path is not listed in the libpath. Setting hardcode_minus_L
12831 # to unsupported forces relinking
12832 hardcode_minus_L_CXX=yes
12833 hardcode_libdir_flag_spec_CXX='-L$libdir'
12834 hardcode_libdir_separator_CXX=
12836 esac
12837 shared_flag='-shared'
12838 if test "$aix_use_runtimelinking" = yes; then
12839 shared_flag="$shared_flag "'${wl}-G'
12841 else
12842 # not using gcc
12843 if test "$host_cpu" = ia64; then
12844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12845 # chokes on -Wl,-G. The following line is correct:
12846 shared_flag='-G'
12847 else
12848 if test "$aix_use_runtimelinking" = yes; then
12849 shared_flag='${wl}-G'
12850 else
12851 shared_flag='${wl}-bM:SRE'
12856 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12857 # It seems that -bexpall does not export symbols beginning with
12858 # underscore (_), so it is better to generate a list of symbols to
12859 # export.
12860 always_export_symbols_CXX=yes
12861 if test "$aix_use_runtimelinking" = yes; then
12862 # Warning - without using the other runtime loading flags (-brtl),
12863 # -berok will link without error, but may produce a broken library.
12864 allow_undefined_flag_CXX='-berok'
12865 # Determine the default libpath from the value encoded in an empty
12866 # executable.
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12871 main ()
12875 return 0;
12877 _ACEOF
12878 if ac_fn_cxx_try_link "$LINENO"; then :
12880 lt_aix_libpath_sed='
12881 /Import File Strings/,/^$/ {
12882 /^0/ {
12883 s/^0 *\(.*\)$/\1/
12887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12888 # Check for a 64-bit object if we didn't find anything.
12889 if test -z "$aix_libpath"; then
12890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12897 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12899 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"
12900 else
12901 if test "$host_cpu" = ia64; then
12902 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12903 allow_undefined_flag_CXX="-z nodefs"
12904 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"
12905 else
12906 # Determine the default libpath from the value encoded in an
12907 # empty executable.
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12912 main ()
12916 return 0;
12918 _ACEOF
12919 if ac_fn_cxx_try_link "$LINENO"; then :
12921 lt_aix_libpath_sed='
12922 /Import File Strings/,/^$/ {
12923 /^0/ {
12924 s/^0 *\(.*\)$/\1/
12928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12929 # Check for a 64-bit object if we didn't find anything.
12930 if test -z "$aix_libpath"; then
12931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12939 # Warning - without using the other run time loading flags,
12940 # -berok will link without error, but may produce a broken library.
12941 no_undefined_flag_CXX=' ${wl}-bernotok'
12942 allow_undefined_flag_CXX=' ${wl}-berok'
12943 if test "$with_gnu_ld" = yes; then
12944 # We only use this code for GNU lds that support --whole-archive.
12945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12946 else
12947 # Exported symbols can be pulled into shared objects from archives
12948 whole_archive_flag_spec_CXX='$convenience'
12950 archive_cmds_need_lc_CXX=yes
12951 # This is similar to how AIX traditionally builds its shared
12952 # libraries.
12953 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'
12958 beos*)
12959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12960 allow_undefined_flag_CXX=unsupported
12961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12962 # support --undefined. This deserves some investigation. FIXME
12963 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 else
12965 ld_shlibs_CXX=no
12969 chorus*)
12970 case $cc_basename in
12972 # FIXME: insert proper C++ library support
12973 ld_shlibs_CXX=no
12975 esac
12978 cygwin* | mingw* | pw32* | cegcc*)
12979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12980 # as there is no search path for DLLs.
12981 hardcode_libdir_flag_spec_CXX='-L$libdir'
12982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12983 allow_undefined_flag_CXX=unsupported
12984 always_export_symbols_CXX=no
12985 enable_shared_with_static_runtimes_CXX=yes
12987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12988 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'
12989 # If the export-symbols file already is a .def file (1st line
12990 # is EXPORTS), use it as is; otherwise, prepend...
12991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12992 cp $export_symbols $output_objdir/$soname.def;
12993 else
12994 echo EXPORTS > $output_objdir/$soname.def;
12995 cat $export_symbols >> $output_objdir/$soname.def;
12997 $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'
12998 else
12999 ld_shlibs_CXX=no
13002 darwin* | rhapsody*)
13005 archive_cmds_need_lc_CXX=no
13006 hardcode_direct_CXX=no
13007 hardcode_automatic_CXX=yes
13008 hardcode_shlibpath_var_CXX=unsupported
13009 if test "$lt_cv_ld_force_load" = "yes"; then
13010 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\"`'
13011 else
13012 whole_archive_flag_spec_CXX=''
13014 link_all_deplibs_CXX=yes
13015 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13016 case $cc_basename in
13017 ifort*) _lt_dar_can_shared=yes ;;
13018 *) _lt_dar_can_shared=$GCC ;;
13019 esac
13020 if test "$_lt_dar_can_shared" = "yes"; then
13021 output_verbose_link_cmd=func_echo_all
13022 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}"
13023 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13024 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}"
13025 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}"
13026 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13027 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}"
13028 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}"
13031 else
13032 ld_shlibs_CXX=no
13037 dgux*)
13038 case $cc_basename in
13039 ec++*)
13040 # FIXME: insert proper C++ library support
13041 ld_shlibs_CXX=no
13043 ghcx*)
13044 # Green Hills C++ Compiler
13045 # FIXME: insert proper C++ library support
13046 ld_shlibs_CXX=no
13049 # FIXME: insert proper C++ library support
13050 ld_shlibs_CXX=no
13052 esac
13055 freebsd2.*)
13056 # C++ shared libraries reported to be fairly broken before
13057 # switch to ELF
13058 ld_shlibs_CXX=no
13061 freebsd-elf*)
13062 archive_cmds_need_lc_CXX=no
13065 freebsd* | dragonfly*)
13066 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13067 # conventions
13068 ld_shlibs_CXX=yes
13071 gnu*)
13074 haiku*)
13075 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13076 link_all_deplibs_CXX=yes
13079 hpux9*)
13080 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13081 hardcode_libdir_separator_CXX=:
13082 export_dynamic_flag_spec_CXX='${wl}-E'
13083 hardcode_direct_CXX=yes
13084 hardcode_minus_L_CXX=yes # Not in the search PATH,
13085 # but as the default
13086 # location of the library.
13088 case $cc_basename in
13089 CC*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13093 aCC*)
13094 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'
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13099 # There doesn't appear to be a way to prevent this compiler from
13100 # explicitly linking system object files so we need to strip them
13101 # from the output so that they don't get included in the library
13102 # dependencies.
13103 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"'
13106 if test "$GXX" = yes; then
13107 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'
13108 else
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13113 esac
13116 hpux10*|hpux11*)
13117 if test $with_gnu_ld = no; then
13118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13119 hardcode_libdir_separator_CXX=:
13121 case $host_cpu in
13122 hppa*64*|ia64*)
13125 export_dynamic_flag_spec_CXX='${wl}-E'
13127 esac
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13131 hardcode_direct_CXX=no
13132 hardcode_shlibpath_var_CXX=no
13135 hardcode_direct_CXX=yes
13136 hardcode_direct_absolute_CXX=yes
13137 hardcode_minus_L_CXX=yes # Not in the search PATH,
13138 # but as the default
13139 # location of the library.
13141 esac
13143 case $cc_basename in
13144 CC*)
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13148 aCC*)
13149 case $host_cpu in
13150 hppa*64*)
13151 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13153 ia64*)
13154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13159 esac
13160 # Commands to make compiler produce verbose output that lists
13161 # what "hidden" libraries, object files and flags are used when
13162 # linking a shared library.
13164 # There doesn't appear to be a way to prevent this compiler from
13165 # explicitly linking system object files so we need to strip them
13166 # from the output so that they don't get included in the library
13167 # dependencies.
13168 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"'
13171 if test "$GXX" = yes; then
13172 if test $with_gnu_ld = no; then
13173 case $host_cpu in
13174 hppa*64*)
13175 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177 ia64*)
13178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181 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'
13183 esac
13185 else
13186 # FIXME: insert proper C++ library support
13187 ld_shlibs_CXX=no
13190 esac
13193 interix[3-9]*)
13194 hardcode_direct_CXX=no
13195 hardcode_shlibpath_var_CXX=no
13196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13199 # Instead, shared libraries are loaded at an image base (0x10000000 by
13200 # default) and relocated if they conflict, which is a slow very memory
13201 # consuming and fragmenting process. To avoid this, we pick a random,
13202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13204 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'
13205 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'
13207 irix5* | irix6*)
13208 case $cc_basename in
13209 CC*)
13210 # SGI C++
13211 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'
13213 # Archives containing C++ object files must be created using
13214 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13215 # necessary to make sure instantiated templates are included
13216 # in the archive.
13217 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13220 if test "$GXX" = yes; then
13221 if test "$with_gnu_ld" = no; then
13222 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'
13223 else
13224 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'
13227 link_all_deplibs_CXX=yes
13229 esac
13230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13231 hardcode_libdir_separator_CXX=:
13232 inherit_rpath_CXX=yes
13235 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13236 case $cc_basename in
13237 KCC*)
13238 # Kuck and Associates, Inc. (KAI) C++ Compiler
13240 # KCC will only create a shared library if the output file
13241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13242 # to its proper name (with version) after linking.
13243 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'
13244 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'
13245 # Commands to make compiler produce verbose output that lists
13246 # what "hidden" libraries, object files and flags are used when
13247 # linking a shared library.
13249 # There doesn't appear to be a way to prevent this compiler from
13250 # explicitly linking system object files so we need to strip them
13251 # from the output so that they don't get included in the library
13252 # dependencies.
13253 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"'
13255 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13258 # Archives containing C++ object files must be created using
13259 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13260 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13262 icpc* | ecpc* )
13263 # Intel C++
13264 with_gnu_ld=yes
13265 # version 8.0 and above of icpc choke on multiply defined symbols
13266 # if we add $predep_objects and $postdep_objects, however 7.1 and
13267 # earlier do not add the objects themselves.
13268 case `$CC -V 2>&1` in
13269 *"Version 7."*)
13270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271 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'
13273 *) # Version 8.0 or newer
13274 tmp_idyn=
13275 case $host_cpu in
13276 ia64*) tmp_idyn=' -i_dynamic';;
13277 esac
13278 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 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'
13281 esac
13282 archive_cmds_need_lc_CXX=no
13283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13287 pgCC* | pgcpp*)
13288 # Portland Group C++ compiler
13289 case `$CC -V` in
13290 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13291 prelink_cmds_CXX='tpldir=Template.dir~
13292 rm -rf $tpldir~
13293 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13294 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13295 old_archive_cmds_CXX='tpldir=Template.dir~
13296 rm -rf $tpldir~
13297 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13298 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13299 $RANLIB $oldlib'
13300 archive_cmds_CXX='tpldir=Template.dir~
13301 rm -rf $tpldir~
13302 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13303 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13304 archive_expsym_cmds_CXX='tpldir=Template.dir~
13305 rm -rf $tpldir~
13306 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13307 $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'
13309 *) # Version 6 and above use weak symbols
13310 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13311 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'
13313 esac
13315 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13317 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'
13319 cxx*)
13320 # Compaq C++
13321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 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'
13324 runpath_var=LD_RUN_PATH
13325 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13326 hardcode_libdir_separator_CXX=:
13328 # Commands to make compiler produce verbose output that lists
13329 # what "hidden" libraries, object files and flags are used when
13330 # linking a shared library.
13332 # There doesn't appear to be a way to prevent this compiler from
13333 # explicitly linking system object files so we need to strip them
13334 # from the output so that they don't get included in the library
13335 # dependencies.
13336 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'
13338 xl* | mpixl* | bgxl*)
13339 # IBM XL 8.0 on PPC, with GNU ld
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13342 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343 if test "x$supports_anon_versioning" = xyes; then
13344 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13346 echo "local: *; };" >> $output_objdir/$libname.ver~
13347 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13351 case `$CC -V 2>&1 | sed 5q` in
13352 *Sun\ C*)
13353 # Sun C++ 5.9
13354 no_undefined_flag_CXX=' -zdefs'
13355 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13356 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'
13357 hardcode_libdir_flag_spec_CXX='-R$libdir'
13358 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'
13359 compiler_needs_object_CXX=yes
13361 # Not sure whether something based on
13362 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13363 # would be better.
13364 output_verbose_link_cmd='func_echo_all'
13366 # Archives containing C++ object files must be created using
13367 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13368 # necessary to make sure instantiated templates are included
13369 # in the archive.
13370 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13372 esac
13374 esac
13377 lynxos*)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13382 m88k*)
13383 # FIXME: insert proper C++ library support
13384 ld_shlibs_CXX=no
13387 mvs*)
13388 case $cc_basename in
13389 cxx*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13394 # FIXME: insert proper C++ library support
13395 ld_shlibs_CXX=no
13397 esac
13400 netbsd*)
13401 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13402 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13403 wlarc=
13404 hardcode_libdir_flag_spec_CXX='-R$libdir'
13405 hardcode_direct_CXX=yes
13406 hardcode_shlibpath_var_CXX=no
13408 # Workaround some broken pre-1.5 toolchains
13409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13412 *nto* | *qnx*)
13413 ld_shlibs_CXX=yes
13416 openbsd2*)
13417 # C++ shared libraries are fairly broken
13418 ld_shlibs_CXX=no
13421 openbsd*)
13422 if test -f /usr/libexec/ld.so; then
13423 hardcode_direct_CXX=yes
13424 hardcode_shlibpath_var_CXX=no
13425 hardcode_direct_absolute_CXX=yes
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13430 export_dynamic_flag_spec_CXX='${wl}-E'
13431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13433 output_verbose_link_cmd=func_echo_all
13434 else
13435 ld_shlibs_CXX=no
13439 osf3* | osf4* | osf5*)
13440 case $cc_basename in
13441 KCC*)
13442 # Kuck and Associates, Inc. (KAI) C++ Compiler
13444 # KCC will only create a shared library if the output file
13445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13446 # to its proper name (with version) after linking.
13447 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'
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450 hardcode_libdir_separator_CXX=:
13452 # Archives containing C++ object files must be created using
13453 # the KAI C++ compiler.
13454 case $host in
13455 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13456 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13457 esac
13459 RCC*)
13460 # Rational C++ 2.4.1
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13464 cxx*)
13465 case $host in
13466 osf3*)
13467 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13468 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'
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13472 allow_undefined_flag_CXX=' -expect_unresolved \*'
13473 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'
13474 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13475 echo "-hidden">> $lib.exp~
13476 $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~
13477 $RM $lib.exp'
13478 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13480 esac
13482 hardcode_libdir_separator_CXX=:
13484 # Commands to make compiler produce verbose output that lists
13485 # what "hidden" libraries, object files and flags are used when
13486 # linking a shared library.
13488 # There doesn't appear to be a way to prevent this compiler from
13489 # explicitly linking system object files so we need to strip them
13490 # from the output so that they don't get included in the library
13491 # dependencies.
13492 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"'
13495 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13497 case $host in
13498 osf3*)
13499 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'
13502 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'
13504 esac
13506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13507 hardcode_libdir_separator_CXX=:
13509 # Commands to make compiler produce verbose output that lists
13510 # what "hidden" libraries, object files and flags are used when
13511 # linking a shared library.
13512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13514 else
13515 # FIXME: insert proper C++ library support
13516 ld_shlibs_CXX=no
13519 esac
13522 psos*)
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13527 sunos4*)
13528 case $cc_basename in
13529 CC*)
13530 # Sun C++ 4.x
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13534 lcc*)
13535 # Lucid
13536 # FIXME: insert proper C++ library support
13537 ld_shlibs_CXX=no
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13543 esac
13546 solaris*)
13547 case $cc_basename in
13548 CC*)
13549 # Sun C++ 4.2, 5.x and Centerline C++
13550 archive_cmds_need_lc_CXX=yes
13551 no_undefined_flag_CXX=' -zdefs'
13552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554 $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'
13556 hardcode_libdir_flag_spec_CXX='-R$libdir'
13557 hardcode_shlibpath_var_CXX=no
13558 case $host_os in
13559 solaris2.[0-5] | solaris2.[0-5].*) ;;
13561 # The compiler driver will combine and reorder linker options,
13562 # but understands `-z linker_flag'.
13563 # Supported since Solaris 2.6 (maybe 2.5.1?)
13564 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13566 esac
13567 link_all_deplibs_CXX=yes
13569 output_verbose_link_cmd='func_echo_all'
13571 # Archives containing C++ object files must be created using
13572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13573 # necessary to make sure instantiated templates are included
13574 # in the archive.
13575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13577 gcx*)
13578 # Green Hills C++ Compiler
13579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13581 # The C++ compiler must be used to create the archive.
13582 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13585 # GNU C++ compiler with Solaris linker
13586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13587 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13588 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13589 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13590 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13597 else
13598 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13599 # platform.
13600 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13607 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13610 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13611 case $host_os in
13612 solaris2.[0-5] | solaris2.[0-5].*) ;;
13614 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13616 esac
13619 esac
13622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13623 no_undefined_flag_CXX='${wl}-z,text'
13624 archive_cmds_need_lc_CXX=no
13625 hardcode_shlibpath_var_CXX=no
13626 runpath_var='LD_RUN_PATH'
13628 case $cc_basename in
13629 CC*)
13630 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 esac
13640 sysv5* | sco3.2v5* | sco5v6*)
13641 # Note: We can NOT use -z defs as we might desire, because we do not
13642 # link with -lc, and that would cause any symbols used from libc to
13643 # always be unresolved, which means just about no library would
13644 # ever link correctly. If we're not using GNU ld we use -z text
13645 # though, which does catch some bad symbols but isn't as heavy-handed
13646 # as -z defs.
13647 no_undefined_flag_CXX='${wl}-z,text'
13648 allow_undefined_flag_CXX='${wl}-z,nodefs'
13649 archive_cmds_need_lc_CXX=no
13650 hardcode_shlibpath_var_CXX=no
13651 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13652 hardcode_libdir_separator_CXX=':'
13653 link_all_deplibs_CXX=yes
13654 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13655 runpath_var='LD_RUN_PATH'
13657 case $cc_basename in
13658 CC*)
13659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13662 '"$old_archive_cmds_CXX"
13663 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13664 '"$reload_cmds_CXX"
13667 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 esac
13673 tandem*)
13674 case $cc_basename in
13675 NCC*)
13676 # NonStop-UX NCC 3.20
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13684 esac
13687 vxworks*)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13696 esac
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13699 $as_echo "$ld_shlibs_CXX" >&6; }
13700 test "$ld_shlibs_CXX" = no && can_build_shared=no
13702 GCC_CXX="$GXX"
13703 LD_CXX="$LD"
13705 ## CAVEAT EMPTOR:
13706 ## There is no encapsulation within the following macros, do not change
13707 ## the running order or otherwise move them around unless you know exactly
13708 ## what you are doing...
13709 # Dependencies to place before and after the object being linked:
13710 predep_objects_CXX=
13711 postdep_objects_CXX=
13712 predeps_CXX=
13713 postdeps_CXX=
13714 compiler_lib_search_path_CXX=
13716 cat > conftest.$ac_ext <<_LT_EOF
13717 class Foo
13719 public:
13720 Foo (void) { a = 0; }
13721 private:
13722 int a;
13724 _LT_EOF
13726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13727 (eval $ac_compile) 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13730 test $ac_status = 0; }; then
13731 # Parse the compiler output and extract the necessary
13732 # objects, libraries and library flags.
13734 # Sentinel used to keep track of whether or not we are before
13735 # the conftest object file.
13736 pre_test_object_deps_done=no
13738 for p in `eval "$output_verbose_link_cmd"`; do
13739 case $p in
13741 -L* | -R* | -l*)
13742 # Some compilers place space between "-{L,R}" and the path.
13743 # Remove the space.
13744 if test $p = "-L" ||
13745 test $p = "-R"; then
13746 prev=$p
13747 continue
13748 else
13749 prev=
13752 if test "$pre_test_object_deps_done" = no; then
13753 case $p in
13754 -L* | -R*)
13755 # Internal compiler library paths should come after those
13756 # provided the user. The postdeps already come after the
13757 # user supplied libs so there is no need to process them.
13758 if test -z "$compiler_lib_search_path_CXX"; then
13759 compiler_lib_search_path_CXX="${prev}${p}"
13760 else
13761 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13764 # The "-l" case would never come before the object being
13765 # linked, so don't bother handling this case.
13766 esac
13767 else
13768 if test -z "$postdeps_CXX"; then
13769 postdeps_CXX="${prev}${p}"
13770 else
13771 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13776 *.$objext)
13777 # This assumes that the test object file only shows up
13778 # once in the compiler output.
13779 if test "$p" = "conftest.$objext"; then
13780 pre_test_object_deps_done=yes
13781 continue
13784 if test "$pre_test_object_deps_done" = no; then
13785 if test -z "$predep_objects_CXX"; then
13786 predep_objects_CXX="$p"
13787 else
13788 predep_objects_CXX="$predep_objects_CXX $p"
13790 else
13791 if test -z "$postdep_objects_CXX"; then
13792 postdep_objects_CXX="$p"
13793 else
13794 postdep_objects_CXX="$postdep_objects_CXX $p"
13799 *) ;; # Ignore the rest.
13801 esac
13802 done
13804 # Clean up.
13805 rm -f a.out a.exe
13806 else
13807 echo "libtool.m4: error: problem compiling CXX test program"
13810 $RM -f confest.$objext
13812 # PORTME: override above test on systems where it is broken
13813 case $host_os in
13814 interix[3-9]*)
13815 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13816 # hack all around it, let's just trust "g++" to DTRT.
13817 predep_objects_CXX=
13818 postdep_objects_CXX=
13819 postdeps_CXX=
13822 linux*)
13823 case `$CC -V 2>&1 | sed 5q` in
13824 *Sun\ C*)
13825 # Sun C++ 5.9
13827 # The more standards-conforming stlport4 library is
13828 # incompatible with the Cstd library. Avoid specifying
13829 # it if it's in CXXFLAGS. Ignore libCrun as
13830 # -library=stlport4 depends on it.
13831 case " $CXX $CXXFLAGS " in
13832 *" -library=stlport4 "*)
13833 solaris_use_stlport4=yes
13835 esac
13837 if test "$solaris_use_stlport4" != yes; then
13838 postdeps_CXX='-library=Cstd -library=Crun'
13841 esac
13844 solaris*)
13845 case $cc_basename in
13846 CC*)
13847 # The more standards-conforming stlport4 library is
13848 # incompatible with the Cstd library. Avoid specifying
13849 # it if it's in CXXFLAGS. Ignore libCrun as
13850 # -library=stlport4 depends on it.
13851 case " $CXX $CXXFLAGS " in
13852 *" -library=stlport4 "*)
13853 solaris_use_stlport4=yes
13855 esac
13857 # Adding this requires a known-good setup of shared libraries for
13858 # Sun compiler versions before 5.6, else PIC objects from an old
13859 # archive will be linked into the output, leading to subtle bugs.
13860 if test "$solaris_use_stlport4" != yes; then
13861 postdeps_CXX='-library=Cstd -library=Crun'
13864 esac
13866 esac
13869 case " $postdeps_CXX " in
13870 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13871 esac
13872 compiler_lib_search_dirs_CXX=
13873 if test -n "${compiler_lib_search_path_CXX}"; then
13874 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13907 lt_prog_compiler_wl_CXX=
13908 lt_prog_compiler_pic_CXX=
13909 lt_prog_compiler_static_CXX=
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13914 # C++ specific cases for pic, static, wl, etc.
13915 if test "$GXX" = yes; then
13916 lt_prog_compiler_wl_CXX='-Wl,'
13917 lt_prog_compiler_static_CXX='-static'
13919 case $host_os in
13920 aix*)
13921 # All AIX code is PIC.
13922 if test "$host_cpu" = ia64; then
13923 # AIX 5 now supports IA64 processor
13924 lt_prog_compiler_static_CXX='-Bstatic'
13926 lt_prog_compiler_pic_CXX='-fPIC'
13929 amigaos*)
13930 case $host_cpu in
13931 powerpc)
13932 # see comment about AmigaOS4 .so support
13933 lt_prog_compiler_pic_CXX='-fPIC'
13935 m68k)
13936 # FIXME: we need at least 68020 code to build shared libraries, but
13937 # adding the `-m68020' flag to GCC prevents building anything better,
13938 # like `-m68040'.
13939 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13941 esac
13944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13945 # PIC is the default for these OSes.
13947 mingw* | cygwin* | os2* | pw32* | cegcc*)
13948 # This hack is so that the source file can tell whether it is being
13949 # built for inclusion in a dll (and should export symbols for example).
13950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13951 # (--disable-auto-import) libraries
13952 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13954 darwin* | rhapsody*)
13955 # PIC is the default on this platform
13956 # Common symbols not allowed in MH_DYLIB files
13957 lt_prog_compiler_pic_CXX='-fno-common'
13959 *djgpp*)
13960 # DJGPP does not support shared libraries at all
13961 lt_prog_compiler_pic_CXX=
13963 haiku*)
13964 # PIC is the default for Haiku.
13965 # The "-static" flag exists, but is broken.
13966 lt_prog_compiler_static_CXX=
13968 interix[3-9]*)
13969 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13970 # Instead, we relocate shared libraries at runtime.
13972 sysv4*MP*)
13973 if test -d /usr/nec; then
13974 lt_prog_compiler_pic_CXX=-Kconform_pic
13977 hpux*)
13978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13980 # sets the default TLS model and affects inlining.
13981 case $host_cpu in
13982 hppa*64*)
13985 lt_prog_compiler_pic_CXX='-fPIC'
13987 esac
13989 *qnx* | *nto*)
13990 # QNX uses GNU C++, but need to define -shared option too, otherwise
13991 # it will coredump.
13992 lt_prog_compiler_pic_CXX='-fPIC -shared'
13995 lt_prog_compiler_pic_CXX='-fPIC'
13997 esac
13998 else
13999 case $host_os in
14000 aix[4-9]*)
14001 # All AIX code is PIC.
14002 if test "$host_cpu" = ia64; then
14003 # AIX 5 now supports IA64 processor
14004 lt_prog_compiler_static_CXX='-Bstatic'
14005 else
14006 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14009 chorus*)
14010 case $cc_basename in
14011 cxch68*)
14012 # Green Hills C++ Compiler
14013 # _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"
14015 esac
14017 dgux*)
14018 case $cc_basename in
14019 ec++*)
14020 lt_prog_compiler_pic_CXX='-KPIC'
14022 ghcx*)
14023 # Green Hills C++ Compiler
14024 lt_prog_compiler_pic_CXX='-pic'
14028 esac
14030 freebsd* | dragonfly*)
14031 # FreeBSD uses GNU C++
14033 hpux9* | hpux10* | hpux11*)
14034 case $cc_basename in
14035 CC*)
14036 lt_prog_compiler_wl_CXX='-Wl,'
14037 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14038 if test "$host_cpu" != ia64; then
14039 lt_prog_compiler_pic_CXX='+Z'
14042 aCC*)
14043 lt_prog_compiler_wl_CXX='-Wl,'
14044 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14045 case $host_cpu in
14046 hppa*64*|ia64*)
14047 # +Z the default
14050 lt_prog_compiler_pic_CXX='+Z'
14052 esac
14056 esac
14058 interix*)
14059 # This is c89, which is MS Visual C++ (no shared libs)
14060 # Anyone wants to do a port?
14062 irix5* | irix6* | nonstopux*)
14063 case $cc_basename in
14064 CC*)
14065 lt_prog_compiler_wl_CXX='-Wl,'
14066 lt_prog_compiler_static_CXX='-non_shared'
14067 # CC pic flag -KPIC is the default.
14071 esac
14073 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14074 case $cc_basename in
14075 KCC*)
14076 # KAI C++ Compiler
14077 lt_prog_compiler_wl_CXX='--backend -Wl,'
14078 lt_prog_compiler_pic_CXX='-fPIC'
14080 ecpc* )
14081 # old Intel C++ for x86_64 which still supported -KPIC.
14082 lt_prog_compiler_wl_CXX='-Wl,'
14083 lt_prog_compiler_pic_CXX='-KPIC'
14084 lt_prog_compiler_static_CXX='-static'
14086 icpc* )
14087 # Intel C++, used to be incompatible with GCC.
14088 # ICC 10 doesn't accept -KPIC any more.
14089 lt_prog_compiler_wl_CXX='-Wl,'
14090 lt_prog_compiler_pic_CXX='-fPIC'
14091 lt_prog_compiler_static_CXX='-static'
14093 pgCC* | pgcpp*)
14094 # Portland Group C++ compiler
14095 lt_prog_compiler_wl_CXX='-Wl,'
14096 lt_prog_compiler_pic_CXX='-fpic'
14097 lt_prog_compiler_static_CXX='-Bstatic'
14099 cxx*)
14100 # Compaq C++
14101 # Make sure the PIC flag is empty. It appears that all Alpha
14102 # Linux and Compaq Tru64 Unix objects are PIC.
14103 lt_prog_compiler_pic_CXX=
14104 lt_prog_compiler_static_CXX='-non_shared'
14106 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14107 # IBM XL 8.0, 9.0 on PPC and BlueGene
14108 lt_prog_compiler_wl_CXX='-Wl,'
14109 lt_prog_compiler_pic_CXX='-qpic'
14110 lt_prog_compiler_static_CXX='-qstaticlink'
14113 case `$CC -V 2>&1 | sed 5q` in
14114 *Sun\ C*)
14115 # Sun C++ 5.9
14116 lt_prog_compiler_pic_CXX='-KPIC'
14117 lt_prog_compiler_static_CXX='-Bstatic'
14118 lt_prog_compiler_wl_CXX='-Qoption ld '
14120 esac
14122 esac
14124 lynxos*)
14126 m88k*)
14128 mvs*)
14129 case $cc_basename in
14130 cxx*)
14131 lt_prog_compiler_pic_CXX='-W c,exportall'
14135 esac
14137 netbsd*)
14139 *qnx* | *nto*)
14140 # QNX uses GNU C++, but need to define -shared option too, otherwise
14141 # it will coredump.
14142 lt_prog_compiler_pic_CXX='-fPIC -shared'
14144 osf3* | osf4* | osf5*)
14145 case $cc_basename in
14146 KCC*)
14147 lt_prog_compiler_wl_CXX='--backend -Wl,'
14149 RCC*)
14150 # Rational C++ 2.4.1
14151 lt_prog_compiler_pic_CXX='-pic'
14153 cxx*)
14154 # Digital/Compaq C++
14155 lt_prog_compiler_wl_CXX='-Wl,'
14156 # Make sure the PIC flag is empty. It appears that all Alpha
14157 # Linux and Compaq Tru64 Unix objects are PIC.
14158 lt_prog_compiler_pic_CXX=
14159 lt_prog_compiler_static_CXX='-non_shared'
14163 esac
14165 psos*)
14167 solaris*)
14168 case $cc_basename in
14169 CC*)
14170 # Sun C++ 4.2, 5.x and Centerline C++
14171 lt_prog_compiler_pic_CXX='-KPIC'
14172 lt_prog_compiler_static_CXX='-Bstatic'
14173 lt_prog_compiler_wl_CXX='-Qoption ld '
14175 gcx*)
14176 # Green Hills C++ Compiler
14177 lt_prog_compiler_pic_CXX='-PIC'
14181 esac
14183 sunos4*)
14184 case $cc_basename in
14185 CC*)
14186 # Sun C++ 4.x
14187 lt_prog_compiler_pic_CXX='-pic'
14188 lt_prog_compiler_static_CXX='-Bstatic'
14190 lcc*)
14191 # Lucid
14192 lt_prog_compiler_pic_CXX='-pic'
14196 esac
14198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14199 case $cc_basename in
14200 CC*)
14201 lt_prog_compiler_wl_CXX='-Wl,'
14202 lt_prog_compiler_pic_CXX='-KPIC'
14203 lt_prog_compiler_static_CXX='-Bstatic'
14205 esac
14207 tandem*)
14208 case $cc_basename in
14209 NCC*)
14210 # NonStop-UX NCC 3.20
14211 lt_prog_compiler_pic_CXX='-KPIC'
14215 esac
14217 vxworks*)
14220 lt_prog_compiler_can_build_shared_CXX=no
14222 esac
14225 case $host_os in
14226 # For platforms which do not support PIC, -DPIC is meaningless:
14227 *djgpp*)
14228 lt_prog_compiler_pic_CXX=
14231 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14233 esac
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14235 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14240 # Check to make sure the PIC flag actually works.
14242 if test -n "$lt_prog_compiler_pic_CXX"; then
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14245 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 lt_cv_prog_compiler_pic_works_CXX=no
14249 ac_outfile=conftest.$ac_objext
14250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14251 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14252 # Insert the option either (1) after the last *FLAGS variable, or
14253 # (2) before a word containing "conftest.", or (3) at the end.
14254 # Note that $ac_compile itself does not contain backslashes and begins
14255 # with a dollar sign (not a hyphen), so the echo should work correctly.
14256 # The option is referenced via a variable to avoid confusing sed.
14257 lt_compile=`echo "$ac_compile" | $SED \
14258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14260 -e 's:$: $lt_compiler_flag:'`
14261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14262 (eval "$lt_compile" 2>conftest.err)
14263 ac_status=$?
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 if (exit $ac_status) && test -s "$ac_outfile"; then
14267 # The compiler can only warn and ignore the option if not recognized
14268 # So say no if there are warnings other than the usual output.
14269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14272 lt_cv_prog_compiler_pic_works_CXX=yes
14275 $RM conftest*
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14279 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14281 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14282 case $lt_prog_compiler_pic_CXX in
14283 "" | " "*) ;;
14284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14285 esac
14286 else
14287 lt_prog_compiler_pic_CXX=
14288 lt_prog_compiler_can_build_shared_CXX=no
14296 # Check to make sure the static flag actually works.
14298 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14301 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 lt_cv_prog_compiler_static_works_CXX=no
14305 save_LDFLAGS="$LDFLAGS"
14306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14309 # The linker can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 if test -s conftest.err; then
14312 # Append any errors to the config.log.
14313 cat conftest.err 1>&5
14314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14316 if diff conftest.exp conftest.er2 >/dev/null; then
14317 lt_cv_prog_compiler_static_works_CXX=yes
14319 else
14320 lt_cv_prog_compiler_static_works_CXX=yes
14323 $RM -r conftest*
14324 LDFLAGS="$save_LDFLAGS"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14328 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14330 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14332 else
14333 lt_prog_compiler_static_CXX=
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 lt_cv_prog_compiler_c_o_CXX=no
14345 $RM -r conftest 2>/dev/null
14346 mkdir conftest
14347 cd conftest
14348 mkdir out
14349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351 lt_compiler_flag="-o out/conftest2.$ac_objext"
14352 # Insert the option either (1) after the last *FLAGS variable, or
14353 # (2) before a word containing "conftest.", or (3) at the end.
14354 # Note that $ac_compile itself does not contain backslashes and begins
14355 # with a dollar sign (not a hyphen), so the echo should work correctly.
14356 lt_compile=`echo "$ac_compile" | $SED \
14357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359 -e 's:$: $lt_compiler_flag:'`
14360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14361 (eval "$lt_compile" 2>out/conftest.err)
14362 ac_status=$?
14363 cat out/conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14366 then
14367 # The compiler can only warn and ignore the option if not recognized
14368 # So say no if there are warnings
14369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14372 lt_cv_prog_compiler_c_o_CXX=yes
14375 chmod u+w . 2>&5
14376 $RM conftest*
14377 # SGI C++ compiler will create directory out/ii_files/ for
14378 # template instantiation
14379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14380 $RM out/* && rmdir out
14381 cd ..
14382 $RM -r conftest
14383 $RM conftest*
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14392 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14393 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 lt_cv_prog_compiler_c_o_CXX=no
14397 $RM -r conftest 2>/dev/null
14398 mkdir conftest
14399 cd conftest
14400 mkdir out
14401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403 lt_compiler_flag="-o out/conftest2.$ac_objext"
14404 # Insert the option either (1) after the last *FLAGS variable, or
14405 # (2) before a word containing "conftest.", or (3) at the end.
14406 # Note that $ac_compile itself does not contain backslashes and begins
14407 # with a dollar sign (not a hyphen), so the echo should work correctly.
14408 lt_compile=`echo "$ac_compile" | $SED \
14409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14411 -e 's:$: $lt_compiler_flag:'`
14412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14413 (eval "$lt_compile" 2>out/conftest.err)
14414 ac_status=$?
14415 cat out/conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14418 then
14419 # The compiler can only warn and ignore the option if not recognized
14420 # So say no if there are warnings
14421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14424 lt_cv_prog_compiler_c_o_CXX=yes
14427 chmod u+w . 2>&5
14428 $RM conftest*
14429 # SGI C++ compiler will create directory out/ii_files/ for
14430 # template instantiation
14431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14432 $RM out/* && rmdir out
14433 cd ..
14434 $RM -r conftest
14435 $RM conftest*
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14439 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14444 hard_links="nottested"
14445 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14446 # do not overwrite the value of need_locks provided by the user
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14448 $as_echo_n "checking if we can lock with hard links... " >&6; }
14449 hard_links=yes
14450 $RM conftest*
14451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14452 touch conftest.a
14453 ln conftest.a conftest.b 2>&5 || hard_links=no
14454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14456 $as_echo "$hard_links" >&6; }
14457 if test "$hard_links" = no; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14460 need_locks=warn
14462 else
14463 need_locks=no
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14469 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14471 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14472 case $host_os in
14473 aix[4-9]*)
14474 # If we're using GNU nm, then we don't want the "-C" option.
14475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14476 # Also, AIX nm treats weak defined symbols like other global defined
14477 # symbols, whereas GNU nm marks them as "W".
14478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14479 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'
14480 else
14481 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'
14484 pw32*)
14485 export_symbols_cmds_CXX="$ltdll_cmds"
14487 cygwin* | mingw* | cegcc*)
14488 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'
14491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 esac
14494 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497 $as_echo "$ld_shlibs_CXX" >&6; }
14498 test "$ld_shlibs_CXX" = no && can_build_shared=no
14500 with_gnu_ld_CXX=$with_gnu_ld
14508 # Do we need to explicitly link libc?
14510 case "x$archive_cmds_need_lc_CXX" in
14511 x|xyes)
14512 # Assume -lc should be added
14513 archive_cmds_need_lc_CXX=yes
14515 if test "$enable_shared" = yes && test "$GCC" = yes; then
14516 case $archive_cmds_CXX in
14517 *'~'*)
14518 # FIXME: we may have to deal with multi-command sequences.
14520 '$CC '*)
14521 # Test whether the compiler implicitly links with -lc since on some
14522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14523 # to ld, don't add -lc before -lgcc.
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14526 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 $RM conftest*
14530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14533 (eval $ac_compile) 2>&5
14534 ac_status=$?
14535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536 test $ac_status = 0; } 2>conftest.err; then
14537 soname=conftest
14538 lib=conftest
14539 libobjs=conftest.$ac_objext
14540 deplibs=
14541 wl=$lt_prog_compiler_wl_CXX
14542 pic_flag=$lt_prog_compiler_pic_CXX
14543 compiler_flags=-v
14544 linker_flags=-v
14545 verstring=
14546 output_objdir=.
14547 libname=conftest
14548 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14549 allow_undefined_flag_CXX=
14550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14551 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; }
14555 then
14556 lt_cv_archive_cmds_need_lc_CXX=no
14557 else
14558 lt_cv_archive_cmds_need_lc_CXX=yes
14560 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14561 else
14562 cat conftest.err 1>&5
14564 $RM conftest*
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14568 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14569 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14571 esac
14574 esac
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14642 library_names_spec=
14643 libname_spec='lib$name'
14644 soname_spec=
14645 shrext_cmds=".so"
14646 postinstall_cmds=
14647 postuninstall_cmds=
14648 finish_cmds=
14649 finish_eval=
14650 shlibpath_var=
14651 shlibpath_overrides_runpath=unknown
14652 version_type=none
14653 dynamic_linker="$host_os ld.so"
14654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14655 need_lib_prefix=unknown
14656 hardcode_into_libs=no
14658 # when you set need_version to no, make sure it does not cause -set_version
14659 # flags to be left without arguments
14660 need_version=unknown
14662 case $host_os in
14663 aix3*)
14664 version_type=linux
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14666 shlibpath_var=LIBPATH
14668 # AIX 3 has no versioning support, so we append a major version to the name.
14669 soname_spec='${libname}${release}${shared_ext}$major'
14672 aix[4-9]*)
14673 version_type=linux
14674 need_lib_prefix=no
14675 need_version=no
14676 hardcode_into_libs=yes
14677 if test "$host_cpu" = ia64; then
14678 # AIX 5 supports IA64
14679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 else
14682 # With GCC up to 2.95.x, collect2 would create an import file
14683 # for dependence libraries. The import file would start with
14684 # the line `#! .'. This would cause the generated library to
14685 # depend on `.', always an invalid library. This was fixed in
14686 # development snapshots of GCC prior to 3.0.
14687 case $host_os in
14688 aix4 | aix4.[01] | aix4.[01].*)
14689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14690 echo ' yes '
14691 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14693 else
14694 can_build_shared=no
14697 esac
14698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14699 # soname into executable. Probably we can add versioning support to
14700 # collect2, so additional links can be useful in future.
14701 if test "$aix_use_runtimelinking" = yes; then
14702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14703 # instead of lib<name>.a to let people know that these are not
14704 # typical AIX shared libraries.
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 else
14707 # We preserve .a as extension for shared libraries through AIX4.2
14708 # and later when we are not doing run time linking.
14709 library_names_spec='${libname}${release}.a $libname.a'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LIBPATH
14716 amigaos*)
14717 case $host_cpu in
14718 powerpc)
14719 # Since July 2007 AmigaOS4 officially supports .so libraries.
14720 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 m68k)
14724 library_names_spec='$libname.ixlibrary $libname.a'
14725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14726 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'
14728 esac
14731 beos*)
14732 library_names_spec='${libname}${shared_ext}'
14733 dynamic_linker="$host_os ld.so"
14734 shlibpath_var=LIBRARY_PATH
14737 bsdi[45]*)
14738 version_type=linux
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14746 # the default ld.so.conf also contains /usr/contrib/lib and
14747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14748 # libtool to hard-code these into programs
14751 cygwin* | mingw* | pw32* | cegcc*)
14752 version_type=windows
14753 shrext_cmds=".dll"
14754 need_version=no
14755 need_lib_prefix=no
14757 case $GCC,$host_os in
14758 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14759 library_names_spec='$libname.dll.a'
14760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14761 postinstall_cmds='base_file=`basename \${file}`~
14762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14763 dldir=$destdir/`dirname \$dlpath`~
14764 test -d \$dldir || mkdir -p \$dldir~
14765 $install_prog $dir/$dlname \$dldir/$dlname~
14766 chmod a+x \$dldir/$dlname~
14767 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14768 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14771 dlpath=$dir/\$dldll~
14772 $RM \$dlpath'
14773 shlibpath_overrides_runpath=yes
14775 case $host_os in
14776 cygwin*)
14777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14781 mingw* | cegcc*)
14782 # MinGW DLLs use traditional 'lib' prefix
14783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785 pw32*)
14786 # pw32 DLLs use 'pw' prefix rather than 'lib'
14787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14789 esac
14793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14795 esac
14796 dynamic_linker='Win32 ld.exe'
14797 # FIXME: first we should search . and the directory the executable is in
14798 shlibpath_var=PATH
14801 darwin* | rhapsody*)
14802 dynamic_linker="$host_os dyld"
14803 version_type=darwin
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14807 soname_spec='${libname}${release}${major}$shared_ext'
14808 shlibpath_overrides_runpath=yes
14809 shlibpath_var=DYLD_LIBRARY_PATH
14810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14812 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14815 dgux*)
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14824 freebsd* | dragonfly*)
14825 # DragonFly does not have aout. When/if they implement a new
14826 # versioning mechanism, adjust this.
14827 if test -x /usr/bin/objformat; then
14828 objformat=`/usr/bin/objformat`
14829 else
14830 case $host_os in
14831 freebsd[23].*) objformat=aout ;;
14832 *) objformat=elf ;;
14833 esac
14835 version_type=freebsd-$objformat
14836 case $version_type in
14837 freebsd-elf*)
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14839 need_version=no
14840 need_lib_prefix=no
14842 freebsd-*)
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14844 need_version=yes
14846 esac
14847 shlibpath_var=LD_LIBRARY_PATH
14848 case $host_os in
14849 freebsd2.*)
14850 shlibpath_overrides_runpath=yes
14852 freebsd3.[01]* | freebsdelf3.[01]*)
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14858 shlibpath_overrides_runpath=no
14859 hardcode_into_libs=yes
14861 *) # from 4.6 on, and DragonFly
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14865 esac
14868 gnu*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 hardcode_into_libs=yes
14878 haiku*)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 dynamic_linker="$host_os runtime_loader"
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14887 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14888 hardcode_into_libs=yes
14891 hpux9* | hpux10* | hpux11*)
14892 # Give a soname corresponding to the major version so that dld.sl refuses to
14893 # link against other versions.
14894 version_type=sunos
14895 need_lib_prefix=no
14896 need_version=no
14897 case $host_cpu in
14898 ia64*)
14899 shrext_cmds='.so'
14900 hardcode_into_libs=yes
14901 dynamic_linker="$host_os dld.so"
14902 shlibpath_var=LD_LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 if test "X$HPUX_IA64_MODE" = X32; then
14907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14908 else
14909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14913 hppa*64*)
14914 shrext_cmds='.sl'
14915 hardcode_into_libs=yes
14916 dynamic_linker="$host_os dld.sl"
14917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14925 shrext_cmds='.sl'
14926 dynamic_linker="$host_os dld.sl"
14927 shlibpath_var=SHLIB_PATH
14928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14932 esac
14933 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14934 postinstall_cmds='chmod 555 $lib'
14935 # or fails outright, so override atomically:
14936 install_override_mode=555
14939 interix[3-9]*)
14940 version_type=linux
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 shlibpath_overrides_runpath=no
14948 hardcode_into_libs=yes
14951 irix5* | irix6* | nonstopux*)
14952 case $host_os in
14953 nonstopux*) version_type=nonstopux ;;
14955 if test "$lt_cv_prog_gnu_ld" = yes; then
14956 version_type=linux
14957 else
14958 version_type=irix
14959 fi ;;
14960 esac
14961 need_lib_prefix=no
14962 need_version=no
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14965 case $host_os in
14966 irix5* | nonstopux*)
14967 libsuff= shlibsuff=
14970 case $LD in # libtool.m4 will add one of these switches to LD
14971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14972 libsuff= shlibsuff= libmagic=32-bit;;
14973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14974 libsuff=32 shlibsuff=N32 libmagic=N32;;
14975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14977 *) libsuff= shlibsuff= libmagic=never-match;;
14978 esac
14980 esac
14981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14982 shlibpath_overrides_runpath=no
14983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14985 hardcode_into_libs=yes
14988 # No shared lib support for Linux oldld, aout, or coff.
14989 linux*oldld* | linux*aout* | linux*coff*)
14990 dynamic_linker=no
14993 # This must be Linux ELF.
14994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14995 version_type=linux
14996 need_lib_prefix=no
14997 need_version=no
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15001 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=no
15004 # Some binutils ld are patched to set DT_RUNPATH
15005 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 lt_cv_shlibpath_overrides_runpath=no
15009 save_LDFLAGS=$LDFLAGS
15010 save_libdir=$libdir
15011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15017 main ()
15021 return 0;
15023 _ACEOF
15024 if ac_fn_cxx_try_link "$LINENO"; then :
15025 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15026 lt_cv_shlibpath_overrides_runpath=yes
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LDFLAGS=$save_LDFLAGS
15032 libdir=$save_libdir
15036 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15038 # This implies no fast_install, which is unacceptable.
15039 # Some rework will be needed to allow for fast_install
15040 # before this can be enabled.
15041 hardcode_into_libs=yes
15043 # Append ld.so.conf contents to the search path
15044 if test -f /etc/ld.so.conf; then
15045 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' ' '`
15046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15049 # We used to test for /lib/ld.so.1 and disable shared libraries on
15050 # powerpc, because MkLinux only supported shared libraries with the
15051 # GNU dynamic linker. Since this was broken with cross compilers,
15052 # most powerpc-linux boxes support dynamic linking these days and
15053 # people can always --disable-shared, the test was removed, and we
15054 # assume the GNU/Linux dynamic linker is in use.
15055 dynamic_linker='GNU/Linux ld.so'
15058 netbsd*)
15059 version_type=sunos
15060 need_lib_prefix=no
15061 need_version=no
15062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15065 dynamic_linker='NetBSD (a.out) ld.so'
15066 else
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 dynamic_linker='NetBSD ld.elf_so'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15076 newsos6)
15077 version_type=linux
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15083 *nto* | *qnx*)
15084 version_type=qnx
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=no
15091 hardcode_into_libs=yes
15092 dynamic_linker='ldqnx.so'
15095 openbsd*)
15096 version_type=sunos
15097 sys_lib_dlsearch_path_spec="/usr/lib"
15098 need_lib_prefix=no
15099 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15100 case $host_os in
15101 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15102 *) need_version=no ;;
15103 esac
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15108 case $host_os in
15109 openbsd2.[89] | openbsd2.[89].*)
15110 shlibpath_overrides_runpath=no
15113 shlibpath_overrides_runpath=yes
15115 esac
15116 else
15117 shlibpath_overrides_runpath=yes
15121 os2*)
15122 libname_spec='$name'
15123 shrext_cmds=".dll"
15124 need_lib_prefix=no
15125 library_names_spec='$libname${shared_ext} $libname.a'
15126 dynamic_linker='OS/2 ld.exe'
15127 shlibpath_var=LIBPATH
15130 osf3* | osf4* | osf5*)
15131 version_type=osf
15132 need_lib_prefix=no
15133 need_version=no
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15141 rdos*)
15142 dynamic_linker=no
15145 solaris*)
15146 version_type=linux
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 # ldd complains unless libraries are executable
15155 postinstall_cmds='chmod +x $lib'
15158 sunos4*)
15159 version_type=sunos
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 shlibpath_overrides_runpath=yes
15164 if test "$with_gnu_ld" = yes; then
15165 need_lib_prefix=no
15167 need_version=yes
15170 sysv4 | sysv4.3*)
15171 version_type=linux
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 case $host_vendor in
15176 sni)
15177 shlibpath_overrides_runpath=no
15178 need_lib_prefix=no
15179 runpath_var=LD_RUN_PATH
15181 siemens)
15182 need_lib_prefix=no
15184 motorola)
15185 need_lib_prefix=no
15186 need_version=no
15187 shlibpath_overrides_runpath=no
15188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15190 esac
15193 sysv4*MP*)
15194 if test -d /usr/nec ;then
15195 version_type=linux
15196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15197 soname_spec='$libname${shared_ext}.$major'
15198 shlibpath_var=LD_LIBRARY_PATH
15202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15203 version_type=freebsd-elf
15204 need_lib_prefix=no
15205 need_version=no
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes
15210 hardcode_into_libs=yes
15211 if test "$with_gnu_ld" = yes; then
15212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15213 else
15214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15215 case $host_os in
15216 sco3.2v5*)
15217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15219 esac
15221 sys_lib_dlsearch_path_spec='/usr/lib'
15224 tpf*)
15225 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15226 version_type=linux
15227 need_lib_prefix=no
15228 need_version=no
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=no
15232 hardcode_into_libs=yes
15235 uts4*)
15236 version_type=linux
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15243 dynamic_linker=no
15245 esac
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15247 $as_echo "$dynamic_linker" >&6; }
15248 test "$dynamic_linker" = no && can_build_shared=no
15250 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15251 if test "$GCC" = yes; then
15252 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15255 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15256 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15258 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15259 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15301 hardcode_action_CXX=
15302 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15303 test -n "$runpath_var_CXX" ||
15304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15306 # We can hardcode non-existent directories.
15307 if test "$hardcode_direct_CXX" != no &&
15308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15309 # have to relink, otherwise we might link with an installed library
15310 # when we should be linking with a yet-to-be-installed one
15311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15312 test "$hardcode_minus_L_CXX" != no; then
15313 # Linking always hardcodes the temporary library directory.
15314 hardcode_action_CXX=relink
15315 else
15316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15317 hardcode_action_CXX=immediate
15319 else
15320 # We cannot hardcode anything, or else we can only hardcode existing
15321 # directories.
15322 hardcode_action_CXX=unsupported
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15325 $as_echo "$hardcode_action_CXX" >&6; }
15327 if test "$hardcode_action_CXX" = relink ||
15328 test "$inherit_rpath_CXX" = yes; then
15329 # Fast installation is not supported
15330 enable_fast_install=no
15331 elif test "$shlibpath_overrides_runpath" = yes ||
15332 test "$enable_shared" = no; then
15333 # Fast installation is not necessary
15334 enable_fast_install=needless
15343 fi # test -n "$compiler"
15345 CC=$lt_save_CC
15346 LDCXX=$LD
15347 LD=$lt_save_LD
15348 GCC=$lt_save_GCC
15349 with_gnu_ld=$lt_save_with_gnu_ld
15350 lt_cv_path_LDCXX=$lt_cv_path_LD
15351 lt_cv_path_LD=$lt_save_path_LD
15352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15354 fi # test "$_lt_caught_CXX_error" != yes
15356 ac_ext=c
15357 ac_cpp='$CPP $CPPFLAGS'
15358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374 ac_config_commands="$ac_config_commands libtool"
15379 # Only expand once:
15383 for ac_prog in gawk mawk nawk awk
15385 # Extract the first word of "$ac_prog", so it can be a program name with args.
15386 set dummy $ac_prog; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if test "${ac_cv_prog_AWK+set}" = set; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 if test -n "$AWK"; then
15393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15394 else
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15402 ac_cv_prog_AWK="$ac_prog"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15406 done
15407 done
15408 IFS=$as_save_IFS
15412 AWK=$ac_cv_prog_AWK
15413 if test -n "$AWK"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15415 $as_echo "$AWK" >&6; }
15416 else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15422 test -n "$AWK" && break
15423 done
15425 case "$AWK" in
15426 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15427 esac
15432 # The cast to long int works around a bug in the HP C Compiler
15433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15435 # This bug is HP SR number 8606223364.
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15437 $as_echo_n "checking size of void *... " >&6; }
15438 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15443 else
15444 if test "$ac_cv_type_void_p" = yes; then
15445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15447 { as_fn_set_status 77
15448 as_fn_error "cannot compute sizeof (void *)
15449 See \`config.log' for more details." "$LINENO" 5; }; }
15450 else
15451 ac_cv_sizeof_void_p=0
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15457 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15461 cat >>confdefs.h <<_ACEOF
15462 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15463 _ACEOF
15467 if test "${multilib}" = "yes"; then
15468 multilib_arg="--enable-multilib"
15469 else
15470 multilib_arg=
15473 # Get target configury.
15474 unset TSAN_SUPPORTED
15475 unset LSAN_SUPPORTED
15476 . ${srcdir}/configure.tgt
15477 if test "x$TSAN_SUPPORTED" = "xyes"; then
15478 TSAN_SUPPORTED_TRUE=
15479 TSAN_SUPPORTED_FALSE='#'
15480 else
15481 TSAN_SUPPORTED_TRUE='#'
15482 TSAN_SUPPORTED_FALSE=
15485 if test "x$LSAN_SUPPORTED" = "xyes"; then
15486 LSAN_SUPPORTED_TRUE=
15487 LSAN_SUPPORTED_FALSE='#'
15488 else
15489 LSAN_SUPPORTED_TRUE='#'
15490 LSAN_SUPPORTED_FALSE=
15494 # Check for functions needed.
15495 for ac_func in clock_getres clock_gettime clock_settime
15496 do :
15497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15499 eval as_val=\$$as_ac_var
15500 if test "x$as_val" = x""yes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 _ACEOF
15506 done
15509 # Common libraries that we need to link against for all sanitizer libs.
15510 link_sanitizer_common='-lpthread -ldl -lm'
15512 # Set up the set of additional libraries that we need to link against for libasan.
15513 link_libasan=$link_sanitizer_common
15516 # Set up the set of additional libraries that we need to link against for libtsan.
15517 link_libtsan=$link_sanitizer_common
15520 # Set up the set of additional libraries that we need to link against for libubsan.
15521 link_libubsan=$link_sanitizer_common
15524 # Set up the set of additional libraries that we need to link against for liblsan.
15525 link_liblsan=$link_sanitizer_common
15528 # At least for glibc, clock_gettime is in librt. But don't pull that
15529 # in if it still doesn't give us the function we want. This
15530 # test is copied from libgomp.
15531 if test $ac_cv_func_clock_gettime = no; then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15533 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15534 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lrt $LIBS"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char clock_gettime ();
15550 main ()
15552 return clock_gettime ();
15554 return 0;
15556 _ACEOF
15557 if ac_fn_c_try_link "$LINENO"; then :
15558 ac_cv_lib_rt_clock_gettime=yes
15559 else
15560 ac_cv_lib_rt_clock_gettime=no
15562 rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15567 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15568 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15569 link_libasan="-lrt $link_libasan"
15570 link_libtsan="-lrt $link_libtsan"
15571 # Other sanitizers do not override clock_* API
15577 case "$host" in
15578 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15579 *) MAC_INTERPOSE=false ;;
15580 esac
15581 if $MAC_INTERPOSE; then
15582 USING_MAC_INTERPOSE_TRUE=
15583 USING_MAC_INTERPOSE_FALSE='#'
15584 else
15585 USING_MAC_INTERPOSE_TRUE='#'
15586 USING_MAC_INTERPOSE_FALSE=
15590 backtrace_supported=yes
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15593 $as_echo_n "checking for necessary platform features... " >&6; }
15594 case "$target" in
15595 *-*-linux*)
15596 # Some old Linux distributions miss required syscalls.
15597 sanitizer_supported=no
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 #include <sys/syscall.h>
15602 main ()
15605 syscall (__NR_gettid);
15606 syscall (__NR_futex);
15607 syscall (__NR_exit_group);
15610 return 0;
15612 _ACEOF
15613 if ac_fn_c_try_compile "$LINENO"; then :
15614 sanitizer_supported=yes
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619 sanitizer_supported=yes
15621 esac
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15623 $as_echo "$sanitizer_supported" >&6; }
15624 if test "$sanitizer_supported" = yes; then
15625 SANITIZER_SUPPORTED_TRUE=
15626 SANITIZER_SUPPORTED_FALSE='#'
15627 else
15628 SANITIZER_SUPPORTED_TRUE='#'
15629 SANITIZER_SUPPORTED_FALSE=
15633 # Test for __sync support.
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15635 $as_echo_n "checking __sync extensions... " >&6; }
15636 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 if test -n "${with_target_subdir}"; then
15640 libsanitizer_cv_sys_sync=yes
15641 else
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int i;
15646 main ()
15648 __sync_bool_compare_and_swap (&i, i, i);
15649 __sync_lock_test_and_set (&i, 1);
15650 __sync_lock_release (&i);
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 libsanitizer_cv_sys_sync=yes
15657 else
15658 libsanitizer_cv_sys_sync=no
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15665 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15666 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15668 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15672 # Test for __atomic support.
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15674 $as_echo_n "checking __atomic extensions... " >&6; }
15675 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "${with_target_subdir}"; then
15679 libsanitizer_cv_sys_atomic=yes
15680 else
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 int i;
15685 main ()
15687 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15688 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15690 return 0;
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694 libsanitizer_cv_sys_atomic=yes
15695 else
15696 libsanitizer_cv_sys_atomic=no
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15703 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15704 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15706 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15710 # The library needs to be able to read the executable itself. Compile
15711 # a file to determine the executable format. The awk script
15712 # filetype.awk prints out the file type.
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15714 $as_echo_n "checking output filetype... " >&6; }
15715 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 filetype=
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int i;
15723 main ()
15725 int j;
15727 return 0;
15729 _ACEOF
15730 if ac_fn_c_try_compile "$LINENO"; then :
15731 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15732 else
15733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15735 as_fn_error "compiler failed
15736 See \`config.log' for more details." "$LINENO" 5; }
15738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 libsanitizer_cv_sys_filetype=$filetype
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15742 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15744 # Match the file type to decide what files to compile.
15745 FORMAT_FILE=
15746 case "$libsanitizer_cv_sys_filetype" in
15747 elf*) FORMAT_FILE="elf.lo" ;;
15748 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15749 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15750 FORMAT_FILE="unknown.lo"
15751 backtrace_supported=no
15753 esac
15756 # ELF defines.
15757 elfsize=
15758 case "$libsanitizer_cv_sys_filetype" in
15759 elf32) elfsize=32 ;;
15760 elf64) elfsize=64 ;;
15761 esac
15763 cat >>confdefs.h <<_ACEOF
15764 #define BACKTRACE_ELF_SIZE $elfsize
15765 _ACEOF
15768 BACKTRACE_SUPPORTED=0
15769 if test "$backtrace_supported" = "yes"; then
15770 BACKTRACE_SUPPORTED=1
15776 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15778 acx_cv_header_stdint=stddef.h
15779 acx_cv_header_stdint_kind="(already complete)"
15780 for i in stdint.h $inttype_headers; do
15781 unset ac_cv_type_uintptr_t
15782 unset ac_cv_type_uintmax_t
15783 unset ac_cv_type_int_least32_t
15784 unset ac_cv_type_int_fast32_t
15785 unset ac_cv_type_uint64_t
15786 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15787 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15788 #include <$i>
15790 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15791 acx_cv_header_stdint=$i
15792 else
15793 continue
15796 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15797 #include <$i>
15799 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15801 else
15802 acx_cv_header_stdint_kind="(mostly complete)"
15805 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15806 #include <$i>
15808 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15810 else
15811 acx_cv_header_stdint_kind="(mostly complete)"
15814 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15815 #include <$i>
15817 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15819 else
15820 acx_cv_header_stdint_kind="(mostly complete)"
15823 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15824 #include <$i>
15826 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15828 else
15829 acx_cv_header_stdint_kind="(lacks uint64_t)"
15832 break
15833 done
15834 if test "$acx_cv_header_stdint" = stddef.h; then
15835 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15836 for i in stdint.h $inttype_headers; do
15837 unset ac_cv_type_uintptr_t
15838 unset ac_cv_type_uint32_t
15839 unset ac_cv_type_uint64_t
15840 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15841 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15842 #include <$i>
15844 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15845 acx_cv_header_stdint=$i
15846 else
15847 continue
15850 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15851 #include <$i>
15853 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15857 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15858 #include <$i>
15860 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15864 break
15865 done
15867 if test "$acx_cv_header_stdint" = stddef.h; then
15868 acx_cv_header_stdint_kind="(u_intXX_t style)"
15869 for i in sys/types.h $inttype_headers; do
15870 unset ac_cv_type_u_int32_t
15871 unset ac_cv_type_u_int64_t
15872 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15873 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15874 #include <$i>
15876 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15877 acx_cv_header_stdint=$i
15878 else
15879 continue
15882 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15883 #include <$i>
15885 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15889 break
15890 done
15892 if test "$acx_cv_header_stdint" = stddef.h; then
15893 acx_cv_header_stdint_kind="(using manual detection)"
15896 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15897 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15898 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15899 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15900 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15902 # ----------------- Summarize what we found so far
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15905 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15907 case `$as_basename -- gstdint.h ||
15908 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15909 Xgstdint.h : 'X\(//\)$' \| \
15910 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15911 $as_echo X/gstdint.h |
15912 sed '/^.*\/\([^/][^/]*\)\/*$/{
15913 s//\1/
15916 /^X\/\(\/\/\)$/{
15917 s//\1/
15920 /^X\/\(\/\).*/{
15921 s//\1/
15924 s/.*/./; q'` in
15925 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15926 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15927 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15928 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15929 *) ;;
15930 esac
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15933 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15935 # ----------------- done included file, check C basic types --------
15937 # Lacking an uintptr_t? Test size of void *
15938 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15939 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15942 # This bug is HP SR number 8606223364.
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15944 $as_echo_n "checking size of void *... " >&6; }
15945 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15950 else
15951 if test "$ac_cv_type_void_p" = yes; then
15952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15954 { as_fn_set_status 77
15955 as_fn_error "cannot compute sizeof (void *)
15956 See \`config.log' for more details." "$LINENO" 5; }; }
15957 else
15958 ac_cv_sizeof_void_p=0
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15964 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15968 cat >>confdefs.h <<_ACEOF
15969 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15970 _ACEOF
15973 esac
15975 # Lacking an uint64_t? Test size of long
15976 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15977 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15980 # This bug is HP SR number 8606223364.
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15982 $as_echo_n "checking size of long... " >&6; }
15983 if test "${ac_cv_sizeof_long+set}" = set; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15988 else
15989 if test "$ac_cv_type_long" = yes; then
15990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15992 { as_fn_set_status 77
15993 as_fn_error "cannot compute sizeof (long)
15994 See \`config.log' for more details." "$LINENO" 5; }; }
15995 else
15996 ac_cv_sizeof_long=0
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16002 $as_echo "$ac_cv_sizeof_long" >&6; }
16006 cat >>confdefs.h <<_ACEOF
16007 #define SIZEOF_LONG $ac_cv_sizeof_long
16008 _ACEOF
16011 esac
16013 if test $acx_cv_header_stdint = stddef.h; then
16014 # Lacking a good header? Test size of everything and deduce all types.
16015 # The cast to long int works around a bug in the HP C Compiler
16016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16018 # This bug is HP SR number 8606223364.
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16020 $as_echo_n "checking size of int... " >&6; }
16021 if test "${ac_cv_sizeof_int+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16026 else
16027 if test "$ac_cv_type_int" = yes; then
16028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16030 { as_fn_set_status 77
16031 as_fn_error "cannot compute sizeof (int)
16032 See \`config.log' for more details." "$LINENO" 5; }; }
16033 else
16034 ac_cv_sizeof_int=0
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16040 $as_echo "$ac_cv_sizeof_int" >&6; }
16044 cat >>confdefs.h <<_ACEOF
16045 #define SIZEOF_INT $ac_cv_sizeof_int
16046 _ACEOF
16049 # The cast to long int works around a bug in the HP C Compiler
16050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16052 # This bug is HP SR number 8606223364.
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16054 $as_echo_n "checking size of short... " >&6; }
16055 if test "${ac_cv_sizeof_short+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16060 else
16061 if test "$ac_cv_type_short" = yes; then
16062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16064 { as_fn_set_status 77
16065 as_fn_error "cannot compute sizeof (short)
16066 See \`config.log' for more details." "$LINENO" 5; }; }
16067 else
16068 ac_cv_sizeof_short=0
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16074 $as_echo "$ac_cv_sizeof_short" >&6; }
16078 cat >>confdefs.h <<_ACEOF
16079 #define SIZEOF_SHORT $ac_cv_sizeof_short
16080 _ACEOF
16083 # The cast to long int works around a bug in the HP C Compiler
16084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16086 # This bug is HP SR number 8606223364.
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16088 $as_echo_n "checking size of char... " >&6; }
16089 if test "${ac_cv_sizeof_char+set}" = set; then :
16090 $as_echo_n "(cached) " >&6
16091 else
16092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16094 else
16095 if test "$ac_cv_type_char" = yes; then
16096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16098 { as_fn_set_status 77
16099 as_fn_error "cannot compute sizeof (char)
16100 See \`config.log' for more details." "$LINENO" 5; }; }
16101 else
16102 ac_cv_sizeof_char=0
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16108 $as_echo "$ac_cv_sizeof_char" >&6; }
16112 cat >>confdefs.h <<_ACEOF
16113 #define SIZEOF_CHAR $ac_cv_sizeof_char
16114 _ACEOF
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16119 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16120 case "$ac_cv_sizeof_char" in
16121 1) acx_cv_type_int8_t=char ;;
16122 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16123 esac
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16125 $as_echo "$acx_cv_type_int8_t" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16128 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16129 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16130 2:*) acx_cv_type_int16_t=int ;;
16131 *:2) acx_cv_type_int16_t=short ;;
16132 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16133 esac
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16135 $as_echo "$acx_cv_type_int16_t" >&6; }
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16138 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16139 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16140 4:*) acx_cv_type_int32_t=int ;;
16141 *:4) acx_cv_type_int32_t=long ;;
16142 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16143 esac
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16145 $as_echo "$acx_cv_type_int32_t" >&6; }
16148 # These tests are here to make the output prettier
16150 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16151 case "$ac_cv_sizeof_long" in
16152 8) acx_cv_type_int64_t=long ;;
16153 esac
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16155 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16157 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16160 # Now we can use the above types
16162 if test "$ac_cv_type_uintptr_t" != yes; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16164 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16165 case $ac_cv_sizeof_void_p in
16166 2) acx_cv_type_intptr_t=int16_t ;;
16167 4) acx_cv_type_intptr_t=int32_t ;;
16168 8) acx_cv_type_intptr_t=int64_t ;;
16169 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16170 esac
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16172 $as_echo "$acx_cv_type_intptr_t" >&6; }
16175 # ----------------- done all checks, emit header -------------
16176 ac_config_commands="$ac_config_commands gstdint.h"
16181 for ac_header in sys/mman.h alloca.h
16182 do :
16183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16185 eval as_val=\$$as_ac_Header
16186 if test "x$as_val" = x""yes; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16193 done
16195 if test "$ac_cv_header_sys_mman_h" = "no"; then
16196 have_mmap=no
16197 else
16198 if test -n "${with_target_subdir}"; then
16199 # When built as a GCC target library, we can't do a link test. We
16200 # simply assume that if we have mman.h, we have mmap.
16201 have_mmap=yes
16202 else
16203 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16204 if test "x$ac_cv_func_mmap" = x""yes; then :
16205 have_mmap=yes
16206 else
16207 have_mmap=no
16212 if test "$have_mmap" = "no"; then
16213 VIEW_FILE=read.lo
16214 ALLOC_FILE=alloc.lo
16215 else
16216 VIEW_FILE=mmapio.lo
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 #include <sys/mman.h>
16221 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16222 #error no MAP_ANONYMOUS
16223 #endif
16225 _ACEOF
16226 if ac_fn_c_try_cpp "$LINENO"; then :
16227 ALLOC_FILE=mmap.lo
16228 else
16229 ALLOC_FILE=alloc.lo
16231 rm -f conftest.err conftest.$ac_ext
16236 BACKTRACE_USES_MALLOC=0
16237 if test "$ALLOC_FILE" = "alloc.lo"; then
16238 BACKTRACE_USES_MALLOC=1
16242 # Don't care about thread support
16243 BACKTRACE_SUPPORTS_THREADS=0
16246 # Check for dl_iterate_phdr.
16247 for ac_header in link.h
16248 do :
16249 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16250 if test "x$ac_cv_header_link_h" = x""yes; then :
16251 cat >>confdefs.h <<_ACEOF
16252 #define HAVE_LINK_H 1
16253 _ACEOF
16257 done
16259 if test "$ac_cv_header_link_h" = "no"; then
16260 have_dl_iterate_phdr=no
16261 else
16262 # When built as a GCC target library, we can't do a link test.
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16265 #include <link.h>
16267 _ACEOF
16268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16269 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16270 have_dl_iterate_phdr=yes
16271 else
16272 have_dl_iterate_phdr=no
16274 rm -f conftest*
16276 case "${host}" in
16277 *-*-solaris2.10*)
16278 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16279 # header file but is only in -ldl.
16280 have_dl_iterate_phdr=no ;;
16281 esac
16283 if test "$have_dl_iterate_phdr" = "yes"; then
16285 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16289 # Check for the fcntl function.
16290 if test -n "${with_target_subdir}"; then
16291 case "${host}" in
16292 *-*-mingw*) have_fcntl=no ;;
16293 *) have_fcntl=yes ;;
16294 esac
16295 else
16296 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16297 if test "x$ac_cv_func_fcntl" = x""yes; then :
16298 have_fcntl=yes
16299 else
16300 have_fcntl=no
16304 if test "$have_fcntl" = "yes"; then
16306 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16310 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16311 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16312 ac_have_decl=1
16313 else
16314 ac_have_decl=0
16317 cat >>confdefs.h <<_ACEOF
16318 #define HAVE_DECL_STRNLEN $ac_have_decl
16319 _ACEOF
16322 # Check for getexecname function.
16323 if test -n "${with_target_subdir}"; then
16324 case "${host}" in
16325 *-*-solaris2*) have_getexecname=yes ;;
16326 *) have_getexecname=no ;;
16327 esac
16328 else
16329 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16330 if test "x$ac_cv_func_getexecname" = x""yes; then :
16331 have_getexecname=yes
16332 else
16333 have_getexecname=no
16337 if test "$have_getexecname" = "yes"; then
16339 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16343 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16344 LIBBACKTRACE_SUPPORTED_TRUE=
16345 LIBBACKTRACE_SUPPORTED_FALSE='#'
16346 else
16347 LIBBACKTRACE_SUPPORTED_TRUE='#'
16348 LIBBACKTRACE_SUPPORTED_FALSE=
16353 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16355 ac_config_headers="$ac_config_headers config.h"
16358 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16361 if test "x$TSAN_SUPPORTED" = "xyes"; then
16362 ac_config_files="$ac_config_files tsan/Makefile"
16366 cat >confcache <<\_ACEOF
16367 # This file is a shell script that caches the results of configure
16368 # tests run on this system so they can be shared between configure
16369 # scripts and configure runs, see configure's option --config-cache.
16370 # It is not useful on other systems. If it contains results you don't
16371 # want to keep, you may remove or edit it.
16373 # config.status only pays attention to the cache file if you give it
16374 # the --recheck option to rerun configure.
16376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16378 # following values.
16380 _ACEOF
16382 # The following way of writing the cache mishandles newlines in values,
16383 # but we know of no workaround that is simple, portable, and efficient.
16384 # So, we kill variables containing newlines.
16385 # Ultrix sh set writes to stderr and can't be redirected directly,
16386 # and sets the high bit in the cache file unless we assign to the vars.
16388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16389 eval ac_val=\$$ac_var
16390 case $ac_val in #(
16391 *${as_nl}*)
16392 case $ac_var in #(
16393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16395 esac
16396 case $ac_var in #(
16397 _ | IFS | as_nl) ;; #(
16398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16399 *) { eval $ac_var=; unset $ac_var;} ;;
16400 esac ;;
16401 esac
16402 done
16404 (set) 2>&1 |
16405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16406 *${as_nl}ac_space=\ *)
16407 # `set' does not quote correctly, so add quotes: double-quote
16408 # substitution turns \\\\ into \\, and sed turns \\ into \.
16409 sed -n \
16410 "s/'/'\\\\''/g;
16411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16412 ;; #(
16414 # `set' quotes correctly as required by POSIX, so do not add quotes.
16415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16417 esac |
16418 sort
16420 sed '
16421 /^ac_cv_env_/b end
16422 t clear
16423 :clear
16424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16425 t end
16426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16427 :end' >>confcache
16428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16429 if test -w "$cache_file"; then
16430 test "x$cache_file" != "x/dev/null" &&
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16432 $as_echo "$as_me: updating cache $cache_file" >&6;}
16433 cat confcache >$cache_file
16434 else
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16439 rm -f confcache
16441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16442 # Let make expand exec_prefix.
16443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16445 DEFS=-DHAVE_CONFIG_H
16447 ac_libobjs=
16448 ac_ltlibobjs=
16449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16450 # 1. Remove the extension, and $U if already installed.
16451 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16452 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16453 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16454 # will be set to the directory where LIBOBJS objects are built.
16455 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16456 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16457 done
16458 LIBOBJS=$ac_libobjs
16460 LTLIBOBJS=$ac_ltlibobjs
16463 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16464 as_fn_error "conditional \"AMDEP\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16468 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 if test -n "$EXEEXT"; then
16472 am__EXEEXT_TRUE=
16473 am__EXEEXT_FALSE='#'
16474 else
16475 am__EXEEXT_TRUE='#'
16476 am__EXEEXT_FALSE=
16479 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16480 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16484 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16488 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16492 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16496 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16500 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16504 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16508 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 : ${CONFIG_STATUS=./config.status}
16513 ac_write_fail=0
16514 ac_clean_files_save=$ac_clean_files
16515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16517 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16518 as_write_fail=0
16519 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16520 #! $SHELL
16521 # Generated by $as_me.
16522 # Run this file to recreate the current configuration.
16523 # Compiler output produced by configure, useful for debugging
16524 # configure, is in config.log if it exists.
16526 debug=false
16527 ac_cs_recheck=false
16528 ac_cs_silent=false
16530 SHELL=\${CONFIG_SHELL-$SHELL}
16531 export SHELL
16532 _ASEOF
16533 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16534 ## -------------------- ##
16535 ## M4sh Initialization. ##
16536 ## -------------------- ##
16538 # Be more Bourne compatible
16539 DUALCASE=1; export DUALCASE # for MKS sh
16540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16541 emulate sh
16542 NULLCMD=:
16543 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16544 # is contrary to our usage. Disable this feature.
16545 alias -g '${1+"$@"}'='"$@"'
16546 setopt NO_GLOB_SUBST
16547 else
16548 case `(set -o) 2>/dev/null` in #(
16549 *posix*) :
16550 set -o posix ;; #(
16551 *) :
16553 esac
16557 as_nl='
16559 export as_nl
16560 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16561 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16564 # Prefer a ksh shell builtin over an external printf program on Solaris,
16565 # but without wasting forks for bash or zsh.
16566 if test -z "$BASH_VERSION$ZSH_VERSION" \
16567 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16568 as_echo='print -r --'
16569 as_echo_n='print -rn --'
16570 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16571 as_echo='printf %s\n'
16572 as_echo_n='printf %s'
16573 else
16574 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16575 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16576 as_echo_n='/usr/ucb/echo -n'
16577 else
16578 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16579 as_echo_n_body='eval
16580 arg=$1;
16581 case $arg in #(
16582 *"$as_nl"*)
16583 expr "X$arg" : "X\\(.*\\)$as_nl";
16584 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16585 esac;
16586 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16588 export as_echo_n_body
16589 as_echo_n='sh -c $as_echo_n_body as_echo'
16591 export as_echo_body
16592 as_echo='sh -c $as_echo_body as_echo'
16595 # The user is always right.
16596 if test "${PATH_SEPARATOR+set}" != set; then
16597 PATH_SEPARATOR=:
16598 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16599 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16600 PATH_SEPARATOR=';'
16605 # IFS
16606 # We need space, tab and new line, in precisely that order. Quoting is
16607 # there to prevent editors from complaining about space-tab.
16608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16609 # splitting by setting IFS to empty value.)
16610 IFS=" "" $as_nl"
16612 # Find who we are. Look in the path if we contain no directory separator.
16613 case $0 in #((
16614 *[\\/]* ) as_myself=$0 ;;
16615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16618 IFS=$as_save_IFS
16619 test -z "$as_dir" && as_dir=.
16620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16621 done
16622 IFS=$as_save_IFS
16625 esac
16626 # We did not find ourselves, most probably we were run as `sh COMMAND'
16627 # in which case we are not to be found in the path.
16628 if test "x$as_myself" = x; then
16629 as_myself=$0
16631 if test ! -f "$as_myself"; then
16632 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16633 exit 1
16636 # Unset variables that we do not need and which cause bugs (e.g. in
16637 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16638 # suppresses any "Segmentation fault" message there. '((' could
16639 # trigger a bug in pdksh 5.2.14.
16640 for as_var in BASH_ENV ENV MAIL MAILPATH
16641 do eval test x\${$as_var+set} = xset \
16642 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16643 done
16644 PS1='$ '
16645 PS2='> '
16646 PS4='+ '
16648 # NLS nuisances.
16649 LC_ALL=C
16650 export LC_ALL
16651 LANGUAGE=C
16652 export LANGUAGE
16654 # CDPATH.
16655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16658 # as_fn_error ERROR [LINENO LOG_FD]
16659 # ---------------------------------
16660 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16661 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16662 # script with status $?, using 1 if that was 0.
16663 as_fn_error ()
16665 as_status=$?; test $as_status -eq 0 && as_status=1
16666 if test "$3"; then
16667 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16668 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16670 $as_echo "$as_me: error: $1" >&2
16671 as_fn_exit $as_status
16672 } # as_fn_error
16675 # as_fn_set_status STATUS
16676 # -----------------------
16677 # Set $? to STATUS, without forking.
16678 as_fn_set_status ()
16680 return $1
16681 } # as_fn_set_status
16683 # as_fn_exit STATUS
16684 # -----------------
16685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16686 as_fn_exit ()
16688 set +e
16689 as_fn_set_status $1
16690 exit $1
16691 } # as_fn_exit
16693 # as_fn_unset VAR
16694 # ---------------
16695 # Portably unset VAR.
16696 as_fn_unset ()
16698 { eval $1=; unset $1;}
16700 as_unset=as_fn_unset
16701 # as_fn_append VAR VALUE
16702 # ----------------------
16703 # Append the text in VALUE to the end of the definition contained in VAR. Take
16704 # advantage of any shell optimizations that allow amortized linear growth over
16705 # repeated appends, instead of the typical quadratic growth present in naive
16706 # implementations.
16707 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16708 eval 'as_fn_append ()
16710 eval $1+=\$2
16712 else
16713 as_fn_append ()
16715 eval $1=\$$1\$2
16717 fi # as_fn_append
16719 # as_fn_arith ARG...
16720 # ------------------
16721 # Perform arithmetic evaluation on the ARGs, and store the result in the
16722 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16723 # must be portable across $(()) and expr.
16724 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16725 eval 'as_fn_arith ()
16727 as_val=$(( $* ))
16729 else
16730 as_fn_arith ()
16732 as_val=`expr "$@" || test $? -eq 1`
16734 fi # as_fn_arith
16737 if expr a : '\(a\)' >/dev/null 2>&1 &&
16738 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16739 as_expr=expr
16740 else
16741 as_expr=false
16744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16745 as_basename=basename
16746 else
16747 as_basename=false
16750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16751 as_dirname=dirname
16752 else
16753 as_dirname=false
16756 as_me=`$as_basename -- "$0" ||
16757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16758 X"$0" : 'X\(//\)$' \| \
16759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16760 $as_echo X/"$0" |
16761 sed '/^.*\/\([^/][^/]*\)\/*$/{
16762 s//\1/
16765 /^X\/\(\/\/\)$/{
16766 s//\1/
16769 /^X\/\(\/\).*/{
16770 s//\1/
16773 s/.*/./; q'`
16775 # Avoid depending upon Character Ranges.
16776 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16777 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16778 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16779 as_cr_digits='0123456789'
16780 as_cr_alnum=$as_cr_Letters$as_cr_digits
16782 ECHO_C= ECHO_N= ECHO_T=
16783 case `echo -n x` in #(((((
16784 -n*)
16785 case `echo 'xy\c'` in
16786 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16787 xy) ECHO_C='\c';;
16788 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16789 ECHO_T=' ';;
16790 esac;;
16792 ECHO_N='-n';;
16793 esac
16795 rm -f conf$$ conf$$.exe conf$$.file
16796 if test -d conf$$.dir; then
16797 rm -f conf$$.dir/conf$$.file
16798 else
16799 rm -f conf$$.dir
16800 mkdir conf$$.dir 2>/dev/null
16802 if (echo >conf$$.file) 2>/dev/null; then
16803 if ln -s conf$$.file conf$$ 2>/dev/null; then
16804 as_ln_s='ln -s'
16805 # ... but there are two gotchas:
16806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16808 # In both cases, we have to default to `cp -p'.
16809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16810 as_ln_s='cp -p'
16811 elif ln conf$$.file conf$$ 2>/dev/null; then
16812 as_ln_s=ln
16813 else
16814 as_ln_s='cp -p'
16816 else
16817 as_ln_s='cp -p'
16819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16820 rmdir conf$$.dir 2>/dev/null
16823 # as_fn_mkdir_p
16824 # -------------
16825 # Create "$as_dir" as a directory, including parents if necessary.
16826 as_fn_mkdir_p ()
16829 case $as_dir in #(
16830 -*) as_dir=./$as_dir;;
16831 esac
16832 test -d "$as_dir" || eval $as_mkdir_p || {
16833 as_dirs=
16834 while :; do
16835 case $as_dir in #(
16836 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16837 *) as_qdir=$as_dir;;
16838 esac
16839 as_dirs="'$as_qdir' $as_dirs"
16840 as_dir=`$as_dirname -- "$as_dir" ||
16841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16842 X"$as_dir" : 'X\(//\)[^/]' \| \
16843 X"$as_dir" : 'X\(//\)$' \| \
16844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16845 $as_echo X"$as_dir" |
16846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16847 s//\1/
16850 /^X\(\/\/\)[^/].*/{
16851 s//\1/
16854 /^X\(\/\/\)$/{
16855 s//\1/
16858 /^X\(\/\).*/{
16859 s//\1/
16862 s/.*/./; q'`
16863 test -d "$as_dir" && break
16864 done
16865 test -z "$as_dirs" || eval "mkdir $as_dirs"
16866 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16869 } # as_fn_mkdir_p
16870 if mkdir -p . 2>/dev/null; then
16871 as_mkdir_p='mkdir -p "$as_dir"'
16872 else
16873 test -d ./-p && rmdir ./-p
16874 as_mkdir_p=false
16877 if test -x / >/dev/null 2>&1; then
16878 as_test_x='test -x'
16879 else
16880 if ls -dL / >/dev/null 2>&1; then
16881 as_ls_L_option=L
16882 else
16883 as_ls_L_option=
16885 as_test_x='
16886 eval sh -c '\''
16887 if test -d "$1"; then
16888 test -d "$1/.";
16889 else
16890 case $1 in #(
16891 -*)set "./$1";;
16892 esac;
16893 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16894 ???[sx]*):;;*)false;;esac;fi
16895 '\'' sh
16898 as_executable_p=$as_test_x
16900 # Sed expression to map a string onto a valid CPP name.
16901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16903 # Sed expression to map a string onto a valid variable name.
16904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16907 exec 6>&1
16908 ## ----------------------------------- ##
16909 ## Main body of $CONFIG_STATUS script. ##
16910 ## ----------------------------------- ##
16911 _ASEOF
16912 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16915 # Save the log message, to keep $0 and so on meaningful, and to
16916 # report actual input values of CONFIG_FILES etc. instead of their
16917 # values after options handling.
16918 ac_log="
16919 This file was extended by package-unused $as_me version-unused, which was
16920 generated by GNU Autoconf 2.64. Invocation command line was
16922 CONFIG_FILES = $CONFIG_FILES
16923 CONFIG_HEADERS = $CONFIG_HEADERS
16924 CONFIG_LINKS = $CONFIG_LINKS
16925 CONFIG_COMMANDS = $CONFIG_COMMANDS
16926 $ $0 $@
16928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16931 _ACEOF
16933 case $ac_config_files in *"
16934 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16935 esac
16937 case $ac_config_headers in *"
16938 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16939 esac
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 # Files that config.status was made for.
16944 config_files="$ac_config_files"
16945 config_headers="$ac_config_headers"
16946 config_commands="$ac_config_commands"
16948 _ACEOF
16950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16951 ac_cs_usage="\
16952 \`$as_me' instantiates files and other configuration actions
16953 from templates according to the current configuration. Unless the files
16954 and actions are specified as TAGs, all are instantiated by default.
16956 Usage: $0 [OPTION]... [TAG]...
16958 -h, --help print this help, then exit
16959 -V, --version print version number and configuration settings, then exit
16960 -q, --quiet, --silent
16961 do not print progress messages
16962 -d, --debug don't remove temporary files
16963 --recheck update $as_me by reconfiguring in the same conditions
16964 --file=FILE[:TEMPLATE]
16965 instantiate the configuration file FILE
16966 --header=FILE[:TEMPLATE]
16967 instantiate the configuration header FILE
16969 Configuration files:
16970 $config_files
16972 Configuration headers:
16973 $config_headers
16975 Configuration commands:
16976 $config_commands
16978 Report bugs to <libsanitizer>."
16980 _ACEOF
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16982 ac_cs_version="\\
16983 package-unused config.status version-unused
16984 configured by $0, generated by GNU Autoconf 2.64,
16985 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16987 Copyright (C) 2009 Free Software Foundation, Inc.
16988 This config.status script is free software; the Free Software Foundation
16989 gives unlimited permission to copy, distribute and modify it."
16991 ac_pwd='$ac_pwd'
16992 srcdir='$srcdir'
16993 INSTALL='$INSTALL'
16994 MKDIR_P='$MKDIR_P'
16995 AWK='$AWK'
16996 test -n "\$AWK" || AWK=awk
16997 _ACEOF
16999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17000 # The default lists apply if the user does not specify any file.
17001 ac_need_defaults=:
17002 while test $# != 0
17004 case $1 in
17005 --*=*)
17006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17008 ac_shift=:
17011 ac_option=$1
17012 ac_optarg=$2
17013 ac_shift=shift
17015 esac
17017 case $ac_option in
17018 # Handling of the options.
17019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17020 ac_cs_recheck=: ;;
17021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17022 $as_echo "$ac_cs_version"; exit ;;
17023 --debug | --debu | --deb | --de | --d | -d )
17024 debug=: ;;
17025 --file | --fil | --fi | --f )
17026 $ac_shift
17027 case $ac_optarg in
17028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17029 esac
17030 as_fn_append CONFIG_FILES " '$ac_optarg'"
17031 ac_need_defaults=false;;
17032 --header | --heade | --head | --hea )
17033 $ac_shift
17034 case $ac_optarg in
17035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17036 esac
17037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17038 ac_need_defaults=false;;
17039 --he | --h)
17040 # Conflict between --help and --header
17041 as_fn_error "ambiguous option: \`$1'
17042 Try \`$0 --help' for more information.";;
17043 --help | --hel | -h )
17044 $as_echo "$ac_cs_usage"; exit ;;
17045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17047 ac_cs_silent=: ;;
17049 # This is an error.
17050 -*) as_fn_error "unrecognized option: \`$1'
17051 Try \`$0 --help' for more information." ;;
17053 *) as_fn_append ac_config_targets " $1"
17054 ac_need_defaults=false ;;
17056 esac
17057 shift
17058 done
17060 ac_configure_extra_args=
17062 if $ac_cs_silent; then
17063 exec 6>/dev/null
17064 ac_configure_extra_args="$ac_configure_extra_args --silent"
17067 _ACEOF
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 if \$ac_cs_recheck; then
17070 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17071 shift
17072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17073 CONFIG_SHELL='$SHELL'
17074 export CONFIG_SHELL
17075 exec "\$@"
17078 _ACEOF
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 exec 5>>config.log
17082 echo
17083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17084 ## Running $as_me. ##
17085 _ASBOX
17086 $as_echo "$ac_log"
17087 } >&5
17089 _ACEOF
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 # INIT-COMMANDS
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"
17108 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17111 # The HP-UX ksh and POSIX shell print the target directory to stdout
17112 # if CDPATH is set.
17113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17115 sed_quote_subst='$sed_quote_subst'
17116 double_quote_subst='$double_quote_subst'
17117 delay_variable_subst='$delay_variable_subst'
17118 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17119 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17120 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17121 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17122 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17123 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17124 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17125 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17126 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17127 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17128 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17129 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17130 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17131 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17132 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17133 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17134 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17135 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17136 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17137 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17138 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17139 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17140 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17141 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17142 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17143 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17144 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17145 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17146 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17147 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17148 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17149 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17150 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17151 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17152 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17153 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17154 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17155 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17156 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17157 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17158 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17159 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17160 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17161 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17162 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17163 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17164 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17165 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17166 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"`'
17167 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17168 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17169 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17170 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17172 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17173 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17174 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17175 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17176 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17177 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17178 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17179 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17180 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17181 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17182 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17183 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17184 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17185 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17186 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17187 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17188 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17189 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17190 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17191 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17192 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17193 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17194 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17195 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17196 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17197 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17198 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17199 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17200 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17201 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17202 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17203 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17204 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17205 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17206 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17207 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17208 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17209 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17210 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17211 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17212 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17213 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17214 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17215 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17216 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17217 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17218 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17219 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17220 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17221 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17222 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17223 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17224 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17225 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17226 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17227 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17228 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17229 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17230 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17231 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17232 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17233 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17234 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17235 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17236 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17237 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17238 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17239 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17240 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17241 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17242 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17243 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17244 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17245 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17246 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17247 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17248 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17249 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17250 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17251 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17252 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17253 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17254 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17255 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17256 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17257 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17258 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17259 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17260 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17261 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17262 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17263 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17264 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17265 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17266 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17267 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17268 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17269 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17270 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17271 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17272 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17273 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17274 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17275 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17276 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17277 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17278 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17279 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17280 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17281 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17282 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17283 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17284 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17285 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17286 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17287 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17288 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17289 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17290 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17291 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17292 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17294 LTCC='$LTCC'
17295 LTCFLAGS='$LTCFLAGS'
17296 compiler='$compiler_DEFAULT'
17298 # A function that is used when there is no print builtin or printf.
17299 func_fallback_echo ()
17301 eval 'cat <<_LTECHO_EOF
17303 _LTECHO_EOF'
17306 # Quote evaled strings.
17307 for var in SHELL \
17308 ECHO \
17309 SED \
17310 GREP \
17311 EGREP \
17312 FGREP \
17313 LD \
17314 NM \
17315 LN_S \
17316 lt_SP2NL \
17317 lt_NL2SP \
17318 reload_flag \
17319 OBJDUMP \
17320 deplibs_check_method \
17321 file_magic_cmd \
17322 AR \
17323 AR_FLAGS \
17324 STRIP \
17325 RANLIB \
17326 CC \
17327 CFLAGS \
17328 compiler \
17329 lt_cv_sys_global_symbol_pipe \
17330 lt_cv_sys_global_symbol_to_cdecl \
17331 lt_cv_sys_global_symbol_to_c_name_address \
17332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17333 lt_prog_compiler_no_builtin_flag \
17334 lt_prog_compiler_wl \
17335 lt_prog_compiler_pic \
17336 lt_prog_compiler_static \
17337 lt_cv_prog_compiler_c_o \
17338 need_locks \
17339 DSYMUTIL \
17340 NMEDIT \
17341 LIPO \
17342 OTOOL \
17343 OTOOL64 \
17344 shrext_cmds \
17345 export_dynamic_flag_spec \
17346 whole_archive_flag_spec \
17347 compiler_needs_object \
17348 with_gnu_ld \
17349 allow_undefined_flag \
17350 no_undefined_flag \
17351 hardcode_libdir_flag_spec \
17352 hardcode_libdir_flag_spec_ld \
17353 hardcode_libdir_separator \
17354 fix_srcfile_path \
17355 exclude_expsyms \
17356 include_expsyms \
17357 file_list_spec \
17358 variables_saved_for_relink \
17359 libname_spec \
17360 library_names_spec \
17361 soname_spec \
17362 install_override_mode \
17363 finish_eval \
17364 old_striplib \
17365 striplib \
17366 compiler_lib_search_dirs \
17367 predep_objects \
17368 postdep_objects \
17369 predeps \
17370 postdeps \
17371 compiler_lib_search_path \
17372 LD_CXX \
17373 reload_flag_CXX \
17374 compiler_CXX \
17375 lt_prog_compiler_no_builtin_flag_CXX \
17376 lt_prog_compiler_wl_CXX \
17377 lt_prog_compiler_pic_CXX \
17378 lt_prog_compiler_static_CXX \
17379 lt_cv_prog_compiler_c_o_CXX \
17380 export_dynamic_flag_spec_CXX \
17381 whole_archive_flag_spec_CXX \
17382 compiler_needs_object_CXX \
17383 with_gnu_ld_CXX \
17384 allow_undefined_flag_CXX \
17385 no_undefined_flag_CXX \
17386 hardcode_libdir_flag_spec_CXX \
17387 hardcode_libdir_flag_spec_ld_CXX \
17388 hardcode_libdir_separator_CXX \
17389 fix_srcfile_path_CXX \
17390 exclude_expsyms_CXX \
17391 include_expsyms_CXX \
17392 file_list_spec_CXX \
17393 compiler_lib_search_dirs_CXX \
17394 predep_objects_CXX \
17395 postdep_objects_CXX \
17396 predeps_CXX \
17397 postdeps_CXX \
17398 compiler_lib_search_path_CXX; do
17399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17400 *[\\\\\\\`\\"\\\$]*)
17401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17406 esac
17407 done
17409 # Double-quote double-evaled strings.
17410 for var in reload_cmds \
17411 old_postinstall_cmds \
17412 old_postuninstall_cmds \
17413 old_archive_cmds \
17414 extract_expsyms_cmds \
17415 old_archive_from_new_cmds \
17416 old_archive_from_expsyms_cmds \
17417 archive_cmds \
17418 archive_expsym_cmds \
17419 module_cmds \
17420 module_expsym_cmds \
17421 export_symbols_cmds \
17422 prelink_cmds \
17423 postinstall_cmds \
17424 postuninstall_cmds \
17425 finish_cmds \
17426 sys_lib_search_path_spec \
17427 sys_lib_dlsearch_path_spec \
17428 reload_cmds_CXX \
17429 old_archive_cmds_CXX \
17430 old_archive_from_new_cmds_CXX \
17431 old_archive_from_expsyms_cmds_CXX \
17432 archive_cmds_CXX \
17433 archive_expsym_cmds_CXX \
17434 module_cmds_CXX \
17435 module_expsym_cmds_CXX \
17436 export_symbols_cmds_CXX \
17437 prelink_cmds_CXX; do
17438 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17439 *[\\\\\\\`\\"\\\$]*)
17440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17445 esac
17446 done
17448 ac_aux_dir='$ac_aux_dir'
17449 xsi_shell='$xsi_shell'
17450 lt_shell_append='$lt_shell_append'
17452 # See if we are running on zsh, and set the options which allow our
17453 # commands through without removal of \ escapes INIT.
17454 if test -n "\${ZSH_VERSION+set}" ; then
17455 setopt NO_GLOB_SUBST
17459 PACKAGE='$PACKAGE'
17460 VERSION='$VERSION'
17461 TIMESTAMP='$TIMESTAMP'
17462 RM='$RM'
17463 ofile='$ofile'
17470 GCC="$GCC"
17471 CC="$CC"
17472 acx_cv_header_stdint="$acx_cv_header_stdint"
17473 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17474 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17475 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17476 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17477 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17478 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17479 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17480 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17481 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17482 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17483 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17484 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17485 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17488 _ACEOF
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17492 # Handling of arguments.
17493 for ac_config_target in $ac_config_targets
17495 case $ac_config_target in
17496 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17497 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17498 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17499 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17501 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17502 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17504 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17505 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17506 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17507 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17508 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17509 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17510 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17512 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17513 esac
17514 done
17517 # If the user did not use the arguments to specify the items to instantiate,
17518 # then the envvar interface is used. Set only those that are not.
17519 # We use the long form for the default assignment because of an extremely
17520 # bizarre bug on SunOS 4.1.3.
17521 if $ac_need_defaults; then
17522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17524 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17527 # Have a temporary directory for convenience. Make it in the build tree
17528 # simply because there is no reason against having it here, and in addition,
17529 # creating and moving files from /tmp can sometimes cause problems.
17530 # Hook for its removal unless debugging.
17531 # Note that there is a small window in which the directory will not be cleaned:
17532 # after its creation but before its name has been assigned to `$tmp'.
17533 $debug ||
17535 tmp=
17536 trap 'exit_status=$?
17537 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17539 trap 'as_fn_exit 1' 1 2 13 15
17541 # Create a (secure) tmp directory for tmp files.
17544 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17545 test -n "$tmp" && test -d "$tmp"
17546 } ||
17548 tmp=./conf$$-$RANDOM
17549 (umask 077 && mkdir "$tmp")
17550 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17552 # Set up the scripts for CONFIG_FILES section.
17553 # No need to generate them if there are no CONFIG_FILES.
17554 # This happens for instance with `./config.status config.h'.
17555 if test -n "$CONFIG_FILES"; then
17558 ac_cr=`echo X | tr X '\015'`
17559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17560 # But we know of no other shell where ac_cr would be empty at this
17561 # point, so we can use a bashism as a fallback.
17562 if test "x$ac_cr" = x; then
17563 eval ac_cr=\$\'\\r\'
17565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17567 ac_cs_awk_cr='\r'
17568 else
17569 ac_cs_awk_cr=$ac_cr
17572 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17573 _ACEOF
17577 echo "cat >conf$$subs.awk <<_ACEOF" &&
17578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17579 echo "_ACEOF"
17580 } >conf$$subs.sh ||
17581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17583 ac_delim='%!_!# '
17584 for ac_last_try in false false false false false :; do
17585 . ./conf$$subs.sh ||
17586 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17589 if test $ac_delim_n = $ac_delim_num; then
17590 break
17591 elif $ac_last_try; then
17592 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17593 else
17594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17596 done
17597 rm -f conf$$subs.sh
17599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17600 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17601 _ACEOF
17602 sed -n '
17604 s/^/S["/; s/!.*/"]=/
17607 s/^[^!]*!//
17608 :repl
17609 t repl
17610 s/'"$ac_delim"'$//
17611 t delim
17614 s/\(.\{148\}\).*/\1/
17615 t more1
17616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17619 b repl
17620 :more1
17621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17624 s/.\{148\}//
17625 t nl
17626 :delim
17628 s/\(.\{148\}\).*/\1/
17629 t more2
17630 s/["\\]/\\&/g; s/^/"/; s/$/"/
17633 :more2
17634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17637 s/.\{148\}//
17638 t delim
17639 ' <conf$$subs.awk | sed '
17640 /^[^""]/{
17642 s/\n//
17644 ' >>$CONFIG_STATUS || ac_write_fail=1
17645 rm -f conf$$subs.awk
17646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17647 _ACAWK
17648 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17649 for (key in S) S_is_set[key] = 1
17650 FS = "\a"
17654 line = $ 0
17655 nfields = split(line, field, "@")
17656 substed = 0
17657 len = length(field[1])
17658 for (i = 2; i < nfields; i++) {
17659 key = field[i]
17660 keylen = length(key)
17661 if (S_is_set[key]) {
17662 value = S[key]
17663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17664 len += length(value) + length(field[++i])
17665 substed = 1
17666 } else
17667 len += 1 + keylen
17670 print line
17673 _ACAWK
17674 _ACEOF
17675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17678 else
17680 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17681 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17682 _ACEOF
17684 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17685 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17686 # trailing colons and then remove the whole line if VPATH becomes empty
17687 # (actually we leave an empty line to preserve line numbers).
17688 if test "x$srcdir" = x.; then
17689 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17690 s/:*\$(srcdir):*/:/
17691 s/:*\${srcdir}:*/:/
17692 s/:*@srcdir@:*/:/
17693 s/^\([^=]*=[ ]*\):*/\1/
17694 s/:*$//
17695 s/^[^=]*=[ ]*$//
17699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17700 fi # test -n "$CONFIG_FILES"
17702 # Set up the scripts for CONFIG_HEADERS section.
17703 # No need to generate them if there are no CONFIG_HEADERS.
17704 # This happens for instance with `./config.status Makefile'.
17705 if test -n "$CONFIG_HEADERS"; then
17706 cat >"$tmp/defines.awk" <<\_ACAWK ||
17707 BEGIN {
17708 _ACEOF
17710 # Transform confdefs.h into an awk script `defines.awk', embedded as
17711 # here-document in config.status, that substitutes the proper values into
17712 # config.h.in to produce config.h.
17714 # Create a delimiter string that does not exist in confdefs.h, to ease
17715 # handling of long lines.
17716 ac_delim='%!_!# '
17717 for ac_last_try in false false :; do
17718 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17719 if test -z "$ac_t"; then
17720 break
17721 elif $ac_last_try; then
17722 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17723 else
17724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17726 done
17728 # For the awk script, D is an array of macro values keyed by name,
17729 # likewise P contains macro parameters if any. Preserve backslash
17730 # newline sequences.
17732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17733 sed -n '
17734 s/.\{148\}/&'"$ac_delim"'/g
17735 t rset
17736 :rset
17737 s/^[ ]*#[ ]*define[ ][ ]*/ /
17738 t def
17740 :def
17741 s/\\$//
17742 t bsnl
17743 s/["\\]/\\&/g
17744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17745 D["\1"]=" \3"/p
17746 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17748 :bsnl
17749 s/["\\]/\\&/g
17750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17751 D["\1"]=" \3\\\\\\n"\\/p
17752 t cont
17753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17754 t cont
17756 :cont
17758 s/.\{148\}/&'"$ac_delim"'/g
17759 t clear
17760 :clear
17761 s/\\$//
17762 t bsnlc
17763 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17765 :bsnlc
17766 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17767 b cont
17768 ' <confdefs.h | sed '
17769 s/'"$ac_delim"'/"\\\
17770 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17773 for (key in D) D_is_set[key] = 1
17774 FS = "\a"
17776 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17777 line = \$ 0
17778 split(line, arg, " ")
17779 if (arg[1] == "#") {
17780 defundef = arg[2]
17781 mac1 = arg[3]
17782 } else {
17783 defundef = substr(arg[1], 2)
17784 mac1 = arg[2]
17786 split(mac1, mac2, "(") #)
17787 macro = mac2[1]
17788 prefix = substr(line, 1, index(line, defundef) - 1)
17789 if (D_is_set[macro]) {
17790 # Preserve the white space surrounding the "#".
17791 print prefix "define", macro P[macro] D[macro]
17792 next
17793 } else {
17794 # Replace #undef with comments. This is necessary, for example,
17795 # in the case of _POSIX_SOURCE, which is predefined and required
17796 # on some systems where configure will not decide to define it.
17797 if (defundef == "undef") {
17798 print "/*", prefix defundef, macro, "*/"
17799 next
17803 { print }
17804 _ACAWK
17805 _ACEOF
17806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17807 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17808 fi # test -n "$CONFIG_HEADERS"
17811 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17812 shift
17813 for ac_tag
17815 case $ac_tag in
17816 :[FHLC]) ac_mode=$ac_tag; continue;;
17817 esac
17818 case $ac_mode$ac_tag in
17819 :[FHL]*:*);;
17820 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17821 :[FH]-) ac_tag=-:-;;
17822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17823 esac
17824 ac_save_IFS=$IFS
17825 IFS=:
17826 set x $ac_tag
17827 IFS=$ac_save_IFS
17828 shift
17829 ac_file=$1
17830 shift
17832 case $ac_mode in
17833 :L) ac_source=$1;;
17834 :[FH])
17835 ac_file_inputs=
17836 for ac_f
17838 case $ac_f in
17839 -) ac_f="$tmp/stdin";;
17840 *) # Look for the file first in the build tree, then in the source tree
17841 # (if the path is not absolute). The absolute path cannot be DOS-style,
17842 # because $ac_f cannot contain `:'.
17843 test -f "$ac_f" ||
17844 case $ac_f in
17845 [\\/$]*) false;;
17846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17847 esac ||
17848 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17849 esac
17850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17851 as_fn_append ac_file_inputs " '$ac_f'"
17852 done
17854 # Let's still pretend it is `configure' which instantiates (i.e., don't
17855 # use $as_me), people would be surprised to read:
17856 # /* config.h. Generated by config.status. */
17857 configure_input='Generated from '`
17858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17859 `' by configure.'
17860 if test x"$ac_file" != x-; then
17861 configure_input="$ac_file. $configure_input"
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17863 $as_echo "$as_me: creating $ac_file" >&6;}
17865 # Neutralize special characters interpreted by sed in replacement strings.
17866 case $configure_input in #(
17867 *\&* | *\|* | *\\* )
17868 ac_sed_conf_input=`$as_echo "$configure_input" |
17869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17870 *) ac_sed_conf_input=$configure_input;;
17871 esac
17873 case $ac_tag in
17874 *:-:* | *:-) cat >"$tmp/stdin" \
17875 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17876 esac
17878 esac
17880 ac_dir=`$as_dirname -- "$ac_file" ||
17881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17882 X"$ac_file" : 'X\(//\)[^/]' \| \
17883 X"$ac_file" : 'X\(//\)$' \| \
17884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17885 $as_echo X"$ac_file" |
17886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17887 s//\1/
17890 /^X\(\/\/\)[^/].*/{
17891 s//\1/
17894 /^X\(\/\/\)$/{
17895 s//\1/
17898 /^X\(\/\).*/{
17899 s//\1/
17902 s/.*/./; q'`
17903 as_dir="$ac_dir"; as_fn_mkdir_p
17904 ac_builddir=.
17906 case "$ac_dir" in
17907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17910 # A ".." for each directory in $ac_dir_suffix.
17911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17912 case $ac_top_builddir_sub in
17913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17915 esac ;;
17916 esac
17917 ac_abs_top_builddir=$ac_pwd
17918 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17919 # for backward compatibility:
17920 ac_top_builddir=$ac_top_build_prefix
17922 case $srcdir in
17923 .) # We are building in place.
17924 ac_srcdir=.
17925 ac_top_srcdir=$ac_top_builddir_sub
17926 ac_abs_top_srcdir=$ac_pwd ;;
17927 [\\/]* | ?:[\\/]* ) # Absolute name.
17928 ac_srcdir=$srcdir$ac_dir_suffix;
17929 ac_top_srcdir=$srcdir
17930 ac_abs_top_srcdir=$srcdir ;;
17931 *) # Relative name.
17932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17933 ac_top_srcdir=$ac_top_build_prefix$srcdir
17934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17935 esac
17936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17939 case $ac_mode in
17942 # CONFIG_FILE
17945 case $INSTALL in
17946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17948 esac
17949 ac_MKDIR_P=$MKDIR_P
17950 case $MKDIR_P in
17951 [\\/$]* | ?:[\\/]* ) ;;
17952 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17953 esac
17954 _ACEOF
17956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17957 # If the template does not know about datarootdir, expand it.
17958 # FIXME: This hack should be removed a few years after 2.60.
17959 ac_datarootdir_hack=; ac_datarootdir_seen=
17960 ac_sed_dataroot='
17961 /datarootdir/ {
17965 /@datadir@/p
17966 /@docdir@/p
17967 /@infodir@/p
17968 /@localedir@/p
17969 /@mandir@/p'
17970 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17971 *datarootdir*) ac_datarootdir_seen=yes;;
17972 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17974 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17975 _ACEOF
17976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17977 ac_datarootdir_hack='
17978 s&@datadir@&$datadir&g
17979 s&@docdir@&$docdir&g
17980 s&@infodir@&$infodir&g
17981 s&@localedir@&$localedir&g
17982 s&@mandir@&$mandir&g
17983 s&\\\${datarootdir}&$datarootdir&g' ;;
17984 esac
17985 _ACEOF
17987 # Neutralize VPATH when `$srcdir' = `.'.
17988 # Shell code in configure.ac might set extrasub.
17989 # FIXME: do we really want to maintain this feature?
17990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17991 ac_sed_extra="$ac_vpsub
17992 $extrasub
17993 _ACEOF
17994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17997 s|@configure_input@|$ac_sed_conf_input|;t t
17998 s&@top_builddir@&$ac_top_builddir_sub&;t t
17999 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18000 s&@srcdir@&$ac_srcdir&;t t
18001 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18002 s&@top_srcdir@&$ac_top_srcdir&;t t
18003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18004 s&@builddir@&$ac_builddir&;t t
18005 s&@abs_builddir@&$ac_abs_builddir&;t t
18006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18007 s&@INSTALL@&$ac_INSTALL&;t t
18008 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18009 $ac_datarootdir_hack
18011 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18012 || as_fn_error "could not create $ac_file" "$LINENO" 5
18014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18015 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18018 which seems to be undefined. Please make sure it is defined." >&5
18019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18020 which seems to be undefined. Please make sure it is defined." >&2;}
18022 rm -f "$tmp/stdin"
18023 case $ac_file in
18024 -) cat "$tmp/out" && rm -f "$tmp/out";;
18025 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18026 esac \
18027 || as_fn_error "could not create $ac_file" "$LINENO" 5
18031 # CONFIG_HEADER
18033 if test x"$ac_file" != x-; then
18035 $as_echo "/* $configure_input */" \
18036 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18037 } >"$tmp/config.h" \
18038 || as_fn_error "could not create $ac_file" "$LINENO" 5
18039 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18041 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18042 else
18043 rm -f "$ac_file"
18044 mv "$tmp/config.h" "$ac_file" \
18045 || as_fn_error "could not create $ac_file" "$LINENO" 5
18047 else
18048 $as_echo "/* $configure_input */" \
18049 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18050 || as_fn_error "could not create -" "$LINENO" 5
18052 # Compute "$ac_file"'s index in $config_headers.
18053 _am_arg="$ac_file"
18054 _am_stamp_count=1
18055 for _am_header in $config_headers :; do
18056 case $_am_header in
18057 $_am_arg | $_am_arg:* )
18058 break ;;
18060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18061 esac
18062 done
18063 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18064 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$_am_arg" : 'X\(//\)[^/]' \| \
18066 X"$_am_arg" : 'X\(//\)$' \| \
18067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18068 $as_echo X"$_am_arg" |
18069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18070 s//\1/
18073 /^X\(\/\/\)[^/].*/{
18074 s//\1/
18077 /^X\(\/\/\)$/{
18078 s//\1/
18081 /^X\(\/\).*/{
18082 s//\1/
18085 s/.*/./; q'`/stamp-h$_am_stamp_count
18088 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18089 $as_echo "$as_me: executing $ac_file commands" >&6;}
18091 esac
18094 case $ac_file$ac_mode in
18095 "default-1":C)
18096 # Only add multilib support code if we just rebuilt the top-level
18097 # Makefile.
18098 case " $CONFIG_FILES " in
18099 *" Makefile "*)
18100 ac_file=Makefile . ${multi_basedir}/config-ml.in
18102 esac ;;
18103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18104 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18105 # are listed without --file. Let's play safe and only enable the eval
18106 # if we detect the quoting.
18107 case $CONFIG_FILES in
18108 *\'*) eval set x "$CONFIG_FILES" ;;
18109 *) set x $CONFIG_FILES ;;
18110 esac
18111 shift
18112 for mf
18114 # Strip MF so we end up with the name of the file.
18115 mf=`echo "$mf" | sed -e 's/:.*$//'`
18116 # Check whether this is an Automake generated Makefile or not.
18117 # We used to match only the files named `Makefile.in', but
18118 # some people rename them; so instead we look at the file content.
18119 # Grep'ing the first line is not enough: some people post-process
18120 # each Makefile.in and add a new line on top of each file to say so.
18121 # Grep'ing the whole file is not good either: AIX grep has a line
18122 # limit of 2048, but all sed's we know have understand at least 4000.
18123 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18124 dirpart=`$as_dirname -- "$mf" ||
18125 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18126 X"$mf" : 'X\(//\)[^/]' \| \
18127 X"$mf" : 'X\(//\)$' \| \
18128 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18129 $as_echo X"$mf" |
18130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18131 s//\1/
18134 /^X\(\/\/\)[^/].*/{
18135 s//\1/
18138 /^X\(\/\/\)$/{
18139 s//\1/
18142 /^X\(\/\).*/{
18143 s//\1/
18146 s/.*/./; q'`
18147 else
18148 continue
18150 # Extract the definition of DEPDIR, am__include, and am__quote
18151 # from the Makefile without running `make'.
18152 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18153 test -z "$DEPDIR" && continue
18154 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18155 test -z "am__include" && continue
18156 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18157 # When using ansi2knr, U may be empty or an underscore; expand it
18158 U=`sed -n 's/^U = //p' < "$mf"`
18159 # Find all dependency output files, they are included files with
18160 # $(DEPDIR) in their names. We invoke sed twice because it is the
18161 # simplest approach to changing $(DEPDIR) to its actual value in the
18162 # expansion.
18163 for file in `sed -n "
18164 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18165 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18166 # Make sure the directory exists.
18167 test -f "$dirpart/$file" && continue
18168 fdir=`$as_dirname -- "$file" ||
18169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18170 X"$file" : 'X\(//\)[^/]' \| \
18171 X"$file" : 'X\(//\)$' \| \
18172 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18173 $as_echo X"$file" |
18174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18175 s//\1/
18178 /^X\(\/\/\)[^/].*/{
18179 s//\1/
18182 /^X\(\/\/\)$/{
18183 s//\1/
18186 /^X\(\/\).*/{
18187 s//\1/
18190 s/.*/./; q'`
18191 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18192 # echo "creating $dirpart/$file"
18193 echo '# dummy' > "$dirpart/$file"
18194 done
18195 done
18198 "libtool":C)
18200 # See if we are running on zsh, and set the options which allow our
18201 # commands through without removal of \ escapes.
18202 if test -n "${ZSH_VERSION+set}" ; then
18203 setopt NO_GLOB_SUBST
18206 cfgfile="${ofile}T"
18207 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18208 $RM "$cfgfile"
18210 cat <<_LT_EOF >> "$cfgfile"
18211 #! $SHELL
18213 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18214 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18216 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18218 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18219 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18220 # Written by Gordon Matzigkeit, 1996
18222 # This file is part of GNU Libtool.
18224 # GNU Libtool is free software; you can redistribute it and/or
18225 # modify it under the terms of the GNU General Public License as
18226 # published by the Free Software Foundation; either version 2 of
18227 # the License, or (at your option) any later version.
18229 # As a special exception to the GNU General Public License,
18230 # if you distribute this file as part of a program or library that
18231 # is built using GNU Libtool, you may include this file under the
18232 # same distribution terms that you use for the rest of that program.
18234 # GNU Libtool is distributed in the hope that it will be useful,
18235 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18236 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18237 # GNU General Public License for more details.
18239 # You should have received a copy of the GNU General Public License
18240 # along with GNU Libtool; see the file COPYING. If not, a copy
18241 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18242 # obtained by writing to the Free Software Foundation, Inc.,
18243 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18246 # The names of the tagged configurations supported by this script.
18247 available_tags="CXX "
18249 # ### BEGIN LIBTOOL CONFIG
18251 # Which release of libtool.m4 was used?
18252 macro_version=$macro_version
18253 macro_revision=$macro_revision
18255 # Whether or not to build shared libraries.
18256 build_libtool_libs=$enable_shared
18258 # Whether or not to build static libraries.
18259 build_old_libs=$enable_static
18261 # What type of objects to build.
18262 pic_mode=$pic_mode
18264 # Whether or not to optimize for fast installation.
18265 fast_install=$enable_fast_install
18267 # Shell to use when invoking shell scripts.
18268 SHELL=$lt_SHELL
18270 # An echo program that protects backslashes.
18271 ECHO=$lt_ECHO
18273 # The host system.
18274 host_alias=$host_alias
18275 host=$host
18276 host_os=$host_os
18278 # The build system.
18279 build_alias=$build_alias
18280 build=$build
18281 build_os=$build_os
18283 # A sed program that does not truncate output.
18284 SED=$lt_SED
18286 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18287 Xsed="\$SED -e 1s/^X//"
18289 # A grep program that handles long lines.
18290 GREP=$lt_GREP
18292 # An ERE matcher.
18293 EGREP=$lt_EGREP
18295 # A literal string matcher.
18296 FGREP=$lt_FGREP
18298 # A BSD- or MS-compatible name lister.
18299 NM=$lt_NM
18301 # Whether we need soft or hard links.
18302 LN_S=$lt_LN_S
18304 # What is the maximum length of a command?
18305 max_cmd_len=$max_cmd_len
18307 # Object file suffix (normally "o").
18308 objext=$ac_objext
18310 # Executable file suffix (normally "").
18311 exeext=$exeext
18313 # whether the shell understands "unset".
18314 lt_unset=$lt_unset
18316 # turn spaces into newlines.
18317 SP2NL=$lt_lt_SP2NL
18319 # turn newlines into spaces.
18320 NL2SP=$lt_lt_NL2SP
18322 # An object symbol dumper.
18323 OBJDUMP=$lt_OBJDUMP
18325 # Method to check whether dependent libraries are shared objects.
18326 deplibs_check_method=$lt_deplibs_check_method
18328 # Command to use when deplibs_check_method == "file_magic".
18329 file_magic_cmd=$lt_file_magic_cmd
18331 # The archiver.
18332 AR=$lt_AR
18333 AR_FLAGS=$lt_AR_FLAGS
18335 # A symbol stripping program.
18336 STRIP=$lt_STRIP
18338 # Commands used to install an old-style archive.
18339 RANLIB=$lt_RANLIB
18340 old_postinstall_cmds=$lt_old_postinstall_cmds
18341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18343 # Whether to use a lock for old archive extraction.
18344 lock_old_archive_extraction=$lock_old_archive_extraction
18346 # A C compiler.
18347 LTCC=$lt_CC
18349 # LTCC compiler flags.
18350 LTCFLAGS=$lt_CFLAGS
18352 # Take the output of nm and produce a listing of raw symbols and C names.
18353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18355 # Transform the output of nm in a proper C declaration.
18356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18358 # Transform the output of nm in a C name address pair.
18359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18361 # Transform the output of nm in a C name address pair when lib prefix is needed.
18362 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18364 # The name of the directory that contains temporary libtool files.
18365 objdir=$objdir
18367 # Used to examine libraries when file_magic_cmd begins with "file".
18368 MAGIC_CMD=$MAGIC_CMD
18370 # Must we lock files when doing compilation?
18371 need_locks=$lt_need_locks
18373 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18374 DSYMUTIL=$lt_DSYMUTIL
18376 # Tool to change global to local symbols on Mac OS X.
18377 NMEDIT=$lt_NMEDIT
18379 # Tool to manipulate fat objects and archives on Mac OS X.
18380 LIPO=$lt_LIPO
18382 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18383 OTOOL=$lt_OTOOL
18385 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18386 OTOOL64=$lt_OTOOL64
18388 # Old archive suffix (normally "a").
18389 libext=$libext
18391 # Shared library suffix (normally ".so").
18392 shrext_cmds=$lt_shrext_cmds
18394 # The commands to extract the exported symbol list from a shared archive.
18395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18397 # Variables whose values should be saved in libtool wrapper scripts and
18398 # restored at link time.
18399 variables_saved_for_relink=$lt_variables_saved_for_relink
18401 # Do we need the "lib" prefix for modules?
18402 need_lib_prefix=$need_lib_prefix
18404 # Do we need a version for libraries?
18405 need_version=$need_version
18407 # Library versioning type.
18408 version_type=$version_type
18410 # Shared library runtime path variable.
18411 runpath_var=$runpath_var
18413 # Shared library path variable.
18414 shlibpath_var=$shlibpath_var
18416 # Is shlibpath searched before the hard-coded library search path?
18417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18419 # Format of library name prefix.
18420 libname_spec=$lt_libname_spec
18422 # List of archive names. First name is the real one, the rest are links.
18423 # The last name is the one that the linker finds with -lNAME
18424 library_names_spec=$lt_library_names_spec
18426 # The coded name of the library, if different from the real name.
18427 soname_spec=$lt_soname_spec
18429 # Permission mode override for installation of shared libraries.
18430 install_override_mode=$lt_install_override_mode
18432 # Command to use after installation of a shared archive.
18433 postinstall_cmds=$lt_postinstall_cmds
18435 # Command to use after uninstallation of a shared archive.
18436 postuninstall_cmds=$lt_postuninstall_cmds
18438 # Commands used to finish a libtool library installation in a directory.
18439 finish_cmds=$lt_finish_cmds
18441 # As "finish_cmds", except a single script fragment to be evaled but
18442 # not shown.
18443 finish_eval=$lt_finish_eval
18445 # Whether we should hardcode library paths into libraries.
18446 hardcode_into_libs=$hardcode_into_libs
18448 # Compile-time system search path for libraries.
18449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18451 # Run-time system search path for libraries.
18452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18454 # Whether dlopen is supported.
18455 dlopen_support=$enable_dlopen
18457 # Whether dlopen of programs is supported.
18458 dlopen_self=$enable_dlopen_self
18460 # Whether dlopen of statically linked programs is supported.
18461 dlopen_self_static=$enable_dlopen_self_static
18463 # Commands to strip libraries.
18464 old_striplib=$lt_old_striplib
18465 striplib=$lt_striplib
18468 # The linker used to build libraries.
18469 LD=$lt_LD
18471 # How to create reloadable object files.
18472 reload_flag=$lt_reload_flag
18473 reload_cmds=$lt_reload_cmds
18475 # Commands used to build an old-style archive.
18476 old_archive_cmds=$lt_old_archive_cmds
18478 # A language specific compiler.
18479 CC=$lt_compiler
18481 # Is the compiler the GNU compiler?
18482 with_gcc=$GCC
18484 # Compiler flag to turn off builtin functions.
18485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18487 # How to pass a linker flag through the compiler.
18488 wl=$lt_lt_prog_compiler_wl
18490 # Additional compiler flags for building library objects.
18491 pic_flag=$lt_lt_prog_compiler_pic
18493 # Compiler flag to prevent dynamic linking.
18494 link_static_flag=$lt_lt_prog_compiler_static
18496 # Does compiler simultaneously support -c and -o options?
18497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18499 # Whether or not to add -lc for building shared libraries.
18500 build_libtool_need_lc=$archive_cmds_need_lc
18502 # Whether or not to disallow shared libs when runtime libs are static.
18503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18505 # Compiler flag to allow reflexive dlopens.
18506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18508 # Compiler flag to generate shared objects directly from archives.
18509 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18511 # Whether the compiler copes with passing no objects directly.
18512 compiler_needs_object=$lt_compiler_needs_object
18514 # Create an old-style archive from a shared archive.
18515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18517 # Create a temporary old-style archive to link instead of a shared archive.
18518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18520 # Commands used to build a shared archive.
18521 archive_cmds=$lt_archive_cmds
18522 archive_expsym_cmds=$lt_archive_expsym_cmds
18524 # Commands used to build a loadable module if different from building
18525 # a shared archive.
18526 module_cmds=$lt_module_cmds
18527 module_expsym_cmds=$lt_module_expsym_cmds
18529 # Whether we are building with GNU ld or not.
18530 with_gnu_ld=$lt_with_gnu_ld
18532 # Flag that allows shared libraries with undefined symbols to be built.
18533 allow_undefined_flag=$lt_allow_undefined_flag
18535 # Flag that enforces no undefined symbols.
18536 no_undefined_flag=$lt_no_undefined_flag
18538 # Flag to hardcode \$libdir into a binary during linking.
18539 # This must work even if \$libdir does not exist
18540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18542 # If ld is used when linking, flag to hardcode \$libdir into a binary
18543 # during linking. This must work even if \$libdir does not exist.
18544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18546 # Whether we need a single "-rpath" flag with a separated argument.
18547 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18549 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18550 # DIR into the resulting binary.
18551 hardcode_direct=$hardcode_direct
18553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18554 # DIR into the resulting binary and the resulting library dependency is
18555 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18556 # library is relocated.
18557 hardcode_direct_absolute=$hardcode_direct_absolute
18559 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18560 # into the resulting binary.
18561 hardcode_minus_L=$hardcode_minus_L
18563 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18564 # into the resulting binary.
18565 hardcode_shlibpath_var=$hardcode_shlibpath_var
18567 # Set to "yes" if building a shared library automatically hardcodes DIR
18568 # into the library and all subsequent libraries and executables linked
18569 # against it.
18570 hardcode_automatic=$hardcode_automatic
18572 # Set to yes if linker adds runtime paths of dependent libraries
18573 # to runtime path list.
18574 inherit_rpath=$inherit_rpath
18576 # Whether libtool must link a program against all its dependency libraries.
18577 link_all_deplibs=$link_all_deplibs
18579 # Fix the shell variable \$srcfile for the compiler.
18580 fix_srcfile_path=$lt_fix_srcfile_path
18582 # Set to "yes" if exported symbols are required.
18583 always_export_symbols=$always_export_symbols
18585 # The commands to list exported symbols.
18586 export_symbols_cmds=$lt_export_symbols_cmds
18588 # Symbols that should not be listed in the preloaded symbols.
18589 exclude_expsyms=$lt_exclude_expsyms
18591 # Symbols that must always be exported.
18592 include_expsyms=$lt_include_expsyms
18594 # Commands necessary for linking programs (against libraries) with templates.
18595 prelink_cmds=$lt_prelink_cmds
18597 # Specify filename containing input files.
18598 file_list_spec=$lt_file_list_spec
18600 # How to hardcode a shared library path into an executable.
18601 hardcode_action=$hardcode_action
18603 # The directories searched by this compiler when creating a shared library.
18604 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18606 # Dependencies to place before and after the objects being linked to
18607 # create a shared library.
18608 predep_objects=$lt_predep_objects
18609 postdep_objects=$lt_postdep_objects
18610 predeps=$lt_predeps
18611 postdeps=$lt_postdeps
18613 # The library search path used internally by the compiler when linking
18614 # a shared library.
18615 compiler_lib_search_path=$lt_compiler_lib_search_path
18617 # ### END LIBTOOL CONFIG
18619 _LT_EOF
18621 case $host_os in
18622 aix3*)
18623 cat <<\_LT_EOF >> "$cfgfile"
18624 # AIX sometimes has problems with the GCC collect2 program. For some
18625 # reason, if we set the COLLECT_NAMES environment variable, the problems
18626 # vanish in a puff of smoke.
18627 if test "X${COLLECT_NAMES+set}" != Xset; then
18628 COLLECT_NAMES=
18629 export COLLECT_NAMES
18631 _LT_EOF
18633 esac
18636 ltmain="$ac_aux_dir/ltmain.sh"
18639 # We use sed instead of cat because bash on DJGPP gets confused if
18640 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18641 # text mode, it properly converts lines to CR/LF. This bash problem
18642 # is reportedly fixed, but why not run on old versions too?
18643 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18644 || (rm -f "$cfgfile"; exit 1)
18646 case $xsi_shell in
18647 yes)
18648 cat << \_LT_EOF >> "$cfgfile"
18650 # func_dirname file append nondir_replacement
18651 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18652 # otherwise set result to NONDIR_REPLACEMENT.
18653 func_dirname ()
18655 case ${1} in
18656 */*) func_dirname_result="${1%/*}${2}" ;;
18657 * ) func_dirname_result="${3}" ;;
18658 esac
18661 # func_basename file
18662 func_basename ()
18664 func_basename_result="${1##*/}"
18667 # func_dirname_and_basename file append nondir_replacement
18668 # perform func_basename and func_dirname in a single function
18669 # call:
18670 # dirname: Compute the dirname of FILE. If nonempty,
18671 # add APPEND to the result, otherwise set result
18672 # to NONDIR_REPLACEMENT.
18673 # value returned in "$func_dirname_result"
18674 # basename: Compute filename of FILE.
18675 # value retuned in "$func_basename_result"
18676 # Implementation must be kept synchronized with func_dirname
18677 # and func_basename. For efficiency, we do not delegate to
18678 # those functions but instead duplicate the functionality here.
18679 func_dirname_and_basename ()
18681 case ${1} in
18682 */*) func_dirname_result="${1%/*}${2}" ;;
18683 * ) func_dirname_result="${3}" ;;
18684 esac
18685 func_basename_result="${1##*/}"
18688 # func_stripname prefix suffix name
18689 # strip PREFIX and SUFFIX off of NAME.
18690 # PREFIX and SUFFIX must not contain globbing or regex special
18691 # characters, hashes, percent signs, but SUFFIX may contain a leading
18692 # dot (in which case that matches only a dot).
18693 func_stripname ()
18695 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18696 # positional parameters, so assign one to ordinary parameter first.
18697 func_stripname_result=${3}
18698 func_stripname_result=${func_stripname_result#"${1}"}
18699 func_stripname_result=${func_stripname_result%"${2}"}
18702 # func_opt_split
18703 func_opt_split ()
18705 func_opt_split_opt=${1%%=*}
18706 func_opt_split_arg=${1#*=}
18709 # func_lo2o object
18710 func_lo2o ()
18712 case ${1} in
18713 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18714 *) func_lo2o_result=${1} ;;
18715 esac
18718 # func_xform libobj-or-source
18719 func_xform ()
18721 func_xform_result=${1%.*}.lo
18724 # func_arith arithmetic-term...
18725 func_arith ()
18727 func_arith_result=$(( $* ))
18730 # func_len string
18731 # STRING may not start with a hyphen.
18732 func_len ()
18734 func_len_result=${#1}
18737 _LT_EOF
18739 *) # Bourne compatible functions.
18740 cat << \_LT_EOF >> "$cfgfile"
18742 # func_dirname file append nondir_replacement
18743 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18744 # otherwise set result to NONDIR_REPLACEMENT.
18745 func_dirname ()
18747 # Extract subdirectory from the argument.
18748 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18749 if test "X$func_dirname_result" = "X${1}"; then
18750 func_dirname_result="${3}"
18751 else
18752 func_dirname_result="$func_dirname_result${2}"
18756 # func_basename file
18757 func_basename ()
18759 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18763 # func_stripname prefix suffix name
18764 # strip PREFIX and SUFFIX off of NAME.
18765 # PREFIX and SUFFIX must not contain globbing or regex special
18766 # characters, hashes, percent signs, but SUFFIX may contain a leading
18767 # dot (in which case that matches only a dot).
18768 # func_strip_suffix prefix name
18769 func_stripname ()
18771 case ${2} in
18772 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18773 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18774 esac
18777 # sed scripts:
18778 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18779 my_sed_long_arg='1s/^-[^=]*=//'
18781 # func_opt_split
18782 func_opt_split ()
18784 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18785 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18788 # func_lo2o object
18789 func_lo2o ()
18791 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18794 # func_xform libobj-or-source
18795 func_xform ()
18797 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18800 # func_arith arithmetic-term...
18801 func_arith ()
18803 func_arith_result=`expr "$@"`
18806 # func_len string
18807 # STRING may not start with a hyphen.
18808 func_len ()
18810 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18813 _LT_EOF
18814 esac
18816 case $lt_shell_append in
18817 yes)
18818 cat << \_LT_EOF >> "$cfgfile"
18820 # func_append var value
18821 # Append VALUE to the end of shell variable VAR.
18822 func_append ()
18824 eval "$1+=\$2"
18826 _LT_EOF
18829 cat << \_LT_EOF >> "$cfgfile"
18831 # func_append var value
18832 # Append VALUE to the end of shell variable VAR.
18833 func_append ()
18835 eval "$1=\$$1\$2"
18838 _LT_EOF
18840 esac
18843 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18844 || (rm -f "$cfgfile"; exit 1)
18846 mv -f "$cfgfile" "$ofile" ||
18847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18848 chmod +x "$ofile"
18851 cat <<_LT_EOF >> "$ofile"
18853 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18855 # The linker used to build libraries.
18856 LD=$lt_LD_CXX
18858 # How to create reloadable object files.
18859 reload_flag=$lt_reload_flag_CXX
18860 reload_cmds=$lt_reload_cmds_CXX
18862 # Commands used to build an old-style archive.
18863 old_archive_cmds=$lt_old_archive_cmds_CXX
18865 # A language specific compiler.
18866 CC=$lt_compiler_CXX
18868 # Is the compiler the GNU compiler?
18869 with_gcc=$GCC_CXX
18871 # Compiler flag to turn off builtin functions.
18872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18874 # How to pass a linker flag through the compiler.
18875 wl=$lt_lt_prog_compiler_wl_CXX
18877 # Additional compiler flags for building library objects.
18878 pic_flag=$lt_lt_prog_compiler_pic_CXX
18880 # Compiler flag to prevent dynamic linking.
18881 link_static_flag=$lt_lt_prog_compiler_static_CXX
18883 # Does compiler simultaneously support -c and -o options?
18884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18886 # Whether or not to add -lc for building shared libraries.
18887 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18889 # Whether or not to disallow shared libs when runtime libs are static.
18890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18892 # Compiler flag to allow reflexive dlopens.
18893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18895 # Compiler flag to generate shared objects directly from archives.
18896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18898 # Whether the compiler copes with passing no objects directly.
18899 compiler_needs_object=$lt_compiler_needs_object_CXX
18901 # Create an old-style archive from a shared archive.
18902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18904 # Create a temporary old-style archive to link instead of a shared archive.
18905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18907 # Commands used to build a shared archive.
18908 archive_cmds=$lt_archive_cmds_CXX
18909 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18911 # Commands used to build a loadable module if different from building
18912 # a shared archive.
18913 module_cmds=$lt_module_cmds_CXX
18914 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18916 # Whether we are building with GNU ld or not.
18917 with_gnu_ld=$lt_with_gnu_ld_CXX
18919 # Flag that allows shared libraries with undefined symbols to be built.
18920 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18922 # Flag that enforces no undefined symbols.
18923 no_undefined_flag=$lt_no_undefined_flag_CXX
18925 # Flag to hardcode \$libdir into a binary during linking.
18926 # This must work even if \$libdir does not exist
18927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18929 # If ld is used when linking, flag to hardcode \$libdir into a binary
18930 # during linking. This must work even if \$libdir does not exist.
18931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18933 # Whether we need a single "-rpath" flag with a separated argument.
18934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18937 # DIR into the resulting binary.
18938 hardcode_direct=$hardcode_direct_CXX
18940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18941 # DIR into the resulting binary and the resulting library dependency is
18942 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18943 # library is relocated.
18944 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18946 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18947 # into the resulting binary.
18948 hardcode_minus_L=$hardcode_minus_L_CXX
18950 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18951 # into the resulting binary.
18952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18954 # Set to "yes" if building a shared library automatically hardcodes DIR
18955 # into the library and all subsequent libraries and executables linked
18956 # against it.
18957 hardcode_automatic=$hardcode_automatic_CXX
18959 # Set to yes if linker adds runtime paths of dependent libraries
18960 # to runtime path list.
18961 inherit_rpath=$inherit_rpath_CXX
18963 # Whether libtool must link a program against all its dependency libraries.
18964 link_all_deplibs=$link_all_deplibs_CXX
18966 # Fix the shell variable \$srcfile for the compiler.
18967 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18969 # Set to "yes" if exported symbols are required.
18970 always_export_symbols=$always_export_symbols_CXX
18972 # The commands to list exported symbols.
18973 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18975 # Symbols that should not be listed in the preloaded symbols.
18976 exclude_expsyms=$lt_exclude_expsyms_CXX
18978 # Symbols that must always be exported.
18979 include_expsyms=$lt_include_expsyms_CXX
18981 # Commands necessary for linking programs (against libraries) with templates.
18982 prelink_cmds=$lt_prelink_cmds_CXX
18984 # Specify filename containing input files.
18985 file_list_spec=$lt_file_list_spec_CXX
18987 # How to hardcode a shared library path into an executable.
18988 hardcode_action=$hardcode_action_CXX
18990 # The directories searched by this compiler when creating a shared library.
18991 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18993 # Dependencies to place before and after the objects being linked to
18994 # create a shared library.
18995 predep_objects=$lt_predep_objects_CXX
18996 postdep_objects=$lt_postdep_objects_CXX
18997 predeps=$lt_predeps_CXX
18998 postdeps=$lt_postdeps_CXX
19000 # The library search path used internally by the compiler when linking
19001 # a shared library.
19002 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19004 # ### END LIBTOOL TAG CONFIG: CXX
19005 _LT_EOF
19008 "gstdint.h":C)
19009 if test "$GCC" = yes; then
19010 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19011 else
19012 echo "/* generated for $CC */" > tmp-stdint.h
19015 sed 's/^ *//' >> tmp-stdint.h <<EOF
19017 #ifndef GCC_GENERATED_STDINT_H
19018 #define GCC_GENERATED_STDINT_H 1
19020 #include <sys/types.h>
19023 if test "$acx_cv_header_stdint" != stdint.h; then
19024 echo "#include <stddef.h>" >> tmp-stdint.h
19026 if test "$acx_cv_header_stdint" != stddef.h; then
19027 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19030 sed 's/^ *//' >> tmp-stdint.h <<EOF
19031 /* glibc uses these symbols as guards to prevent redefinitions. */
19032 #ifdef __int8_t_defined
19033 #define _INT8_T
19034 #define _INT16_T
19035 #define _INT32_T
19036 #endif
19037 #ifdef __uint32_t_defined
19038 #define _UINT32_T
19039 #endif
19043 # ----------------- done header, emit basic int types -------------
19044 if test "$acx_cv_header_stdint" = stddef.h; then
19045 sed 's/^ *//' >> tmp-stdint.h <<EOF
19047 #ifndef _UINT8_T
19048 #define _UINT8_T
19049 #ifndef __uint8_t_defined
19050 #define __uint8_t_defined
19051 #ifndef uint8_t
19052 typedef unsigned $acx_cv_type_int8_t uint8_t;
19053 #endif
19054 #endif
19055 #endif
19057 #ifndef _UINT16_T
19058 #define _UINT16_T
19059 #ifndef __uint16_t_defined
19060 #define __uint16_t_defined
19061 #ifndef uint16_t
19062 typedef unsigned $acx_cv_type_int16_t uint16_t;
19063 #endif
19064 #endif
19065 #endif
19067 #ifndef _UINT32_T
19068 #define _UINT32_T
19069 #ifndef __uint32_t_defined
19070 #define __uint32_t_defined
19071 #ifndef uint32_t
19072 typedef unsigned $acx_cv_type_int32_t uint32_t;
19073 #endif
19074 #endif
19075 #endif
19077 #ifndef _INT8_T
19078 #define _INT8_T
19079 #ifndef __int8_t_defined
19080 #define __int8_t_defined
19081 #ifndef int8_t
19082 typedef $acx_cv_type_int8_t int8_t;
19083 #endif
19084 #endif
19085 #endif
19087 #ifndef _INT16_T
19088 #define _INT16_T
19089 #ifndef __int16_t_defined
19090 #define __int16_t_defined
19091 #ifndef int16_t
19092 typedef $acx_cv_type_int16_t int16_t;
19093 #endif
19094 #endif
19095 #endif
19097 #ifndef _INT32_T
19098 #define _INT32_T
19099 #ifndef __int32_t_defined
19100 #define __int32_t_defined
19101 #ifndef int32_t
19102 typedef $acx_cv_type_int32_t int32_t;
19103 #endif
19104 #endif
19105 #endif
19107 elif test "$ac_cv_type_u_int32_t" = yes; then
19108 sed 's/^ *//' >> tmp-stdint.h <<EOF
19110 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19111 #ifndef _INT8_T
19112 #define _INT8_T
19113 #endif
19114 #ifndef _INT16_T
19115 #define _INT16_T
19116 #endif
19117 #ifndef _INT32_T
19118 #define _INT32_T
19119 #endif
19121 #ifndef _UINT8_T
19122 #define _UINT8_T
19123 #ifndef __uint8_t_defined
19124 #define __uint8_t_defined
19125 #ifndef uint8_t
19126 typedef u_int8_t uint8_t;
19127 #endif
19128 #endif
19129 #endif
19131 #ifndef _UINT16_T
19132 #define _UINT16_T
19133 #ifndef __uint16_t_defined
19134 #define __uint16_t_defined
19135 #ifndef uint16_t
19136 typedef u_int16_t uint16_t;
19137 #endif
19138 #endif
19139 #endif
19141 #ifndef _UINT32_T
19142 #define _UINT32_T
19143 #ifndef __uint32_t_defined
19144 #define __uint32_t_defined
19145 #ifndef uint32_t
19146 typedef u_int32_t uint32_t;
19147 #endif
19148 #endif
19149 #endif
19151 else
19152 sed 's/^ *//' >> tmp-stdint.h <<EOF
19154 /* Some systems have guard macros to prevent redefinitions, define them. */
19155 #ifndef _INT8_T
19156 #define _INT8_T
19157 #endif
19158 #ifndef _INT16_T
19159 #define _INT16_T
19160 #endif
19161 #ifndef _INT32_T
19162 #define _INT32_T
19163 #endif
19164 #ifndef _UINT8_T
19165 #define _UINT8_T
19166 #endif
19167 #ifndef _UINT16_T
19168 #define _UINT16_T
19169 #endif
19170 #ifndef _UINT32_T
19171 #define _UINT32_T
19172 #endif
19176 # ------------- done basic int types, emit int64_t types ------------
19177 if test "$ac_cv_type_uint64_t" = yes; then
19178 sed 's/^ *//' >> tmp-stdint.h <<EOF
19180 /* system headers have good uint64_t and int64_t */
19181 #ifndef _INT64_T
19182 #define _INT64_T
19183 #endif
19184 #ifndef _UINT64_T
19185 #define _UINT64_T
19186 #endif
19188 elif test "$ac_cv_type_u_int64_t" = yes; then
19189 sed 's/^ *//' >> tmp-stdint.h <<EOF
19191 /* system headers have an u_int64_t (and int64_t) */
19192 #ifndef _INT64_T
19193 #define _INT64_T
19194 #endif
19195 #ifndef _UINT64_T
19196 #define _UINT64_T
19197 #ifndef __uint64_t_defined
19198 #define __uint64_t_defined
19199 #ifndef uint64_t
19200 typedef u_int64_t uint64_t;
19201 #endif
19202 #endif
19203 #endif
19205 elif test -n "$acx_cv_type_int64_t"; then
19206 sed 's/^ *//' >> tmp-stdint.h <<EOF
19208 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19209 #ifndef _INT64_T
19210 #define _INT64_T
19211 #ifndef int64_t
19212 typedef $acx_cv_type_int64_t int64_t;
19213 #endif
19214 #endif
19215 #ifndef _UINT64_T
19216 #define _UINT64_T
19217 #ifndef __uint64_t_defined
19218 #define __uint64_t_defined
19219 #ifndef uint64_t
19220 typedef unsigned $acx_cv_type_int64_t uint64_t;
19221 #endif
19222 #endif
19223 #endif
19225 else
19226 sed 's/^ *//' >> tmp-stdint.h <<EOF
19228 /* some common heuristics for int64_t, using compiler-specific tests */
19229 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19230 #ifndef _INT64_T
19231 #define _INT64_T
19232 #ifndef __int64_t_defined
19233 #ifndef int64_t
19234 typedef long long int64_t;
19235 #endif
19236 #endif
19237 #endif
19238 #ifndef _UINT64_T
19239 #define _UINT64_T
19240 #ifndef uint64_t
19241 typedef unsigned long long uint64_t;
19242 #endif
19243 #endif
19245 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19246 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19247 does not implement __extension__. But that compiler doesn't define
19248 __GNUC_MINOR__. */
19249 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19250 # define __extension__
19251 # endif
19253 # ifndef _INT64_T
19254 # define _INT64_T
19255 # ifndef int64_t
19256 __extension__ typedef long long int64_t;
19257 # endif
19258 # endif
19259 # ifndef _UINT64_T
19260 # define _UINT64_T
19261 # ifndef uint64_t
19262 __extension__ typedef unsigned long long uint64_t;
19263 # endif
19264 # endif
19266 #elif !defined __STRICT_ANSI__
19267 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19269 # ifndef _INT64_T
19270 # define _INT64_T
19271 # ifndef int64_t
19272 typedef __int64 int64_t;
19273 # endif
19274 # endif
19275 # ifndef _UINT64_T
19276 # define _UINT64_T
19277 # ifndef uint64_t
19278 typedef unsigned __int64 uint64_t;
19279 # endif
19280 # endif
19281 # endif /* compiler */
19283 #endif /* ANSI version */
19287 # ------------- done int64_t types, emit intptr types ------------
19288 if test "$ac_cv_type_uintptr_t" != yes; then
19289 sed 's/^ *//' >> tmp-stdint.h <<EOF
19291 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19292 #ifndef __uintptr_t_defined
19293 #ifndef uintptr_t
19294 typedef u$acx_cv_type_intptr_t uintptr_t;
19295 #endif
19296 #endif
19297 #ifndef __intptr_t_defined
19298 #ifndef intptr_t
19299 typedef $acx_cv_type_intptr_t intptr_t;
19300 #endif
19301 #endif
19305 # ------------- done intptr types, emit int_least types ------------
19306 if test "$ac_cv_type_int_least32_t" != yes; then
19307 sed 's/^ *//' >> tmp-stdint.h <<EOF
19309 /* Define int_least types */
19310 typedef int8_t int_least8_t;
19311 typedef int16_t int_least16_t;
19312 typedef int32_t int_least32_t;
19313 #ifdef _INT64_T
19314 typedef int64_t int_least64_t;
19315 #endif
19317 typedef uint8_t uint_least8_t;
19318 typedef uint16_t uint_least16_t;
19319 typedef uint32_t uint_least32_t;
19320 #ifdef _UINT64_T
19321 typedef uint64_t uint_least64_t;
19322 #endif
19326 # ------------- done intptr types, emit int_fast types ------------
19327 if test "$ac_cv_type_int_fast32_t" != yes; then
19328 sed 's/^ *//' >> tmp-stdint.h <<EOF
19330 /* Define int_fast types. short is often slow */
19331 typedef int8_t int_fast8_t;
19332 typedef int int_fast16_t;
19333 typedef int32_t int_fast32_t;
19334 #ifdef _INT64_T
19335 typedef int64_t int_fast64_t;
19336 #endif
19338 typedef uint8_t uint_fast8_t;
19339 typedef unsigned int uint_fast16_t;
19340 typedef uint32_t uint_fast32_t;
19341 #ifdef _UINT64_T
19342 typedef uint64_t uint_fast64_t;
19343 #endif
19347 if test "$ac_cv_type_uintmax_t" != yes; then
19348 sed 's/^ *//' >> tmp-stdint.h <<EOF
19350 /* Define intmax based on what we found */
19351 #ifndef intmax_t
19352 #ifdef _INT64_T
19353 typedef int64_t intmax_t;
19354 #else
19355 typedef long intmax_t;
19356 #endif
19357 #endif
19358 #ifndef uintmax_t
19359 #ifdef _UINT64_T
19360 typedef uint64_t uintmax_t;
19361 #else
19362 typedef unsigned long uintmax_t;
19363 #endif
19364 #endif
19368 sed 's/^ *//' >> tmp-stdint.h <<EOF
19370 #endif /* GCC_GENERATED_STDINT_H */
19373 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19374 rm -f tmp-stdint.h
19375 else
19376 mv -f tmp-stdint.h gstdint.h
19380 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19381 s!`test -f '$<' || echo '$(srcdir)/'`!!
19382 _EOF
19383 sed -f vpsed$$ $ac_file > tmp$$
19384 mv tmp$$ $ac_file
19385 rm vpsed$$
19386 echo 'MULTISUBDIR =' >> $ac_file
19387 ml_norecursion=yes
19388 . ${multi_basedir}/config-ml.in
19389 { ml_norecursion=; unset ml_norecursion;}
19391 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19392 s!`test -f '$<' || echo '$(srcdir)/'`!!
19393 _EOF
19394 sed -f vpsed$$ $ac_file > tmp$$
19395 mv tmp$$ $ac_file
19396 rm vpsed$$
19397 echo 'MULTISUBDIR =' >> $ac_file
19398 ml_norecursion=yes
19399 . ${multi_basedir}/config-ml.in
19400 { ml_norecursion=; unset ml_norecursion;}
19402 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19403 s!`test -f '$<' || echo '$(srcdir)/'`!!
19404 _EOF
19405 sed -f vpsed$$ $ac_file > tmp$$
19406 mv tmp$$ $ac_file
19407 rm vpsed$$
19408 echo 'MULTISUBDIR =' >> $ac_file
19409 ml_norecursion=yes
19410 . ${multi_basedir}/config-ml.in
19411 { ml_norecursion=; unset ml_norecursion;}
19413 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19414 s!`test -f '$<' || echo '$(srcdir)/'`!!
19415 _EOF
19416 sed -f vpsed$$ $ac_file > tmp$$
19417 mv tmp$$ $ac_file
19418 rm vpsed$$
19419 echo 'MULTISUBDIR =' >> $ac_file
19420 ml_norecursion=yes
19421 . ${multi_basedir}/config-ml.in
19422 { ml_norecursion=; unset ml_norecursion;}
19424 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19425 s!`test -f '$<' || echo '$(srcdir)/'`!!
19426 _EOF
19427 sed -f vpsed$$ $ac_file > tmp$$
19428 mv tmp$$ $ac_file
19429 rm vpsed$$
19430 echo 'MULTISUBDIR =' >> $ac_file
19431 ml_norecursion=yes
19432 . ${multi_basedir}/config-ml.in
19433 { ml_norecursion=; unset ml_norecursion;}
19435 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19436 s!`test -f '$<' || echo '$(srcdir)/'`!!
19437 _EOF
19438 sed -f vpsed$$ $ac_file > tmp$$
19439 mv tmp$$ $ac_file
19440 rm vpsed$$
19441 echo 'MULTISUBDIR =' >> $ac_file
19442 ml_norecursion=yes
19443 . ${multi_basedir}/config-ml.in
19444 { ml_norecursion=; unset ml_norecursion;}
19446 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19447 s!`test -f '$<' || echo '$(srcdir)/'`!!
19448 _EOF
19449 sed -f vpsed$$ $ac_file > tmp$$
19450 mv tmp$$ $ac_file
19451 rm vpsed$$
19452 echo 'MULTISUBDIR =' >> $ac_file
19453 ml_norecursion=yes
19454 . ${multi_basedir}/config-ml.in
19455 { ml_norecursion=; unset ml_norecursion;}
19458 esac
19459 done # for ac_tag
19462 as_fn_exit 0
19463 _ACEOF
19464 ac_clean_files=$ac_clean_files_save
19466 test $ac_write_fail = 0 ||
19467 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19470 # configure is writing to config.log, and then calls config.status.
19471 # config.status does its own redirection, appending to config.log.
19472 # Unfortunately, on DOS this fails, as config.log is still kept open
19473 # by configure, so config.status won't be able to write to it; its
19474 # output is simply discarded. So we exec the FD to /dev/null,
19475 # effectively closing config.log, so it can be properly (re)opened and
19476 # appended to by config.status. When coming back to configure, we
19477 # need to make the FD available again.
19478 if test "$no_create" != yes; then
19479 ac_cs_success=:
19480 ac_config_status_args=
19481 test "$silent" = yes &&
19482 ac_config_status_args="$ac_config_status_args --quiet"
19483 exec 5>/dev/null
19484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19485 exec 5>>config.log
19486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19487 # would make configure fail if this is the last instruction.
19488 $ac_cs_success || as_fn_exit $?
19490 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19492 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}