non-scalar-data.f90: Don't pass parameter variables to subroutines.
[official-gcc.git] / libsanitizer / configure
blob040ded0abc60bb27066a25846687a1d1d80c7805
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 TSAN_TARGET_DEPENDENT_OBJECTS
608 LIBBACKTRACE_SUPPORTED_FALSE
609 LIBBACKTRACE_SUPPORTED_TRUE
610 OBSTACK_DEFS
611 RPC_DEFS
612 BACKTRACE_SUPPORTS_THREADS
613 BACKTRACE_USES_MALLOC
614 ALLOC_FILE
615 VIEW_FILE
616 BACKTRACE_SUPPORTED
617 FORMAT_FILE
618 SANITIZER_SUPPORTED_FALSE
619 SANITIZER_SUPPORTED_TRUE
620 USING_MAC_INTERPOSE_FALSE
621 USING_MAC_INTERPOSE_TRUE
622 link_liblsan
623 link_libubsan
624 link_libtsan
625 link_libasan
626 LSAN_SUPPORTED_FALSE
627 LSAN_SUPPORTED_TRUE
628 TSAN_SUPPORTED_FALSE
629 TSAN_SUPPORTED_TRUE
630 enable_static
631 enable_shared
632 CXXCPP
633 OTOOL64
634 OTOOL
635 LIPO
636 NMEDIT
637 DSYMUTIL
639 OBJDUMP
640 LN_S
642 ac_ct_DUMPBIN
643 DUMPBIN
645 FGREP
647 LIBTOOL
648 RANLIB
649 am__fastdepCCAS_FALSE
650 am__fastdepCCAS_TRUE
651 CCASDEPMODE
652 CCASFLAGS
653 CCAS
654 am__fastdepCXX_FALSE
655 am__fastdepCXX_TRUE
656 CXXDEPMODE
657 ac_ct_CXX
658 CXXFLAGS
660 toolexeclibdir
661 toolexecdir
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LIBSTDCXX_RAW_CXX_LDFLAGS
699 LIBSTDCXX_RAW_CXX_CXXFLAGS
700 target_noncanonical
701 target_os
702 target_vendor
703 target_cpu
704 target
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 EGREP
714 GREP
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 multi_basedir
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_multilib
766 enable_version_specific_runtime_libs
767 enable_dependency_tracking
768 enable_maintainer_mode
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
786 CXXFLAGS
788 CCAS
789 CCASFLAGS
790 CXXCPP'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information."
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of package-unused version-unused:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-multilib build many library versions (default)
1412 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic try to use only PIC/non-PIC objects [default=use
1427 both]
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 CPP C preprocessor
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CCAS assembler compiler command (defaults to CC)
1442 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1443 CXXCPP C++ preprocessor
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to <libsanitizer>.
1449 _ACEOF
1450 ac_status=$?
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 package-unused configure version-unused
1512 generated by GNU Autoconf 2.64
1514 Copyright (C) 2009 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1556 ac_retval=1
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1561 } # ac_fn_c_try_compile
1563 # ac_fn_c_try_cpp LINENO
1564 # ----------------------
1565 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_cpp ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 if { { ac_try="$ac_cpp conftest.$ac_ext"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } >/dev/null && {
1585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1598 } # ac_fn_c_try_cpp
1600 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603 # the include files in INCLUDES and setting the cache variable VAR
1604 # accordingly.
1605 ac_fn_c_check_header_mongrel ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612 $as_echo_n "(cached) " >&6
1614 eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617 else
1618 # Is the header compilable?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620 $as_echo_n "checking $2 usability... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 ac_header_compiler=yes
1628 else
1629 ac_header_compiler=no
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633 $as_echo "$ac_header_compiler" >&6; }
1635 # Is the header present?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637 $as_echo_n "checking $2 presence... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_cpp "$LINENO"; then :
1643 ac_header_preproc=yes
1644 else
1645 ac_header_preproc=no
1647 rm -f conftest.err conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649 $as_echo "$ac_header_preproc" >&6; }
1651 # So? What about this header?
1652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653 yes:no: )
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 no:yes:* )
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1663 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1667 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ( cat <<\_ASBOX
1671 ## --------------------------- ##
1672 ## Report this to libsanitizer ##
1673 ## --------------------------- ##
1674 _ASBOX
1675 ) | sed "s/^/$as_me: WARNING: /" >&2
1677 esac
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 eval "$3=\$ac_header_compiler"
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 } # ac_fn_c_check_header_mongrel
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=$ac_status
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1733 } # ac_fn_c_try_run
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 } # ac_fn_c_check_header_compile
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1802 } # ac_fn_cxx_try_compile
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_link ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 $as_test_x conftest$ac_exeext
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=1
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1848 } # ac_fn_c_try_link
1850 # ac_fn_c_check_func LINENO FUNC VAR
1851 # ----------------------------------
1852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1853 ac_fn_c_check_func ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 $as_echo_n "(cached) " >&6
1860 else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1865 #define $2 innocuous_$2
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $2 (); below.
1869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870 <limits.h> exists even on freestanding compilers. */
1872 #ifdef __STDC__
1873 # include <limits.h>
1874 #else
1875 # include <assert.h>
1876 #endif
1878 #undef $2
1880 /* Override any GCC internal prototype to avoid an error.
1881 Use char because int might match the return type of a GCC
1882 builtin and then its argument prototype would still apply. */
1883 #ifdef __cplusplus
1884 extern "C"
1885 #endif
1886 char $2 ();
1887 /* The GNU C library defines this for functions which it implements
1888 to always fail with ENOSYS. Some functions are actually named
1889 something starting with __ and the normal name is an alias. */
1890 #if defined __stub_$2 || defined __stub___$2
1891 choke me
1892 #endif
1895 main ()
1897 return $2 ();
1899 return 0;
1901 _ACEOF
1902 if ac_fn_c_try_link "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1907 rm -f core conftest.err conftest.$ac_objext \
1908 conftest$ac_exeext conftest.$ac_ext
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 } # ac_fn_c_check_func
1917 # ac_fn_cxx_try_cpp LINENO
1918 # ------------------------
1919 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_cpp ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } >/dev/null && {
1939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=1
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 return $ac_retval
1952 } # ac_fn_cxx_try_cpp
1954 # ac_fn_cxx_try_link LINENO
1955 # -------------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_link ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest$ac_exeext
1961 if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest$ac_exeext && {
1980 test "$cross_compiling" = yes ||
1981 $as_test_x conftest$ac_exeext
1982 }; then :
1983 ac_retval=0
1984 else
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 ac_retval=1
1990 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992 # interfere with the next link command; also delete a directory that is
1993 # left behind by Apple's compiler. We do this before executing the actions.
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
1998 } # ac_fn_cxx_try_link
2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001 # --------------------------------------------
2002 # Tries to find the compile-time value of EXPR in a program that includes
2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2004 # computed
2005 ac_fn_c_compute_int ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if test "$cross_compiling" = yes; then
2009 # Depending upon the size, compute the lo and hi bounds.
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 main ()
2016 static int test_array [1 - 2 * !(($2) >= 0)];
2017 test_array [0] = 0
2020 return 0;
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_lo=0 ac_mid=0
2025 while :; do
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033 test_array [0] = 0
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=$ac_mid; break
2041 else
2042 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043 if test $ac_lo -le $ac_mid; then
2044 ac_lo= ac_hi=
2045 break
2047 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 done
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2056 main ()
2058 static int test_array [1 - 2 * !(($2) < 0)];
2059 test_array [0] = 0
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_hi=-1 ac_mid=-1
2067 while :; do
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075 test_array [0] = 0
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=$ac_mid; break
2083 else
2084 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085 if test $ac_mid -le $ac_hi; then
2086 ac_lo= ac_hi=
2087 break
2089 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 else
2094 ac_lo= ac_hi=
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 # Binary search between lo and hi bounds.
2100 while test "x$ac_lo" != "x$ac_hi"; do
2101 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109 test_array [0] = 0
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=$ac_mid
2117 else
2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 done
2122 case $ac_lo in #((
2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2124 '') ac_retval=1 ;;
2125 esac
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2130 static long int longval () { return $2; }
2131 static unsigned long int ulongval () { return $2; }
2132 #include <stdio.h>
2133 #include <stdlib.h>
2135 main ()
2138 FILE *f = fopen ("conftest.val", "w");
2139 if (! f)
2140 return 1;
2141 if (($2) < 0)
2143 long int i = longval ();
2144 if (i != ($2))
2145 return 1;
2146 fprintf (f, "%ld", i);
2148 else
2150 unsigned long int i = ulongval ();
2151 if (i != ($2))
2152 return 1;
2153 fprintf (f, "%lu", i);
2155 /* Do not output a trailing newline, as this causes \r\n confusion
2156 on some platforms. */
2157 return ferror (f) || fclose (f) != 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_run "$LINENO"; then :
2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2165 else
2166 ac_retval=1
2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
2170 rm -f conftest.val
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2176 } # ac_fn_c_compute_int
2178 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2179 # -------------------------------------------
2180 # Tests whether TYPE exists after having included INCLUDES, setting cache
2181 # variable VAR accordingly.
2182 ac_fn_c_check_type ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 eval "$3=no"
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2195 main ()
2197 if (sizeof ($2))
2198 return 0;
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2208 main ()
2210 if (sizeof (($2)))
2211 return 0;
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2218 else
2219 eval "$3=yes"
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 } # ac_fn_c_check_type
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR
2233 # ------------------------------------
2234 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235 ac_fn_c_check_decl ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 as_decl_name=`echo $2|sed 's/ *(.*//'`
2239 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 #ifndef $as_decl_name
2252 #ifdef __cplusplus
2253 (void) $as_decl_use;
2254 #else
2255 (void) $as_decl_name;
2256 #endif
2257 #endif
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 eval "$3=yes"
2265 else
2266 eval "$3=no"
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 } # ac_fn_c_check_decl
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2280 It was created by package-unused $as_me version-unused, which was
2281 generated by GNU Autoconf 2.64. Invocation command line was
2283 $ $0 $@
2285 _ACEOF
2286 exec 5>>config.log
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2302 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2303 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2306 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2307 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2308 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2310 _ASUNAME
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 $as_echo "PATH: $as_dir"
2318 done
2319 IFS=$as_save_IFS
2321 } >&5
2323 cat >&5 <<_ACEOF
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2330 _ACEOF
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2344 for ac_arg
2346 case $ac_arg in
2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349 | -silent | --silent | --silen | --sile | --sil)
2350 continue ;;
2351 *\'*)
2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 esac
2354 case $ac_pass in
2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2357 as_fn_append ac_configure_args1 " '$ac_arg'"
2358 if test $ac_must_keep_next = true; then
2359 ac_must_keep_next=false # Got value, back to normal.
2360 else
2361 case $ac_arg in
2362 *=* | --config-cache | -C | -disable-* | --disable-* \
2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365 | -with-* | --with-* | -without-* | --without-* | --x)
2366 case "$ac_configure_args0 " in
2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 esac
2370 -* ) ac_must_keep_next=true ;;
2371 esac
2373 as_fn_append ac_configure_args " '$ac_arg'"
2375 esac
2376 done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log. We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387 # Save into config.log some information that might help in debugging.
2389 echo
2391 cat <<\_ASBOX
2392 ## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##
2395 _ASBOX
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2424 esac |
2425 sort
2427 echo
2429 cat <<\_ASBOX
2430 ## ----------------- ##
2431 ## Output variables. ##
2432 ## ----------------- ##
2433 _ASBOX
2434 echo
2435 for ac_var in $ac_subst_vars
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2445 if test -n "$ac_subst_files"; then
2446 cat <<\_ASBOX
2447 ## ------------------- ##
2448 ## File substitutions. ##
2449 ## ------------------- ##
2450 _ASBOX
2451 echo
2452 for ac_var in $ac_subst_files
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2463 if test -s confdefs.h; then
2464 cat <<\_ASBOX
2465 ## ----------- ##
2466 ## confdefs.h. ##
2467 ## ----------- ##
2468 _ASBOX
2469 echo
2470 cat confdefs.h
2471 echo
2473 test "$ac_signal" != 0 &&
2474 $as_echo "$as_me: caught signal $ac_signal"
2475 $as_echo "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2481 for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2489 $as_echo "/* confdefs.h */" > confdefs.h
2491 # Predefined preprocessor variables.
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_URL "$PACKAGE_URL"
2515 _ACEOF
2518 # Let the site file select an alternate cache file if it wants to.
2519 # Prefer an explicitly selected file to automatically selected ones.
2520 ac_site_file1=NONE
2521 ac_site_file2=NONE
2522 if test -n "$CONFIG_SITE"; then
2523 ac_site_file1=$CONFIG_SITE
2524 elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2527 else
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2531 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533 test "x$ac_site_file" = xNONE && continue
2534 if test -r "$ac_site_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
2538 . "$ac_site_file"
2540 done
2542 if test -r "$cache_file"; then
2543 # Some versions of bash will fail to source /dev/null (special
2544 # files actually), so we avoid doing that.
2545 if test -f "$cache_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547 $as_echo "$as_me: loading cache $cache_file" >&6;}
2548 case $cache_file in
2549 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550 *) . "./$cache_file";;
2551 esac
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556 >$cache_file
2559 # Check that the precious variables saved in the cache have kept the same
2560 # value.
2561 ac_cache_corrupted=false
2562 for ac_var in $ac_precious_vars; do
2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564 eval ac_new_set=\$ac_env_${ac_var}_set
2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566 eval ac_new_val=\$ac_env_${ac_var}_value
2567 case $ac_old_set,$ac_new_set in
2568 set,)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,set)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,);;
2578 if test "x$ac_old_val" != "x$ac_new_val"; then
2579 # differences in whitespace do not lead to failure.
2580 ac_old_val_w=`echo x $ac_old_val`
2581 ac_new_val_w=`echo x $ac_new_val`
2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585 ac_cache_corrupted=:
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589 eval $ac_var=\$ac_old_val
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 fi;;
2596 esac
2597 # Pass precious variables to config.status.
2598 if test "$ac_new_set" = set; then
2599 case $ac_new_val in
2600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601 *) ac_arg=$ac_var=$ac_new_val ;;
2602 esac
2603 case " $ac_configure_args " in
2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 esac
2608 done
2609 if $ac_cache_corrupted; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 # Default to --enable-multilib
2633 # Check whether --enable-multilib was given.
2634 if test "${enable_multilib+set}" = set; then :
2635 enableval=$enable_multilib; case "$enableval" in
2636 yes) multilib=yes ;;
2637 no) multilib=no ;;
2638 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2639 esac
2640 else
2641 multilib=yes
2645 # We may get other options which we leave undocumented:
2646 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2647 # See config-ml.in if you want the gory details.
2649 if test "$srcdir" = "."; then
2650 if test "$with_target_subdir" != "."; then
2651 multi_basedir="$srcdir/$with_multisrctop../.."
2652 else
2653 multi_basedir="$srcdir/$with_multisrctop.."
2655 else
2656 multi_basedir="$srcdir/.."
2660 # Even if the default multilib is not a cross compilation,
2661 # it may be that some of the other multilibs are.
2662 if test $cross_compiling = no && test $multilib = yes \
2663 && test "x${with_multisubdir}" != x ; then
2664 cross_compiling=maybe
2667 ac_config_commands="$ac_config_commands default-1"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2671 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2672 # Check whether --enable-version-specific-runtime-libs was given.
2673 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2674 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2675 yes) version_specific_libs=yes ;;
2676 no) version_specific_libs=no ;;
2677 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2678 esac
2679 else
2680 version_specific_libs=no
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2684 $as_echo "$version_specific_libs" >&6; }
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2730 if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_ac_ct_CC="gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2755 IFS=$as_save_IFS
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762 $as_echo "$ac_ct_CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 CC=$ac_ct_CC
2779 else
2780 CC="$ac_cv_prog_CC"
2783 if test -z "$CC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}cc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="${ac_tool_prefix}cc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2824 if test -z "$CC"; then
2825 # Extract the first word of "cc", so it can be a program name with args.
2826 set dummy cc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 ac_prog_rejected=no
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2844 ac_prog_rejected=yes
2845 continue
2847 ac_cv_prog_CC="cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2855 if test $ac_prog_rejected = yes; then
2856 # We found a bogon in the path, so make sure we never use it.
2857 set dummy $ac_cv_prog_CC
2858 shift
2859 if test $# != 0; then
2860 # We chose a different compiler from the bogus one.
2861 # However, it has the same basename, so the bogon will be chosen
2862 # first if we set CC to just the basename; use the full file name.
2863 shift
2864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in cl.exe
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$CC" && break
2922 done
2924 if test -z "$CC"; then
2925 ac_ct_CC=$CC
2926 for ac_prog in cl.exe
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_ac_ct_CC="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958 $as_echo "$ac_ct_CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$ac_ct_CC" && break
2966 done
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CC=$ac_ct_CC
2984 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error "no acceptable C compiler found in \$PATH
2987 See \`config.log' for more details." "$LINENO" 5; }
2989 # Provide some information about the compiler.
2990 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991 set X $ac_compile
2992 ac_compiler=$2
2993 for ac_option in --version -v -V -qversion; do
2994 { { ac_try="$ac_compiler $ac_option >&5"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3002 ac_status=$?
3003 if test -s conftest.err; then
3004 sed '10a\
3005 ... rest of stderr output deleted ...
3006 10q' conftest.err >conftest.er1
3007 cat conftest.er1 >&5
3008 rm -f conftest.er1 conftest.err
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012 done
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3018 main ()
3022 return 0;
3024 _ACEOF
3025 ac_clean_files_save=$ac_clean_files
3026 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3027 # Try to create an executable without -o first, disregard a.out.
3028 # It will help us diagnose broken compilers, and finding out an intuition
3029 # of exeext.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034 # The possible output files:
3035 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037 ac_rmfiles=
3038 for ac_file in $ac_files
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043 esac
3044 done
3045 rm -f $ac_rmfiles
3047 if { { ac_try="$ac_link_default"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link_default") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3059 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3060 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3061 # so that the user can short-circuit this test for compilers unknown to
3062 # Autoconf.
3063 for ac_file in $ac_files ''
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069 [ab].out )
3070 # We found the default executable, but exeext='' is most
3071 # certainly right.
3072 break;;
3073 *.* )
3074 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3075 then :; else
3076 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 # We set ac_cv_exeext here because the later test for it is not
3079 # safe: cross compilers may not add the suffix if given an `-o'
3080 # argument, so we may need to know it at that point already.
3081 # Even if this section looks crufty: it has the advantage of
3082 # actually working.
3083 break;;
3085 break;;
3086 esac
3087 done
3088 test "$ac_cv_exeext" = no && ac_cv_exeext=
3090 else
3091 ac_file=''
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094 $as_echo "$ac_file" >&6; }
3095 if test -z "$ac_file"; then :
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { as_fn_set_status 77
3102 as_fn_error "C compiler cannot create executables
3103 See \`config.log' for more details." "$LINENO" 5; }; }
3105 ac_exeext=$ac_cv_exeext
3107 # Check that the compiler produces executables we can run. If not, either
3108 # the compiler is broken, or we cross compile.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110 $as_echo_n "checking whether the C compiler works... " >&6; }
3111 # If not cross compiling, check that we can run a simple program.
3112 if test "$cross_compiling" != yes; then
3113 if { ac_try='./$ac_file'
3114 { { case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; }; then
3124 cross_compiling=no
3125 else
3126 if test "$cross_compiling" = maybe; then
3127 cross_compiling=yes
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "cannot run C compiled programs.
3132 If you meant to cross compile, use \`--host'.
3133 See \`config.log' for more details." "$LINENO" 5; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3141 ac_clean_files=$ac_clean_files_save
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3145 $as_echo_n "checking whether we are cross compiling... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3147 $as_echo "$cross_compiling" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150 $as_echo_n "checking for suffix of executables... " >&6; }
3151 if { { ac_try="$ac_link"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174 done
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error "cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details." "$LINENO" 5; }
3181 rm -f conftest$ac_cv_exeext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 $as_echo "$ac_cv_exeext" >&6; }
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3189 $as_echo_n "checking for suffix of object files... " >&6; }
3190 if test "${ac_cv_objext+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3197 main ()
3201 return 0;
3203 _ACEOF
3204 rm -f conftest.o conftest.obj
3205 if { { ac_try="$ac_compile"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compile") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; then :
3216 for ac_file in conftest.o conftest.obj conftest.*; do
3217 test -f "$ac_file" || continue;
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 break;;
3222 esac
3223 done
3224 else
3225 $as_echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error "cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." "$LINENO" 5; }
3233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3236 $as_echo "$ac_cv_objext" >&6; }
3237 OBJEXT=$ac_cv_objext
3238 ac_objext=$OBJEXT
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3240 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3241 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3248 main ()
3250 #ifndef __GNUC__
3251 choke me
3252 #endif
3255 return 0;
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_compiler_gnu=yes
3260 else
3261 ac_compiler_gnu=no
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3268 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3269 if test $ac_compiler_gnu = yes; then
3270 GCC=yes
3271 else
3272 GCC=
3274 ac_test_CFLAGS=${CFLAGS+set}
3275 ac_save_CFLAGS=$CFLAGS
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3277 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3278 if test "${ac_cv_prog_cc_g+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 ac_save_c_werror_flag=$ac_c_werror_flag
3282 ac_c_werror_flag=yes
3283 ac_cv_prog_cc_g=no
3284 CFLAGS="-g"
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3289 main ()
3293 return 0;
3295 _ACEOF
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_g=yes
3298 else
3299 CFLAGS=""
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3313 else
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315 CFLAGS="-g"
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3320 main ()
3324 return 0;
3326 _ACEOF
3327 if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_cv_prog_cc_g=yes
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3338 $as_echo "$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_cv_prog_cc_c89=no
3360 ac_save_CC=$CC
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363 #include <stdarg.h>
3364 #include <stdio.h>
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3371 char **p;
3372 int i;
3374 return p[i];
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3378 char *s;
3379 va_list v;
3380 va_start (v,p);
3381 s = g (p, va_arg (v,int));
3382 va_end (v);
3383 return s;
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3397 #define FOO(x) 'x'
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3407 main ()
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3411 return 0;
3413 _ACEOF
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 CC="$ac_save_CC $ac_arg"
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_c89=$ac_arg
3421 rm -f core conftest.err conftest.$ac_objext
3422 test "x$ac_cv_prog_cc_c89" != "xno" && break
3423 done
3424 rm -f conftest.$ac_ext
3425 CC=$ac_save_CC
3428 # AC_CACHE_VAL
3429 case "x$ac_cv_prog_cc_c89" in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3432 $as_echo "none needed" >&6; } ;;
3433 xno)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3435 $as_echo "unsupported" >&6; } ;;
3437 CC="$CC $ac_cv_prog_cc_c89"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3439 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3440 esac
3441 if test "x$ac_cv_prog_cc_c89" != xno; then :
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3461 CPP=
3463 if test -z "$CPP"; then
3464 if test "${ac_cv_prog_CPP+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 # Double quotes because CPP needs to be expanded
3468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #ifdef __STDC__
3482 # include <limits.h>
3483 #else
3484 # include <assert.h>
3485 #endif
3486 Syntax error
3487 _ACEOF
3488 if ac_fn_c_try_cpp "$LINENO"; then :
3490 else
3491 # Broken: fails on valid input.
3492 continue
3494 rm -f conftest.err conftest.$ac_ext
3496 # OK, works on sane cases. Now check whether nonexistent headers
3497 # can be detected and how.
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #include <ac_nonexistent.h>
3501 _ACEOF
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3503 # Broken: success on invalid input.
3504 continue
3505 else
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3510 rm -f conftest.err conftest.$ac_ext
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then :
3516 break
3519 done
3520 ac_cv_prog_CPP=$CPP
3523 CPP=$ac_cv_prog_CPP
3524 else
3525 ac_cv_prog_CPP=$CPP
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3528 $as_echo "$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if ac_fn_c_try_cpp "$LINENO"; then :
3549 else
3550 # Broken: fails on valid input.
3551 continue
3553 rm -f conftest.err conftest.$ac_ext
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3560 _ACEOF
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3562 # Broken: success on invalid input.
3563 continue
3564 else
3565 # Passes both tests.
3566 ac_preproc_ok=:
3567 break
3569 rm -f conftest.err conftest.$ac_ext
3571 done
3572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573 rm -f conftest.err conftest.$ac_ext
3574 if $ac_preproc_ok; then :
3576 else
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3580 See \`config.log' for more details." "$LINENO" 5; }
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3592 if test "${ac_cv_path_GREP+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -z "$GREP"; then
3596 ac_path_GREP_found=false
3597 # Loop through the user's path and test for each of PROGNAME-LIST
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_prog in grep ggrep; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3606 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3607 # Check for GNU ac_path_GREP and select it if it is found.
3608 # Check for GNU $ac_path_GREP
3609 case `"$ac_path_GREP" --version 2>&1` in
3610 *GNU*)
3611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3613 ac_count=0
3614 $as_echo_n 0123456789 >"conftest.in"
3615 while :
3617 cat "conftest.in" "conftest.in" >"conftest.tmp"
3618 mv "conftest.tmp" "conftest.in"
3619 cp "conftest.in" "conftest.nl"
3620 $as_echo 'GREP' >> "conftest.nl"
3621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623 as_fn_arith $ac_count + 1 && ac_count=$as_val
3624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3625 # Best one so far, save it but keep looking for a better one
3626 ac_cv_path_GREP="$ac_path_GREP"
3627 ac_path_GREP_max=$ac_count
3629 # 10*(2^10) chars as input seems more than enough
3630 test $ac_count -gt 10 && break
3631 done
3632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633 esac
3635 $ac_path_GREP_found && break 3
3636 done
3637 done
3638 done
3639 IFS=$as_save_IFS
3640 if test -z "$ac_cv_path_GREP"; then
3641 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3643 else
3644 ac_cv_path_GREP=$GREP
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3649 $as_echo "$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3654 $as_echo_n "checking for egrep... " >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
3661 if test -z "$EGREP"; then
3662 ac_path_EGREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in egrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673 # Check for GNU ac_path_EGREP and select it if it is found.
3674 # Check for GNU $ac_path_EGREP
3675 case `"$ac_path_EGREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3679 ac_count=0
3680 $as_echo_n 0123456789 >"conftest.in"
3681 while :
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 $as_echo 'EGREP' >> "conftest.nl"
3687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 as_fn_arith $ac_count + 1 && ac_count=$as_val
3690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_EGREP="$ac_path_EGREP"
3693 ac_path_EGREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3701 $ac_path_EGREP_found && break 3
3702 done
3703 done
3704 done
3705 IFS=$as_save_IFS
3706 if test -z "$ac_cv_path_EGREP"; then
3707 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3709 else
3710 ac_cv_path_EGREP=$EGREP
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3716 $as_echo "$ac_cv_path_EGREP" >&6; }
3717 EGREP="$ac_cv_path_EGREP"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3721 $as_echo_n "checking for ANSI C header files... " >&6; }
3722 if test "${ac_cv_header_stdc+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <stdlib.h>
3728 #include <stdarg.h>
3729 #include <string.h>
3730 #include <float.h>
3733 main ()
3737 return 0;
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_header_stdc=yes
3742 else
3743 ac_cv_header_stdc=no
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 if test $ac_cv_header_stdc = yes; then
3748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <string.h>
3753 _ACEOF
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 $EGREP "memchr" >/dev/null 2>&1; then :
3757 else
3758 ac_cv_header_stdc=no
3760 rm -f conftest*
3764 if test $ac_cv_header_stdc = yes; then
3765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdlib.h>
3770 _ACEOF
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 $EGREP "free" >/dev/null 2>&1; then :
3774 else
3775 ac_cv_header_stdc=no
3777 rm -f conftest*
3781 if test $ac_cv_header_stdc = yes; then
3782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3783 if test "$cross_compiling" = yes; then :
3785 else
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <ctype.h>
3789 #include <stdlib.h>
3790 #if ((' ' & 0x0FF) == 0x020)
3791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3793 #else
3794 # define ISLOWER(c) \
3795 (('a' <= (c) && (c) <= 'i') \
3796 || ('j' <= (c) && (c) <= 'r') \
3797 || ('s' <= (c) && (c) <= 'z'))
3798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799 #endif
3801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3803 main ()
3805 int i;
3806 for (i = 0; i < 256; i++)
3807 if (XOR (islower (i), ISLOWER (i))
3808 || toupper (i) != TOUPPER (i))
3809 return 2;
3810 return 0;
3812 _ACEOF
3813 if ac_fn_c_try_run "$LINENO"; then :
3815 else
3816 ac_cv_header_stdc=no
3818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3819 conftest.$ac_objext conftest.beam conftest.$ac_ext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3825 $as_echo "$ac_cv_header_stdc" >&6; }
3826 if test $ac_cv_header_stdc = yes; then
3828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3834 inttypes.h stdint.h unistd.h
3835 do :
3836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3839 eval as_val=\$$as_ac_Header
3840 if test "x$as_val" = x""yes; then :
3841 cat >>confdefs.h <<_ACEOF
3842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843 _ACEOF
3847 done
3851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3852 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3853 MINIX=yes
3854 else
3855 MINIX=
3859 if test "$MINIX" = yes; then
3861 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3864 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3867 $as_echo "#define _MINIX 1" >>confdefs.h
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3880 # define __EXTENSIONS__ 1
3881 $ac_includes_default
3883 main ()
3887 return 0;
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_safe_to_define___extensions__=yes
3892 else
3893 ac_cv_safe_to_define___extensions__=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3898 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3899 test $ac_cv_safe_to_define___extensions__ = yes &&
3900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3912 # Do not delete or change the following two lines. For why, see
3913 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3914 ac_aux_dir=
3915 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3916 for ac_t in install-sh install.sh shtool; do
3917 if test -f "$ac_dir/$ac_t"; then
3918 ac_aux_dir=$ac_dir
3919 ac_install_sh="$ac_aux_dir/$ac_t -c"
3920 break 2
3922 done
3923 done
3924 if test -z "$ac_aux_dir"; then
3925 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3928 # These three variables are undocumented and unsupported,
3929 # and are intended to be withdrawn in a future Autoconf release.
3930 # They can cause serious problems if a builder's source tree is in a directory
3931 # whose full name contains unusual characters.
3932 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3933 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3934 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3937 # Make sure we can run config.sub.
3938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3939 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3942 $as_echo_n "checking build system type... " >&6; }
3943 if test "${ac_cv_build+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 ac_build_alias=$build_alias
3947 test "x$ac_build_alias" = x &&
3948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3949 test "x$ac_build_alias" = x &&
3950 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3952 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3956 $as_echo "$ac_cv_build" >&6; }
3957 case $ac_cv_build in
3958 *-*-*) ;;
3959 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3960 esac
3961 build=$ac_cv_build
3962 ac_save_IFS=$IFS; IFS='-'
3963 set x $ac_cv_build
3964 shift
3965 build_cpu=$1
3966 build_vendor=$2
3967 shift; shift
3968 # Remember, the first character of IFS is used to create $*,
3969 # except with old shells:
3970 build_os=$*
3971 IFS=$ac_save_IFS
3972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3976 $as_echo_n "checking host system type... " >&6; }
3977 if test "${ac_cv_host+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3982 else
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3989 $as_echo "$ac_cv_host" >&6; }
3990 case $ac_cv_host in
3991 *-*-*) ;;
3992 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3993 esac
3994 host=$ac_cv_host
3995 ac_save_IFS=$IFS; IFS='-'
3996 set x $ac_cv_host
3997 shift
3998 host_cpu=$1
3999 host_vendor=$2
4000 shift; shift
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4003 host_os=$*
4004 IFS=$ac_save_IFS
4005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4009 $as_echo_n "checking target system type... " >&6; }
4010 if test "${ac_cv_target+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test "x$target_alias" = x; then
4014 ac_cv_target=$ac_cv_host
4015 else
4016 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4017 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4022 $as_echo "$ac_cv_target" >&6; }
4023 case $ac_cv_target in
4024 *-*-*) ;;
4025 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4026 esac
4027 target=$ac_cv_target
4028 ac_save_IFS=$IFS; IFS='-'
4029 set x $ac_cv_target
4030 shift
4031 target_cpu=$1
4032 target_vendor=$2
4033 shift; shift
4034 # Remember, the first character of IFS is used to create $*,
4035 # except with old shells:
4036 target_os=$*
4037 IFS=$ac_save_IFS
4038 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4041 # The aliases save the names the user supplied, while $host etc.
4042 # will get canonicalized.
4043 test -n "$target_alias" &&
4044 test "$program_prefix$program_suffix$program_transform_name" = \
4045 NONENONEs,x,x, &&
4046 program_prefix=${target_alias}-
4048 target_alias=${target_alias-$host_alias}
4050 case ${build_alias} in
4051 "") build_noncanonical=${build} ;;
4052 *) build_noncanonical=${build_alias} ;;
4053 esac
4055 case ${host_alias} in
4056 "") host_noncanonical=${build_noncanonical} ;;
4057 *) host_noncanonical=${host_alias} ;;
4058 esac
4060 case ${target_alias} in
4061 "") target_noncanonical=${host_noncanonical} ;;
4062 *) target_noncanonical=${target_alias} ;;
4063 esac
4069 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4070 -I\$(top_builddir)/../libstdc++-v3/include \
4071 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4072 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4073 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4074 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4079 am__api_version='1.11'
4081 # Find a good install program. We prefer a C program (faster),
4082 # so one script is as good as another. But avoid the broken or
4083 # incompatible versions:
4084 # SysV /etc/install, /usr/sbin/install
4085 # SunOS /usr/etc/install
4086 # IRIX /sbin/install
4087 # AIX /bin/install
4088 # AmigaOS /C/install, which installs bootblocks on floppy discs
4089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4092 # OS/2's system install, which has a completely different semantic
4093 # ./install, which can be erroneously created by make from ./install.sh.
4094 # Reject install programs that cannot install multiple files.
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4096 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4097 if test -z "$INSTALL"; then
4098 if test "${ac_cv_path_install+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 # Account for people who put trailing slashes in PATH elements.
4107 case $as_dir/ in #((
4108 ./ | .// | /[cC]/* | \
4109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4110 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4111 /usr/ucb/* ) ;;
4113 # OSF1 and SCO ODT 3.0 have their own names for install.
4114 # Don't use installbsd from OSF since it installs stuff as root
4115 # by default.
4116 for ac_prog in ginstall scoinst install; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4119 if test $ac_prog = install &&
4120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4121 # AIX install. It has an incompatible calling convention.
4123 elif test $ac_prog = install &&
4124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4125 # program-specific install script used by HP pwplus--don't use.
4127 else
4128 rm -rf conftest.one conftest.two conftest.dir
4129 echo one > conftest.one
4130 echo two > conftest.two
4131 mkdir conftest.dir
4132 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4133 test -s conftest.one && test -s conftest.two &&
4134 test -s conftest.dir/conftest.one &&
4135 test -s conftest.dir/conftest.two
4136 then
4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138 break 3
4142 done
4143 done
4145 esac
4147 done
4148 IFS=$as_save_IFS
4150 rm -rf conftest.one conftest.two conftest.dir
4153 if test "${ac_cv_path_install+set}" = set; then
4154 INSTALL=$ac_cv_path_install
4155 else
4156 # As a last resort, use the slow shell script. Don't cache a
4157 # value for INSTALL within a source directory, because that will
4158 # break other packages using the cache if that directory is
4159 # removed, or if the value is a relative name.
4160 INSTALL=$ac_install_sh
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4164 $as_echo "$INSTALL" >&6; }
4166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167 # It thinks the first close brace ends the variable substitution.
4168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4175 $as_echo_n "checking whether build environment is sane... " >&6; }
4176 # Just in case
4177 sleep 1
4178 echo timestamp > conftest.file
4179 # Reject unsafe characters in $srcdir or the absolute working directory
4180 # name. Accept space and tab only in the latter.
4181 am_lf='
4183 case `pwd` in
4184 *[\\\"\#\$\&\'\`$am_lf]*)
4185 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4186 esac
4187 case $srcdir in
4188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4189 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4190 esac
4192 # Do `set' in a subshell so we don't clobber the current shell's
4193 # arguments. Must try -L first in case configure is actually a
4194 # symlink; some systems play weird games with the mod time of symlinks
4195 # (eg FreeBSD returns the mod time of the symlink's containing
4196 # directory).
4197 if (
4198 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4199 if test "$*" = "X"; then
4200 # -L didn't work.
4201 set X `ls -t "$srcdir/configure" conftest.file`
4203 rm -f conftest.file
4204 if test "$*" != "X $srcdir/configure conftest.file" \
4205 && test "$*" != "X conftest.file $srcdir/configure"; then
4207 # If neither matched, then we have a broken ls. This can happen
4208 # if, for instance, CONFIG_SHELL is bash and it inherits a
4209 # broken ls alias from the environment. This has actually
4210 # happened. Such a system could not be considered "sane".
4211 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4212 alias in your environment" "$LINENO" 5
4215 test "$2" = conftest.file
4217 then
4218 # Ok.
4220 else
4221 as_fn_error "newly created file is older than distributed files!
4222 Check your system clock" "$LINENO" 5
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225 $as_echo "yes" >&6; }
4226 test "$program_prefix" != NONE &&
4227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4228 # Use a double $ so make ignores it.
4229 test "$program_suffix" != NONE &&
4230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4231 # Double any \ or $.
4232 # By default was `s,x,x', remove it if useless.
4233 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4234 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4236 # expand $ac_aux_dir to an absolute path
4237 am_aux_dir=`cd $ac_aux_dir && pwd`
4239 if test x"${MISSING+set}" != xset; then
4240 case $am_aux_dir in
4241 *\ * | *\ *)
4242 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4244 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4245 esac
4247 # Use eval to expand $SHELL
4248 if eval "$MISSING --run true"; then
4249 am_missing_run="$MISSING --run "
4250 else
4251 am_missing_run=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4253 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4256 if test x"${install_sh}" != xset; then
4257 case $am_aux_dir in
4258 *\ * | *\ *)
4259 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4261 install_sh="\${SHELL} $am_aux_dir/install-sh"
4262 esac
4265 # Installed binaries are usually stripped using `strip' when the user
4266 # run `make install-strip'. However `strip' might not be the right
4267 # tool to use in cross-compilation environments, therefore Automake
4268 # will honor the `STRIP' environment variable to overrule this program.
4269 if test "$cross_compiling" != no; then
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}strip; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if test "${ac_cv_prog_STRIP+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$STRIP"; then
4279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4298 STRIP=$ac_cv_prog_STRIP
4299 if test -n "$STRIP"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4301 $as_echo "$STRIP" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4309 if test -z "$ac_cv_prog_STRIP"; then
4310 ac_ct_STRIP=$STRIP
4311 # Extract the first word of "strip", so it can be a program name with args.
4312 set dummy strip; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$ac_ct_STRIP"; then
4319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_ac_ct_STRIP="strip"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4339 if test -n "$ac_ct_STRIP"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4341 $as_echo "$ac_ct_STRIP" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4347 if test "x$ac_ct_STRIP" = x; then
4348 STRIP=":"
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356 STRIP=$ac_ct_STRIP
4358 else
4359 STRIP="$ac_cv_prog_STRIP"
4363 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4366 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4367 if test -z "$MKDIR_P"; then
4368 if test "${ac_cv_path_mkdir+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_prog in mkdir gmkdir; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4379 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4380 'mkdir (GNU coreutils) '* | \
4381 'mkdir (coreutils) '* | \
4382 'mkdir (fileutils) '4.1*)
4383 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4384 break 3;;
4385 esac
4386 done
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 if test "${ac_cv_path_mkdir+set}" = set; then
4394 MKDIR_P="$ac_cv_path_mkdir -p"
4395 else
4396 # As a last resort, use the slow shell script. Don't cache a
4397 # value for MKDIR_P within a source directory, because that will
4398 # break other packages using the cache if that directory is
4399 # removed, or if the value is a relative name.
4400 test -d ./--version && rmdir ./--version
4401 MKDIR_P="$ac_install_sh -d"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4405 $as_echo "$MKDIR_P" >&6; }
4407 mkdir_p="$MKDIR_P"
4408 case $mkdir_p in
4409 [\\/$]* | ?:[\\/]*) ;;
4410 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4411 esac
4413 for ac_prog in gawk mawk nawk awk
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_prog_AWK+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -n "$AWK"; then
4423 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_AWK="$ac_prog"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4436 done
4437 done
4438 IFS=$as_save_IFS
4442 AWK=$ac_cv_prog_AWK
4443 if test -n "$AWK"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4445 $as_echo "$AWK" >&6; }
4446 else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4452 test -n "$AWK" && break
4453 done
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4456 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4457 set x ${MAKE-make}
4458 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4459 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 cat >conftest.make <<\_ACEOF
4463 SHELL = /bin/sh
4464 all:
4465 @echo '@@@%%%=$(MAKE)=@@@%%%'
4466 _ACEOF
4467 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4468 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4469 *@@@%%%=?*=@@@%%%*)
4470 eval ac_cv_prog_make_${ac_make}_set=yes;;
4472 eval ac_cv_prog_make_${ac_make}_set=no;;
4473 esac
4474 rm -f conftest.make
4476 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 $as_echo "yes" >&6; }
4479 SET_MAKE=
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 SET_MAKE="MAKE=${MAKE-make}"
4486 rm -rf .tst 2>/dev/null
4487 mkdir .tst 2>/dev/null
4488 if test -d .tst; then
4489 am__leading_dot=.
4490 else
4491 am__leading_dot=_
4493 rmdir .tst 2>/dev/null
4495 DEPDIR="${am__leading_dot}deps"
4497 ac_config_commands="$ac_config_commands depfiles"
4500 am_make=${MAKE-make}
4501 cat > confinc << 'END'
4502 am__doit:
4503 @echo this is the am__doit target
4504 .PHONY: am__doit
4506 # If we don't find an include directive, just comment out the code.
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4508 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4509 am__include="#"
4510 am__quote=
4511 _am_result=none
4512 # First try GNU make style include.
4513 echo "include confinc" > confmf
4514 # Ignore all kinds of additional output from `make'.
4515 case `$am_make -s -f confmf 2> /dev/null` in #(
4516 *the\ am__doit\ target*)
4517 am__include=include
4518 am__quote=
4519 _am_result=GNU
4521 esac
4522 # Now try BSD make style include.
4523 if test "$am__include" = "#"; then
4524 echo '.include "confinc"' > confmf
4525 case `$am_make -s -f confmf 2> /dev/null` in #(
4526 *the\ am__doit\ target*)
4527 am__include=.include
4528 am__quote="\""
4529 _am_result=BSD
4531 esac
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4536 $as_echo "$_am_result" >&6; }
4537 rm -f confinc confmf
4539 # Check whether --enable-dependency-tracking was given.
4540 if test "${enable_dependency_tracking+set}" = set; then :
4541 enableval=$enable_dependency_tracking;
4544 if test "x$enable_dependency_tracking" != xno; then
4545 am_depcomp="$ac_aux_dir/depcomp"
4546 AMDEPBACKSLASH='\'
4547 am__nodep='_no'
4549 if test "x$enable_dependency_tracking" != xno; then
4550 AMDEP_TRUE=
4551 AMDEP_FALSE='#'
4552 else
4553 AMDEP_TRUE='#'
4554 AMDEP_FALSE=
4558 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4560 # is not polluted with repeated "-I."
4561 am__isrc=' -I$(srcdir)'
4562 # test to see if srcdir already configured
4563 if test -f $srcdir/config.status; then
4564 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4568 # test whether we have cygpath
4569 if test -z "$CYGPATH_W"; then
4570 if (cygpath --version) >/dev/null 2>/dev/null; then
4571 CYGPATH_W='cygpath -w'
4572 else
4573 CYGPATH_W=echo
4578 # Define the identity of the package.
4579 PACKAGE='package-unused'
4580 VERSION='version-unused'
4583 cat >>confdefs.h <<_ACEOF
4584 #define PACKAGE "$PACKAGE"
4585 _ACEOF
4588 cat >>confdefs.h <<_ACEOF
4589 #define VERSION "$VERSION"
4590 _ACEOF
4592 # Some tools Automake needs.
4594 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4597 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4600 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4603 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4606 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4608 # We need awk for the "check" target. The system "awk" is bad on
4609 # some platforms.
4610 # Always define AMTAR for backward compatibility. Yes, it's still used
4611 # in the wild :-( We should find a proper way to deprecate it ...
4612 AMTAR='$${TAR-tar}'
4614 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4619 depcc="$CC" am_compiler_list=
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4622 $as_echo_n "checking dependency style of $depcc... " >&6; }
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4631 # in D'.
4632 rm -rf conftest.dir
4633 mkdir conftest.dir
4634 # Copy depcomp to subdir because otherwise we won't find it if we're
4635 # using a relative directory.
4636 cp "$am_depcomp" conftest.dir
4637 cd conftest.dir
4638 # We will build objects and dependencies in a subdirectory because
4639 # it helps to detect inapplicable dependency modes. For instance
4640 # both Tru64's cc and ICC support -MD to output dependencies as a
4641 # side effect of compilation, but ICC will put the dependencies in
4642 # the current directory while Tru64 will put them in the object
4643 # directory.
4644 mkdir sub
4646 am_cv_CC_dependencies_compiler_type=none
4647 if test "$am_compiler_list" = ""; then
4648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4650 am__universal=false
4651 case " $depcc " in #(
4652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4653 esac
4655 for depmode in $am_compiler_list; do
4656 # Setup a source with many dependencies, because some compilers
4657 # like to wrap large dependency lists on column 80 (with \), and
4658 # we should not choose a depcomp mode which is confused by this.
4660 # We need to recreate these files for each test, as the compiler may
4661 # overwrite some of them when testing with obscure command lines.
4662 # This happens at least with the AIX C compiler.
4663 : > sub/conftest.c
4664 for i in 1 2 3 4 5 6; do
4665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4666 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4667 # Solaris 8's {/usr,}/bin/sh.
4668 touch sub/conftst$i.h
4669 done
4670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4672 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4673 # mode. It turns out that the SunPro C++ compiler does not properly
4674 # handle `-M -o', and we need to detect this. Also, some Intel
4675 # versions had trouble with output in subdirs
4676 am__obj=sub/conftest.${OBJEXT-o}
4677 am__minus_obj="-o $am__obj"
4678 case $depmode in
4679 gcc)
4680 # This depmode causes a compiler race in universal mode.
4681 test "$am__universal" = false || continue
4683 nosideeffect)
4684 # after this tag, mechanisms are not by side-effect, so they'll
4685 # only be used when explicitly requested
4686 if test "x$enable_dependency_tracking" = xyes; then
4687 continue
4688 else
4689 break
4692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4693 # This compiler won't grok `-c -o', but also, the minuso test has
4694 # not run yet. These depmodes are late enough in the game, and
4695 # so weak that their functioning should not be impacted.
4696 am__obj=conftest.${OBJEXT-o}
4697 am__minus_obj=
4699 none) break ;;
4700 esac
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=$am__obj \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4710 # icc doesn't choke on unknown options, it will just issue warnings
4711 # or remarks (even with -Werror). So we grep stderr for any message
4712 # that says an option was ignored or not supported.
4713 # When given -MP, icc 7.0 and 7.1 complain thusly:
4714 # icc: Command line warning: ignoring option '-M'; no argument required
4715 # The diagnosis changed in icc 8.0:
4716 # icc: Command line remark: option '-MP' not supported
4717 if (grep 'ignoring option' conftest.err ||
4718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4719 am_cv_CC_dependencies_compiler_type=$depmode
4720 break
4723 done
4725 cd ..
4726 rm -rf conftest.dir
4727 else
4728 am_cv_CC_dependencies_compiler_type=none
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4733 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4734 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4737 test "x$enable_dependency_tracking" != xno \
4738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4739 am__fastdepCC_TRUE=
4740 am__fastdepCC_FALSE='#'
4741 else
4742 am__fastdepCC_TRUE='#'
4743 am__fastdepCC_FALSE=
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4750 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4751 # Check whether --enable-maintainer-mode was given.
4752 if test "${enable_maintainer_mode+set}" = set; then :
4753 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4754 else
4755 USE_MAINTAINER_MODE=no
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4759 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4760 if test $USE_MAINTAINER_MODE = yes; then
4761 MAINTAINER_MODE_TRUE=
4762 MAINTAINER_MODE_FALSE='#'
4763 else
4764 MAINTAINER_MODE_TRUE='#'
4765 MAINTAINER_MODE_FALSE=
4768 MAINT=$MAINTAINER_MODE_TRUE
4772 # Calculate toolexeclibdir
4773 # Also toolexecdir, though it's only used in toolexeclibdir
4774 case ${version_specific_libs} in
4775 yes)
4776 # Need the gcc compiler version to know where to install libraries
4777 # and header files if --enable-version-specific-runtime-libs option
4778 # is selected.
4779 toolexecdir='$(libdir)/gcc/$(target_alias)'
4780 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4783 if test -n "$with_cross_host" &&
4784 test x"$with_cross_host" != x"no"; then
4785 # Install a library built with a cross compiler in tooldir, not libdir.
4786 toolexecdir='$(exec_prefix)/$(target_alias)'
4787 toolexeclibdir='$(toolexecdir)/lib'
4788 else
4789 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4790 toolexeclibdir='$(libdir)'
4792 multi_os_directory=`$CC -print-multi-os-directory`
4793 case $multi_os_directory in
4794 .) ;; # Avoid trailing /.
4795 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4796 esac
4798 esac
4802 # Checks for programs.
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_CC+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$CC"; then
4817 ac_cv_prog_CC="$CC" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 CC=$ac_cv_prog_CC
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$ac_cv_prog_CC"; then
4848 ac_ct_CC=$CC
4849 # Extract the first word of "gcc", so it can be a program name with args.
4850 set dummy gcc; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$ac_ct_CC"; then
4857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_CC="gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4877 if test -n "$ac_ct_CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4879 $as_echo "$ac_ct_CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4885 if test "x$ac_ct_CC" = x; then
4886 CC=""
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894 CC=$ac_ct_CC
4896 else
4897 CC="$ac_cv_prog_CC"
4900 if test -z "$CC"; then
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}cc; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_CC="${ac_tool_prefix}cc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 CC=$ac_cv_prog_CC
4930 if test -n "$CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4932 $as_echo "$CC" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4941 if test -z "$CC"; then
4942 # Extract the first word of "cc", so it can be a program name with args.
4943 set dummy cc; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
4951 else
4952 ac_prog_rejected=no
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4961 ac_prog_rejected=yes
4962 continue
4964 ac_cv_prog_CC="cc"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4972 if test $ac_prog_rejected = yes; then
4973 # We found a bogon in the path, so make sure we never use it.
4974 set dummy $ac_cv_prog_CC
4975 shift
4976 if test $# != 0; then
4977 # We chose a different compiler from the bogus one.
4978 # However, it has the same basename, so the bogon will be chosen
4979 # first if we set CC to just the basename; use the full file name.
4980 shift
4981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4986 CC=$ac_cv_prog_CC
4987 if test -n "$CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 $as_echo "$CC" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4997 if test -z "$CC"; then
4998 if test -n "$ac_tool_prefix"; then
4999 for ac_prog in cl.exe
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_CC+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC="$CC" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 CC=$ac_cv_prog_CC
5029 if test -n "$CC"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5031 $as_echo "$CC" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 test -n "$CC" && break
5039 done
5041 if test -z "$CC"; then
5042 ac_ct_CC=$CC
5043 for ac_prog in cl.exe
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$ac_ct_CC"; then
5053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_CC="$ac_prog"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073 if test -n "$ac_ct_CC"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5075 $as_echo "$ac_ct_CC" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 test -n "$ac_ct_CC" && break
5083 done
5085 if test "x$ac_ct_CC" = x; then
5086 CC=""
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 CC=$ac_ct_CC
5101 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103 as_fn_error "no acceptable C compiler found in \$PATH
5104 See \`config.log' for more details." "$LINENO" 5; }
5106 # Provide some information about the compiler.
5107 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5108 set X $ac_compile
5109 ac_compiler=$2
5110 for ac_option in --version -v -V -qversion; do
5111 { { ac_try="$ac_compiler $ac_option >&5"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5119 ac_status=$?
5120 if test -s conftest.err; then
5121 sed '10a\
5122 ... rest of stderr output deleted ...
5123 10q' conftest.err >conftest.er1
5124 cat conftest.er1 >&5
5125 rm -f conftest.er1 conftest.err
5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128 test $ac_status = 0; }
5129 done
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5133 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5140 main ()
5142 #ifndef __GNUC__
5143 choke me
5144 #endif
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_compiler_gnu=yes
5152 else
5153 ac_compiler_gnu=no
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5161 if test $ac_compiler_gnu = yes; then
5162 GCC=yes
5163 else
5164 GCC=
5166 ac_test_CFLAGS=${CFLAGS+set}
5167 ac_save_CFLAGS=$CFLAGS
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5170 if test "${ac_cv_prog_cc_g+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5175 ac_cv_prog_cc_g=no
5176 CFLAGS="-g"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5181 main ()
5185 return 0;
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_prog_cc_g=yes
5190 else
5191 CFLAGS=""
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5196 main ()
5200 return 0;
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5205 else
5206 ac_c_werror_flag=$ac_save_c_werror_flag
5207 CFLAGS="-g"
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5212 main ()
5216 return 0;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_prog_cc_g=yes
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_c_werror_flag=$ac_save_c_werror_flag
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5230 $as_echo "$ac_cv_prog_cc_g" >&6; }
5231 if test "$ac_test_CFLAGS" = set; then
5232 CFLAGS=$ac_save_CFLAGS
5233 elif test $ac_cv_prog_cc_g = yes; then
5234 if test "$GCC" = yes; then
5235 CFLAGS="-g -O2"
5236 else
5237 CFLAGS="-g"
5239 else
5240 if test "$GCC" = yes; then
5241 CFLAGS="-O2"
5242 else
5243 CFLAGS=
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5248 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_cv_prog_cc_c89=no
5252 ac_save_CC=$CC
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <stdarg.h>
5256 #include <stdio.h>
5257 #include <sys/types.h>
5258 #include <sys/stat.h>
5259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5260 struct buf { int x; };
5261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5262 static char *e (p, i)
5263 char **p;
5264 int i;
5266 return p[i];
5268 static char *f (char * (*g) (char **, int), char **p, ...)
5270 char *s;
5271 va_list v;
5272 va_start (v,p);
5273 s = g (p, va_arg (v,int));
5274 va_end (v);
5275 return s;
5278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5279 function prototypes and stuff, but not '\xHH' hex character constants.
5280 These don't provoke an error unfortunately, instead are silently treated
5281 as 'x'. The following induces an error, until -std is added to get
5282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5283 array size at least. It's necessary to write '\x00'==0 to get something
5284 that's true only with -std. */
5285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5288 inside strings and character constants. */
5289 #define FOO(x) 'x'
5290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5292 int test (int i, double x);
5293 struct s1 {int (*f) (int a);};
5294 struct s2 {int (*f) (double a);};
5295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5296 int argc;
5297 char **argv;
5299 main ()
5301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5303 return 0;
5305 _ACEOF
5306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5309 CC="$ac_save_CC $ac_arg"
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_prog_cc_c89=$ac_arg
5313 rm -f core conftest.err conftest.$ac_objext
5314 test "x$ac_cv_prog_cc_c89" != "xno" && break
5315 done
5316 rm -f conftest.$ac_ext
5317 CC=$ac_save_CC
5320 # AC_CACHE_VAL
5321 case "x$ac_cv_prog_cc_c89" in
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5324 $as_echo "none needed" >&6; } ;;
5325 xno)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327 $as_echo "unsupported" >&6; } ;;
5329 CC="$CC $ac_cv_prog_cc_c89"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5331 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5332 esac
5333 if test "x$ac_cv_prog_cc_c89" != xno; then :
5337 ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 ac_ext=cpp
5344 ac_cpp='$CXXCPP $CPPFLAGS'
5345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348 if test -z "$CXX"; then
5349 if test -n "$CCC"; then
5350 CXX=$CCC
5351 else
5352 if test -n "$ac_tool_prefix"; then
5353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_CXX+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$CXX"; then
5363 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5382 CXX=$ac_cv_prog_CXX
5383 if test -n "$CXX"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5385 $as_echo "$CXX" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5392 test -n "$CXX" && break
5393 done
5395 if test -z "$CXX"; then
5396 ac_ct_CXX=$CXX
5397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5399 # Extract the first word of "$ac_prog", so it can be a program name with args.
5400 set dummy $ac_prog; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$ac_ct_CXX"; then
5407 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_ac_ct_CXX="$ac_prog"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5422 IFS=$as_save_IFS
5426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5427 if test -n "$ac_ct_CXX"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5429 $as_echo "$ac_ct_CXX" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5436 test -n "$ac_ct_CXX" && break
5437 done
5439 if test "x$ac_ct_CXX" = x; then
5440 CXX="g++"
5441 else
5442 case $cross_compiling:$ac_tool_warned in
5443 yes:)
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5447 esac
5448 CXX=$ac_ct_CXX
5454 # Provide some information about the compiler.
5455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5456 set X $ac_compile
5457 ac_compiler=$2
5458 for ac_option in --version -v -V -qversion; do
5459 { { ac_try="$ac_compiler $ac_option >&5"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5465 $as_echo "$ac_try_echo"; } >&5
5466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5467 ac_status=$?
5468 if test -s conftest.err; then
5469 sed '10a\
5470 ... rest of stderr output deleted ...
5471 10q' conftest.err >conftest.er1
5472 cat conftest.er1 >&5
5473 rm -f conftest.er1 conftest.err
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; }
5477 done
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5480 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 main ()
5490 #ifndef __GNUC__
5491 choke me
5492 #endif
5495 return 0;
5497 _ACEOF
5498 if ac_fn_cxx_try_compile "$LINENO"; then :
5499 ac_compiler_gnu=yes
5500 else
5501 ac_compiler_gnu=no
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5508 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5509 if test $ac_compiler_gnu = yes; then
5510 GXX=yes
5511 else
5512 GXX=
5514 ac_test_CXXFLAGS=${CXXFLAGS+set}
5515 ac_save_CXXFLAGS=$CXXFLAGS
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5517 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5518 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5522 ac_cxx_werror_flag=yes
5523 ac_cv_prog_cxx_g=no
5524 CXXFLAGS="-g"
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5529 main ()
5533 return 0;
5535 _ACEOF
5536 if ac_fn_cxx_try_compile "$LINENO"; then :
5537 ac_cv_prog_cxx_g=yes
5538 else
5539 CXXFLAGS=""
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5544 main ()
5548 return 0;
5550 _ACEOF
5551 if ac_fn_cxx_try_compile "$LINENO"; then :
5553 else
5554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555 CXXFLAGS="-g"
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5560 main ()
5564 return 0;
5566 _ACEOF
5567 if ac_fn_cxx_try_compile "$LINENO"; then :
5568 ac_cv_prog_cxx_g=yes
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5578 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5579 if test "$ac_test_CXXFLAGS" = set; then
5580 CXXFLAGS=$ac_save_CXXFLAGS
5581 elif test $ac_cv_prog_cxx_g = yes; then
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-g -O2"
5584 else
5585 CXXFLAGS="-g"
5587 else
5588 if test "$GXX" = yes; then
5589 CXXFLAGS="-O2"
5590 else
5591 CXXFLAGS=
5594 ac_ext=c
5595 ac_cpp='$CPP $CPPFLAGS'
5596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600 depcc="$CXX" am_compiler_list=
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5603 $as_echo_n "checking dependency style of $depcc... " >&6; }
5604 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608 # We make a subdir and do the tests there. Otherwise we can end up
5609 # making bogus files that we don't know about and never remove. For
5610 # instance it was reported that on HP-UX the gcc test will end up
5611 # making a dummy file named `D' -- because `-MD' means `put the output
5612 # in D'.
5613 rm -rf conftest.dir
5614 mkdir conftest.dir
5615 # Copy depcomp to subdir because otherwise we won't find it if we're
5616 # using a relative directory.
5617 cp "$am_depcomp" conftest.dir
5618 cd conftest.dir
5619 # We will build objects and dependencies in a subdirectory because
5620 # it helps to detect inapplicable dependency modes. For instance
5621 # both Tru64's cc and ICC support -MD to output dependencies as a
5622 # side effect of compilation, but ICC will put the dependencies in
5623 # the current directory while Tru64 will put them in the object
5624 # directory.
5625 mkdir sub
5627 am_cv_CXX_dependencies_compiler_type=none
5628 if test "$am_compiler_list" = ""; then
5629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5631 am__universal=false
5632 case " $depcc " in #(
5633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5634 esac
5636 for depmode in $am_compiler_list; do
5637 # Setup a source with many dependencies, because some compilers
5638 # like to wrap large dependency lists on column 80 (with \), and
5639 # we should not choose a depcomp mode which is confused by this.
5641 # We need to recreate these files for each test, as the compiler may
5642 # overwrite some of them when testing with obscure command lines.
5643 # This happens at least with the AIX C compiler.
5644 : > sub/conftest.c
5645 for i in 1 2 3 4 5 6; do
5646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5648 # Solaris 8's {/usr,}/bin/sh.
5649 touch sub/conftst$i.h
5650 done
5651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5653 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5654 # mode. It turns out that the SunPro C++ compiler does not properly
5655 # handle `-M -o', and we need to detect this. Also, some Intel
5656 # versions had trouble with output in subdirs
5657 am__obj=sub/conftest.${OBJEXT-o}
5658 am__minus_obj="-o $am__obj"
5659 case $depmode in
5660 gcc)
5661 # This depmode causes a compiler race in universal mode.
5662 test "$am__universal" = false || continue
5664 nosideeffect)
5665 # after this tag, mechanisms are not by side-effect, so they'll
5666 # only be used when explicitly requested
5667 if test "x$enable_dependency_tracking" = xyes; then
5668 continue
5669 else
5670 break
5673 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5674 # This compiler won't grok `-c -o', but also, the minuso test has
5675 # not run yet. These depmodes are late enough in the game, and
5676 # so weak that their functioning should not be impacted.
5677 am__obj=conftest.${OBJEXT-o}
5678 am__minus_obj=
5680 none) break ;;
5681 esac
5682 if depmode=$depmode \
5683 source=sub/conftest.c object=$am__obj \
5684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5686 >/dev/null 2>conftest.err &&
5687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5691 # icc doesn't choke on unknown options, it will just issue warnings
5692 # or remarks (even with -Werror). So we grep stderr for any message
5693 # that says an option was ignored or not supported.
5694 # When given -MP, icc 7.0 and 7.1 complain thusly:
5695 # icc: Command line warning: ignoring option '-M'; no argument required
5696 # The diagnosis changed in icc 8.0:
5697 # icc: Command line remark: option '-MP' not supported
5698 if (grep 'ignoring option' conftest.err ||
5699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5700 am_cv_CXX_dependencies_compiler_type=$depmode
5701 break
5704 done
5706 cd ..
5707 rm -rf conftest.dir
5708 else
5709 am_cv_CXX_dependencies_compiler_type=none
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5714 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5715 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5718 test "x$enable_dependency_tracking" != xno \
5719 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5720 am__fastdepCXX_TRUE=
5721 am__fastdepCXX_FALSE='#'
5722 else
5723 am__fastdepCXX_TRUE='#'
5724 am__fastdepCXX_FALSE=
5728 # By default we simply use the C compiler to build assembly code.
5730 test "${CCAS+set}" = set || CCAS=$CC
5731 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5735 depcc="$CCAS" am_compiler_list=
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5738 $as_echo_n "checking dependency style of $depcc... " >&6; }
5739 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5743 # We make a subdir and do the tests there. Otherwise we can end up
5744 # making bogus files that we don't know about and never remove. For
5745 # instance it was reported that on HP-UX the gcc test will end up
5746 # making a dummy file named `D' -- because `-MD' means `put the output
5747 # in D'.
5748 rm -rf conftest.dir
5749 mkdir conftest.dir
5750 # Copy depcomp to subdir because otherwise we won't find it if we're
5751 # using a relative directory.
5752 cp "$am_depcomp" conftest.dir
5753 cd conftest.dir
5754 # We will build objects and dependencies in a subdirectory because
5755 # it helps to detect inapplicable dependency modes. For instance
5756 # both Tru64's cc and ICC support -MD to output dependencies as a
5757 # side effect of compilation, but ICC will put the dependencies in
5758 # the current directory while Tru64 will put them in the object
5759 # directory.
5760 mkdir sub
5762 am_cv_CCAS_dependencies_compiler_type=none
5763 if test "$am_compiler_list" = ""; then
5764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5766 am__universal=false
5769 for depmode in $am_compiler_list; do
5770 # Setup a source with many dependencies, because some compilers
5771 # like to wrap large dependency lists on column 80 (with \), and
5772 # we should not choose a depcomp mode which is confused by this.
5774 # We need to recreate these files for each test, as the compiler may
5775 # overwrite some of them when testing with obscure command lines.
5776 # This happens at least with the AIX C compiler.
5777 : > sub/conftest.c
5778 for i in 1 2 3 4 5 6; do
5779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5781 # Solaris 8's {/usr,}/bin/sh.
5782 touch sub/conftst$i.h
5783 done
5784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5787 # mode. It turns out that the SunPro C++ compiler does not properly
5788 # handle `-M -o', and we need to detect this. Also, some Intel
5789 # versions had trouble with output in subdirs
5790 am__obj=sub/conftest.${OBJEXT-o}
5791 am__minus_obj="-o $am__obj"
5792 case $depmode in
5793 gcc)
5794 # This depmode causes a compiler race in universal mode.
5795 test "$am__universal" = false || continue
5797 nosideeffect)
5798 # after this tag, mechanisms are not by side-effect, so they'll
5799 # only be used when explicitly requested
5800 if test "x$enable_dependency_tracking" = xyes; then
5801 continue
5802 else
5803 break
5806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5807 # This compiler won't grok `-c -o', but also, the minuso test has
5808 # not run yet. These depmodes are late enough in the game, and
5809 # so weak that their functioning should not be impacted.
5810 am__obj=conftest.${OBJEXT-o}
5811 am__minus_obj=
5813 none) break ;;
5814 esac
5815 if depmode=$depmode \
5816 source=sub/conftest.c object=$am__obj \
5817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5819 >/dev/null 2>conftest.err &&
5820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5824 # icc doesn't choke on unknown options, it will just issue warnings
5825 # or remarks (even with -Werror). So we grep stderr for any message
5826 # that says an option was ignored or not supported.
5827 # When given -MP, icc 7.0 and 7.1 complain thusly:
5828 # icc: Command line warning: ignoring option '-M'; no argument required
5829 # The diagnosis changed in icc 8.0:
5830 # icc: Command line remark: option '-MP' not supported
5831 if (grep 'ignoring option' conftest.err ||
5832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5833 am_cv_CCAS_dependencies_compiler_type=$depmode
5834 break
5837 done
5839 cd ..
5840 rm -rf conftest.dir
5841 else
5842 am_cv_CCAS_dependencies_compiler_type=none
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5847 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5848 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5851 test "x$enable_dependency_tracking" != xno \
5852 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5853 am__fastdepCCAS_TRUE=
5854 am__fastdepCCAS_FALSE='#'
5855 else
5856 am__fastdepCCAS_TRUE='#'
5857 am__fastdepCCAS_FALSE=
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$RANLIB"; then
5870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5883 done
5884 done
5885 IFS=$as_save_IFS
5889 RANLIB=$ac_cv_prog_RANLIB
5890 if test -n "$RANLIB"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5892 $as_echo "$RANLIB" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5900 if test -z "$ac_cv_prog_RANLIB"; then
5901 ac_ct_RANLIB=$RANLIB
5902 # Extract the first word of "ranlib", so it can be a program name with args.
5903 set dummy ranlib; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_RANLIB"; then
5910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_ac_ct_RANLIB="ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5923 done
5924 done
5925 IFS=$as_save_IFS
5929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5930 if test -n "$ac_ct_RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5932 $as_echo "$ac_ct_RANLIB" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5938 if test "x$ac_ct_RANLIB" = x; then
5939 RANLIB=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947 RANLIB=$ac_ct_RANLIB
5949 else
5950 RANLIB="$ac_cv_prog_RANLIB"
5954 enable_dlopen=yes
5958 case `pwd` in
5959 *\ * | *\ *)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5961 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5962 esac
5966 macro_version='2.2.7a'
5967 macro_revision='1.3134'
5981 ltmain="$ac_aux_dir/ltmain.sh"
5983 # Backslashify metacharacters that are still active within
5984 # double-quoted strings.
5985 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5987 # Same as above, but do not quote variable references.
5988 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5990 # Sed substitution to delay expansion of an escaped shell variable in a
5991 # double_quote_subst'ed string.
5992 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5994 # Sed substitution to delay expansion of an escaped single quote.
5995 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5997 # Sed substitution to avoid accidental globbing in evaled expressions
5998 no_glob_subst='s/\*/\\\*/g'
6000 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6005 $as_echo_n "checking how to print strings... " >&6; }
6006 # Test print first, because it will be a builtin if present.
6007 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6009 ECHO='print -r --'
6010 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6011 ECHO='printf %s\n'
6012 else
6013 # Use this function as a fallback that always works.
6014 func_fallback_echo ()
6016 eval 'cat <<_LTECHO_EOF
6018 _LTECHO_EOF'
6020 ECHO='func_fallback_echo'
6023 # func_echo_all arg...
6024 # Invoke $ECHO with all args, space-separated.
6025 func_echo_all ()
6027 $ECHO ""
6030 case "$ECHO" in
6031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6032 $as_echo "printf" >&6; } ;;
6033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6034 $as_echo "print -r" >&6; } ;;
6035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6036 $as_echo "cat" >&6; } ;;
6037 esac
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6053 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6054 if test "${ac_cv_path_SED+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6058 for ac_i in 1 2 3 4 5 6 7; do
6059 ac_script="$ac_script$as_nl$ac_script"
6060 done
6061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6062 { ac_script=; unset ac_script;}
6063 if test -z "$SED"; then
6064 ac_path_SED_found=false
6065 # Loop through the user's path and test for each of PROGNAME-LIST
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_prog in sed gsed; do
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6074 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6075 # Check for GNU ac_path_SED and select it if it is found.
6076 # Check for GNU $ac_path_SED
6077 case `"$ac_path_SED" --version 2>&1` in
6078 *GNU*)
6079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6081 ac_count=0
6082 $as_echo_n 0123456789 >"conftest.in"
6083 while :
6085 cat "conftest.in" "conftest.in" >"conftest.tmp"
6086 mv "conftest.tmp" "conftest.in"
6087 cp "conftest.in" "conftest.nl"
6088 $as_echo '' >> "conftest.nl"
6089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6091 as_fn_arith $ac_count + 1 && ac_count=$as_val
6092 if test $ac_count -gt ${ac_path_SED_max-0}; then
6093 # Best one so far, save it but keep looking for a better one
6094 ac_cv_path_SED="$ac_path_SED"
6095 ac_path_SED_max=$ac_count
6097 # 10*(2^10) chars as input seems more than enough
6098 test $ac_count -gt 10 && break
6099 done
6100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6101 esac
6103 $ac_path_SED_found && break 3
6104 done
6105 done
6106 done
6107 IFS=$as_save_IFS
6108 if test -z "$ac_cv_path_SED"; then
6109 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6111 else
6112 ac_cv_path_SED=$SED
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6117 $as_echo "$ac_cv_path_SED" >&6; }
6118 SED="$ac_cv_path_SED"
6119 rm -f conftest.sed
6121 test -z "$SED" && SED=sed
6122 Xsed="$SED -e 1s/^X//"
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6135 $as_echo_n "checking for fgrep... " >&6; }
6136 if test "${ac_cv_path_FGREP+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6140 then ac_cv_path_FGREP="$GREP -F"
6141 else
6142 if test -z "$FGREP"; then
6143 ac_path_FGREP_found=false
6144 # Loop through the user's path and test for each of PROGNAME-LIST
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_prog in fgrep; do
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6153 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6154 # Check for GNU ac_path_FGREP and select it if it is found.
6155 # Check for GNU $ac_path_FGREP
6156 case `"$ac_path_FGREP" --version 2>&1` in
6157 *GNU*)
6158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6160 ac_count=0
6161 $as_echo_n 0123456789 >"conftest.in"
6162 while :
6164 cat "conftest.in" "conftest.in" >"conftest.tmp"
6165 mv "conftest.tmp" "conftest.in"
6166 cp "conftest.in" "conftest.nl"
6167 $as_echo 'FGREP' >> "conftest.nl"
6168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6170 as_fn_arith $ac_count + 1 && ac_count=$as_val
6171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6172 # Best one so far, save it but keep looking for a better one
6173 ac_cv_path_FGREP="$ac_path_FGREP"
6174 ac_path_FGREP_max=$ac_count
6176 # 10*(2^10) chars as input seems more than enough
6177 test $ac_count -gt 10 && break
6178 done
6179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6180 esac
6182 $ac_path_FGREP_found && break 3
6183 done
6184 done
6185 done
6186 IFS=$as_save_IFS
6187 if test -z "$ac_cv_path_FGREP"; then
6188 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6190 else
6191 ac_cv_path_FGREP=$FGREP
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6197 $as_echo "$ac_cv_path_FGREP" >&6; }
6198 FGREP="$ac_cv_path_FGREP"
6201 test -z "$GREP" && GREP=grep
6221 # Check whether --with-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then :
6223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6224 else
6225 with_gnu_ld=no
6228 ac_prog=ld
6229 if test "$GCC" = yes; then
6230 # Check if gcc -print-prog-name=ld gives a path.
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6232 $as_echo_n "checking for ld used by $CC... " >&6; }
6233 case $host in
6234 *-*-mingw*)
6235 # gcc leaves a trailing carriage return which upsets mingw
6236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6239 esac
6240 case $ac_prog in
6241 # Accept absolute paths.
6242 [\\/]* | ?:[\\/]*)
6243 re_direlt='/[^/][^/]*/\.\./'
6244 # Canonicalize the pathname of ld
6245 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6246 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6247 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6248 done
6249 test -z "$LD" && LD="$ac_prog"
6252 # If it fails, then pretend we aren't using GCC.
6253 ac_prog=ld
6256 # If it is relative, then search for the first ld in PATH.
6257 with_gnu_ld=unknown
6259 esac
6260 elif test "$with_gnu_ld" = yes; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6262 $as_echo_n "checking for GNU ld... " >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6265 $as_echo_n "checking for non-GNU ld... " >&6; }
6267 if test "${lt_cv_path_LD+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -z "$LD"; then
6271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6272 for ac_dir in $PATH; do
6273 IFS="$lt_save_ifs"
6274 test -z "$ac_dir" && ac_dir=.
6275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6276 lt_cv_path_LD="$ac_dir/$ac_prog"
6277 # Check to see if the program is GNU ld. I'd rather use --version,
6278 # but apparently some variants of GNU ld only accept -v.
6279 # Break only if it was the GNU/non-GNU ld that we prefer.
6280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282 test "$with_gnu_ld" != no && break
6285 test "$with_gnu_ld" != yes && break
6287 esac
6289 done
6290 IFS="$lt_save_ifs"
6291 else
6292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6296 LD="$lt_cv_path_LD"
6297 if test -n "$LD"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6299 $as_echo "$LD" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6304 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6306 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6307 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6311 case `$LD -v 2>&1 </dev/null` in
6312 *GNU* | *'with BFD'*)
6313 lt_cv_prog_gnu_ld=yes
6316 lt_cv_prog_gnu_ld=no
6318 esac
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6321 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6322 with_gnu_ld=$lt_cv_prog_gnu_ld
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6333 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6334 if test "${lt_cv_path_NM+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$NM"; then
6338 # Let the user override the test.
6339 lt_cv_path_NM="$NM"
6340 else
6341 lt_nm_to_check="${ac_tool_prefix}nm"
6342 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6343 lt_nm_to_check="$lt_nm_to_check nm"
6345 for lt_tmp_nm in $lt_nm_to_check; do
6346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6347 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6348 IFS="$lt_save_ifs"
6349 test -z "$ac_dir" && ac_dir=.
6350 tmp_nm="$ac_dir/$lt_tmp_nm"
6351 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6352 # Check to see if the nm accepts a BSD-compat flag.
6353 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6354 # nm: unknown option "B" ignored
6355 # Tru64's nm complains that /dev/null is an invalid object file
6356 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6357 */dev/null* | *'Invalid file or object type'*)
6358 lt_cv_path_NM="$tmp_nm -B"
6359 break
6362 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6363 */dev/null*)
6364 lt_cv_path_NM="$tmp_nm -p"
6365 break
6368 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6369 continue # so that we can try to find one that supports BSD flags
6371 esac
6373 esac
6375 done
6376 IFS="$lt_save_ifs"
6377 done
6378 : ${lt_cv_path_NM=no}
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6382 $as_echo "$lt_cv_path_NM" >&6; }
6383 if test "$lt_cv_path_NM" != "no"; then
6384 NM="$lt_cv_path_NM"
6385 else
6386 # Didn't find any BSD compatible name lister, look for dumpbin.
6387 if test -n "$DUMPBIN"; then :
6388 # Let the user override the test.
6389 else
6390 if test -n "$ac_tool_prefix"; then
6391 for ac_prog in dumpbin "link -dump"
6393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$DUMPBIN"; then
6401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6414 done
6415 done
6416 IFS=$as_save_IFS
6420 DUMPBIN=$ac_cv_prog_DUMPBIN
6421 if test -n "$DUMPBIN"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6423 $as_echo "$DUMPBIN" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6430 test -n "$DUMPBIN" && break
6431 done
6433 if test -z "$DUMPBIN"; then
6434 ac_ct_DUMPBIN=$DUMPBIN
6435 for ac_prog in dumpbin "link -dump"
6437 # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_DUMPBIN"; then
6445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6465 if test -n "$ac_ct_DUMPBIN"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6467 $as_echo "$ac_ct_DUMPBIN" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6474 test -n "$ac_ct_DUMPBIN" && break
6475 done
6477 if test "x$ac_ct_DUMPBIN" = x; then
6478 DUMPBIN=":"
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486 DUMPBIN=$ac_ct_DUMPBIN
6490 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6491 *COFF*)
6492 DUMPBIN="$DUMPBIN -symbols"
6495 DUMPBIN=:
6497 esac
6500 if test "$DUMPBIN" != ":"; then
6501 NM="$DUMPBIN"
6504 test -z "$NM" && NM=nm
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6512 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6513 if test "${lt_cv_nm_interface+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 lt_cv_nm_interface="BSD nm"
6517 echo "int some_variable = 0;" > conftest.$ac_ext
6518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6519 (eval "$ac_compile" 2>conftest.err)
6520 cat conftest.err >&5
6521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6523 cat conftest.err >&5
6524 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6525 cat conftest.out >&5
6526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6527 lt_cv_nm_interface="MS dumpbin"
6529 rm -f conftest*
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6532 $as_echo "$lt_cv_nm_interface" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6535 $as_echo_n "checking whether ln -s works... " >&6; }
6536 LN_S=$as_ln_s
6537 if test "$LN_S" = "ln -s"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6539 $as_echo "yes" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6542 $as_echo "no, using $LN_S" >&6; }
6545 # find the maximum length of command line arguments
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6547 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6548 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6552 teststring="ABCD"
6554 case $build_os in
6555 msdosdjgpp*)
6556 # On DJGPP, this test can blow up pretty badly due to problems in libc
6557 # (any single argument exceeding 2000 bytes causes a buffer overrun
6558 # during glob expansion). Even if it were fixed, the result of this
6559 # check would be larger than it should be.
6560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6563 gnu*)
6564 # Under GNU Hurd, this test is not required because there is
6565 # no limit to the length of command line arguments.
6566 # Libtool will interpret -1 as no limit whatsoever
6567 lt_cv_sys_max_cmd_len=-1;
6570 cygwin* | mingw* | cegcc*)
6571 # On Win9x/ME, this test blows up -- it succeeds, but takes
6572 # about 5 minutes as the teststring grows exponentially.
6573 # Worse, since 9x/ME are not pre-emptively multitasking,
6574 # you end up with a "frozen" computer, even though with patience
6575 # the test eventually succeeds (with a max line length of 256k).
6576 # Instead, let's just punt: use the minimum linelength reported by
6577 # all of the supported platforms: 8192 (on NT/2K/XP).
6578 lt_cv_sys_max_cmd_len=8192;
6581 mint*)
6582 # On MiNT this can take a long time and run out of memory.
6583 lt_cv_sys_max_cmd_len=8192;
6586 amigaos*)
6587 # On AmigaOS with pdksh, this test takes hours, literally.
6588 # So we just punt and use a minimum line length of 8192.
6589 lt_cv_sys_max_cmd_len=8192;
6592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593 # This has been around since 386BSD, at least. Likely further.
6594 if test -x /sbin/sysctl; then
6595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596 elif test -x /usr/sbin/sysctl; then
6597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598 else
6599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6601 # And add a safety zone
6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6606 interix*)
6607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608 lt_cv_sys_max_cmd_len=196608
6611 osf*)
6612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614 # nice to cause kernel panics so lets avoid the loop below.
6615 # First set a reasonable default.
6616 lt_cv_sys_max_cmd_len=16384
6618 if test -x /sbin/sysconfig; then
6619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621 esac
6624 sco3.2v5*)
6625 lt_cv_sys_max_cmd_len=102400
6627 sysv5* | sco5v6* | sysv4.2uw2*)
6628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629 if test -n "$kargmax"; then
6630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6631 else
6632 lt_cv_sys_max_cmd_len=32768
6636 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637 if test -n "$lt_cv_sys_max_cmd_len"; then
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640 else
6641 # Make teststring a little bigger before we do anything with it.
6642 # a 1K string should be a reasonable start.
6643 for i in 1 2 3 4 5 6 7 8 ; do
6644 teststring=$teststring$teststring
6645 done
6646 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647 # If test is not a shell built-in, we'll probably end up computing a
6648 # maximum length that is only half of the actual maximum length, but
6649 # we can't tell.
6650 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6652 test $i != 17 # 1/2 MB should be enough
6654 i=`expr $i + 1`
6655 teststring=$teststring$teststring
6656 done
6657 # Only check the string length outside the loop.
6658 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659 teststring=
6660 # Add a significant safety factor because C++ compilers can tack on
6661 # massive amounts of additional arguments before passing them to the
6662 # linker. It appears as though 1/2 is a usable value.
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6666 esac
6670 if test -n $lt_cv_sys_max_cmd_len ; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675 $as_echo "none" >&6; }
6677 max_cmd_len=$lt_cv_sys_max_cmd_len
6684 : ${CP="cp -f"}
6685 : ${MV="mv -f"}
6686 : ${RM="rm -f"}
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690 # Try some XSI features
6691 xsi_shell=no
6692 ( _lt_dummy="a/b/c"
6693 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6694 = c,a/b,, \
6695 && eval 'test $(( 1 + 1 )) -eq 2 \
6696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697 && xsi_shell=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699 $as_echo "$xsi_shell" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704 lt_shell_append=no
6705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706 >/dev/null 2>&1 \
6707 && lt_shell_append=yes
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709 $as_echo "$lt_shell_append" >&6; }
6712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6713 lt_unset=unset
6714 else
6715 lt_unset=false
6722 # test EBCDIC or ASCII
6723 case `echo X|tr X '\101'` in
6724 A) # ASCII based system
6725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726 lt_SP2NL='tr \040 \012'
6727 lt_NL2SP='tr \015\012 \040\040'
6729 *) # EBCDIC based system
6730 lt_SP2NL='tr \100 \n'
6731 lt_NL2SP='tr \r\n \100\100'
6733 esac
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6745 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 lt_cv_ld_reload_flag='-r'
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6752 reload_flag=$lt_cv_ld_reload_flag
6753 case $reload_flag in
6754 "" | " "*) ;;
6755 *) reload_flag=" $reload_flag" ;;
6756 esac
6757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758 case $host_os in
6759 darwin*)
6760 if test "$GCC" = yes; then
6761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6762 else
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6766 esac
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$OBJDUMP"; then
6785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 OBJDUMP=$ac_cv_prog_OBJDUMP
6805 if test -n "$OBJDUMP"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6807 $as_echo "$OBJDUMP" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6815 if test -z "$ac_cv_prog_OBJDUMP"; then
6816 ac_ct_OBJDUMP=$OBJDUMP
6817 # Extract the first word of "objdump", so it can be a program name with args.
6818 set dummy objdump; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$ac_ct_OBJDUMP"; then
6825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6838 done
6839 done
6840 IFS=$as_save_IFS
6844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6845 if test -n "$ac_ct_OBJDUMP"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6847 $as_echo "$ac_ct_OBJDUMP" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$ac_ct_OBJDUMP" = x; then
6854 OBJDUMP="false"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862 OBJDUMP=$ac_ct_OBJDUMP
6864 else
6865 OBJDUMP="$ac_cv_prog_OBJDUMP"
6868 test -z "$OBJDUMP" && OBJDUMP=objdump
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6879 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6880 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 lt_cv_file_magic_cmd='$MAGIC_CMD'
6884 lt_cv_file_magic_test_file=
6885 lt_cv_deplibs_check_method='unknown'
6886 # Need to set the preceding variable on all platforms that support
6887 # interlibrary dependencies.
6888 # 'none' -- dependencies not supported.
6889 # `unknown' -- same as none, but documents that we really don't know.
6890 # 'pass_all' -- all dependencies passed with no checks.
6891 # 'test_compile' -- check by making test program.
6892 # 'file_magic [[regex]]' -- check by looking for files in library path
6893 # which responds to the $file_magic_cmd with a given extended regex.
6894 # If you have `file' or equivalent on your system and you're not sure
6895 # whether `pass_all' will *always* work, you probably want this one.
6897 case $host_os in
6898 aix[4-9]*)
6899 lt_cv_deplibs_check_method=pass_all
6902 beos*)
6903 lt_cv_deplibs_check_method=pass_all
6906 bsdi[45]*)
6907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908 lt_cv_file_magic_cmd='/usr/bin/file -L'
6909 lt_cv_file_magic_test_file=/shlib/libc.so
6912 cygwin*)
6913 # func_win32_libid is a shell function defined in ltmain.sh
6914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915 lt_cv_file_magic_cmd='func_win32_libid'
6918 mingw* | pw32*)
6919 # Base MSYS/MinGW do not provide the 'file' command needed by
6920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921 # unless we find 'file', for example because we are cross-compiling.
6922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6925 lt_cv_file_magic_cmd='func_win32_libid'
6926 else
6927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6928 lt_cv_file_magic_cmd='$OBJDUMP -f'
6932 cegcc*)
6933 # use the weaker test based on 'objdump'. See mingw*.
6934 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6935 lt_cv_file_magic_cmd='$OBJDUMP -f'
6938 darwin* | rhapsody*)
6939 lt_cv_deplibs_check_method=pass_all
6942 freebsd* | dragonfly*)
6943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6944 case $host_cpu in
6945 i*86 )
6946 # Not sure whether the presence of OpenBSD here was a mistake.
6947 # Let's accept both of them until this is cleared up.
6948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6949 lt_cv_file_magic_cmd=/usr/bin/file
6950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6952 esac
6953 else
6954 lt_cv_deplibs_check_method=pass_all
6958 gnu*)
6959 lt_cv_deplibs_check_method=pass_all
6962 haiku*)
6963 lt_cv_deplibs_check_method=pass_all
6966 hpux10.20* | hpux11*)
6967 lt_cv_file_magic_cmd=/usr/bin/file
6968 case $host_cpu in
6969 ia64*)
6970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6973 hppa*64*)
6974 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]'
6975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6981 esac
6984 interix[3-9]*)
6985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6989 irix5* | irix6* | nonstopux*)
6990 case $LD in
6991 *-32|*"-32 ") libmagic=32-bit;;
6992 *-n32|*"-n32 ") libmagic=N32;;
6993 *-64|*"-64 ") libmagic=64-bit;;
6994 *) libmagic=never-match;;
6995 esac
6996 lt_cv_deplibs_check_method=pass_all
6999 # This must be Linux ELF.
7000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7001 lt_cv_deplibs_check_method=pass_all
7004 netbsd*)
7005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7007 else
7008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7012 newos6*)
7013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7014 lt_cv_file_magic_cmd=/usr/bin/file
7015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7018 *nto* | *qnx*)
7019 lt_cv_deplibs_check_method=pass_all
7022 openbsd*)
7023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7025 else
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7030 osf3* | osf4* | osf5*)
7031 lt_cv_deplibs_check_method=pass_all
7034 rdos*)
7035 lt_cv_deplibs_check_method=pass_all
7038 solaris*)
7039 lt_cv_deplibs_check_method=pass_all
7042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7043 lt_cv_deplibs_check_method=pass_all
7046 sysv4 | sysv4.3*)
7047 case $host_vendor in
7048 motorola)
7049 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]'
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7052 ncr)
7053 lt_cv_deplibs_check_method=pass_all
7055 sequent)
7056 lt_cv_file_magic_cmd='/bin/file'
7057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7059 sni)
7060 lt_cv_file_magic_cmd='/bin/file'
7061 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7062 lt_cv_file_magic_test_file=/lib/libc.so
7064 siemens)
7065 lt_cv_deplibs_check_method=pass_all
7068 lt_cv_deplibs_check_method=pass_all
7070 esac
7073 tpf*)
7074 lt_cv_deplibs_check_method=pass_all
7076 esac
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7080 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7081 file_magic_cmd=$lt_cv_file_magic_cmd
7082 deplibs_check_method=$lt_cv_deplibs_check_method
7083 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}ar; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_AR+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$AR"; then
7105 ac_cv_prog_AR="$AR" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_AR="${ac_tool_prefix}ar"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 AR=$ac_cv_prog_AR
7125 if test -n "$AR"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7127 $as_echo "$AR" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7135 if test -z "$ac_cv_prog_AR"; then
7136 ac_ct_AR=$AR
7137 # Extract the first word of "ar", so it can be a program name with args.
7138 set dummy ar; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_AR"; then
7145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_ac_ct_AR="ar"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7165 if test -n "$ac_ct_AR"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7167 $as_echo "$ac_ct_AR" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 if test "x$ac_ct_AR" = x; then
7174 AR="false"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 AR=$ac_ct_AR
7184 else
7185 AR="$ac_cv_prog_AR"
7188 test -z "$AR" && AR=ar
7189 test -z "$AR_FLAGS" && AR_FLAGS=cru
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}strip; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_STRIP+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$STRIP"; then
7210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7229 STRIP=$ac_cv_prog_STRIP
7230 if test -n "$STRIP"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7232 $as_echo "$STRIP" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_STRIP"; then
7241 ac_ct_STRIP=$STRIP
7242 # Extract the first word of "strip", so it can be a program name with args.
7243 set dummy strip; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_STRIP"; then
7250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_STRIP="strip"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7270 if test -n "$ac_ct_STRIP"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7272 $as_echo "$ac_ct_STRIP" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_STRIP" = x; then
7279 STRIP=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 STRIP=$ac_ct_STRIP
7289 else
7290 STRIP="$ac_cv_prog_STRIP"
7293 test -z "$STRIP" && STRIP=:
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$RANLIB"; then
7309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7322 done
7323 done
7324 IFS=$as_save_IFS
7328 RANLIB=$ac_cv_prog_RANLIB
7329 if test -n "$RANLIB"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7331 $as_echo "$RANLIB" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7339 if test -z "$ac_cv_prog_RANLIB"; then
7340 ac_ct_RANLIB=$RANLIB
7341 # Extract the first word of "ranlib", so it can be a program name with args.
7342 set dummy ranlib; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$ac_ct_RANLIB"; then
7349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_RANLIB="ranlib"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7362 done
7363 done
7364 IFS=$as_save_IFS
7368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7369 if test -n "$ac_ct_RANLIB"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7371 $as_echo "$ac_ct_RANLIB" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7377 if test "x$ac_ct_RANLIB" = x; then
7378 RANLIB=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386 RANLIB=$ac_ct_RANLIB
7388 else
7389 RANLIB="$ac_cv_prog_RANLIB"
7392 test -z "$RANLIB" && RANLIB=:
7399 # Determine commands to create old-style static archives.
7400 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7401 old_postinstall_cmds='chmod 644 $oldlib'
7402 old_postuninstall_cmds=
7404 if test -n "$RANLIB"; then
7405 case $host_os in
7406 openbsd*)
7407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7410 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7412 esac
7413 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7416 case $host_os in
7417 darwin*)
7418 lock_old_archive_extraction=yes ;;
7420 lock_old_archive_extraction=no ;;
7421 esac
7461 # If no C compiler was specified, use CC.
7462 LTCC=${LTCC-"$CC"}
7464 # If no C compiler flags were specified, use CFLAGS.
7465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7467 # Allow CC to be a program name with arguments.
7468 compiler=$CC
7471 # Check for command to grab the raw symbol name followed by C symbol from nm.
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7473 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7474 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7478 # These are sane defaults that work on at least a few old systems.
7479 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7481 # Character class describing NM global symbol codes.
7482 symcode='[BCDEGRST]'
7484 # Regexp to match symbols that can be accessed directly from C.
7485 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7487 # Define system-specific variables.
7488 case $host_os in
7489 aix*)
7490 symcode='[BCDT]'
7492 cygwin* | mingw* | pw32* | cegcc*)
7493 symcode='[ABCDGISTW]'
7495 hpux*)
7496 if test "$host_cpu" = ia64; then
7497 symcode='[ABCDEGRST]'
7500 irix* | nonstopux*)
7501 symcode='[BCDEGRST]'
7503 osf*)
7504 symcode='[BCDEGQRST]'
7506 solaris*)
7507 symcode='[BDRT]'
7509 sco3.2v5*)
7510 symcode='[DT]'
7512 sysv4.2uw2*)
7513 symcode='[DT]'
7515 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7516 symcode='[ABDT]'
7518 sysv4)
7519 symcode='[DFNSTU]'
7521 esac
7523 # If we're using GNU nm, then use its standard symbol codes.
7524 case `$NM -V 2>&1` in
7525 *GNU* | *'with BFD'*)
7526 symcode='[ABCDGIRSTW]' ;;
7527 esac
7529 # Transform an extracted symbol line into a proper C declaration.
7530 # Some systems (esp. on ia64) link data and code symbols differently,
7531 # so use this general approach.
7532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7534 # Transform an extracted symbol line into symbol name and symbol address
7535 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7536 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'"
7538 # Handle CRLF in mingw tool chain
7539 opt_cr=
7540 case $build_os in
7541 mingw*)
7542 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7544 esac
7546 # Try without a prefix underscore, then with it.
7547 for ac_symprfx in "" "_"; do
7549 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7550 symxfrm="\\1 $ac_symprfx\\2 \\2"
7552 # Write the raw and C identifiers.
7553 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7554 # Fake it for dumpbin and say T for any non-static function
7555 # and D for any global variable.
7556 # Also find C++ and __fastcall symbols from MSVC++,
7557 # which start with @ or ?.
7558 lt_cv_sys_global_symbol_pipe="$AWK '"\
7559 " {last_section=section; section=\$ 3};"\
7560 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7561 " \$ 0!~/External *\|/{next};"\
7562 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7563 " {if(hide[section]) next};"\
7564 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7565 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7566 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7567 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7568 " ' prfx=^$ac_symprfx"
7569 else
7570 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7573 # Check to see that the pipe works correctly.
7574 pipe_works=no
7576 rm -f conftest*
7577 cat > conftest.$ac_ext <<_LT_EOF
7578 #ifdef __cplusplus
7579 extern "C" {
7580 #endif
7581 char nm_test_var;
7582 void nm_test_func(void);
7583 void nm_test_func(void){}
7584 #ifdef __cplusplus
7586 #endif
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7588 _LT_EOF
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 # Now try to grab the symbols.
7596 nlist=conftest.nm
7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7598 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7599 ac_status=$?
7600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601 test $ac_status = 0; } && test -s "$nlist"; then
7602 # Try sorting and uniquifying the output.
7603 if sort "$nlist" | uniq > "$nlist"T; then
7604 mv -f "$nlist"T "$nlist"
7605 else
7606 rm -f "$nlist"T
7609 # Make sure that we snagged all the symbols we need.
7610 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7611 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7612 cat <<_LT_EOF > conftest.$ac_ext
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7617 _LT_EOF
7618 # Now generate the symbol file.
7619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7621 cat <<_LT_EOF >> conftest.$ac_ext
7623 /* The mapping between symbol names and symbols. */
7624 const struct {
7625 const char *name;
7626 void *address;
7628 lt__PROGRAM__LTX_preloaded_symbols[] =
7630 { "@PROGRAM@", (void *) 0 },
7631 _LT_EOF
7632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7633 cat <<\_LT_EOF >> conftest.$ac_ext
7634 {0, (void *) 0}
7637 /* This works around a problem in FreeBSD linker */
7638 #ifdef FREEBSD_WORKAROUND
7639 static const void *lt_preloaded_setup() {
7640 return lt__PROGRAM__LTX_preloaded_symbols;
7642 #endif
7644 #ifdef __cplusplus
7646 #endif
7647 _LT_EOF
7648 # Now try linking the two files.
7649 mv conftest.$ac_objext conftstm.$ac_objext
7650 lt_save_LIBS="$LIBS"
7651 lt_save_CFLAGS="$CFLAGS"
7652 LIBS="conftstm.$ac_objext"
7653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7655 (eval $ac_link) 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7659 pipe_works=yes
7661 LIBS="$lt_save_LIBS"
7662 CFLAGS="$lt_save_CFLAGS"
7663 else
7664 echo "cannot find nm_test_func in $nlist" >&5
7666 else
7667 echo "cannot find nm_test_var in $nlist" >&5
7669 else
7670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7672 else
7673 echo "$progname: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 rm -rf conftest* conftst*
7678 # Do not use the global_symbol_pipe unless it works.
7679 if test "$pipe_works" = yes; then
7680 break
7681 else
7682 lt_cv_sys_global_symbol_pipe=
7684 done
7688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689 lt_cv_sys_global_symbol_to_cdecl=
7691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693 $as_echo "failed" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696 $as_echo "ok" >&6; }
7720 # Check whether --enable-libtool-lock was given.
7721 if test "${enable_libtool_lock+set}" = set; then :
7722 enableval=$enable_libtool_lock;
7725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7727 # Some flags need to be propagated to the compiler or linker for good
7728 # libtool support.
7729 case $host in
7730 ia64-*-hpux*)
7731 # Find out which ABI we are using.
7732 echo 'int i;' > conftest.$ac_ext
7733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }; then
7738 case `/usr/bin/file conftest.$ac_objext` in
7739 *ELF-32*)
7740 HPUX_IA64_MODE="32"
7742 *ELF-64*)
7743 HPUX_IA64_MODE="64"
7745 esac
7747 rm -rf conftest*
7749 *-*-irix6*)
7750 # Find out which ABI we are using.
7751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7757 if test "$lt_cv_prog_gnu_ld" = yes; then
7758 case `/usr/bin/file conftest.$ac_objext` in
7759 *32-bit*)
7760 LD="${LD-ld} -melf32bsmip"
7762 *N32*)
7763 LD="${LD-ld} -melf32bmipn32"
7765 *64-bit*)
7766 LD="${LD-ld} -melf64bmip"
7768 esac
7769 else
7770 case `/usr/bin/file conftest.$ac_objext` in
7771 *32-bit*)
7772 LD="${LD-ld} -32"
7774 *N32*)
7775 LD="${LD-ld} -n32"
7777 *64-bit*)
7778 LD="${LD-ld} -64"
7780 esac
7783 rm -rf conftest*
7786 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7787 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7788 # Find out which ABI we are using.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `/usr/bin/file conftest.o` in
7796 *32-bit*)
7797 case $host in
7798 x86_64-*kfreebsd*-gnu)
7799 LD="${LD-ld} -m elf_i386_fbsd"
7801 x86_64-*linux*)
7802 case `/usr/bin/file conftest.o` in
7803 *x86-64*)
7804 LD="${LD-ld} -m elf32_x86_64"
7807 LD="${LD-ld} -m elf_i386"
7809 esac
7811 powerpc64le-*linux*)
7812 LD="${LD-ld} -m elf32lppclinux"
7814 powerpc64-*linux*)
7815 LD="${LD-ld} -m elf32ppclinux"
7817 s390x-*linux*)
7818 LD="${LD-ld} -m elf_s390"
7820 sparc64-*linux*)
7821 LD="${LD-ld} -m elf32_sparc"
7823 esac
7825 *64-bit*)
7826 case $host in
7827 x86_64-*kfreebsd*-gnu)
7828 LD="${LD-ld} -m elf_x86_64_fbsd"
7830 x86_64-*linux*)
7831 LD="${LD-ld} -m elf_x86_64"
7833 powerpcle-*linux*)
7834 LD="${LD-ld} -m elf64lppc"
7836 powerpc-*linux*)
7837 LD="${LD-ld} -m elf64ppc"
7839 s390*-*linux*|s390*-*tpf*)
7840 LD="${LD-ld} -m elf64_s390"
7842 sparc*-*linux*)
7843 LD="${LD-ld} -m elf64_sparc"
7845 esac
7847 esac
7849 rm -rf conftest*
7852 *-*-sco3.2v5*)
7853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7854 SAVE_CFLAGS="$CFLAGS"
7855 CFLAGS="$CFLAGS -belf"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7858 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 ac_ext=c
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7871 main ()
7875 return 0;
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 lt_cv_cc_needs_belf=yes
7880 else
7881 lt_cv_cc_needs_belf=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 ac_ext=c
7886 ac_cpp='$CPP $CPPFLAGS'
7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7893 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7896 CFLAGS="$SAVE_CFLAGS"
7899 sparc*-*solaris*)
7900 # Find out which ABI we are using.
7901 echo 'int i;' > conftest.$ac_ext
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903 (eval $ac_compile) 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 case `/usr/bin/file conftest.o` in
7908 *64-bit*)
7909 case $lt_cv_prog_gnu_ld in
7910 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7913 LD="${LD-ld} -64"
7916 esac
7918 esac
7920 rm -rf conftest*
7922 esac
7924 need_locks="$enable_libtool_lock"
7927 case $host_os in
7928 rhapsody* | darwin*)
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$DSYMUTIL"; then
7938 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7953 IFS=$as_save_IFS
7957 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7958 if test -n "$DSYMUTIL"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7960 $as_echo "$DSYMUTIL" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_DSYMUTIL"; then
7969 ac_ct_DSYMUTIL=$DSYMUTIL
7970 # Extract the first word of "dsymutil", so it can be a program name with args.
7971 set dummy dsymutil; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$ac_ct_DSYMUTIL"; then
7978 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7991 done
7992 done
7993 IFS=$as_save_IFS
7997 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7998 if test -n "$ac_ct_DSYMUTIL"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8000 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_DSYMUTIL" = x; then
8007 DSYMUTIL=":"
8008 else
8009 case $cross_compiling:$ac_tool_warned in
8010 yes:)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8014 esac
8015 DSYMUTIL=$ac_ct_DSYMUTIL
8017 else
8018 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8021 if test -n "$ac_tool_prefix"; then
8022 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8023 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$NMEDIT"; then
8030 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8043 done
8044 done
8045 IFS=$as_save_IFS
8049 NMEDIT=$ac_cv_prog_NMEDIT
8050 if test -n "$NMEDIT"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8052 $as_echo "$NMEDIT" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8060 if test -z "$ac_cv_prog_NMEDIT"; then
8061 ac_ct_NMEDIT=$NMEDIT
8062 # Extract the first word of "nmedit", so it can be a program name with args.
8063 set dummy nmedit; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if test -n "$ac_ct_NMEDIT"; then
8070 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8089 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8090 if test -n "$ac_ct_NMEDIT"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8092 $as_echo "$ac_ct_NMEDIT" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8098 if test "x$ac_ct_NMEDIT" = x; then
8099 NMEDIT=":"
8100 else
8101 case $cross_compiling:$ac_tool_warned in
8102 yes:)
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105 ac_tool_warned=yes ;;
8106 esac
8107 NMEDIT=$ac_ct_NMEDIT
8109 else
8110 NMEDIT="$ac_cv_prog_NMEDIT"
8113 if test -n "$ac_tool_prefix"; then
8114 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8115 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_LIPO+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 if test -n "$LIPO"; then
8122 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8135 done
8136 done
8137 IFS=$as_save_IFS
8141 LIPO=$ac_cv_prog_LIPO
8142 if test -n "$LIPO"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8144 $as_echo "$LIPO" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8152 if test -z "$ac_cv_prog_LIPO"; then
8153 ac_ct_LIPO=$LIPO
8154 # Extract the first word of "lipo", so it can be a program name with args.
8155 set dummy lipo; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 if test -n "$ac_ct_LIPO"; then
8162 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171 ac_cv_prog_ac_ct_LIPO="lipo"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8181 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8182 if test -n "$ac_ct_LIPO"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8184 $as_echo "$ac_ct_LIPO" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8190 if test "x$ac_ct_LIPO" = x; then
8191 LIPO=":"
8192 else
8193 case $cross_compiling:$ac_tool_warned in
8194 yes:)
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8197 ac_tool_warned=yes ;;
8198 esac
8199 LIPO=$ac_ct_LIPO
8201 else
8202 LIPO="$ac_cv_prog_LIPO"
8205 if test -n "$ac_tool_prefix"; then
8206 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8207 set dummy ${ac_tool_prefix}otool; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 if test -n "$OTOOL"; then
8214 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8227 done
8228 done
8229 IFS=$as_save_IFS
8233 OTOOL=$ac_cv_prog_OTOOL
8234 if test -n "$OTOOL"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236 $as_echo "$OTOOL" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8244 if test -z "$ac_cv_prog_OTOOL"; then
8245 ac_ct_OTOOL=$OTOOL
8246 # Extract the first word of "otool", so it can be a program name with args.
8247 set dummy otool; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 if test -n "$ac_ct_OTOOL"; then
8254 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_ac_ct_OTOOL="otool"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8267 done
8268 done
8269 IFS=$as_save_IFS
8273 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8274 if test -n "$ac_ct_OTOOL"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8276 $as_echo "$ac_ct_OTOOL" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8282 if test "x$ac_ct_OTOOL" = x; then
8283 OTOOL=":"
8284 else
8285 case $cross_compiling:$ac_tool_warned in
8286 yes:)
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289 ac_tool_warned=yes ;;
8290 esac
8291 OTOOL=$ac_ct_OTOOL
8293 else
8294 OTOOL="$ac_cv_prog_OTOOL"
8297 if test -n "$ac_tool_prefix"; then
8298 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$OTOOL64"; then
8306 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8325 OTOOL64=$ac_cv_prog_OTOOL64
8326 if test -n "$OTOOL64"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8328 $as_echo "$OTOOL64" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8336 if test -z "$ac_cv_prog_OTOOL64"; then
8337 ac_ct_OTOOL64=$OTOOL64
8338 # Extract the first word of "otool64", so it can be a program name with args.
8339 set dummy otool64; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 if test -n "$ac_ct_OTOOL64"; then
8346 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_ac_ct_OTOOL64="otool64"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8365 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8366 if test -n "$ac_ct_OTOOL64"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8368 $as_echo "$ac_ct_OTOOL64" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8374 if test "x$ac_ct_OTOOL64" = x; then
8375 OTOOL64=":"
8376 else
8377 case $cross_compiling:$ac_tool_warned in
8378 yes:)
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383 OTOOL64=$ac_ct_OTOOL64
8385 else
8386 OTOOL64="$ac_cv_prog_OTOOL64"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8416 $as_echo_n "checking for -single_module linker flag... " >&6; }
8417 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 lt_cv_apple_cc_single_mod=no
8421 if test -z "${LT_MULTI_MODULE}"; then
8422 # By default we will add the -single_module flag. You can override
8423 # by either setting the environment variable LT_MULTI_MODULE
8424 # non-empty at configure time, or by adding -multi_module to the
8425 # link flags.
8426 rm -rf libconftest.dylib*
8427 echo "int foo(void){return 1;}" > conftest.c
8428 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429 -dynamiclib -Wl,-single_module conftest.c" >&5
8430 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8431 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8432 _lt_result=$?
8433 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8434 lt_cv_apple_cc_single_mod=yes
8435 else
8436 cat conftest.err >&5
8438 rm -rf libconftest.dylib*
8439 rm -f conftest.*
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8443 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8445 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8446 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_ld_exported_symbols_list=no
8450 save_LDFLAGS=$LDFLAGS
8451 echo "_main" > conftest.sym
8452 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8457 main ()
8461 return 0;
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 lt_cv_ld_exported_symbols_list=yes
8466 else
8467 lt_cv_ld_exported_symbols_list=no
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LDFLAGS="$save_LDFLAGS"
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8475 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8477 $as_echo_n "checking for -force_load linker flag... " >&6; }
8478 if test "${lt_cv_ld_force_load+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_ld_force_load=no
8482 cat > conftest.c << _LT_EOF
8483 int forced_loaded() { return 2;}
8484 _LT_EOF
8485 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8486 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8487 echo "$AR cru libconftest.a conftest.o" >&5
8488 $AR cru libconftest.a conftest.o 2>&5
8489 cat > conftest.c << _LT_EOF
8490 int main() { return 0;}
8491 _LT_EOF
8492 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8493 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8494 _lt_result=$?
8495 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8496 lt_cv_ld_force_load=yes
8497 else
8498 cat conftest.err >&5
8500 rm -f conftest.err libconftest.a conftest conftest.c
8501 rm -rf conftest.dSYM
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8505 $as_echo "$lt_cv_ld_force_load" >&6; }
8506 case $host_os in
8507 rhapsody* | darwin1.[012])
8508 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8509 darwin1.*)
8510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8511 darwin*) # darwin 5.x on
8512 # if running on 10.5 or later, the deployment target defaults
8513 # to the OS version, if on x86, and 10.4, the deployment
8514 # target defaults to 10.4. Don't you love it?
8515 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8516 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8517 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8518 10.[012][,.]*)
8519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8520 10.*)
8521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8522 esac
8524 esac
8525 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8526 _lt_dar_single_mod='$single_module'
8528 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8529 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8530 else
8531 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8533 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8534 _lt_dsymutil='~$DSYMUTIL $lib || :'
8535 else
8536 _lt_dsymutil=
8539 esac
8541 for ac_header in dlfcn.h
8542 do :
8543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8545 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DLFCN_H 1
8548 _ACEOF
8552 done
8559 # Set options
8564 enable_win32_dll=no
8567 # Check whether --enable-shared was given.
8568 if test "${enable_shared+set}" = set; then :
8569 enableval=$enable_shared; p=${PACKAGE-default}
8570 case $enableval in
8571 yes) enable_shared=yes ;;
8572 no) enable_shared=no ;;
8574 enable_shared=no
8575 # Look at the argument we got. We use all the common list separators.
8576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577 for pkg in $enableval; do
8578 IFS="$lt_save_ifs"
8579 if test "X$pkg" = "X$p"; then
8580 enable_shared=yes
8582 done
8583 IFS="$lt_save_ifs"
8585 esac
8586 else
8587 enable_shared=yes
8598 # Check whether --enable-static was given.
8599 if test "${enable_static+set}" = set; then :
8600 enableval=$enable_static; p=${PACKAGE-default}
8601 case $enableval in
8602 yes) enable_static=yes ;;
8603 no) enable_static=no ;;
8605 enable_static=no
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608 for pkg in $enableval; do
8609 IFS="$lt_save_ifs"
8610 if test "X$pkg" = "X$p"; then
8611 enable_static=yes
8613 done
8614 IFS="$lt_save_ifs"
8616 esac
8617 else
8618 enable_static=yes
8630 # Check whether --with-pic was given.
8631 if test "${with_pic+set}" = set; then :
8632 withval=$with_pic; pic_mode="$withval"
8633 else
8634 pic_mode=default
8638 test -z "$pic_mode" && pic_mode=default
8646 # Check whether --enable-fast-install was given.
8647 if test "${enable_fast_install+set}" = set; then :
8648 enableval=$enable_fast_install; p=${PACKAGE-default}
8649 case $enableval in
8650 yes) enable_fast_install=yes ;;
8651 no) enable_fast_install=no ;;
8653 enable_fast_install=no
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8656 for pkg in $enableval; do
8657 IFS="$lt_save_ifs"
8658 if test "X$pkg" = "X$p"; then
8659 enable_fast_install=yes
8661 done
8662 IFS="$lt_save_ifs"
8664 esac
8665 else
8666 enable_fast_install=yes
8679 # This can be used to rebuild libtool when needed
8680 LIBTOOL_DEPS="$ltmain"
8682 # Always use our own libtool.
8683 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8710 test -z "$LN_S" && LN_S="ln -s"
8725 if test -n "${ZSH_VERSION+set}" ; then
8726 setopt NO_GLOB_SUBST
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8730 $as_echo_n "checking for objdir... " >&6; }
8731 if test "${lt_cv_objdir+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 rm -f .libs 2>/dev/null
8735 mkdir .libs 2>/dev/null
8736 if test -d .libs; then
8737 lt_cv_objdir=.libs
8738 else
8739 # MS-DOS does not allow filenames that begin with a dot.
8740 lt_cv_objdir=_libs
8742 rmdir .libs 2>/dev/null
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8745 $as_echo "$lt_cv_objdir" >&6; }
8746 objdir=$lt_cv_objdir
8752 cat >>confdefs.h <<_ACEOF
8753 #define LT_OBJDIR "$lt_cv_objdir/"
8754 _ACEOF
8759 case $host_os in
8760 aix3*)
8761 # AIX sometimes has problems with the GCC collect2 program. For some
8762 # reason, if we set the COLLECT_NAMES environment variable, the problems
8763 # vanish in a puff of smoke.
8764 if test "X${COLLECT_NAMES+set}" != Xset; then
8765 COLLECT_NAMES=
8766 export COLLECT_NAMES
8769 esac
8771 # Global variables:
8772 ofile=libtool
8773 can_build_shared=yes
8775 # All known linkers require a `.a' archive for static linking (except MSVC,
8776 # which needs '.lib').
8777 libext=a
8779 with_gnu_ld="$lt_cv_prog_gnu_ld"
8781 old_CC="$CC"
8782 old_CFLAGS="$CFLAGS"
8784 # Set sane defaults for various variables
8785 test -z "$CC" && CC=cc
8786 test -z "$LTCC" && LTCC=$CC
8787 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8788 test -z "$LD" && LD=ld
8789 test -z "$ac_objext" && ac_objext=o
8791 for cc_temp in $compiler""; do
8792 case $cc_temp in
8793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8795 \-*) ;;
8796 *) break;;
8797 esac
8798 done
8799 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8802 # Only perform the check for file, if the check method requires it
8803 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8804 case $deplibs_check_method in
8805 file_magic*)
8806 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8808 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8809 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 case $MAGIC_CMD in
8813 [\\/*] | ?:[\\/]*)
8814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8817 lt_save_MAGIC_CMD="$MAGIC_CMD"
8818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8820 for ac_dir in $ac_dummy; do
8821 IFS="$lt_save_ifs"
8822 test -z "$ac_dir" && ac_dir=.
8823 if test -f $ac_dir/${ac_tool_prefix}file; then
8824 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8825 if test -n "$file_magic_test_file"; then
8826 case $deplibs_check_method in
8827 "file_magic "*)
8828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8831 $EGREP "$file_magic_regex" > /dev/null; then
8833 else
8834 cat <<_LT_EOF 1>&2
8836 *** Warning: the command libtool uses to detect shared libraries,
8837 *** $file_magic_cmd, produces output that libtool cannot recognize.
8838 *** The result is that libtool may fail to recognize shared libraries
8839 *** as such. This will affect the creation of libtool libraries that
8840 *** depend on shared libraries, but programs linked with such libtool
8841 *** libraries will work regardless of this problem. Nevertheless, you
8842 *** may want to report the problem to your system manager and/or to
8843 *** bug-libtool@gnu.org
8845 _LT_EOF
8846 fi ;;
8847 esac
8849 break
8851 done
8852 IFS="$lt_save_ifs"
8853 MAGIC_CMD="$lt_save_MAGIC_CMD"
8855 esac
8858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859 if test -n "$MAGIC_CMD"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8861 $as_echo "$MAGIC_CMD" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8871 if test -z "$lt_cv_path_MAGIC_CMD"; then
8872 if test -n "$ac_tool_prefix"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8874 $as_echo_n "checking for file... " >&6; }
8875 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 case $MAGIC_CMD in
8879 [\\/*] | ?:[\\/]*)
8880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8883 lt_save_MAGIC_CMD="$MAGIC_CMD"
8884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8885 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8886 for ac_dir in $ac_dummy; do
8887 IFS="$lt_save_ifs"
8888 test -z "$ac_dir" && ac_dir=.
8889 if test -f $ac_dir/file; then
8890 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8891 if test -n "$file_magic_test_file"; then
8892 case $deplibs_check_method in
8893 "file_magic "*)
8894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8897 $EGREP "$file_magic_regex" > /dev/null; then
8899 else
8900 cat <<_LT_EOF 1>&2
8902 *** Warning: the command libtool uses to detect shared libraries,
8903 *** $file_magic_cmd, produces output that libtool cannot recognize.
8904 *** The result is that libtool may fail to recognize shared libraries
8905 *** as such. This will affect the creation of libtool libraries that
8906 *** depend on shared libraries, but programs linked with such libtool
8907 *** libraries will work regardless of this problem. Nevertheless, you
8908 *** may want to report the problem to your system manager and/or to
8909 *** bug-libtool@gnu.org
8911 _LT_EOF
8912 fi ;;
8913 esac
8915 break
8917 done
8918 IFS="$lt_save_ifs"
8919 MAGIC_CMD="$lt_save_MAGIC_CMD"
8921 esac
8924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8925 if test -n "$MAGIC_CMD"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8927 $as_echo "$MAGIC_CMD" >&6; }
8928 else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8934 else
8935 MAGIC_CMD=:
8941 esac
8943 # Use C for the default configuration in the libtool script
8945 lt_save_CC="$CC"
8946 ac_ext=c
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8953 # Source file extension for C test sources.
8954 ac_ext=c
8956 # Object file extension for compiled C test sources.
8957 objext=o
8958 objext=$objext
8960 # Code to be used in simple compile tests
8961 lt_simple_compile_test_code="int some_variable = 0;"
8963 # Code to be used in simple link tests
8964 lt_simple_link_test_code='int main(){return(0);}'
8972 # If no C compiler was specified, use CC.
8973 LTCC=${LTCC-"$CC"}
8975 # If no C compiler flags were specified, use CFLAGS.
8976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8978 # Allow CC to be a program name with arguments.
8979 compiler=$CC
8981 # Save the default compiler, since it gets overwritten when the other
8982 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8983 compiler_DEFAULT=$CC
8985 # save warnings/boilerplate of simple test code
8986 ac_outfile=conftest.$ac_objext
8987 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8989 _lt_compiler_boilerplate=`cat conftest.err`
8990 $RM conftest*
8992 ac_outfile=conftest.$ac_objext
8993 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8995 _lt_linker_boilerplate=`cat conftest.err`
8996 $RM -r conftest*
8999 ## CAVEAT EMPTOR:
9000 ## There is no encapsulation within the following macros, do not change
9001 ## the running order or otherwise move them around unless you know exactly
9002 ## what you are doing...
9003 if test -n "$compiler"; then
9005 lt_prog_compiler_no_builtin_flag=
9007 if test "$GCC" = yes; then
9008 case $cc_basename in
9009 nvcc*)
9010 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9012 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9013 esac
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9016 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9017 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 lt_cv_prog_compiler_rtti_exceptions=no
9021 ac_outfile=conftest.$ac_objext
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023 lt_compiler_flag="-fno-rtti -fno-exceptions"
9024 # Insert the option either (1) after the last *FLAGS variable, or
9025 # (2) before a word containing "conftest.", or (3) at the end.
9026 # Note that $ac_compile itself does not contain backslashes and begins
9027 # with a dollar sign (not a hyphen), so the echo should work correctly.
9028 # The option is referenced via a variable to avoid confusing sed.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>conftest.err)
9035 ac_status=$?
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s "$ac_outfile"; then
9039 # The compiler can only warn and ignore the option if not recognized
9040 # So say no if there are warnings other than the usual output.
9041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_rtti_exceptions=yes
9047 $RM conftest*
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9051 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9053 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9054 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9055 else
9066 lt_prog_compiler_wl=
9067 lt_prog_compiler_pic=
9068 lt_prog_compiler_static=
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9071 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9073 if test "$GCC" = yes; then
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_static='-static'
9077 case $host_os in
9078 aix*)
9079 # All AIX code is PIC.
9080 if test "$host_cpu" = ia64; then
9081 # AIX 5 now supports IA64 processor
9082 lt_prog_compiler_static='-Bstatic'
9084 lt_prog_compiler_pic='-fPIC'
9087 amigaos*)
9088 case $host_cpu in
9089 powerpc)
9090 # see comment about AmigaOS4 .so support
9091 lt_prog_compiler_pic='-fPIC'
9093 m68k)
9094 # FIXME: we need at least 68020 code to build shared libraries, but
9095 # adding the `-m68020' flag to GCC prevents building anything better,
9096 # like `-m68040'.
9097 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9099 esac
9102 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9103 # PIC is the default for these OSes.
9106 mingw* | cygwin* | pw32* | os2* | cegcc*)
9107 # This hack is so that the source file can tell whether it is being
9108 # built for inclusion in a dll (and should export symbols for example).
9109 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9110 # (--disable-auto-import) libraries
9111 lt_prog_compiler_pic='-DDLL_EXPORT'
9114 darwin* | rhapsody*)
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 lt_prog_compiler_pic='-fno-common'
9120 haiku*)
9121 # PIC is the default for Haiku.
9122 # The "-static" flag exists, but is broken.
9123 lt_prog_compiler_static=
9126 hpux*)
9127 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9128 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9129 # sets the default TLS model and affects inlining.
9130 case $host_cpu in
9131 hppa*64*)
9132 # +Z the default
9135 lt_prog_compiler_pic='-fPIC'
9137 esac
9140 interix[3-9]*)
9141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9142 # Instead, we relocate shared libraries at runtime.
9145 msdosdjgpp*)
9146 # Just because we use GCC doesn't mean we suddenly get shared libraries
9147 # on systems that don't support them.
9148 lt_prog_compiler_can_build_shared=no
9149 enable_shared=no
9152 *nto* | *qnx*)
9153 # QNX uses GNU C++, but need to define -shared option too, otherwise
9154 # it will coredump.
9155 lt_prog_compiler_pic='-fPIC -shared'
9158 sysv4*MP*)
9159 if test -d /usr/nec; then
9160 lt_prog_compiler_pic=-Kconform_pic
9165 lt_prog_compiler_pic='-fPIC'
9167 esac
9169 case $cc_basename in
9170 nvcc*) # Cuda Compiler Driver 2.2
9171 lt_prog_compiler_wl='-Xlinker '
9172 lt_prog_compiler_pic='-Xcompiler -fPIC'
9174 esac
9175 else
9176 # PORTME Check for flag to pass linker flags through the system compiler.
9177 case $host_os in
9178 aix*)
9179 lt_prog_compiler_wl='-Wl,'
9180 if test "$host_cpu" = ia64; then
9181 # AIX 5 now supports IA64 processor
9182 lt_prog_compiler_static='-Bstatic'
9183 else
9184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9188 mingw* | cygwin* | pw32* | os2* | cegcc*)
9189 # This hack is so that the source file can tell whether it is being
9190 # built for inclusion in a dll (and should export symbols for example).
9191 lt_prog_compiler_pic='-DDLL_EXPORT'
9194 hpux9* | hpux10* | hpux11*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197 # not for PA HP-UX.
9198 case $host_cpu in
9199 hppa*64*|ia64*)
9200 # +Z the default
9203 lt_prog_compiler_pic='+Z'
9205 esac
9206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9207 lt_prog_compiler_static='${wl}-a ${wl}archive'
9210 irix5* | irix6* | nonstopux*)
9211 lt_prog_compiler_wl='-Wl,'
9212 # PIC (with -KPIC) is the default.
9213 lt_prog_compiler_static='-non_shared'
9216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9217 case $cc_basename in
9218 # old Intel for x86_64 which still supported -KPIC.
9219 ecc*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-static'
9224 # icc used to be incompatible with GCC.
9225 # ICC 10 doesn't accept -KPIC any more.
9226 icc* | ifort*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-fPIC'
9229 lt_prog_compiler_static='-static'
9231 # Lahey Fortran 8.1.
9232 lf95*)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='--shared'
9235 lt_prog_compiler_static='--static'
9237 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9238 # Portland Group compilers (*not* the Pentium gcc compiler,
9239 # which looks to be a dead project)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-fpic'
9242 lt_prog_compiler_static='-Bstatic'
9244 ccc*)
9245 lt_prog_compiler_wl='-Wl,'
9246 # All Alpha code is PIC.
9247 lt_prog_compiler_static='-non_shared'
9249 xl* | bgxl* | bgf* | mpixl*)
9250 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-qpic'
9253 lt_prog_compiler_static='-qstaticlink'
9256 case `$CC -V 2>&1 | sed 5q` in
9257 *Sun\ F* | *Sun*Fortran*)
9258 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 lt_prog_compiler_wl=''
9263 *Sun\ C*)
9264 # Sun C 5.9
9265 lt_prog_compiler_pic='-KPIC'
9266 lt_prog_compiler_static='-Bstatic'
9267 lt_prog_compiler_wl='-Wl,'
9269 esac
9271 esac
9274 newsos6)
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9279 *nto* | *qnx*)
9280 # QNX uses GNU C++, but need to define -shared option too, otherwise
9281 # it will coredump.
9282 lt_prog_compiler_pic='-fPIC -shared'
9285 osf3* | osf4* | osf5*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All OSF/1 code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9291 rdos*)
9292 lt_prog_compiler_static='-non_shared'
9295 solaris*)
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 case $cc_basename in
9299 f77* | f90* | f95*)
9300 lt_prog_compiler_wl='-Qoption ld ';;
9302 lt_prog_compiler_wl='-Wl,';;
9303 esac
9306 sunos4*)
9307 lt_prog_compiler_wl='-Qoption ld '
9308 lt_prog_compiler_pic='-PIC'
9309 lt_prog_compiler_static='-Bstatic'
9312 sysv4 | sysv4.2uw2* | sysv4.3*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9318 sysv4*MP*)
9319 if test -d /usr/nec ;then
9320 lt_prog_compiler_pic='-Kconform_pic'
9321 lt_prog_compiler_static='-Bstatic'
9325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9331 unicos*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_can_build_shared=no
9336 uts4*)
9337 lt_prog_compiler_pic='-pic'
9338 lt_prog_compiler_static='-Bstatic'
9342 lt_prog_compiler_can_build_shared=no
9344 esac
9347 case $host_os in
9348 # For platforms which do not support PIC, -DPIC is meaningless:
9349 *djgpp*)
9350 lt_prog_compiler_pic=
9353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9355 esac
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9357 $as_echo "$lt_prog_compiler_pic" >&6; }
9365 # Check to make sure the PIC flag actually works.
9367 if test -n "$lt_prog_compiler_pic"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9369 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9370 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 lt_cv_prog_compiler_pic_works=no
9374 ac_outfile=conftest.$ac_objext
9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9377 # Insert the option either (1) after the last *FLAGS variable, or
9378 # (2) before a word containing "conftest.", or (3) at the end.
9379 # Note that $ac_compile itself does not contain backslashes and begins
9380 # with a dollar sign (not a hyphen), so the echo should work correctly.
9381 # The option is referenced via a variable to avoid confusing sed.
9382 lt_compile=`echo "$ac_compile" | $SED \
9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385 -e 's:$: $lt_compiler_flag:'`
9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387 (eval "$lt_compile" 2>conftest.err)
9388 ac_status=$?
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 if (exit $ac_status) && test -s "$ac_outfile"; then
9392 # The compiler can only warn and ignore the option if not recognized
9393 # So say no if there are warnings other than the usual output.
9394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9397 lt_cv_prog_compiler_pic_works=yes
9400 $RM conftest*
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9404 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9406 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9407 case $lt_prog_compiler_pic in
9408 "" | " "*) ;;
9409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9410 esac
9411 else
9412 lt_prog_compiler_pic=
9413 lt_prog_compiler_can_build_shared=no
9424 # Check to make sure the static flag actually works.
9426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9429 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 lt_cv_prog_compiler_static_works=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler_static_works=yes
9447 else
9448 lt_cv_prog_compiler_static_works=yes
9451 $RM -r conftest*
9452 LDFLAGS="$save_LDFLAGS"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9456 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9458 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9460 else
9461 lt_prog_compiler_static=
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9471 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9472 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler_c_o=no
9476 $RM -r conftest 2>/dev/null
9477 mkdir conftest
9478 cd conftest
9479 mkdir out
9480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9482 lt_compiler_flag="-o out/conftest2.$ac_objext"
9483 # Insert the option either (1) after the last *FLAGS variable, or
9484 # (2) before a word containing "conftest.", or (3) at the end.
9485 # Note that $ac_compile itself does not contain backslashes and begins
9486 # with a dollar sign (not a hyphen), so the echo should work correctly.
9487 lt_compile=`echo "$ac_compile" | $SED \
9488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490 -e 's:$: $lt_compiler_flag:'`
9491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492 (eval "$lt_compile" 2>out/conftest.err)
9493 ac_status=$?
9494 cat out/conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497 then
9498 # The compiler can only warn and ignore the option if not recognized
9499 # So say no if there are warnings
9500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9503 lt_cv_prog_compiler_c_o=yes
9506 chmod u+w . 2>&5
9507 $RM conftest*
9508 # SGI C++ compiler will create directory out/ii_files/ for
9509 # template instantiation
9510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9511 $RM out/* && rmdir out
9512 cd ..
9513 $RM -r conftest
9514 $RM conftest*
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9518 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9526 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9527 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 lt_cv_prog_compiler_c_o=no
9531 $RM -r conftest 2>/dev/null
9532 mkdir conftest
9533 cd conftest
9534 mkdir out
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9537 lt_compiler_flag="-o out/conftest2.$ac_objext"
9538 # Insert the option either (1) after the last *FLAGS variable, or
9539 # (2) before a word containing "conftest.", or (3) at the end.
9540 # Note that $ac_compile itself does not contain backslashes and begins
9541 # with a dollar sign (not a hyphen), so the echo should work correctly.
9542 lt_compile=`echo "$ac_compile" | $SED \
9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545 -e 's:$: $lt_compiler_flag:'`
9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547 (eval "$lt_compile" 2>out/conftest.err)
9548 ac_status=$?
9549 cat out/conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9552 then
9553 # The compiler can only warn and ignore the option if not recognized
9554 # So say no if there are warnings
9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9558 lt_cv_prog_compiler_c_o=yes
9561 chmod u+w . 2>&5
9562 $RM conftest*
9563 # SGI C++ compiler will create directory out/ii_files/ for
9564 # template instantiation
9565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9566 $RM out/* && rmdir out
9567 cd ..
9568 $RM -r conftest
9569 $RM conftest*
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9573 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9578 hard_links="nottested"
9579 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9580 # do not overwrite the value of need_locks provided by the user
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9582 $as_echo_n "checking if we can lock with hard links... " >&6; }
9583 hard_links=yes
9584 $RM conftest*
9585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9586 touch conftest.a
9587 ln conftest.a conftest.b 2>&5 || hard_links=no
9588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9590 $as_echo "$hard_links" >&6; }
9591 if test "$hard_links" = no; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9593 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9594 need_locks=warn
9596 else
9597 need_locks=no
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9608 runpath_var=
9609 allow_undefined_flag=
9610 always_export_symbols=no
9611 archive_cmds=
9612 archive_expsym_cmds=
9613 compiler_needs_object=no
9614 enable_shared_with_static_runtimes=no
9615 export_dynamic_flag_spec=
9616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9617 hardcode_automatic=no
9618 hardcode_direct=no
9619 hardcode_direct_absolute=no
9620 hardcode_libdir_flag_spec=
9621 hardcode_libdir_flag_spec_ld=
9622 hardcode_libdir_separator=
9623 hardcode_minus_L=no
9624 hardcode_shlibpath_var=unsupported
9625 inherit_rpath=no
9626 link_all_deplibs=unknown
9627 module_cmds=
9628 module_expsym_cmds=
9629 old_archive_from_new_cmds=
9630 old_archive_from_expsyms_cmds=
9631 thread_safe_flag_spec=
9632 whole_archive_flag_spec=
9633 # include_expsyms should be a list of space-separated symbols to be *always*
9634 # included in the symbol list
9635 include_expsyms=
9636 # exclude_expsyms can be an extended regexp of symbols to exclude
9637 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9639 # as well as any symbol that contains `d'.
9640 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9642 # platforms (ab)use it in PIC code, but their linkers get confused if
9643 # the symbol is explicitly referenced. Since portable code cannot
9644 # rely on this symbol name, it's probably fine to never include it in
9645 # preloaded symbol tables.
9646 # Exclude shared library initialization/finalization symbols.
9647 extract_expsyms_cmds=
9649 case $host_os in
9650 cygwin* | mingw* | pw32* | cegcc*)
9651 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9652 # When not using gcc, we currently assume that we are using
9653 # Microsoft Visual C++.
9654 if test "$GCC" != yes; then
9655 with_gnu_ld=no
9658 interix*)
9659 # we just hope/assume this is gcc and not c89 (= MSVC++)
9660 with_gnu_ld=yes
9662 openbsd*)
9663 with_gnu_ld=no
9665 esac
9667 ld_shlibs=yes
9669 # On some targets, GNU ld is compatible enough with the native linker
9670 # that we're better off using the native interface for both.
9671 lt_use_gnu_ld_interface=no
9672 if test "$with_gnu_ld" = yes; then
9673 case $host_os in
9674 aix*)
9675 # The AIX port of GNU ld has always aspired to compatibility
9676 # with the native linker. However, as the warning in the GNU ld
9677 # block says, versions before 2.19.5* couldn't really create working
9678 # shared libraries, regardless of the interface used.
9679 case `$LD -v 2>&1` in
9680 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9681 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9682 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9684 lt_use_gnu_ld_interface=yes
9686 esac
9689 lt_use_gnu_ld_interface=yes
9691 esac
9694 if test "$lt_use_gnu_ld_interface" = yes; then
9695 # If archive_cmds runs LD, not CC, wlarc should be empty
9696 wlarc='${wl}'
9698 # Set some defaults for GNU ld with shared library support. These
9699 # are reset later if shared libraries are not supported. Putting them
9700 # here allows them to be overridden if necessary.
9701 runpath_var=LD_RUN_PATH
9702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703 export_dynamic_flag_spec='${wl}--export-dynamic'
9704 # ancient GNU ld didn't support --whole-archive et. al.
9705 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9706 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9707 else
9708 whole_archive_flag_spec=
9710 supports_anon_versioning=no
9711 case `$LD -v 2>&1` in
9712 *GNU\ gold*) supports_anon_versioning=yes ;;
9713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9716 *\ 2.11.*) ;; # other 2.11 versions
9717 *) supports_anon_versioning=yes ;;
9718 esac
9720 # See if GNU ld supports shared libraries.
9721 case $host_os in
9722 aix[3-9]*)
9723 # On AIX/PPC, the GNU linker is very broken
9724 if test "$host_cpu" != ia64; then
9725 ld_shlibs=no
9726 cat <<_LT_EOF 1>&2
9728 *** Warning: the GNU linker, at least up to release 2.19, is reported
9729 *** to be unable to reliably create shared libraries on AIX.
9730 *** Therefore, libtool is disabling shared libraries support. If you
9731 *** really care for shared libraries, you may want to install binutils
9732 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9733 *** You will then need to restart the configuration process.
9735 _LT_EOF
9739 amigaos*)
9740 case $host_cpu in
9741 powerpc)
9742 # see comment about AmigaOS4 .so support
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744 archive_expsym_cmds=''
9746 m68k)
9747 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)'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_minus_L=yes
9751 esac
9754 beos*)
9755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9756 allow_undefined_flag=unsupported
9757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9758 # support --undefined. This deserves some investigation. FIXME
9759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760 else
9761 ld_shlibs=no
9765 cygwin* | mingw* | pw32* | cegcc*)
9766 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9767 # as there is no search path for DLLs.
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 export_dynamic_flag_spec='${wl}--export-all-symbols'
9770 allow_undefined_flag=unsupported
9771 always_export_symbols=no
9772 enable_shared_with_static_runtimes=yes
9773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9775 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9777 # If the export-symbols file already is a .def file (1st line
9778 # is EXPORTS), use it as is; otherwise, prepend...
9779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780 cp $export_symbols $output_objdir/$soname.def;
9781 else
9782 echo EXPORTS > $output_objdir/$soname.def;
9783 cat $export_symbols >> $output_objdir/$soname.def;
9785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786 else
9787 ld_shlibs=no
9791 haiku*)
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 link_all_deplibs=yes
9796 interix[3-9]*)
9797 hardcode_direct=no
9798 hardcode_shlibpath_var=no
9799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800 export_dynamic_flag_spec='${wl}-E'
9801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9802 # Instead, shared libraries are loaded at an image base (0x10000000 by
9803 # default) and relocated if they conflict, which is a slow very memory
9804 # consuming and fragmenting process. To avoid this, we pick a random,
9805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9808 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'
9811 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9812 tmp_diet=no
9813 if test "$host_os" = linux-dietlibc; then
9814 case $cc_basename in
9815 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9816 esac
9818 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9819 && test "$tmp_diet" = no
9820 then
9821 tmp_addflag=' $pic_flag'
9822 tmp_sharedflag='-shared'
9823 case $cc_basename,$host_cpu in
9824 pgcc*) # Portland Group C compiler
9825 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'
9826 tmp_addflag=' $pic_flag'
9828 pgf77* | pgf90* | pgf95* | pgfortran*)
9829 # Portland Group f77 and f90 compilers
9830 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'
9831 tmp_addflag=' $pic_flag -Mnomain' ;;
9832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9833 tmp_addflag=' -i_dynamic' ;;
9834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9835 tmp_addflag=' -i_dynamic -nofor_main' ;;
9836 ifc* | ifort*) # Intel Fortran compiler
9837 tmp_addflag=' -nofor_main' ;;
9838 lf95*) # Lahey Fortran 8.1
9839 whole_archive_flag_spec=
9840 tmp_sharedflag='--shared' ;;
9841 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9842 tmp_sharedflag='-qmkshrobj'
9843 tmp_addflag= ;;
9844 nvcc*) # Cuda Compiler Driver 2.2
9845 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'
9846 compiler_needs_object=yes
9848 esac
9849 case `$CC -V 2>&1 | sed 5q` in
9850 *Sun\ C*) # Sun C 5.9
9851 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'
9852 compiler_needs_object=yes
9853 tmp_sharedflag='-G' ;;
9854 *Sun\ F*) # Sun Fortran 8.3
9855 tmp_sharedflag='-G' ;;
9856 esac
9857 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859 if test "x$supports_anon_versioning" = xyes; then
9860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9862 echo "local: *; };" >> $output_objdir/$libname.ver~
9863 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9866 case $cc_basename in
9867 xlf* | bgf* | bgxlf* | mpixlf*)
9868 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9869 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9870 hardcode_libdir_flag_spec=
9871 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9872 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9873 if test "x$supports_anon_versioning" = xyes; then
9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876 echo "local: *; };" >> $output_objdir/$libname.ver~
9877 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9880 esac
9881 else
9882 ld_shlibs=no
9886 netbsd*)
9887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9888 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9889 wlarc=
9890 else
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9896 solaris*)
9897 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9898 ld_shlibs=no
9899 cat <<_LT_EOF 1>&2
9901 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9902 *** create shared libraries on Solaris systems. Therefore, libtool
9903 *** is disabling shared libraries support. We urge you to upgrade GNU
9904 *** binutils to release 2.9.1 or newer. Another option is to modify
9905 *** your PATH or compiler configuration so that the native linker is
9906 *** used, and then restart.
9908 _LT_EOF
9909 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912 else
9913 ld_shlibs=no
9917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9918 case `$LD -v 2>&1` in
9919 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9920 ld_shlibs=no
9921 cat <<_LT_EOF 1>&2
9923 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9924 *** reliably create shared libraries on SCO systems. Therefore, libtool
9925 *** is disabling shared libraries support. We urge you to upgrade GNU
9926 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9927 *** your PATH or compiler configuration so that the native linker is
9928 *** used, and then restart.
9930 _LT_EOF
9933 # For security reasons, it is highly recommended that you always
9934 # use absolute paths for naming shared libraries, and exclude the
9935 # DT_RUNPATH tag from executables and libraries. But doing so
9936 # requires that you compile everything twice, which is a pain.
9937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9941 else
9942 ld_shlibs=no
9945 esac
9948 sunos4*)
9949 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950 wlarc=
9951 hardcode_direct=yes
9952 hardcode_shlibpath_var=no
9956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 else
9960 ld_shlibs=no
9963 esac
9965 if test "$ld_shlibs" = no; then
9966 runpath_var=
9967 hardcode_libdir_flag_spec=
9968 export_dynamic_flag_spec=
9969 whole_archive_flag_spec=
9971 else
9972 # PORTME fill in a description of your system's linker (not GNU ld)
9973 case $host_os in
9974 aix3*)
9975 allow_undefined_flag=unsupported
9976 always_export_symbols=yes
9977 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'
9978 # Note: this linker hardcodes the directories in LIBPATH if there
9979 # are no directories specified by -L.
9980 hardcode_minus_L=yes
9981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9982 # Neither direct hardcoding nor static linking is supported with a
9983 # broken collect2.
9984 hardcode_direct=unsupported
9988 aix[4-9]*)
9989 if test "$host_cpu" = ia64; then
9990 # On IA64, the linker does run time linking by default, so we don't
9991 # have to do anything special.
9992 aix_use_runtimelinking=no
9993 exp_sym_flag='-Bexport'
9994 no_entry_flag=""
9995 else
9996 # If we're using GNU nm, then we don't want the "-C" option.
9997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9998 # Also, AIX nm treats weak defined symbols like other global
9999 # defined symbols, whereas GNU nm marks them as "W".
10000 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10001 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'
10002 else
10003 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10005 aix_use_runtimelinking=no
10007 # Test if we are trying to use run time linking or normal
10008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10009 # need to do runtime linking.
10010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10011 for ld_flag in $LDFLAGS; do
10012 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10013 aix_use_runtimelinking=yes
10014 break
10016 done
10018 esac
10020 exp_sym_flag='-bexport'
10021 no_entry_flag='-bnoentry'
10024 # When large executables or shared objects are built, AIX ld can
10025 # have problems creating the table of contents. If linking a library
10026 # or program results in "error TOC overflow" add -mminimal-toc to
10027 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10028 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10030 archive_cmds=''
10031 hardcode_direct=yes
10032 hardcode_direct_absolute=yes
10033 hardcode_libdir_separator=':'
10034 link_all_deplibs=yes
10035 file_list_spec='${wl}-f,'
10037 if test "$GCC" = yes; then
10038 case $host_os in aix4.[012]|aix4.[012].*)
10039 # We only want to do this on AIX 4.2 and lower, the check
10040 # below for broken collect2 doesn't work under 4.3+
10041 collect2name=`${CC} -print-prog-name=collect2`
10042 if test -f "$collect2name" &&
10043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10044 then
10045 # We have reworked collect2
10047 else
10048 # We have old collect2
10049 hardcode_direct=unsupported
10050 # It fails to find uninstalled libraries when the uninstalled
10051 # path is not listed in the libpath. Setting hardcode_minus_L
10052 # to unsupported forces relinking
10053 hardcode_minus_L=yes
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_libdir_separator=
10058 esac
10059 shared_flag='-shared'
10060 if test "$aix_use_runtimelinking" = yes; then
10061 shared_flag="$shared_flag "'${wl}-G'
10063 else
10064 # not using gcc
10065 if test "$host_cpu" = ia64; then
10066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10067 # chokes on -Wl,-G. The following line is correct:
10068 shared_flag='-G'
10069 else
10070 if test "$aix_use_runtimelinking" = yes; then
10071 shared_flag='${wl}-G'
10072 else
10073 shared_flag='${wl}-bM:SRE'
10078 export_dynamic_flag_spec='${wl}-bexpall'
10079 # It seems that -bexpall does not export symbols beginning with
10080 # underscore (_), so it is better to generate a list of symbols to export.
10081 always_export_symbols=yes
10082 if test "$aix_use_runtimelinking" = yes; then
10083 # Warning - without using the other runtime loading flags (-brtl),
10084 # -berok will link without error, but may produce a broken library.
10085 allow_undefined_flag='-berok'
10086 # Determine the default libpath from the value encoded in an
10087 # empty executable.
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10092 main ()
10096 return 0;
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10101 lt_aix_libpath_sed='
10102 /Import File Strings/,/^$/ {
10103 /^0/ {
10104 s/^0 *\(.*\)$/\1/
10108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10109 # Check for a 64-bit object if we didn't find anything.
10110 if test -z "$aix_libpath"; then
10111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10119 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"
10120 else
10121 if test "$host_cpu" = ia64; then
10122 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10123 allow_undefined_flag="-z nodefs"
10124 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"
10125 else
10126 # Determine the default libpath from the value encoded in an
10127 # empty executable.
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10132 main ()
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\(.*\)$/\1/
10148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$aix_libpath"; then
10151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159 # Warning - without using the other run time loading flags,
10160 # -berok will link without error, but may produce a broken library.
10161 no_undefined_flag=' ${wl}-bernotok'
10162 allow_undefined_flag=' ${wl}-berok'
10163 if test "$with_gnu_ld" = yes; then
10164 # We only use this code for GNU lds that support --whole-archive.
10165 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10166 else
10167 # Exported symbols can be pulled into shared objects from archives
10168 whole_archive_flag_spec='$convenience'
10170 archive_cmds_need_lc=yes
10171 # This is similar to how AIX traditionally builds its shared libraries.
10172 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'
10177 amigaos*)
10178 case $host_cpu in
10179 powerpc)
10180 # see comment about AmigaOS4 .so support
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182 archive_expsym_cmds=''
10184 m68k)
10185 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)'
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_minus_L=yes
10189 esac
10192 bsdi[45]*)
10193 export_dynamic_flag_spec=-rdynamic
10196 cygwin* | mingw* | pw32* | cegcc*)
10197 # When not using gcc, we currently assume that we are using
10198 # Microsoft Visual C++.
10199 # hardcode_libdir_flag_spec is actually meaningless, as there is
10200 # no search path for DLLs.
10201 hardcode_libdir_flag_spec=' '
10202 allow_undefined_flag=unsupported
10203 # Tell ltmain to make .lib files, not .a files.
10204 libext=lib
10205 # Tell ltmain to make .dll files, not .so files.
10206 shrext_cmds=".dll"
10207 # FIXME: Setting linknames here is a bad hack.
10208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10209 # The linker will automatically build a .lib file if we build a DLL.
10210 old_archive_from_new_cmds='true'
10211 # FIXME: Should let the user specify the lib program.
10212 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10213 fix_srcfile_path='`cygpath -w "$srcfile"`'
10214 enable_shared_with_static_runtimes=yes
10217 darwin* | rhapsody*)
10220 archive_cmds_need_lc=no
10221 hardcode_direct=no
10222 hardcode_automatic=yes
10223 hardcode_shlibpath_var=unsupported
10224 if test "$lt_cv_ld_force_load" = "yes"; then
10225 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\"`'
10226 else
10227 whole_archive_flag_spec=''
10229 link_all_deplibs=yes
10230 allow_undefined_flag="$_lt_dar_allow_undefined"
10231 case $cc_basename in
10232 ifort*) _lt_dar_can_shared=yes ;;
10233 *) _lt_dar_can_shared=$GCC ;;
10234 esac
10235 if test "$_lt_dar_can_shared" = "yes"; then
10236 output_verbose_link_cmd=func_echo_all
10237 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10238 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10239 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}"
10240 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}"
10242 else
10243 ld_shlibs=no
10248 dgux*)
10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_libdir_flag_spec='-L$libdir'
10251 hardcode_shlibpath_var=no
10254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255 # support. Future versions do this automatically, but an explicit c++rt0.o
10256 # does not break anything, and helps significantly (at the cost of a little
10257 # extra space).
10258 freebsd2.2*)
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_direct=yes
10262 hardcode_shlibpath_var=no
10265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10266 freebsd2.*)
10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes
10269 hardcode_minus_L=yes
10270 hardcode_shlibpath_var=no
10273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274 freebsd* | dragonfly*)
10275 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10276 hardcode_libdir_flag_spec='-R$libdir'
10277 hardcode_direct=yes
10278 hardcode_shlibpath_var=no
10281 hpux9*)
10282 if test "$GCC" = yes; then
10283 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'
10284 else
10285 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'
10287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288 hardcode_libdir_separator=:
10289 hardcode_direct=yes
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10294 export_dynamic_flag_spec='${wl}-E'
10297 hpux10*)
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300 else
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10303 if test "$with_gnu_ld" = no; then
10304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305 hardcode_libdir_flag_spec_ld='+b $libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308 hardcode_direct_absolute=yes
10309 export_dynamic_flag_spec='${wl}-E'
10310 # hardcode_minus_L: Not really in the search PATH,
10311 # but as the default location of the library.
10312 hardcode_minus_L=yes
10316 hpux11*)
10317 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10318 case $host_cpu in
10319 hppa*64*)
10320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 ia64*)
10323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10328 esac
10329 else
10330 case $host_cpu in
10331 hppa*64*)
10332 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 ia64*)
10335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10339 # Older versions of the 11.00 compiler do not understand -b yet
10340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342 $as_echo_n "checking if $CC understands -b... " >&6; }
10343 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 lt_cv_prog_compiler__b=no
10347 save_LDFLAGS="$LDFLAGS"
10348 LDFLAGS="$LDFLAGS -b"
10349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351 # The linker can only warn and ignore the option if not recognized
10352 # So say no if there are warnings
10353 if test -s conftest.err; then
10354 # Append any errors to the config.log.
10355 cat conftest.err 1>&5
10356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358 if diff conftest.exp conftest.er2 >/dev/null; then
10359 lt_cv_prog_compiler__b=yes
10361 else
10362 lt_cv_prog_compiler__b=yes
10365 $RM -r conftest*
10366 LDFLAGS="$save_LDFLAGS"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10372 if test x"$lt_cv_prog_compiler__b" = xyes; then
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 else
10375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10379 esac
10381 if test "$with_gnu_ld" = no; then
10382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383 hardcode_libdir_separator=:
10385 case $host_cpu in
10386 hppa*64*|ia64*)
10387 hardcode_direct=no
10388 hardcode_shlibpath_var=no
10391 hardcode_direct=yes
10392 hardcode_direct_absolute=yes
10393 export_dynamic_flag_spec='${wl}-E'
10395 # hardcode_minus_L: Not really in the search PATH,
10396 # but as the default location of the library.
10397 hardcode_minus_L=yes
10399 esac
10403 irix5* | irix6* | nonstopux*)
10404 if test "$GCC" = yes; then
10405 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'
10406 # Try to use the -exported_symbol ld option, if it does not
10407 # work, assume that -exports_file does not work either and
10408 # implicitly export all symbols.
10409 save_LDFLAGS="$LDFLAGS"
10410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 int foo(void) {}
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416 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'
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LDFLAGS="$save_LDFLAGS"
10422 else
10423 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'
10424 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'
10426 archive_cmds_need_lc='no'
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator=:
10429 inherit_rpath=yes
10430 link_all_deplibs=yes
10433 netbsd*)
10434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10436 else
10437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10439 hardcode_libdir_flag_spec='-R$libdir'
10440 hardcode_direct=yes
10441 hardcode_shlibpath_var=no
10444 newsos6)
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_direct=yes
10447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_shlibpath_var=no
10452 *nto* | *qnx*)
10455 openbsd*)
10456 if test -f /usr/libexec/ld.so; then
10457 hardcode_direct=yes
10458 hardcode_shlibpath_var=no
10459 hardcode_direct_absolute=yes
10460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464 export_dynamic_flag_spec='${wl}-E'
10465 else
10466 case $host_os in
10467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-R$libdir'
10472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10475 esac
10477 else
10478 ld_shlibs=no
10482 os2*)
10483 hardcode_libdir_flag_spec='-L$libdir'
10484 hardcode_minus_L=yes
10485 allow_undefined_flag=unsupported
10486 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'
10487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10490 osf3*)
10491 if test "$GCC" = yes; then
10492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10493 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'
10494 else
10495 allow_undefined_flag=' -expect_unresolved \*'
10496 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'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 hardcode_libdir_separator=:
10503 osf4* | osf5*) # as osf3* with the addition of -msym flag
10504 if test "$GCC" = yes; then
10505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506 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'
10507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10508 else
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 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~
10512 $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'
10514 # Both c and cxx compiler support -rpath directly
10515 hardcode_libdir_flag_spec='-rpath $libdir'
10517 archive_cmds_need_lc='no'
10518 hardcode_libdir_separator=:
10521 solaris*)
10522 no_undefined_flag=' -z defs'
10523 if test "$GCC" = yes; then
10524 wlarc='${wl}'
10525 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10528 else
10529 case `$CC -V 2>&1` in
10530 *"Compilers 5.0"*)
10531 wlarc=''
10532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10537 wlarc='${wl}'
10538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10542 esac
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_shlibpath_var=no
10546 case $host_os in
10547 solaris2.[0-5] | solaris2.[0-5].*) ;;
10549 # The compiler driver will combine and reorder linker options,
10550 # but understands `-z linker_flag'. GCC discards it without `$wl',
10551 # but is careful enough not to reorder.
10552 # Supported since Solaris 2.6 (maybe 2.5.1?)
10553 if test "$GCC" = yes; then
10554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10555 else
10556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10559 esac
10560 link_all_deplibs=yes
10563 sunos4*)
10564 if test "x$host_vendor" = xsequent; then
10565 # Use $CC to link under sequent, because it throws in some extra .o
10566 # files that make .init and .fini sections work.
10567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10568 else
10569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_direct=yes
10573 hardcode_minus_L=yes
10574 hardcode_shlibpath_var=no
10577 sysv4)
10578 case $host_vendor in
10579 sni)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes # is this really true???
10583 siemens)
10584 ## LD is ld it makes a PLAMLIB
10585 ## CC just makes a GrossModule.
10586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10587 reload_cmds='$CC -r -o $output$reload_objs'
10588 hardcode_direct=no
10590 motorola)
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10594 esac
10595 runpath_var='LD_RUN_PATH'
10596 hardcode_shlibpath_var=no
10599 sysv4.3*)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_shlibpath_var=no
10602 export_dynamic_flag_spec='-Bexport'
10605 sysv4*MP*)
10606 if test -d /usr/nec; then
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 runpath_var=LD_RUN_PATH
10610 hardcode_runpath_var=yes
10611 ld_shlibs=yes
10615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10616 no_undefined_flag='${wl}-z,text'
10617 archive_cmds_need_lc=no
10618 hardcode_shlibpath_var=no
10619 runpath_var='LD_RUN_PATH'
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 else
10625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 sysv5* | sco3.2v5* | sco5v6*)
10631 # Note: We can NOT use -z defs as we might desire, because we do not
10632 # link with -lc, and that would cause any symbols used from libc to
10633 # always be unresolved, which means just about no library would
10634 # ever link correctly. If we're not using GNU ld we use -z text
10635 # though, which does catch some bad symbols but isn't as heavy-handed
10636 # as -z defs.
10637 no_undefined_flag='${wl}-z,text'
10638 allow_undefined_flag='${wl}-z,nodefs'
10639 archive_cmds_need_lc=no
10640 hardcode_shlibpath_var=no
10641 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10642 hardcode_libdir_separator=':'
10643 link_all_deplibs=yes
10644 export_dynamic_flag_spec='${wl}-Bexport'
10645 runpath_var='LD_RUN_PATH'
10647 if test "$GCC" = yes; then
10648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 else
10651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 uts4*)
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10663 ld_shlibs=no
10665 esac
10667 if test x$host_vendor = xsni; then
10668 case $host in
10669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10670 export_dynamic_flag_spec='${wl}-Blargedynsym'
10672 esac
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10677 $as_echo "$ld_shlibs" >&6; }
10678 test "$ld_shlibs" = no && can_build_shared=no
10680 with_gnu_ld=$with_gnu_ld
10697 # Do we need to explicitly link libc?
10699 case "x$archive_cmds_need_lc" in
10700 x|xyes)
10701 # Assume -lc should be added
10702 archive_cmds_need_lc=yes
10704 if test "$enable_shared" = yes && test "$GCC" = yes; then
10705 case $archive_cmds in
10706 *'~'*)
10707 # FIXME: we may have to deal with multi-command sequences.
10709 '$CC '*)
10710 # Test whether the compiler implicitly links with -lc since on some
10711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10712 # to ld, don't add -lc before -lgcc.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10715 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 $RM conftest*
10719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10722 (eval $ac_compile) 2>&5
10723 ac_status=$?
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; } 2>conftest.err; then
10726 soname=conftest
10727 lib=conftest
10728 libobjs=conftest.$ac_objext
10729 deplibs=
10730 wl=$lt_prog_compiler_wl
10731 pic_flag=$lt_prog_compiler_pic
10732 compiler_flags=-v
10733 linker_flags=-v
10734 verstring=
10735 output_objdir=.
10736 libname=conftest
10737 lt_save_allow_undefined_flag=$allow_undefined_flag
10738 allow_undefined_flag=
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10741 ac_status=$?
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; }
10744 then
10745 lt_cv_archive_cmds_need_lc=no
10746 else
10747 lt_cv_archive_cmds_need_lc=yes
10749 allow_undefined_flag=$lt_save_allow_undefined_flag
10750 else
10751 cat conftest.err 1>&5
10753 $RM conftest*
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10760 esac
10763 esac
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10922 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10924 if test "$GCC" = yes; then
10925 case $host_os in
10926 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10927 *) lt_awk_arg="/^libraries:/" ;;
10928 esac
10929 case $host_os in
10930 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10931 *) lt_sed_strip_eq="s,=/,/,g" ;;
10932 esac
10933 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10934 case $lt_search_path_spec in
10935 *\;*)
10936 # if the path contains ";" then we assume it to be the separator
10937 # otherwise default to the standard path separator (i.e. ":") - it is
10938 # assumed that no part of a normal pathname contains ";" but that should
10939 # okay in the real world where ";" in dirpaths is itself problematic.
10940 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10943 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10945 esac
10946 # Ok, now we have the path, separated by spaces, we can step through it
10947 # and add multilib dir if necessary.
10948 lt_tmp_lt_search_path_spec=
10949 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10950 for lt_sys_path in $lt_search_path_spec; do
10951 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10953 else
10954 test -d "$lt_sys_path" && \
10955 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10957 done
10958 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10959 BEGIN {RS=" "; FS="/|\n";} {
10960 lt_foo="";
10961 lt_count=0;
10962 for (lt_i = NF; lt_i > 0; lt_i--) {
10963 if ($lt_i != "" && $lt_i != ".") {
10964 if ($lt_i == "..") {
10965 lt_count++;
10966 } else {
10967 if (lt_count == 0) {
10968 lt_foo="/" $lt_i lt_foo;
10969 } else {
10970 lt_count--;
10975 if (lt_foo != "") { lt_freq[lt_foo]++; }
10976 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10978 # AWK program above erroneously prepends '/' to C:/dos/paths
10979 # for these hosts.
10980 case $host_os in
10981 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10982 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983 esac
10984 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10985 else
10986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10988 library_names_spec=
10989 libname_spec='lib$name'
10990 soname_spec=
10991 shrext_cmds=".so"
10992 postinstall_cmds=
10993 postuninstall_cmds=
10994 finish_cmds=
10995 finish_eval=
10996 shlibpath_var=
10997 shlibpath_overrides_runpath=unknown
10998 version_type=none
10999 dynamic_linker="$host_os ld.so"
11000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11001 need_lib_prefix=unknown
11002 hardcode_into_libs=no
11004 # when you set need_version to no, make sure it does not cause -set_version
11005 # flags to be left without arguments
11006 need_version=unknown
11008 case $host_os in
11009 aix3*)
11010 version_type=linux
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11012 shlibpath_var=LIBPATH
11014 # AIX 3 has no versioning support, so we append a major version to the name.
11015 soname_spec='${libname}${release}${shared_ext}$major'
11018 aix[4-9]*)
11019 version_type=linux
11020 need_lib_prefix=no
11021 need_version=no
11022 hardcode_into_libs=yes
11023 if test "$host_cpu" = ia64; then
11024 # AIX 5 supports IA64
11025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 else
11028 # With GCC up to 2.95.x, collect2 would create an import file
11029 # for dependence libraries. The import file would start with
11030 # the line `#! .'. This would cause the generated library to
11031 # depend on `.', always an invalid library. This was fixed in
11032 # development snapshots of GCC prior to 3.0.
11033 case $host_os in
11034 aix4 | aix4.[01] | aix4.[01].*)
11035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11036 echo ' yes '
11037 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11039 else
11040 can_build_shared=no
11043 esac
11044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11045 # soname into executable. Probably we can add versioning support to
11046 # collect2, so additional links can be useful in future.
11047 if test "$aix_use_runtimelinking" = yes; then
11048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11049 # instead of lib<name>.a to let people know that these are not
11050 # typical AIX shared libraries.
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 else
11053 # We preserve .a as extension for shared libraries through AIX4.2
11054 # and later when we are not doing run time linking.
11055 library_names_spec='${libname}${release}.a $libname.a'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LIBPATH
11062 amigaos*)
11063 case $host_cpu in
11064 powerpc)
11065 # Since July 2007 AmigaOS4 officially supports .so libraries.
11066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 m68k)
11070 library_names_spec='$libname.ixlibrary $libname.a'
11071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11072 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'
11074 esac
11077 beos*)
11078 library_names_spec='${libname}${shared_ext}'
11079 dynamic_linker="$host_os ld.so"
11080 shlibpath_var=LIBRARY_PATH
11083 bsdi[45]*)
11084 version_type=linux
11085 need_version=no
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11092 # the default ld.so.conf also contains /usr/contrib/lib and
11093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11094 # libtool to hard-code these into programs
11097 cygwin* | mingw* | pw32* | cegcc*)
11098 version_type=windows
11099 shrext_cmds=".dll"
11100 need_version=no
11101 need_lib_prefix=no
11103 case $GCC,$host_os in
11104 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11105 library_names_spec='$libname.dll.a'
11106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107 postinstall_cmds='base_file=`basename \${file}`~
11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11109 dldir=$destdir/`dirname \$dlpath`~
11110 test -d \$dldir || mkdir -p \$dldir~
11111 $install_prog $dir/$dlname \$dldir/$dlname~
11112 chmod a+x \$dldir/$dlname~
11113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11117 dlpath=$dir/\$dldll~
11118 $RM \$dlpath'
11119 shlibpath_overrides_runpath=yes
11121 case $host_os in
11122 cygwin*)
11123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11128 mingw* | cegcc*)
11129 # MinGW DLLs use traditional 'lib' prefix
11130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11132 pw32*)
11133 # pw32 DLLs use 'pw' prefix rather than 'lib'
11134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11136 esac
11140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11142 esac
11143 dynamic_linker='Win32 ld.exe'
11144 # FIXME: first we should search . and the directory the executable is in
11145 shlibpath_var=PATH
11148 darwin* | rhapsody*)
11149 dynamic_linker="$host_os dyld"
11150 version_type=darwin
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11154 soname_spec='${libname}${release}${major}$shared_ext'
11155 shlibpath_overrides_runpath=yes
11156 shlibpath_var=DYLD_LIBRARY_PATH
11157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11159 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11163 dgux*)
11164 version_type=linux
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11172 freebsd* | dragonfly*)
11173 # DragonFly does not have aout. When/if they implement a new
11174 # versioning mechanism, adjust this.
11175 if test -x /usr/bin/objformat; then
11176 objformat=`/usr/bin/objformat`
11177 else
11178 case $host_os in
11179 freebsd[23].*) objformat=aout ;;
11180 *) objformat=elf ;;
11181 esac
11183 version_type=freebsd-$objformat
11184 case $version_type in
11185 freebsd-elf*)
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11187 need_version=no
11188 need_lib_prefix=no
11190 freebsd-*)
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11192 need_version=yes
11194 esac
11195 shlibpath_var=LD_LIBRARY_PATH
11196 case $host_os in
11197 freebsd2.*)
11198 shlibpath_overrides_runpath=yes
11200 freebsd3.[01]* | freebsdelf3.[01]*)
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11209 *) # from 4.6 on, and DragonFly
11210 shlibpath_overrides_runpath=yes
11211 hardcode_into_libs=yes
11213 esac
11216 gnu*)
11217 version_type=linux
11218 need_lib_prefix=no
11219 need_version=no
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 hardcode_into_libs=yes
11226 haiku*)
11227 version_type=linux
11228 need_lib_prefix=no
11229 need_version=no
11230 dynamic_linker="$host_os runtime_loader"
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 shlibpath_var=LIBRARY_PATH
11234 shlibpath_overrides_runpath=yes
11235 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11236 hardcode_into_libs=yes
11239 hpux9* | hpux10* | hpux11*)
11240 # Give a soname corresponding to the major version so that dld.sl refuses to
11241 # link against other versions.
11242 version_type=sunos
11243 need_lib_prefix=no
11244 need_version=no
11245 case $host_cpu in
11246 ia64*)
11247 shrext_cmds='.so'
11248 hardcode_into_libs=yes
11249 dynamic_linker="$host_os dld.so"
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 if test "X$HPUX_IA64_MODE" = X32; then
11255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11256 else
11257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11261 hppa*64*)
11262 shrext_cmds='.sl'
11263 hardcode_into_libs=yes
11264 dynamic_linker="$host_os dld.sl"
11265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11273 shrext_cmds='.sl'
11274 dynamic_linker="$host_os dld.sl"
11275 shlibpath_var=SHLIB_PATH
11276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11280 esac
11281 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11282 postinstall_cmds='chmod 555 $lib'
11283 # or fails outright, so override atomically:
11284 install_override_mode=555
11287 interix[3-9]*)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11299 irix5* | irix6* | nonstopux*)
11300 case $host_os in
11301 nonstopux*) version_type=nonstopux ;;
11303 if test "$lt_cv_prog_gnu_ld" = yes; then
11304 version_type=linux
11305 else
11306 version_type=irix
11307 fi ;;
11308 esac
11309 need_lib_prefix=no
11310 need_version=no
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11313 case $host_os in
11314 irix5* | nonstopux*)
11315 libsuff= shlibsuff=
11318 case $LD in # libtool.m4 will add one of these switches to LD
11319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11320 libsuff= shlibsuff= libmagic=32-bit;;
11321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11322 libsuff=32 shlibsuff=N32 libmagic=N32;;
11323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11325 *) libsuff= shlibsuff= libmagic=never-match;;
11326 esac
11328 esac
11329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11330 shlibpath_overrides_runpath=no
11331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11333 hardcode_into_libs=yes
11336 # No shared lib support for Linux oldld, aout, or coff.
11337 linux*oldld* | linux*aout* | linux*coff*)
11338 dynamic_linker=no
11341 # This must be Linux ELF.
11342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=no
11352 # Some binutils ld are patched to set DT_RUNPATH
11353 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 lt_cv_shlibpath_overrides_runpath=no
11357 save_LDFLAGS=$LDFLAGS
11358 save_libdir=$libdir
11359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11365 main ()
11369 return 0;
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11374 lt_cv_shlibpath_overrides_runpath=yes
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LDFLAGS=$save_LDFLAGS
11380 libdir=$save_libdir
11384 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11386 # This implies no fast_install, which is unacceptable.
11387 # Some rework will be needed to allow for fast_install
11388 # before this can be enabled.
11389 hardcode_into_libs=yes
11391 # Append ld.so.conf contents to the search path
11392 if test -f /etc/ld.so.conf; then
11393 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' ' '`
11394 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11397 # We used to test for /lib/ld.so.1 and disable shared libraries on
11398 # powerpc, because MkLinux only supported shared libraries with the
11399 # GNU dynamic linker. Since this was broken with cross compilers,
11400 # most powerpc-linux boxes support dynamic linking these days and
11401 # people can always --disable-shared, the test was removed, and we
11402 # assume the GNU/Linux dynamic linker is in use.
11403 dynamic_linker='GNU/Linux ld.so'
11406 netbsd*)
11407 version_type=sunos
11408 need_lib_prefix=no
11409 need_version=no
11410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11413 dynamic_linker='NetBSD (a.out) ld.so'
11414 else
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 dynamic_linker='NetBSD ld.elf_so'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11421 hardcode_into_libs=yes
11424 newsos6)
11425 version_type=linux
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=yes
11431 *nto* | *qnx*)
11432 version_type=qnx
11433 need_lib_prefix=no
11434 need_version=no
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 hardcode_into_libs=yes
11440 dynamic_linker='ldqnx.so'
11443 openbsd*)
11444 version_type=sunos
11445 sys_lib_dlsearch_path_spec="/usr/lib"
11446 need_lib_prefix=no
11447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11448 case $host_os in
11449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11450 *) need_version=no ;;
11451 esac
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11456 case $host_os in
11457 openbsd2.[89] | openbsd2.[89].*)
11458 shlibpath_overrides_runpath=no
11461 shlibpath_overrides_runpath=yes
11463 esac
11464 else
11465 shlibpath_overrides_runpath=yes
11469 os2*)
11470 libname_spec='$name'
11471 shrext_cmds=".dll"
11472 need_lib_prefix=no
11473 library_names_spec='$libname${shared_ext} $libname.a'
11474 dynamic_linker='OS/2 ld.exe'
11475 shlibpath_var=LIBPATH
11478 osf3* | osf4* | osf5*)
11479 version_type=osf
11480 need_lib_prefix=no
11481 need_version=no
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11489 rdos*)
11490 dynamic_linker=no
11493 solaris*)
11494 version_type=linux
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11502 # ldd complains unless libraries are executable
11503 postinstall_cmds='chmod +x $lib'
11506 sunos4*)
11507 version_type=sunos
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 if test "$with_gnu_ld" = yes; then
11513 need_lib_prefix=no
11515 need_version=yes
11518 sysv4 | sysv4.3*)
11519 version_type=linux
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 case $host_vendor in
11524 sni)
11525 shlibpath_overrides_runpath=no
11526 need_lib_prefix=no
11527 runpath_var=LD_RUN_PATH
11529 siemens)
11530 need_lib_prefix=no
11532 motorola)
11533 need_lib_prefix=no
11534 need_version=no
11535 shlibpath_overrides_runpath=no
11536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538 esac
11541 sysv4*MP*)
11542 if test -d /usr/nec ;then
11543 version_type=linux
11544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11545 soname_spec='$libname${shared_ext}.$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11551 version_type=freebsd-elf
11552 need_lib_prefix=no
11553 need_version=no
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558 hardcode_into_libs=yes
11559 if test "$with_gnu_ld" = yes; then
11560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11561 else
11562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11563 case $host_os in
11564 sco3.2v5*)
11565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11567 esac
11569 sys_lib_dlsearch_path_spec='/usr/lib'
11572 tpf*)
11573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11574 version_type=linux
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
11583 uts4*)
11584 version_type=linux
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11591 dynamic_linker=no
11593 esac
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11595 $as_echo "$dynamic_linker" >&6; }
11596 test "$dynamic_linker" = no && can_build_shared=no
11598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11599 if test "$GCC" = yes; then
11600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11603 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11604 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11606 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11607 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11702 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11703 hardcode_action=
11704 if test -n "$hardcode_libdir_flag_spec" ||
11705 test -n "$runpath_var" ||
11706 test "X$hardcode_automatic" = "Xyes" ; then
11708 # We can hardcode non-existent directories.
11709 if test "$hardcode_direct" != no &&
11710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11711 # have to relink, otherwise we might link with an installed library
11712 # when we should be linking with a yet-to-be-installed one
11713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11714 test "$hardcode_minus_L" != no; then
11715 # Linking always hardcodes the temporary library directory.
11716 hardcode_action=relink
11717 else
11718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11719 hardcode_action=immediate
11721 else
11722 # We cannot hardcode anything, or else we can only hardcode existing
11723 # directories.
11724 hardcode_action=unsupported
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11727 $as_echo "$hardcode_action" >&6; }
11729 if test "$hardcode_action" = relink ||
11730 test "$inherit_rpath" = yes; then
11731 # Fast installation is not supported
11732 enable_fast_install=no
11733 elif test "$shlibpath_overrides_runpath" = yes ||
11734 test "$enable_shared" = no; then
11735 # Fast installation is not necessary
11736 enable_fast_install=needless
11744 if test "x$enable_dlopen" != xyes; then
11745 enable_dlopen=unknown
11746 enable_dlopen_self=unknown
11747 enable_dlopen_self_static=unknown
11748 else
11749 lt_cv_dlopen=no
11750 lt_cv_dlopen_libs=
11752 case $host_os in
11753 beos*)
11754 lt_cv_dlopen="load_add_on"
11755 lt_cv_dlopen_libs=
11756 lt_cv_dlopen_self=yes
11759 mingw* | pw32* | cegcc*)
11760 lt_cv_dlopen="LoadLibrary"
11761 lt_cv_dlopen_libs=
11764 cygwin*)
11765 lt_cv_dlopen="dlopen"
11766 lt_cv_dlopen_libs=
11769 darwin*)
11770 # if libdl is installed we need to link against it
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-ldl $LIBS"
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11781 /* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 char dlopen ();
11789 main ()
11791 return dlopen ();
11793 return 0;
11795 _ACEOF
11796 if ac_fn_c_try_link "$LINENO"; then :
11797 ac_cv_lib_dl_dlopen=yes
11798 else
11799 ac_cv_lib_dl_dlopen=no
11801 rm -f core conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11807 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11809 else
11811 lt_cv_dlopen="dyld"
11812 lt_cv_dlopen_libs=
11813 lt_cv_dlopen_self=yes
11820 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11821 if test "x$ac_cv_func_shl_load" = x""yes; then :
11822 lt_cv_dlopen="shl_load"
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11825 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-ldld $LIBS"
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char shl_load ();
11842 main ()
11844 return shl_load ();
11846 return 0;
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_dld_shl_load=yes
11851 else
11852 ac_cv_lib_dld_shl_load=no
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11859 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11860 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11862 else
11863 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11864 if test "x$ac_cv_func_dlopen" = x""yes; then :
11865 lt_cv_dlopen="dlopen"
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldl $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char dlopen ();
11885 main ()
11887 return dlopen ();
11889 return 0;
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dl_dlopen=yes
11894 else
11895 ac_cv_lib_dl_dlopen=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11902 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11903 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11907 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11908 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 ac_check_lib_save_LIBS=$LIBS
11912 LIBS="-lsvld $LIBS"
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char dlopen ();
11924 main ()
11926 return dlopen ();
11928 return 0;
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_lib_svld_dlopen=yes
11933 else
11934 ac_cv_lib_svld_dlopen=no
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938 LIBS=$ac_check_lib_save_LIBS
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11942 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11944 else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11946 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11947 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-ldld $LIBS"
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 char dld_link ();
11963 main ()
11965 return dld_link ();
11967 return 0;
11969 _ACEOF
11970 if ac_fn_c_try_link "$LINENO"; then :
11971 ac_cv_lib_dld_dld_link=yes
11972 else
11973 ac_cv_lib_dld_dld_link=no
11975 rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977 LIBS=$ac_check_lib_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11980 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11981 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12001 esac
12003 if test "x$lt_cv_dlopen" != xno; then
12004 enable_dlopen=yes
12005 else
12006 enable_dlopen=no
12009 case $lt_cv_dlopen in
12010 dlopen)
12011 save_CPPFLAGS="$CPPFLAGS"
12012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12014 save_LDFLAGS="$LDFLAGS"
12015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12017 save_LIBS="$LIBS"
12018 LIBS="$lt_cv_dlopen_libs $LIBS"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12021 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12022 if test "${lt_cv_dlopen_self+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 if test "$cross_compiling" = yes; then :
12026 lt_cv_dlopen_self=cross
12027 else
12028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12029 lt_status=$lt_dlunknown
12030 cat > conftest.$ac_ext <<_LT_EOF
12031 #line 12031 "configure"
12032 #include "confdefs.h"
12034 #if HAVE_DLFCN_H
12035 #include <dlfcn.h>
12036 #endif
12038 #include <stdio.h>
12040 #ifdef RTLD_GLOBAL
12041 # define LT_DLGLOBAL RTLD_GLOBAL
12042 #else
12043 # ifdef DL_GLOBAL
12044 # define LT_DLGLOBAL DL_GLOBAL
12045 # else
12046 # define LT_DLGLOBAL 0
12047 # endif
12048 #endif
12050 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12051 find out it does not work in some platform. */
12052 #ifndef LT_DLLAZY_OR_NOW
12053 # ifdef RTLD_LAZY
12054 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12055 # else
12056 # ifdef DL_LAZY
12057 # define LT_DLLAZY_OR_NOW DL_LAZY
12058 # else
12059 # ifdef RTLD_NOW
12060 # define LT_DLLAZY_OR_NOW RTLD_NOW
12061 # else
12062 # ifdef DL_NOW
12063 # define LT_DLLAZY_OR_NOW DL_NOW
12064 # else
12065 # define LT_DLLAZY_OR_NOW 0
12066 # endif
12067 # endif
12068 # endif
12069 # endif
12070 #endif
12072 /* When -fvisbility=hidden is used, assume the code has been annotated
12073 correspondingly for the symbols needed. */
12074 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12075 void fnord () __attribute__((visibility("default")));
12076 #endif
12078 void fnord () { int i=42; }
12079 int main ()
12081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082 int status = $lt_dlunknown;
12084 if (self)
12086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12087 else
12089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12090 else puts (dlerror ());
12092 /* dlclose (self); */
12094 else
12095 puts (dlerror ());
12097 return status;
12099 _LT_EOF
12100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12101 (eval $ac_link) 2>&5
12102 ac_status=$?
12103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12105 (./conftest; exit; ) >&5 2>/dev/null
12106 lt_status=$?
12107 case x$lt_status in
12108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12110 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12111 esac
12112 else :
12113 # compilation failed
12114 lt_cv_dlopen_self=no
12117 rm -fr conftest*
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12122 $as_echo "$lt_cv_dlopen_self" >&6; }
12124 if test "x$lt_cv_dlopen_self" = xyes; then
12125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12127 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12128 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 if test "$cross_compiling" = yes; then :
12132 lt_cv_dlopen_self_static=cross
12133 else
12134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135 lt_status=$lt_dlunknown
12136 cat > conftest.$ac_ext <<_LT_EOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12140 #if HAVE_DLFCN_H
12141 #include <dlfcn.h>
12142 #endif
12144 #include <stdio.h>
12146 #ifdef RTLD_GLOBAL
12147 # define LT_DLGLOBAL RTLD_GLOBAL
12148 #else
12149 # ifdef DL_GLOBAL
12150 # define LT_DLGLOBAL DL_GLOBAL
12151 # else
12152 # define LT_DLGLOBAL 0
12153 # endif
12154 #endif
12156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157 find out it does not work in some platform. */
12158 #ifndef LT_DLLAZY_OR_NOW
12159 # ifdef RTLD_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12161 # else
12162 # ifdef DL_LAZY
12163 # define LT_DLLAZY_OR_NOW DL_LAZY
12164 # else
12165 # ifdef RTLD_NOW
12166 # define LT_DLLAZY_OR_NOW RTLD_NOW
12167 # else
12168 # ifdef DL_NOW
12169 # define LT_DLLAZY_OR_NOW DL_NOW
12170 # else
12171 # define LT_DLLAZY_OR_NOW 0
12172 # endif
12173 # endif
12174 # endif
12175 # endif
12176 #endif
12178 /* When -fvisbility=hidden is used, assume the code has been annotated
12179 correspondingly for the symbols needed. */
12180 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12181 void fnord () __attribute__((visibility("default")));
12182 #endif
12184 void fnord () { int i=42; }
12185 int main ()
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12190 if (self)
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else
12195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12196 else puts (dlerror ());
12198 /* dlclose (self); */
12200 else
12201 puts (dlerror ());
12203 return status;
12205 _LT_EOF
12206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207 (eval $ac_link) 2>&5
12208 ac_status=$?
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12211 (./conftest; exit; ) >&5 2>/dev/null
12212 lt_status=$?
12213 case x$lt_status in
12214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12217 esac
12218 else :
12219 # compilation failed
12220 lt_cv_dlopen_self_static=no
12223 rm -fr conftest*
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12228 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12231 CPPFLAGS="$save_CPPFLAGS"
12232 LDFLAGS="$save_LDFLAGS"
12233 LIBS="$save_LIBS"
12235 esac
12237 case $lt_cv_dlopen_self in
12238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12239 *) enable_dlopen_self=unknown ;;
12240 esac
12242 case $lt_cv_dlopen_self_static in
12243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12244 *) enable_dlopen_self_static=unknown ;;
12245 esac
12264 striplib=
12265 old_striplib=
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12267 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12268 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272 $as_echo "yes" >&6; }
12273 else
12274 # FIXME - insert some real tests, host_os isn't really good enough
12275 case $host_os in
12276 darwin*)
12277 if test -n "$STRIP" ; then
12278 striplib="$STRIP -x"
12279 old_striplib="$STRIP -S"
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281 $as_echo "yes" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12291 esac
12305 # Report which library types will actually be built
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12307 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12309 $as_echo "$can_build_shared" >&6; }
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12312 $as_echo_n "checking whether to build shared libraries... " >&6; }
12313 test "$can_build_shared" = "no" && enable_shared=no
12315 # On AIX, shared libraries and static libraries use the same namespace, and
12316 # are all built from PIC.
12317 case $host_os in
12318 aix3*)
12319 test "$enable_shared" = yes && enable_static=no
12320 if test -n "$RANLIB"; then
12321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12322 postinstall_cmds='$RANLIB $lib'
12326 aix[4-9]*)
12327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12328 test "$enable_shared" = yes && enable_static=no
12331 esac
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12333 $as_echo "$enable_shared" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12336 $as_echo_n "checking whether to build static libraries... " >&6; }
12337 # Make sure either enable_shared or enable_static is yes.
12338 test "$enable_shared" = yes || enable_static=yes
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12340 $as_echo "$enable_static" >&6; }
12346 ac_ext=c
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352 CC="$lt_save_CC"
12354 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12356 (test "X$CXX" != "Xg++"))) ; then
12357 ac_ext=cpp
12358 ac_cpp='$CXXCPP $CPPFLAGS'
12359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12363 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12364 if test -z "$CXXCPP"; then
12365 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 # Double quotes because CXXCPP needs to be expanded
12369 for CXXCPP in "$CXX -E" "/lib/cpp"
12371 ac_preproc_ok=false
12372 for ac_cxx_preproc_warn_flag in '' yes
12374 # Use a header file that comes with gcc, so configuring glibc
12375 # with a fresh cross-compiler works.
12376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377 # <limits.h> exists even on freestanding compilers.
12378 # On the NeXT, cc -E runs the code through the compiler's parser,
12379 # not just through cpp. "Syntax error" is here to catch this case.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 #ifdef __STDC__
12383 # include <limits.h>
12384 #else
12385 # include <assert.h>
12386 #endif
12387 Syntax error
12388 _ACEOF
12389 if ac_fn_cxx_try_cpp "$LINENO"; then :
12391 else
12392 # Broken: fails on valid input.
12393 continue
12395 rm -f conftest.err conftest.$ac_ext
12397 # OK, works on sane cases. Now check whether nonexistent headers
12398 # can be detected and how.
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12401 #include <ac_nonexistent.h>
12402 _ACEOF
12403 if ac_fn_cxx_try_cpp "$LINENO"; then :
12404 # Broken: success on invalid input.
12405 continue
12406 else
12407 # Passes both tests.
12408 ac_preproc_ok=:
12409 break
12411 rm -f conftest.err conftest.$ac_ext
12413 done
12414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12415 rm -f conftest.err conftest.$ac_ext
12416 if $ac_preproc_ok; then :
12417 break
12420 done
12421 ac_cv_prog_CXXCPP=$CXXCPP
12424 CXXCPP=$ac_cv_prog_CXXCPP
12425 else
12426 ac_cv_prog_CXXCPP=$CXXCPP
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12429 $as_echo "$CXXCPP" >&6; }
12430 ac_preproc_ok=false
12431 for ac_cxx_preproc_warn_flag in '' yes
12433 # Use a header file that comes with gcc, so configuring glibc
12434 # with a fresh cross-compiler works.
12435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12436 # <limits.h> exists even on freestanding compilers.
12437 # On the NeXT, cc -E runs the code through the compiler's parser,
12438 # not just through cpp. "Syntax error" is here to catch this case.
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 #ifdef __STDC__
12442 # include <limits.h>
12443 #else
12444 # include <assert.h>
12445 #endif
12446 Syntax error
12447 _ACEOF
12448 if ac_fn_cxx_try_cpp "$LINENO"; then :
12450 else
12451 # Broken: fails on valid input.
12452 continue
12454 rm -f conftest.err conftest.$ac_ext
12456 # OK, works on sane cases. Now check whether nonexistent headers
12457 # can be detected and how.
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460 #include <ac_nonexistent.h>
12461 _ACEOF
12462 if ac_fn_cxx_try_cpp "$LINENO"; then :
12463 # Broken: success on invalid input.
12464 continue
12465 else
12466 # Passes both tests.
12467 ac_preproc_ok=:
12468 break
12470 rm -f conftest.err conftest.$ac_ext
12472 done
12473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12474 rm -f conftest.err conftest.$ac_ext
12475 if $ac_preproc_ok; then :
12477 else
12478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12480 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12481 See \`config.log' for more details." "$LINENO" 5; }
12484 ac_ext=c
12485 ac_cpp='$CPP $CPPFLAGS'
12486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12490 else
12491 _lt_caught_CXX_error=yes
12494 ac_ext=cpp
12495 ac_cpp='$CXXCPP $CPPFLAGS'
12496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12500 archive_cmds_need_lc_CXX=no
12501 allow_undefined_flag_CXX=
12502 always_export_symbols_CXX=no
12503 archive_expsym_cmds_CXX=
12504 compiler_needs_object_CXX=no
12505 export_dynamic_flag_spec_CXX=
12506 hardcode_direct_CXX=no
12507 hardcode_direct_absolute_CXX=no
12508 hardcode_libdir_flag_spec_CXX=
12509 hardcode_libdir_flag_spec_ld_CXX=
12510 hardcode_libdir_separator_CXX=
12511 hardcode_minus_L_CXX=no
12512 hardcode_shlibpath_var_CXX=unsupported
12513 hardcode_automatic_CXX=no
12514 inherit_rpath_CXX=no
12515 module_cmds_CXX=
12516 module_expsym_cmds_CXX=
12517 link_all_deplibs_CXX=unknown
12518 old_archive_cmds_CXX=$old_archive_cmds
12519 reload_flag_CXX=$reload_flag
12520 reload_cmds_CXX=$reload_cmds
12521 no_undefined_flag_CXX=
12522 whole_archive_flag_spec_CXX=
12523 enable_shared_with_static_runtimes_CXX=no
12525 # Source file extension for C++ test sources.
12526 ac_ext=cpp
12528 # Object file extension for compiled C++ test sources.
12529 objext=o
12530 objext_CXX=$objext
12532 # No sense in running all these tests if we already determined that
12533 # the CXX compiler isn't working. Some variables (like enable_shared)
12534 # are currently assumed to apply to all compilers on this platform,
12535 # and will be corrupted by setting them based on a non-working compiler.
12536 if test "$_lt_caught_CXX_error" != yes; then
12537 # Code to be used in simple compile tests
12538 lt_simple_compile_test_code="int some_variable = 0;"
12540 # Code to be used in simple link tests
12541 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12550 # If no C compiler was specified, use CC.
12551 LTCC=${LTCC-"$CC"}
12553 # If no C compiler flags were specified, use CFLAGS.
12554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12556 # Allow CC to be a program name with arguments.
12557 compiler=$CC
12560 # save warnings/boilerplate of simple test code
12561 ac_outfile=conftest.$ac_objext
12562 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12564 _lt_compiler_boilerplate=`cat conftest.err`
12565 $RM conftest*
12567 ac_outfile=conftest.$ac_objext
12568 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12570 _lt_linker_boilerplate=`cat conftest.err`
12571 $RM -r conftest*
12574 # Allow CC to be a program name with arguments.
12575 lt_save_CC=$CC
12576 lt_save_LD=$LD
12577 lt_save_GCC=$GCC
12578 GCC=$GXX
12579 lt_save_with_gnu_ld=$with_gnu_ld
12580 lt_save_path_LD=$lt_cv_path_LD
12581 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12582 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12583 else
12584 $as_unset lt_cv_prog_gnu_ld
12586 if test -n "${lt_cv_path_LDCXX+set}"; then
12587 lt_cv_path_LD=$lt_cv_path_LDCXX
12588 else
12589 $as_unset lt_cv_path_LD
12591 test -z "${LDCXX+set}" || LD=$LDCXX
12592 CC=${CXX-"c++"}
12593 compiler=$CC
12594 compiler_CXX=$CC
12595 for cc_temp in $compiler""; do
12596 case $cc_temp in
12597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12599 \-*) ;;
12600 *) break;;
12601 esac
12602 done
12603 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12606 if test -n "$compiler"; then
12607 # We don't want -fno-exception when compiling C++ code, so set the
12608 # no_builtin_flag separately
12609 if test "$GXX" = yes; then
12610 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12611 else
12612 lt_prog_compiler_no_builtin_flag_CXX=
12615 if test "$GXX" = yes; then
12616 # Set up default GNU C++ configuration
12620 # Check whether --with-gnu-ld was given.
12621 if test "${with_gnu_ld+set}" = set; then :
12622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12623 else
12624 with_gnu_ld=no
12627 ac_prog=ld
12628 if test "$GCC" = yes; then
12629 # Check if gcc -print-prog-name=ld gives a path.
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12631 $as_echo_n "checking for ld used by $CC... " >&6; }
12632 case $host in
12633 *-*-mingw*)
12634 # gcc leaves a trailing carriage return which upsets mingw
12635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12638 esac
12639 case $ac_prog in
12640 # Accept absolute paths.
12641 [\\/]* | ?:[\\/]*)
12642 re_direlt='/[^/][^/]*/\.\./'
12643 # Canonicalize the pathname of ld
12644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12647 done
12648 test -z "$LD" && LD="$ac_prog"
12651 # If it fails, then pretend we aren't using GCC.
12652 ac_prog=ld
12655 # If it is relative, then search for the first ld in PATH.
12656 with_gnu_ld=unknown
12658 esac
12659 elif test "$with_gnu_ld" = yes; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12661 $as_echo_n "checking for GNU ld... " >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12664 $as_echo_n "checking for non-GNU ld... " >&6; }
12666 if test "${lt_cv_path_LD+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 if test -z "$LD"; then
12670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12671 for ac_dir in $PATH; do
12672 IFS="$lt_save_ifs"
12673 test -z "$ac_dir" && ac_dir=.
12674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12675 lt_cv_path_LD="$ac_dir/$ac_prog"
12676 # Check to see if the program is GNU ld. I'd rather use --version,
12677 # but apparently some variants of GNU ld only accept -v.
12678 # Break only if it was the GNU/non-GNU ld that we prefer.
12679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12680 *GNU* | *'with BFD'*)
12681 test "$with_gnu_ld" != no && break
12684 test "$with_gnu_ld" != yes && break
12686 esac
12688 done
12689 IFS="$lt_save_ifs"
12690 else
12691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12695 LD="$lt_cv_path_LD"
12696 if test -n "$LD"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12698 $as_echo "$LD" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12703 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12705 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12706 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12710 case `$LD -v 2>&1 </dev/null` in
12711 *GNU* | *'with BFD'*)
12712 lt_cv_prog_gnu_ld=yes
12715 lt_cv_prog_gnu_ld=no
12717 esac
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12720 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12721 with_gnu_ld=$lt_cv_prog_gnu_ld
12729 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12730 # archiving commands below assume that GNU ld is being used.
12731 if test "$with_gnu_ld" = yes; then
12732 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12738 # If archive_cmds runs LD, not CC, wlarc should be empty
12739 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12740 # investigate it a little bit more. (MM)
12741 wlarc='${wl}'
12743 # ancient GNU ld didn't support --whole-archive et. al.
12744 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12745 $GREP 'no-whole-archive' > /dev/null; then
12746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12747 else
12748 whole_archive_flag_spec_CXX=
12750 else
12751 with_gnu_ld=no
12752 wlarc=
12754 # A generic and very simple default shared library creation
12755 # command for GNU C++ for the case where it uses the native
12756 # linker, instead of GNU ld. If possible, this setting should
12757 # overridden to take advantage of the native linker features on
12758 # the platform it is being used on.
12759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12767 else
12768 GXX=no
12769 with_gnu_ld=no
12770 wlarc=
12773 # PORTME: fill in a description of your system's C++ link characteristics
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12776 ld_shlibs_CXX=yes
12777 case $host_os in
12778 aix3*)
12779 # FIXME: insert proper C++ library support
12780 ld_shlibs_CXX=no
12782 aix[4-9]*)
12783 if test "$host_cpu" = ia64; then
12784 # On IA64, the linker does run time linking by default, so we don't
12785 # have to do anything special.
12786 aix_use_runtimelinking=no
12787 exp_sym_flag='-Bexport'
12788 no_entry_flag=""
12789 else
12790 aix_use_runtimelinking=no
12792 # Test if we are trying to use run time linking or normal
12793 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12794 # need to do runtime linking.
12795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12796 for ld_flag in $LDFLAGS; do
12797 case $ld_flag in
12798 *-brtl*)
12799 aix_use_runtimelinking=yes
12800 break
12802 esac
12803 done
12805 esac
12807 exp_sym_flag='-bexport'
12808 no_entry_flag='-bnoentry'
12811 # When large executables or shared objects are built, AIX ld can
12812 # have problems creating the table of contents. If linking a library
12813 # or program results in "error TOC overflow" add -mminimal-toc to
12814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12817 archive_cmds_CXX=''
12818 hardcode_direct_CXX=yes
12819 hardcode_direct_absolute_CXX=yes
12820 hardcode_libdir_separator_CXX=':'
12821 link_all_deplibs_CXX=yes
12822 file_list_spec_CXX='${wl}-f,'
12824 if test "$GXX" = yes; then
12825 case $host_os in aix4.[012]|aix4.[012].*)
12826 # We only want to do this on AIX 4.2 and lower, the check
12827 # below for broken collect2 doesn't work under 4.3+
12828 collect2name=`${CC} -print-prog-name=collect2`
12829 if test -f "$collect2name" &&
12830 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12831 then
12832 # We have reworked collect2
12834 else
12835 # We have old collect2
12836 hardcode_direct_CXX=unsupported
12837 # It fails to find uninstalled libraries when the uninstalled
12838 # path is not listed in the libpath. Setting hardcode_minus_L
12839 # to unsupported forces relinking
12840 hardcode_minus_L_CXX=yes
12841 hardcode_libdir_flag_spec_CXX='-L$libdir'
12842 hardcode_libdir_separator_CXX=
12844 esac
12845 shared_flag='-shared'
12846 if test "$aix_use_runtimelinking" = yes; then
12847 shared_flag="$shared_flag "'${wl}-G'
12849 else
12850 # not using gcc
12851 if test "$host_cpu" = ia64; then
12852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12853 # chokes on -Wl,-G. The following line is correct:
12854 shared_flag='-G'
12855 else
12856 if test "$aix_use_runtimelinking" = yes; then
12857 shared_flag='${wl}-G'
12858 else
12859 shared_flag='${wl}-bM:SRE'
12864 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12865 # It seems that -bexpall does not export symbols beginning with
12866 # underscore (_), so it is better to generate a list of symbols to
12867 # export.
12868 always_export_symbols_CXX=yes
12869 if test "$aix_use_runtimelinking" = yes; then
12870 # Warning - without using the other runtime loading flags (-brtl),
12871 # -berok will link without error, but may produce a broken library.
12872 allow_undefined_flag_CXX='-berok'
12873 # Determine the default libpath from the value encoded in an empty
12874 # executable.
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12879 main ()
12883 return 0;
12885 _ACEOF
12886 if ac_fn_cxx_try_link "$LINENO"; then :
12888 lt_aix_libpath_sed='
12889 /Import File Strings/,/^$/ {
12890 /^0/ {
12891 s/^0 *\(.*\)$/\1/
12895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896 # Check for a 64-bit object if we didn't find anything.
12897 if test -z "$aix_libpath"; then
12898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12905 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12907 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"
12908 else
12909 if test "$host_cpu" = ia64; then
12910 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12911 allow_undefined_flag_CXX="-z nodefs"
12912 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"
12913 else
12914 # Determine the default libpath from the value encoded in an
12915 # empty executable.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12920 main ()
12924 return 0;
12926 _ACEOF
12927 if ac_fn_cxx_try_link "$LINENO"; then :
12929 lt_aix_libpath_sed='
12930 /Import File Strings/,/^$/ {
12931 /^0/ {
12932 s/^0 *\(.*\)$/\1/
12936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937 # Check for a 64-bit object if we didn't find anything.
12938 if test -z "$aix_libpath"; then
12939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12947 # Warning - without using the other run time loading flags,
12948 # -berok will link without error, but may produce a broken library.
12949 no_undefined_flag_CXX=' ${wl}-bernotok'
12950 allow_undefined_flag_CXX=' ${wl}-berok'
12951 if test "$with_gnu_ld" = yes; then
12952 # We only use this code for GNU lds that support --whole-archive.
12953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954 else
12955 # Exported symbols can be pulled into shared objects from archives
12956 whole_archive_flag_spec_CXX='$convenience'
12958 archive_cmds_need_lc_CXX=yes
12959 # This is similar to how AIX traditionally builds its shared
12960 # libraries.
12961 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'
12966 beos*)
12967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 allow_undefined_flag_CXX=unsupported
12969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12970 # support --undefined. This deserves some investigation. FIXME
12971 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972 else
12973 ld_shlibs_CXX=no
12977 chorus*)
12978 case $cc_basename in
12980 # FIXME: insert proper C++ library support
12981 ld_shlibs_CXX=no
12983 esac
12986 cygwin* | mingw* | pw32* | cegcc*)
12987 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12988 # as there is no search path for DLLs.
12989 hardcode_libdir_flag_spec_CXX='-L$libdir'
12990 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12991 allow_undefined_flag_CXX=unsupported
12992 always_export_symbols_CXX=no
12993 enable_shared_with_static_runtimes_CXX=yes
12995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12996 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'
12997 # If the export-symbols file already is a .def file (1st line
12998 # is EXPORTS), use it as is; otherwise, prepend...
12999 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13000 cp $export_symbols $output_objdir/$soname.def;
13001 else
13002 echo EXPORTS > $output_objdir/$soname.def;
13003 cat $export_symbols >> $output_objdir/$soname.def;
13005 $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'
13006 else
13007 ld_shlibs_CXX=no
13010 darwin* | rhapsody*)
13013 archive_cmds_need_lc_CXX=no
13014 hardcode_direct_CXX=no
13015 hardcode_automatic_CXX=yes
13016 hardcode_shlibpath_var_CXX=unsupported
13017 if test "$lt_cv_ld_force_load" = "yes"; then
13018 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\"`'
13019 else
13020 whole_archive_flag_spec_CXX=''
13022 link_all_deplibs_CXX=yes
13023 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13024 case $cc_basename in
13025 ifort*) _lt_dar_can_shared=yes ;;
13026 *) _lt_dar_can_shared=$GCC ;;
13027 esac
13028 if test "$_lt_dar_can_shared" = "yes"; then
13029 output_verbose_link_cmd=func_echo_all
13030 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}"
13031 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13032 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}"
13033 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}"
13034 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13035 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}"
13036 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}"
13039 else
13040 ld_shlibs_CXX=no
13045 dgux*)
13046 case $cc_basename in
13047 ec++*)
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13051 ghcx*)
13052 # Green Hills C++ Compiler
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13060 esac
13063 freebsd2.*)
13064 # C++ shared libraries reported to be fairly broken before
13065 # switch to ELF
13066 ld_shlibs_CXX=no
13069 freebsd-elf*)
13070 archive_cmds_need_lc_CXX=no
13073 freebsd* | dragonfly*)
13074 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13075 # conventions
13076 ld_shlibs_CXX=yes
13079 gnu*)
13082 haiku*)
13083 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084 link_all_deplibs_CXX=yes
13087 hpux9*)
13088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13089 hardcode_libdir_separator_CXX=:
13090 export_dynamic_flag_spec_CXX='${wl}-E'
13091 hardcode_direct_CXX=yes
13092 hardcode_minus_L_CXX=yes # Not in the search PATH,
13093 # but as the default
13094 # location of the library.
13096 case $cc_basename in
13097 CC*)
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13101 aCC*)
13102 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'
13103 # Commands to make compiler produce verbose output that lists
13104 # what "hidden" libraries, object files and flags are used when
13105 # linking a shared library.
13107 # There doesn't appear to be a way to prevent this compiler from
13108 # explicitly linking system object files so we need to strip them
13109 # from the output so that they don't get included in the library
13110 # dependencies.
13111 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"'
13114 if test "$GXX" = yes; then
13115 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'
13116 else
13117 # FIXME: insert proper C++ library support
13118 ld_shlibs_CXX=no
13121 esac
13124 hpux10*|hpux11*)
13125 if test $with_gnu_ld = no; then
13126 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13127 hardcode_libdir_separator_CXX=:
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13133 export_dynamic_flag_spec_CXX='${wl}-E'
13135 esac
13137 case $host_cpu in
13138 hppa*64*|ia64*)
13139 hardcode_direct_CXX=no
13140 hardcode_shlibpath_var_CXX=no
13143 hardcode_direct_CXX=yes
13144 hardcode_direct_absolute_CXX=yes
13145 hardcode_minus_L_CXX=yes # Not in the search PATH,
13146 # but as the default
13147 # location of the library.
13149 esac
13151 case $cc_basename in
13152 CC*)
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13156 aCC*)
13157 case $host_cpu in
13158 hppa*64*)
13159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13161 ia64*)
13162 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13165 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 esac
13168 # Commands to make compiler produce verbose output that lists
13169 # what "hidden" libraries, object files and flags are used when
13170 # linking a shared library.
13172 # There doesn't appear to be a way to prevent this compiler from
13173 # explicitly linking system object files so we need to strip them
13174 # from the output so that they don't get included in the library
13175 # dependencies.
13176 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"'
13179 if test "$GXX" = yes; then
13180 if test $with_gnu_ld = no; then
13181 case $host_cpu in
13182 hppa*64*)
13183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13185 ia64*)
13186 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 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'
13191 esac
13193 else
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13198 esac
13201 interix[3-9]*)
13202 hardcode_direct_CXX=no
13203 hardcode_shlibpath_var_CXX=no
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 export_dynamic_flag_spec_CXX='${wl}-E'
13206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13207 # Instead, shared libraries are loaded at an image base (0x10000000 by
13208 # default) and relocated if they conflict, which is a slow very memory
13209 # consuming and fragmenting process. To avoid this, we pick a random,
13210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13212 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'
13213 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'
13215 irix5* | irix6*)
13216 case $cc_basename in
13217 CC*)
13218 # SGI C++
13219 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'
13221 # Archives containing C++ object files must be created using
13222 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13223 # necessary to make sure instantiated templates are included
13224 # in the archive.
13225 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13228 if test "$GXX" = yes; then
13229 if test "$with_gnu_ld" = no; then
13230 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'
13231 else
13232 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'
13235 link_all_deplibs_CXX=yes
13237 esac
13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13239 hardcode_libdir_separator_CXX=:
13240 inherit_rpath_CXX=yes
13243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13244 case $cc_basename in
13245 KCC*)
13246 # Kuck and Associates, Inc. (KAI) C++ Compiler
13248 # KCC will only create a shared library if the output file
13249 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13250 # to its proper name (with version) after linking.
13251 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'
13252 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'
13253 # Commands to make compiler produce verbose output that lists
13254 # what "hidden" libraries, object files and flags are used when
13255 # linking a shared library.
13257 # There doesn't appear to be a way to prevent this compiler from
13258 # explicitly linking system object files so we need to strip them
13259 # from the output so that they don't get included in the library
13260 # dependencies.
13261 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"'
13263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13266 # Archives containing C++ object files must be created using
13267 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13268 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13270 icpc* | ecpc* )
13271 # Intel C++
13272 with_gnu_ld=yes
13273 # version 8.0 and above of icpc choke on multiply defined symbols
13274 # if we add $predep_objects and $postdep_objects, however 7.1 and
13275 # earlier do not add the objects themselves.
13276 case `$CC -V 2>&1` in
13277 *"Version 7."*)
13278 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 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'
13281 *) # Version 8.0 or newer
13282 tmp_idyn=
13283 case $host_cpu in
13284 ia64*) tmp_idyn=' -i_dynamic';;
13285 esac
13286 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287 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'
13289 esac
13290 archive_cmds_need_lc_CXX=no
13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13293 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13295 pgCC* | pgcpp*)
13296 # Portland Group C++ compiler
13297 case `$CC -V` in
13298 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13299 prelink_cmds_CXX='tpldir=Template.dir~
13300 rm -rf $tpldir~
13301 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13302 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13303 old_archive_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13306 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13307 $RANLIB $oldlib'
13308 archive_cmds_CXX='tpldir=Template.dir~
13309 rm -rf $tpldir~
13310 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13311 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13312 archive_expsym_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $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'
13317 *) # Version 6 and above use weak symbols
13318 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13319 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'
13321 esac
13323 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13325 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'
13327 cxx*)
13328 # Compaq C++
13329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 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'
13332 runpath_var=LD_RUN_PATH
13333 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334 hardcode_libdir_separator_CXX=:
13336 # Commands to make compiler produce verbose output that lists
13337 # what "hidden" libraries, object files and flags are used when
13338 # linking a shared library.
13340 # There doesn't appear to be a way to prevent this compiler from
13341 # explicitly linking system object files so we need to strip them
13342 # from the output so that they don't get included in the library
13343 # dependencies.
13344 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'
13346 xl* | mpixl* | bgxl*)
13347 # IBM XL 8.0 on PPC, with GNU ld
13348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13350 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351 if test "x$supports_anon_versioning" = xyes; then
13352 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13354 echo "local: *; };" >> $output_objdir/$libname.ver~
13355 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13359 case `$CC -V 2>&1 | sed 5q` in
13360 *Sun\ C*)
13361 # Sun C++ 5.9
13362 no_undefined_flag_CXX=' -zdefs'
13363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13364 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'
13365 hardcode_libdir_flag_spec_CXX='-R$libdir'
13366 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'
13367 compiler_needs_object_CXX=yes
13369 # Not sure whether something based on
13370 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13371 # would be better.
13372 output_verbose_link_cmd='func_echo_all'
13374 # Archives containing C++ object files must be created using
13375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13376 # necessary to make sure instantiated templates are included
13377 # in the archive.
13378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13380 esac
13382 esac
13385 lynxos*)
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13390 m88k*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13395 mvs*)
13396 case $cc_basename in
13397 cxx*)
13398 # FIXME: insert proper C++ library support
13399 ld_shlibs_CXX=no
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13405 esac
13408 netbsd*)
13409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13410 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13411 wlarc=
13412 hardcode_libdir_flag_spec_CXX='-R$libdir'
13413 hardcode_direct_CXX=yes
13414 hardcode_shlibpath_var_CXX=no
13416 # Workaround some broken pre-1.5 toolchains
13417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13420 *nto* | *qnx*)
13421 ld_shlibs_CXX=yes
13424 openbsd2*)
13425 # C++ shared libraries are fairly broken
13426 ld_shlibs_CXX=no
13429 openbsd*)
13430 if test -f /usr/libexec/ld.so; then
13431 hardcode_direct_CXX=yes
13432 hardcode_shlibpath_var_CXX=no
13433 hardcode_direct_absolute_CXX=yes
13434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13437 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13438 export_dynamic_flag_spec_CXX='${wl}-E'
13439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13441 output_verbose_link_cmd=func_echo_all
13442 else
13443 ld_shlibs_CXX=no
13447 osf3* | osf4* | osf5*)
13448 case $cc_basename in
13449 KCC*)
13450 # Kuck and Associates, Inc. (KAI) C++ Compiler
13452 # KCC will only create a shared library if the output file
13453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13454 # to its proper name (with version) after linking.
13455 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'
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 hardcode_libdir_separator_CXX=:
13460 # Archives containing C++ object files must be created using
13461 # the KAI C++ compiler.
13462 case $host in
13463 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13464 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13465 esac
13467 RCC*)
13468 # Rational C++ 2.4.1
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13472 cxx*)
13473 case $host in
13474 osf3*)
13475 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13476 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'
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13480 allow_undefined_flag_CXX=' -expect_unresolved \*'
13481 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'
13482 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13483 echo "-hidden">> $lib.exp~
13484 $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~
13485 $RM $lib.exp'
13486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13488 esac
13490 hardcode_libdir_separator_CXX=:
13492 # Commands to make compiler produce verbose output that lists
13493 # what "hidden" libraries, object files and flags are used when
13494 # linking a shared library.
13496 # There doesn't appear to be a way to prevent this compiler from
13497 # explicitly linking system object files so we need to strip them
13498 # from the output so that they don't get included in the library
13499 # dependencies.
13500 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"'
13503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13505 case $host in
13506 osf3*)
13507 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'
13510 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'
13512 esac
13514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13515 hardcode_libdir_separator_CXX=:
13517 # Commands to make compiler produce verbose output that lists
13518 # what "hidden" libraries, object files and flags are used when
13519 # linking a shared library.
13520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13522 else
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13527 esac
13530 psos*)
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13535 sunos4*)
13536 case $cc_basename in
13537 CC*)
13538 # Sun C++ 4.x
13539 # FIXME: insert proper C++ library support
13540 ld_shlibs_CXX=no
13542 lcc*)
13543 # Lucid
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13551 esac
13554 solaris*)
13555 case $cc_basename in
13556 CC*)
13557 # Sun C++ 4.2, 5.x and Centerline C++
13558 archive_cmds_need_lc_CXX=yes
13559 no_undefined_flag_CXX=' -zdefs'
13560 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13561 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13562 $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'
13564 hardcode_libdir_flag_spec_CXX='-R$libdir'
13565 hardcode_shlibpath_var_CXX=no
13566 case $host_os in
13567 solaris2.[0-5] | solaris2.[0-5].*) ;;
13569 # The compiler driver will combine and reorder linker options,
13570 # but understands `-z linker_flag'.
13571 # Supported since Solaris 2.6 (maybe 2.5.1?)
13572 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13574 esac
13575 link_all_deplibs_CXX=yes
13577 output_verbose_link_cmd='func_echo_all'
13579 # Archives containing C++ object files must be created using
13580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13581 # necessary to make sure instantiated templates are included
13582 # in the archive.
13583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13585 gcx*)
13586 # Green Hills C++ Compiler
13587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13589 # The C++ compiler must be used to create the archive.
13590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13593 # GNU C++ compiler with Solaris linker
13594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13596 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13598 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13601 # Commands to make compiler produce verbose output that lists
13602 # what "hidden" libraries, object files and flags are used when
13603 # linking a shared library.
13604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13605 else
13606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13607 # platform.
13608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13612 # Commands to make compiler produce verbose output that lists
13613 # what "hidden" libraries, object files and flags are used when
13614 # linking a shared library.
13615 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13619 case $host_os in
13620 solaris2.[0-5] | solaris2.[0-5].*) ;;
13622 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13624 esac
13627 esac
13630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13631 no_undefined_flag_CXX='${wl}-z,text'
13632 archive_cmds_need_lc_CXX=no
13633 hardcode_shlibpath_var_CXX=no
13634 runpath_var='LD_RUN_PATH'
13636 case $cc_basename in
13637 CC*)
13638 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 esac
13648 sysv5* | sco3.2v5* | sco5v6*)
13649 # Note: We can NOT use -z defs as we might desire, because we do not
13650 # link with -lc, and that would cause any symbols used from libc to
13651 # always be unresolved, which means just about no library would
13652 # ever link correctly. If we're not using GNU ld we use -z text
13653 # though, which does catch some bad symbols but isn't as heavy-handed
13654 # as -z defs.
13655 no_undefined_flag_CXX='${wl}-z,text'
13656 allow_undefined_flag_CXX='${wl}-z,nodefs'
13657 archive_cmds_need_lc_CXX=no
13658 hardcode_shlibpath_var_CXX=no
13659 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13660 hardcode_libdir_separator_CXX=':'
13661 link_all_deplibs_CXX=yes
13662 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13663 runpath_var='LD_RUN_PATH'
13665 case $cc_basename in
13666 CC*)
13667 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13670 '"$old_archive_cmds_CXX"
13671 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13672 '"$reload_cmds_CXX"
13675 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 esac
13681 tandem*)
13682 case $cc_basename in
13683 NCC*)
13684 # NonStop-UX NCC 3.20
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13692 esac
13695 vxworks*)
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13704 esac
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13707 $as_echo "$ld_shlibs_CXX" >&6; }
13708 test "$ld_shlibs_CXX" = no && can_build_shared=no
13710 GCC_CXX="$GXX"
13711 LD_CXX="$LD"
13713 ## CAVEAT EMPTOR:
13714 ## There is no encapsulation within the following macros, do not change
13715 ## the running order or otherwise move them around unless you know exactly
13716 ## what you are doing...
13717 # Dependencies to place before and after the object being linked:
13718 predep_objects_CXX=
13719 postdep_objects_CXX=
13720 predeps_CXX=
13721 postdeps_CXX=
13722 compiler_lib_search_path_CXX=
13724 cat > conftest.$ac_ext <<_LT_EOF
13725 class Foo
13727 public:
13728 Foo (void) { a = 0; }
13729 private:
13730 int a;
13732 _LT_EOF
13734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 # Parse the compiler output and extract the necessary
13740 # objects, libraries and library flags.
13742 # Sentinel used to keep track of whether or not we are before
13743 # the conftest object file.
13744 pre_test_object_deps_done=no
13746 for p in `eval "$output_verbose_link_cmd"`; do
13747 case $p in
13749 -L* | -R* | -l*)
13750 # Some compilers place space between "-{L,R}" and the path.
13751 # Remove the space.
13752 if test $p = "-L" ||
13753 test $p = "-R"; then
13754 prev=$p
13755 continue
13756 else
13757 prev=
13760 if test "$pre_test_object_deps_done" = no; then
13761 case $p in
13762 -L* | -R*)
13763 # Internal compiler library paths should come after those
13764 # provided the user. The postdeps already come after the
13765 # user supplied libs so there is no need to process them.
13766 if test -z "$compiler_lib_search_path_CXX"; then
13767 compiler_lib_search_path_CXX="${prev}${p}"
13768 else
13769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13772 # The "-l" case would never come before the object being
13773 # linked, so don't bother handling this case.
13774 esac
13775 else
13776 if test -z "$postdeps_CXX"; then
13777 postdeps_CXX="${prev}${p}"
13778 else
13779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13784 *.$objext)
13785 # This assumes that the test object file only shows up
13786 # once in the compiler output.
13787 if test "$p" = "conftest.$objext"; then
13788 pre_test_object_deps_done=yes
13789 continue
13792 if test "$pre_test_object_deps_done" = no; then
13793 if test -z "$predep_objects_CXX"; then
13794 predep_objects_CXX="$p"
13795 else
13796 predep_objects_CXX="$predep_objects_CXX $p"
13798 else
13799 if test -z "$postdep_objects_CXX"; then
13800 postdep_objects_CXX="$p"
13801 else
13802 postdep_objects_CXX="$postdep_objects_CXX $p"
13807 *) ;; # Ignore the rest.
13809 esac
13810 done
13812 # Clean up.
13813 rm -f a.out a.exe
13814 else
13815 echo "libtool.m4: error: problem compiling CXX test program"
13818 $RM -f confest.$objext
13820 # PORTME: override above test on systems where it is broken
13821 case $host_os in
13822 interix[3-9]*)
13823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824 # hack all around it, let's just trust "g++" to DTRT.
13825 predep_objects_CXX=
13826 postdep_objects_CXX=
13827 postdeps_CXX=
13830 linux*)
13831 case `$CC -V 2>&1 | sed 5q` in
13832 *Sun\ C*)
13833 # Sun C++ 5.9
13835 # The more standards-conforming stlport4 library is
13836 # incompatible with the Cstd library. Avoid specifying
13837 # it if it's in CXXFLAGS. Ignore libCrun as
13838 # -library=stlport4 depends on it.
13839 case " $CXX $CXXFLAGS " in
13840 *" -library=stlport4 "*)
13841 solaris_use_stlport4=yes
13843 esac
13845 if test "$solaris_use_stlport4" != yes; then
13846 postdeps_CXX='-library=Cstd -library=Crun'
13849 esac
13852 solaris*)
13853 case $cc_basename in
13854 CC*)
13855 # The more standards-conforming stlport4 library is
13856 # incompatible with the Cstd library. Avoid specifying
13857 # it if it's in CXXFLAGS. Ignore libCrun as
13858 # -library=stlport4 depends on it.
13859 case " $CXX $CXXFLAGS " in
13860 *" -library=stlport4 "*)
13861 solaris_use_stlport4=yes
13863 esac
13865 # Adding this requires a known-good setup of shared libraries for
13866 # Sun compiler versions before 5.6, else PIC objects from an old
13867 # archive will be linked into the output, leading to subtle bugs.
13868 if test "$solaris_use_stlport4" != yes; then
13869 postdeps_CXX='-library=Cstd -library=Crun'
13872 esac
13874 esac
13877 case " $postdeps_CXX " in
13878 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879 esac
13880 compiler_lib_search_dirs_CXX=
13881 if test -n "${compiler_lib_search_path_CXX}"; then
13882 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13915 lt_prog_compiler_wl_CXX=
13916 lt_prog_compiler_pic_CXX=
13917 lt_prog_compiler_static_CXX=
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13922 # C++ specific cases for pic, static, wl, etc.
13923 if test "$GXX" = yes; then
13924 lt_prog_compiler_wl_CXX='-Wl,'
13925 lt_prog_compiler_static_CXX='-static'
13927 case $host_os in
13928 aix*)
13929 # All AIX code is PIC.
13930 if test "$host_cpu" = ia64; then
13931 # AIX 5 now supports IA64 processor
13932 lt_prog_compiler_static_CXX='-Bstatic'
13934 lt_prog_compiler_pic_CXX='-fPIC'
13937 amigaos*)
13938 case $host_cpu in
13939 powerpc)
13940 # see comment about AmigaOS4 .so support
13941 lt_prog_compiler_pic_CXX='-fPIC'
13943 m68k)
13944 # FIXME: we need at least 68020 code to build shared libraries, but
13945 # adding the `-m68020' flag to GCC prevents building anything better,
13946 # like `-m68040'.
13947 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13949 esac
13952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13953 # PIC is the default for these OSes.
13955 mingw* | cygwin* | os2* | pw32* | cegcc*)
13956 # This hack is so that the source file can tell whether it is being
13957 # built for inclusion in a dll (and should export symbols for example).
13958 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13959 # (--disable-auto-import) libraries
13960 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13962 darwin* | rhapsody*)
13963 # PIC is the default on this platform
13964 # Common symbols not allowed in MH_DYLIB files
13965 lt_prog_compiler_pic_CXX='-fno-common'
13967 *djgpp*)
13968 # DJGPP does not support shared libraries at all
13969 lt_prog_compiler_pic_CXX=
13971 haiku*)
13972 # PIC is the default for Haiku.
13973 # The "-static" flag exists, but is broken.
13974 lt_prog_compiler_static_CXX=
13976 interix[3-9]*)
13977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13978 # Instead, we relocate shared libraries at runtime.
13980 sysv4*MP*)
13981 if test -d /usr/nec; then
13982 lt_prog_compiler_pic_CXX=-Kconform_pic
13985 hpux*)
13986 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13987 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13988 # sets the default TLS model and affects inlining.
13989 case $host_cpu in
13990 hppa*64*)
13993 lt_prog_compiler_pic_CXX='-fPIC'
13995 esac
13997 *qnx* | *nto*)
13998 # QNX uses GNU C++, but need to define -shared option too, otherwise
13999 # it will coredump.
14000 lt_prog_compiler_pic_CXX='-fPIC -shared'
14003 lt_prog_compiler_pic_CXX='-fPIC'
14005 esac
14006 else
14007 case $host_os in
14008 aix[4-9]*)
14009 # All AIX code is PIC.
14010 if test "$host_cpu" = ia64; then
14011 # AIX 5 now supports IA64 processor
14012 lt_prog_compiler_static_CXX='-Bstatic'
14013 else
14014 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14017 chorus*)
14018 case $cc_basename in
14019 cxch68*)
14020 # Green Hills C++ Compiler
14021 # _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"
14023 esac
14025 dgux*)
14026 case $cc_basename in
14027 ec++*)
14028 lt_prog_compiler_pic_CXX='-KPIC'
14030 ghcx*)
14031 # Green Hills C++ Compiler
14032 lt_prog_compiler_pic_CXX='-pic'
14036 esac
14038 freebsd* | dragonfly*)
14039 # FreeBSD uses GNU C++
14041 hpux9* | hpux10* | hpux11*)
14042 case $cc_basename in
14043 CC*)
14044 lt_prog_compiler_wl_CXX='-Wl,'
14045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14046 if test "$host_cpu" != ia64; then
14047 lt_prog_compiler_pic_CXX='+Z'
14050 aCC*)
14051 lt_prog_compiler_wl_CXX='-Wl,'
14052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14053 case $host_cpu in
14054 hppa*64*|ia64*)
14055 # +Z the default
14058 lt_prog_compiler_pic_CXX='+Z'
14060 esac
14064 esac
14066 interix*)
14067 # This is c89, which is MS Visual C++ (no shared libs)
14068 # Anyone wants to do a port?
14070 irix5* | irix6* | nonstopux*)
14071 case $cc_basename in
14072 CC*)
14073 lt_prog_compiler_wl_CXX='-Wl,'
14074 lt_prog_compiler_static_CXX='-non_shared'
14075 # CC pic flag -KPIC is the default.
14079 esac
14081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14082 case $cc_basename in
14083 KCC*)
14084 # KAI C++ Compiler
14085 lt_prog_compiler_wl_CXX='--backend -Wl,'
14086 lt_prog_compiler_pic_CXX='-fPIC'
14088 ecpc* )
14089 # old Intel C++ for x86_64 which still supported -KPIC.
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 lt_prog_compiler_pic_CXX='-KPIC'
14092 lt_prog_compiler_static_CXX='-static'
14094 icpc* )
14095 # Intel C++, used to be incompatible with GCC.
14096 # ICC 10 doesn't accept -KPIC any more.
14097 lt_prog_compiler_wl_CXX='-Wl,'
14098 lt_prog_compiler_pic_CXX='-fPIC'
14099 lt_prog_compiler_static_CXX='-static'
14101 pgCC* | pgcpp*)
14102 # Portland Group C++ compiler
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_pic_CXX='-fpic'
14105 lt_prog_compiler_static_CXX='-Bstatic'
14107 cxx*)
14108 # Compaq C++
14109 # Make sure the PIC flag is empty. It appears that all Alpha
14110 # Linux and Compaq Tru64 Unix objects are PIC.
14111 lt_prog_compiler_pic_CXX=
14112 lt_prog_compiler_static_CXX='-non_shared'
14114 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14115 # IBM XL 8.0, 9.0 on PPC and BlueGene
14116 lt_prog_compiler_wl_CXX='-Wl,'
14117 lt_prog_compiler_pic_CXX='-qpic'
14118 lt_prog_compiler_static_CXX='-qstaticlink'
14121 case `$CC -V 2>&1 | sed 5q` in
14122 *Sun\ C*)
14123 # Sun C++ 5.9
14124 lt_prog_compiler_pic_CXX='-KPIC'
14125 lt_prog_compiler_static_CXX='-Bstatic'
14126 lt_prog_compiler_wl_CXX='-Qoption ld '
14128 esac
14130 esac
14132 lynxos*)
14134 m88k*)
14136 mvs*)
14137 case $cc_basename in
14138 cxx*)
14139 lt_prog_compiler_pic_CXX='-W c,exportall'
14143 esac
14145 netbsd*)
14147 *qnx* | *nto*)
14148 # QNX uses GNU C++, but need to define -shared option too, otherwise
14149 # it will coredump.
14150 lt_prog_compiler_pic_CXX='-fPIC -shared'
14152 osf3* | osf4* | osf5*)
14153 case $cc_basename in
14154 KCC*)
14155 lt_prog_compiler_wl_CXX='--backend -Wl,'
14157 RCC*)
14158 # Rational C++ 2.4.1
14159 lt_prog_compiler_pic_CXX='-pic'
14161 cxx*)
14162 # Digital/Compaq C++
14163 lt_prog_compiler_wl_CXX='-Wl,'
14164 # Make sure the PIC flag is empty. It appears that all Alpha
14165 # Linux and Compaq Tru64 Unix objects are PIC.
14166 lt_prog_compiler_pic_CXX=
14167 lt_prog_compiler_static_CXX='-non_shared'
14171 esac
14173 psos*)
14175 solaris*)
14176 case $cc_basename in
14177 CC*)
14178 # Sun C++ 4.2, 5.x and Centerline C++
14179 lt_prog_compiler_pic_CXX='-KPIC'
14180 lt_prog_compiler_static_CXX='-Bstatic'
14181 lt_prog_compiler_wl_CXX='-Qoption ld '
14183 gcx*)
14184 # Green Hills C++ Compiler
14185 lt_prog_compiler_pic_CXX='-PIC'
14189 esac
14191 sunos4*)
14192 case $cc_basename in
14193 CC*)
14194 # Sun C++ 4.x
14195 lt_prog_compiler_pic_CXX='-pic'
14196 lt_prog_compiler_static_CXX='-Bstatic'
14198 lcc*)
14199 # Lucid
14200 lt_prog_compiler_pic_CXX='-pic'
14204 esac
14206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14207 case $cc_basename in
14208 CC*)
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_pic_CXX='-KPIC'
14211 lt_prog_compiler_static_CXX='-Bstatic'
14213 esac
14215 tandem*)
14216 case $cc_basename in
14217 NCC*)
14218 # NonStop-UX NCC 3.20
14219 lt_prog_compiler_pic_CXX='-KPIC'
14223 esac
14225 vxworks*)
14228 lt_prog_compiler_can_build_shared_CXX=no
14230 esac
14233 case $host_os in
14234 # For platforms which do not support PIC, -DPIC is meaningless:
14235 *djgpp*)
14236 lt_prog_compiler_pic_CXX=
14239 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14241 esac
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14243 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14248 # Check to make sure the PIC flag actually works.
14250 if test -n "$lt_prog_compiler_pic_CXX"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14252 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14253 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 lt_cv_prog_compiler_pic_works_CXX=no
14257 ac_outfile=conftest.$ac_objext
14258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14259 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14260 # Insert the option either (1) after the last *FLAGS variable, or
14261 # (2) before a word containing "conftest.", or (3) at the end.
14262 # Note that $ac_compile itself does not contain backslashes and begins
14263 # with a dollar sign (not a hyphen), so the echo should work correctly.
14264 # The option is referenced via a variable to avoid confusing sed.
14265 lt_compile=`echo "$ac_compile" | $SED \
14266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14268 -e 's:$: $lt_compiler_flag:'`
14269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14270 (eval "$lt_compile" 2>conftest.err)
14271 ac_status=$?
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 if (exit $ac_status) && test -s "$ac_outfile"; then
14275 # The compiler can only warn and ignore the option if not recognized
14276 # So say no if there are warnings other than the usual output.
14277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14280 lt_cv_prog_compiler_pic_works_CXX=yes
14283 $RM conftest*
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14287 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14289 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14290 case $lt_prog_compiler_pic_CXX in
14291 "" | " "*) ;;
14292 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14293 esac
14294 else
14295 lt_prog_compiler_pic_CXX=
14296 lt_prog_compiler_can_build_shared_CXX=no
14304 # Check to make sure the static flag actually works.
14306 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14308 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14309 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 lt_cv_prog_compiler_static_works_CXX=no
14313 save_LDFLAGS="$LDFLAGS"
14314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14317 # The linker can only warn and ignore the option if not recognized
14318 # So say no if there are warnings
14319 if test -s conftest.err; then
14320 # Append any errors to the config.log.
14321 cat conftest.err 1>&5
14322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324 if diff conftest.exp conftest.er2 >/dev/null; then
14325 lt_cv_prog_compiler_static_works_CXX=yes
14327 else
14328 lt_cv_prog_compiler_static_works_CXX=yes
14331 $RM -r conftest*
14332 LDFLAGS="$save_LDFLAGS"
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14336 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14338 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14340 else
14341 lt_prog_compiler_static_CXX=
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14348 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14349 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 lt_cv_prog_compiler_c_o_CXX=no
14353 $RM -r conftest 2>/dev/null
14354 mkdir conftest
14355 cd conftest
14356 mkdir out
14357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14359 lt_compiler_flag="-o out/conftest2.$ac_objext"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 lt_compile=`echo "$ac_compile" | $SED \
14365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367 -e 's:$: $lt_compiler_flag:'`
14368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14369 (eval "$lt_compile" 2>out/conftest.err)
14370 ac_status=$?
14371 cat out/conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14374 then
14375 # The compiler can only warn and ignore the option if not recognized
14376 # So say no if there are warnings
14377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_c_o_CXX=yes
14383 chmod u+w . 2>&5
14384 $RM conftest*
14385 # SGI C++ compiler will create directory out/ii_files/ for
14386 # template instantiation
14387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14388 $RM out/* && rmdir out
14389 cd ..
14390 $RM -r conftest
14391 $RM conftest*
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14395 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14401 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 lt_cv_prog_compiler_c_o_CXX=no
14405 $RM -r conftest 2>/dev/null
14406 mkdir conftest
14407 cd conftest
14408 mkdir out
14409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14411 lt_compiler_flag="-o out/conftest2.$ac_objext"
14412 # Insert the option either (1) after the last *FLAGS variable, or
14413 # (2) before a word containing "conftest.", or (3) at the end.
14414 # Note that $ac_compile itself does not contain backslashes and begins
14415 # with a dollar sign (not a hyphen), so the echo should work correctly.
14416 lt_compile=`echo "$ac_compile" | $SED \
14417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419 -e 's:$: $lt_compiler_flag:'`
14420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14421 (eval "$lt_compile" 2>out/conftest.err)
14422 ac_status=$?
14423 cat out/conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14426 then
14427 # The compiler can only warn and ignore the option if not recognized
14428 # So say no if there are warnings
14429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_c_o_CXX=yes
14435 chmod u+w . 2>&5
14436 $RM conftest*
14437 # SGI C++ compiler will create directory out/ii_files/ for
14438 # template instantiation
14439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14440 $RM out/* && rmdir out
14441 cd ..
14442 $RM -r conftest
14443 $RM conftest*
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14447 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14452 hard_links="nottested"
14453 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14454 # do not overwrite the value of need_locks provided by the user
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14456 $as_echo_n "checking if we can lock with hard links... " >&6; }
14457 hard_links=yes
14458 $RM conftest*
14459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14460 touch conftest.a
14461 ln conftest.a conftest.b 2>&5 || hard_links=no
14462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14464 $as_echo "$hard_links" >&6; }
14465 if test "$hard_links" = no; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14467 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14468 need_locks=warn
14470 else
14471 need_locks=no
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14479 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14480 case $host_os in
14481 aix[4-9]*)
14482 # If we're using GNU nm, then we don't want the "-C" option.
14483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14484 # Also, AIX nm treats weak defined symbols like other global defined
14485 # symbols, whereas GNU nm marks them as "W".
14486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14487 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'
14488 else
14489 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14492 pw32*)
14493 export_symbols_cmds_CXX="$ltdll_cmds"
14495 cygwin* | mingw* | cegcc*)
14496 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'
14499 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14501 esac
14502 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14505 $as_echo "$ld_shlibs_CXX" >&6; }
14506 test "$ld_shlibs_CXX" = no && can_build_shared=no
14508 with_gnu_ld_CXX=$with_gnu_ld
14516 # Do we need to explicitly link libc?
14518 case "x$archive_cmds_need_lc_CXX" in
14519 x|xyes)
14520 # Assume -lc should be added
14521 archive_cmds_need_lc_CXX=yes
14523 if test "$enable_shared" = yes && test "$GCC" = yes; then
14524 case $archive_cmds_CXX in
14525 *'~'*)
14526 # FIXME: we may have to deal with multi-command sequences.
14528 '$CC '*)
14529 # Test whether the compiler implicitly links with -lc since on some
14530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14531 # to ld, don't add -lc before -lgcc.
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14534 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 $RM conftest*
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14541 (eval $ac_compile) 2>&5
14542 ac_status=$?
14543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544 test $ac_status = 0; } 2>conftest.err; then
14545 soname=conftest
14546 lib=conftest
14547 libobjs=conftest.$ac_objext
14548 deplibs=
14549 wl=$lt_prog_compiler_wl_CXX
14550 pic_flag=$lt_prog_compiler_pic_CXX
14551 compiler_flags=-v
14552 linker_flags=-v
14553 verstring=
14554 output_objdir=.
14555 libname=conftest
14556 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14557 allow_undefined_flag_CXX=
14558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14559 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14560 ac_status=$?
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; }
14563 then
14564 lt_cv_archive_cmds_need_lc_CXX=no
14565 else
14566 lt_cv_archive_cmds_need_lc_CXX=yes
14568 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14569 else
14570 cat conftest.err 1>&5
14572 $RM conftest*
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14576 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14577 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14579 esac
14582 esac
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14648 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14650 library_names_spec=
14651 libname_spec='lib$name'
14652 soname_spec=
14653 shrext_cmds=".so"
14654 postinstall_cmds=
14655 postuninstall_cmds=
14656 finish_cmds=
14657 finish_eval=
14658 shlibpath_var=
14659 shlibpath_overrides_runpath=unknown
14660 version_type=none
14661 dynamic_linker="$host_os ld.so"
14662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14663 need_lib_prefix=unknown
14664 hardcode_into_libs=no
14666 # when you set need_version to no, make sure it does not cause -set_version
14667 # flags to be left without arguments
14668 need_version=unknown
14670 case $host_os in
14671 aix3*)
14672 version_type=linux
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14674 shlibpath_var=LIBPATH
14676 # AIX 3 has no versioning support, so we append a major version to the name.
14677 soname_spec='${libname}${release}${shared_ext}$major'
14680 aix[4-9]*)
14681 version_type=linux
14682 need_lib_prefix=no
14683 need_version=no
14684 hardcode_into_libs=yes
14685 if test "$host_cpu" = ia64; then
14686 # AIX 5 supports IA64
14687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 else
14690 # With GCC up to 2.95.x, collect2 would create an import file
14691 # for dependence libraries. The import file would start with
14692 # the line `#! .'. This would cause the generated library to
14693 # depend on `.', always an invalid library. This was fixed in
14694 # development snapshots of GCC prior to 3.0.
14695 case $host_os in
14696 aix4 | aix4.[01] | aix4.[01].*)
14697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14698 echo ' yes '
14699 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14701 else
14702 can_build_shared=no
14705 esac
14706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14707 # soname into executable. Probably we can add versioning support to
14708 # collect2, so additional links can be useful in future.
14709 if test "$aix_use_runtimelinking" = yes; then
14710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14711 # instead of lib<name>.a to let people know that these are not
14712 # typical AIX shared libraries.
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 else
14715 # We preserve .a as extension for shared libraries through AIX4.2
14716 # and later when we are not doing run time linking.
14717 library_names_spec='${libname}${release}.a $libname.a'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14720 shlibpath_var=LIBPATH
14724 amigaos*)
14725 case $host_cpu in
14726 powerpc)
14727 # Since July 2007 AmigaOS4 officially supports .so libraries.
14728 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 m68k)
14732 library_names_spec='$libname.ixlibrary $libname.a'
14733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14734 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'
14736 esac
14739 beos*)
14740 library_names_spec='${libname}${shared_ext}'
14741 dynamic_linker="$host_os ld.so"
14742 shlibpath_var=LIBRARY_PATH
14745 bsdi[45]*)
14746 version_type=linux
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14753 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14754 # the default ld.so.conf also contains /usr/contrib/lib and
14755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14756 # libtool to hard-code these into programs
14759 cygwin* | mingw* | pw32* | cegcc*)
14760 version_type=windows
14761 shrext_cmds=".dll"
14762 need_version=no
14763 need_lib_prefix=no
14765 case $GCC,$host_os in
14766 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14767 library_names_spec='$libname.dll.a'
14768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14769 postinstall_cmds='base_file=`basename \${file}`~
14770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14771 dldir=$destdir/`dirname \$dlpath`~
14772 test -d \$dldir || mkdir -p \$dldir~
14773 $install_prog $dir/$dlname \$dldir/$dlname~
14774 chmod a+x \$dldir/$dlname~
14775 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14776 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779 dlpath=$dir/\$dldll~
14780 $RM \$dlpath'
14781 shlibpath_overrides_runpath=yes
14783 case $host_os in
14784 cygwin*)
14785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14789 mingw* | cegcc*)
14790 # MinGW DLLs use traditional 'lib' prefix
14791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14793 pw32*)
14794 # pw32 DLLs use 'pw' prefix rather than 'lib'
14795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797 esac
14801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14803 esac
14804 dynamic_linker='Win32 ld.exe'
14805 # FIXME: first we should search . and the directory the executable is in
14806 shlibpath_var=PATH
14809 darwin* | rhapsody*)
14810 dynamic_linker="$host_os dyld"
14811 version_type=darwin
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14815 soname_spec='${libname}${release}${major}$shared_ext'
14816 shlibpath_overrides_runpath=yes
14817 shlibpath_var=DYLD_LIBRARY_PATH
14818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14823 dgux*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14832 freebsd* | dragonfly*)
14833 # DragonFly does not have aout. When/if they implement a new
14834 # versioning mechanism, adjust this.
14835 if test -x /usr/bin/objformat; then
14836 objformat=`/usr/bin/objformat`
14837 else
14838 case $host_os in
14839 freebsd[23].*) objformat=aout ;;
14840 *) objformat=elf ;;
14841 esac
14843 version_type=freebsd-$objformat
14844 case $version_type in
14845 freebsd-elf*)
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14847 need_version=no
14848 need_lib_prefix=no
14850 freebsd-*)
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14852 need_version=yes
14854 esac
14855 shlibpath_var=LD_LIBRARY_PATH
14856 case $host_os in
14857 freebsd2.*)
14858 shlibpath_overrides_runpath=yes
14860 freebsd3.[01]* | freebsdelf3.[01]*)
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14869 *) # from 4.6 on, and DragonFly
14870 shlibpath_overrides_runpath=yes
14871 hardcode_into_libs=yes
14873 esac
14876 gnu*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 hardcode_into_libs=yes
14886 haiku*)
14887 version_type=linux
14888 need_lib_prefix=no
14889 need_version=no
14890 dynamic_linker="$host_os runtime_loader"
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14896 hardcode_into_libs=yes
14899 hpux9* | hpux10* | hpux11*)
14900 # Give a soname corresponding to the major version so that dld.sl refuses to
14901 # link against other versions.
14902 version_type=sunos
14903 need_lib_prefix=no
14904 need_version=no
14905 case $host_cpu in
14906 ia64*)
14907 shrext_cmds='.so'
14908 hardcode_into_libs=yes
14909 dynamic_linker="$host_os dld.so"
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 if test "X$HPUX_IA64_MODE" = X32; then
14915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14916 else
14917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14921 hppa*64*)
14922 shrext_cmds='.sl'
14923 hardcode_into_libs=yes
14924 dynamic_linker="$host_os dld.sl"
14925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14933 shrext_cmds='.sl'
14934 dynamic_linker="$host_os dld.sl"
14935 shlibpath_var=SHLIB_PATH
14936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14940 esac
14941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14942 postinstall_cmds='chmod 555 $lib'
14943 # or fails outright, so override atomically:
14944 install_override_mode=555
14947 interix[3-9]*)
14948 version_type=linux
14949 need_lib_prefix=no
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=no
14956 hardcode_into_libs=yes
14959 irix5* | irix6* | nonstopux*)
14960 case $host_os in
14961 nonstopux*) version_type=nonstopux ;;
14963 if test "$lt_cv_prog_gnu_ld" = yes; then
14964 version_type=linux
14965 else
14966 version_type=irix
14967 fi ;;
14968 esac
14969 need_lib_prefix=no
14970 need_version=no
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14973 case $host_os in
14974 irix5* | nonstopux*)
14975 libsuff= shlibsuff=
14978 case $LD in # libtool.m4 will add one of these switches to LD
14979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14980 libsuff= shlibsuff= libmagic=32-bit;;
14981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14982 libsuff=32 shlibsuff=N32 libmagic=N32;;
14983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14985 *) libsuff= shlibsuff= libmagic=never-match;;
14986 esac
14988 esac
14989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14990 shlibpath_overrides_runpath=no
14991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14993 hardcode_into_libs=yes
14996 # No shared lib support for Linux oldld, aout, or coff.
14997 linux*oldld* | linux*aout* | linux*coff*)
14998 dynamic_linker=no
15001 # This must be Linux ELF.
15002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=no
15012 # Some binutils ld are patched to set DT_RUNPATH
15013 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 lt_cv_shlibpath_overrides_runpath=no
15017 save_LDFLAGS=$LDFLAGS
15018 save_libdir=$libdir
15019 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15020 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15025 main ()
15029 return 0;
15031 _ACEOF
15032 if ac_fn_cxx_try_link "$LINENO"; then :
15033 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15034 lt_cv_shlibpath_overrides_runpath=yes
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LDFLAGS=$save_LDFLAGS
15040 libdir=$save_libdir
15044 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15046 # This implies no fast_install, which is unacceptable.
15047 # Some rework will be needed to allow for fast_install
15048 # before this can be enabled.
15049 hardcode_into_libs=yes
15051 # Append ld.so.conf contents to the search path
15052 if test -f /etc/ld.so.conf; then
15053 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' ' '`
15054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15057 # We used to test for /lib/ld.so.1 and disable shared libraries on
15058 # powerpc, because MkLinux only supported shared libraries with the
15059 # GNU dynamic linker. Since this was broken with cross compilers,
15060 # most powerpc-linux boxes support dynamic linking these days and
15061 # people can always --disable-shared, the test was removed, and we
15062 # assume the GNU/Linux dynamic linker is in use.
15063 dynamic_linker='GNU/Linux ld.so'
15066 netbsd*)
15067 version_type=sunos
15068 need_lib_prefix=no
15069 need_version=no
15070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073 dynamic_linker='NetBSD (a.out) ld.so'
15074 else
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 dynamic_linker='NetBSD ld.elf_so'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15084 newsos6)
15085 version_type=linux
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15091 *nto* | *qnx*)
15092 version_type=qnx
15093 need_lib_prefix=no
15094 need_version=no
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=no
15099 hardcode_into_libs=yes
15100 dynamic_linker='ldqnx.so'
15103 openbsd*)
15104 version_type=sunos
15105 sys_lib_dlsearch_path_spec="/usr/lib"
15106 need_lib_prefix=no
15107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15108 case $host_os in
15109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15110 *) need_version=no ;;
15111 esac
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15116 case $host_os in
15117 openbsd2.[89] | openbsd2.[89].*)
15118 shlibpath_overrides_runpath=no
15121 shlibpath_overrides_runpath=yes
15123 esac
15124 else
15125 shlibpath_overrides_runpath=yes
15129 os2*)
15130 libname_spec='$name'
15131 shrext_cmds=".dll"
15132 need_lib_prefix=no
15133 library_names_spec='$libname${shared_ext} $libname.a'
15134 dynamic_linker='OS/2 ld.exe'
15135 shlibpath_var=LIBPATH
15138 osf3* | osf4* | osf5*)
15139 version_type=osf
15140 need_lib_prefix=no
15141 need_version=no
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15149 rdos*)
15150 dynamic_linker=no
15153 solaris*)
15154 version_type=linux
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 hardcode_into_libs=yes
15162 # ldd complains unless libraries are executable
15163 postinstall_cmds='chmod +x $lib'
15166 sunos4*)
15167 version_type=sunos
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes
15172 if test "$with_gnu_ld" = yes; then
15173 need_lib_prefix=no
15175 need_version=yes
15178 sysv4 | sysv4.3*)
15179 version_type=linux
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 case $host_vendor in
15184 sni)
15185 shlibpath_overrides_runpath=no
15186 need_lib_prefix=no
15187 runpath_var=LD_RUN_PATH
15189 siemens)
15190 need_lib_prefix=no
15192 motorola)
15193 need_lib_prefix=no
15194 need_version=no
15195 shlibpath_overrides_runpath=no
15196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15198 esac
15201 sysv4*MP*)
15202 if test -d /usr/nec ;then
15203 version_type=linux
15204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205 soname_spec='$libname${shared_ext}.$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211 version_type=freebsd-elf
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 if test "$with_gnu_ld" = yes; then
15220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15221 else
15222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223 case $host_os in
15224 sco3.2v5*)
15225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15227 esac
15229 sys_lib_dlsearch_path_spec='/usr/lib'
15232 tpf*)
15233 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15234 version_type=linux
15235 need_lib_prefix=no
15236 need_version=no
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=no
15240 hardcode_into_libs=yes
15243 uts4*)
15244 version_type=linux
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15251 dynamic_linker=no
15253 esac
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15255 $as_echo "$dynamic_linker" >&6; }
15256 test "$dynamic_linker" = no && can_build_shared=no
15258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15259 if test "$GCC" = yes; then
15260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15266 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15309 hardcode_action_CXX=
15310 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15311 test -n "$runpath_var_CXX" ||
15312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15314 # We can hardcode non-existent directories.
15315 if test "$hardcode_direct_CXX" != no &&
15316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15317 # have to relink, otherwise we might link with an installed library
15318 # when we should be linking with a yet-to-be-installed one
15319 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15320 test "$hardcode_minus_L_CXX" != no; then
15321 # Linking always hardcodes the temporary library directory.
15322 hardcode_action_CXX=relink
15323 else
15324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15325 hardcode_action_CXX=immediate
15327 else
15328 # We cannot hardcode anything, or else we can only hardcode existing
15329 # directories.
15330 hardcode_action_CXX=unsupported
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15333 $as_echo "$hardcode_action_CXX" >&6; }
15335 if test "$hardcode_action_CXX" = relink ||
15336 test "$inherit_rpath_CXX" = yes; then
15337 # Fast installation is not supported
15338 enable_fast_install=no
15339 elif test "$shlibpath_overrides_runpath" = yes ||
15340 test "$enable_shared" = no; then
15341 # Fast installation is not necessary
15342 enable_fast_install=needless
15351 fi # test -n "$compiler"
15353 CC=$lt_save_CC
15354 LDCXX=$LD
15355 LD=$lt_save_LD
15356 GCC=$lt_save_GCC
15357 with_gnu_ld=$lt_save_with_gnu_ld
15358 lt_cv_path_LDCXX=$lt_cv_path_LD
15359 lt_cv_path_LD=$lt_save_path_LD
15360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15362 fi # test "$_lt_caught_CXX_error" != yes
15364 ac_ext=c
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15382 ac_config_commands="$ac_config_commands libtool"
15387 # Only expand once:
15391 for ac_prog in gawk mawk nawk awk
15393 # Extract the first word of "$ac_prog", so it can be a program name with args.
15394 set dummy $ac_prog; ac_word=$2
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396 $as_echo_n "checking for $ac_word... " >&6; }
15397 if test "${ac_cv_prog_AWK+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 if test -n "$AWK"; then
15401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15402 else
15403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404 for as_dir in $PATH
15406 IFS=$as_save_IFS
15407 test -z "$as_dir" && as_dir=.
15408 for ac_exec_ext in '' $ac_executable_extensions; do
15409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15410 ac_cv_prog_AWK="$ac_prog"
15411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412 break 2
15414 done
15415 done
15416 IFS=$as_save_IFS
15420 AWK=$ac_cv_prog_AWK
15421 if test -n "$AWK"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15423 $as_echo "$AWK" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15430 test -n "$AWK" && break
15431 done
15433 case "$AWK" in
15434 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15435 esac
15440 # The cast to long int works around a bug in the HP C Compiler
15441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15443 # This bug is HP SR number 8606223364.
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15445 $as_echo_n "checking size of void *... " >&6; }
15446 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15451 else
15452 if test "$ac_cv_type_void_p" = yes; then
15453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15455 { as_fn_set_status 77
15456 as_fn_error "cannot compute sizeof (void *)
15457 See \`config.log' for more details." "$LINENO" 5; }; }
15458 else
15459 ac_cv_sizeof_void_p=0
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15465 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15469 cat >>confdefs.h <<_ACEOF
15470 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15471 _ACEOF
15475 if test "${multilib}" = "yes"; then
15476 multilib_arg="--enable-multilib"
15477 else
15478 multilib_arg=
15481 # Get target configury.
15482 unset TSAN_SUPPORTED
15483 unset LSAN_SUPPORTED
15484 . ${srcdir}/configure.tgt
15485 if test "x$TSAN_SUPPORTED" = "xyes"; then
15486 TSAN_SUPPORTED_TRUE=
15487 TSAN_SUPPORTED_FALSE='#'
15488 else
15489 TSAN_SUPPORTED_TRUE='#'
15490 TSAN_SUPPORTED_FALSE=
15493 if test "x$LSAN_SUPPORTED" = "xyes"; then
15494 LSAN_SUPPORTED_TRUE=
15495 LSAN_SUPPORTED_FALSE='#'
15496 else
15497 LSAN_SUPPORTED_TRUE='#'
15498 LSAN_SUPPORTED_FALSE=
15502 # Check for functions needed.
15503 for ac_func in clock_getres clock_gettime clock_settime
15504 do :
15505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15506 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15507 eval as_val=\$$as_ac_var
15508 if test "x$as_val" = x""yes; then :
15509 cat >>confdefs.h <<_ACEOF
15510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 _ACEOF
15514 done
15517 # Common libraries that we need to link against for all sanitizer libs.
15518 link_sanitizer_common='-lpthread -lm'
15520 # At least for glibc, shm_open is in librt. But don't pull that
15521 # in if it still doesn't give us the function we want. This
15522 # test is copied from libgomp.
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15524 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15525 if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lrt $LIBS"
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15533 /* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15536 #ifdef __cplusplus
15537 extern "C"
15538 #endif
15539 char shm_open ();
15541 main ()
15543 return shm_open ();
15545 return 0;
15547 _ACEOF
15548 if ac_fn_c_try_link "$LINENO"; then :
15549 ac_cv_lib_rt_shm_open=yes
15550 else
15551 ac_cv_lib_rt_shm_open=no
15553 rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555 LIBS=$ac_check_lib_save_LIBS
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15558 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15559 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
15560 link_sanitizer_common="-lrt $link_sanitizer_common"
15564 # Do a configure time check for -ldl
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15566 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15567 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-ldl $LIBS"
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15575 /* Override any GCC internal prototype to avoid an error.
15576 Use char because int might match the return type of a GCC
15577 builtin and then its argument prototype would still apply. */
15578 #ifdef __cplusplus
15579 extern "C"
15580 #endif
15581 char dlsym ();
15583 main ()
15585 return dlsym ();
15587 return 0;
15589 _ACEOF
15590 if ac_fn_c_try_link "$LINENO"; then :
15591 ac_cv_lib_dl_dlsym=yes
15592 else
15593 ac_cv_lib_dl_dlsym=no
15595 rm -f core conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15600 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15601 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15602 link_sanitizer_common="-ldl $link_sanitizer_common"
15606 # Set up the set of additional libraries that we need to link against for libasan.
15607 link_libasan=$link_sanitizer_common
15610 # Set up the set of additional libraries that we need to link against for libtsan.
15611 link_libtsan=$link_sanitizer_common
15614 # Set up the set of additional libraries that we need to link against for libubsan.
15615 link_libubsan=$link_sanitizer_common
15618 # Set up the set of additional libraries that we need to link against for liblsan.
15619 link_liblsan=$link_sanitizer_common
15623 # At least for glibc, clock_gettime is in librt. But don't pull that
15624 # in if it still doesn't give us the function we want. This
15625 # test is copied from libgomp.
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15627 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15628 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lrt $LIBS"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char clock_gettime ();
15644 main ()
15646 return clock_gettime ();
15648 return 0;
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"; then :
15652 ac_cv_lib_rt_clock_gettime=yes
15653 else
15654 ac_cv_lib_rt_clock_gettime=no
15656 rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15658 LIBS=$ac_check_lib_save_LIBS
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15661 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15662 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15663 link_libasan="-lrt $link_libasan"
15664 link_libtsan="-lrt $link_libtsan"
15665 # Other sanitizers do not override clock_* API
15670 case "$host" in
15671 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15672 *) MAC_INTERPOSE=false ;;
15673 esac
15674 if $MAC_INTERPOSE; then
15675 USING_MAC_INTERPOSE_TRUE=
15676 USING_MAC_INTERPOSE_FALSE='#'
15677 else
15678 USING_MAC_INTERPOSE_TRUE='#'
15679 USING_MAC_INTERPOSE_FALSE=
15683 backtrace_supported=yes
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15686 $as_echo_n "checking for necessary platform features... " >&6; }
15687 case "$target" in
15688 *-*-linux*)
15689 # Some old Linux distributions miss required syscalls.
15690 sanitizer_supported=no
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <sys/syscall.h>
15695 main ()
15698 syscall (__NR_gettid);
15699 syscall (__NR_futex);
15700 syscall (__NR_exit_group);
15703 return 0;
15705 _ACEOF
15706 if ac_fn_c_try_compile "$LINENO"; then :
15707 sanitizer_supported=yes
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 sanitizer_supported=yes
15714 esac
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15716 $as_echo "$sanitizer_supported" >&6; }
15717 if test "$sanitizer_supported" = yes; then
15718 SANITIZER_SUPPORTED_TRUE=
15719 SANITIZER_SUPPORTED_FALSE='#'
15720 else
15721 SANITIZER_SUPPORTED_TRUE='#'
15722 SANITIZER_SUPPORTED_FALSE=
15726 # Test for __sync support.
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15728 $as_echo_n "checking __sync extensions... " >&6; }
15729 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 if test -n "${with_target_subdir}"; then
15733 libsanitizer_cv_sys_sync=yes
15734 else
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 int i;
15739 main ()
15741 __sync_bool_compare_and_swap (&i, i, i);
15742 __sync_lock_test_and_set (&i, 1);
15743 __sync_lock_release (&i);
15745 return 0;
15747 _ACEOF
15748 if ac_fn_c_try_link "$LINENO"; then :
15749 libsanitizer_cv_sys_sync=yes
15750 else
15751 libsanitizer_cv_sys_sync=no
15753 rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15758 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15759 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15761 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15765 # Test for __atomic support.
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15767 $as_echo_n "checking __atomic extensions... " >&6; }
15768 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15769 $as_echo_n "(cached) " >&6
15770 else
15771 if test -n "${with_target_subdir}"; then
15772 libsanitizer_cv_sys_atomic=yes
15773 else
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15776 int i;
15778 main ()
15780 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15781 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_link "$LINENO"; then :
15787 libsanitizer_cv_sys_atomic=yes
15788 else
15789 libsanitizer_cv_sys_atomic=no
15791 rm -f core conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15796 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15797 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15799 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15803 # The library needs to be able to read the executable itself. Compile
15804 # a file to determine the executable format. The awk script
15805 # filetype.awk prints out the file type.
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15807 $as_echo_n "checking output filetype... " >&6; }
15808 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 filetype=
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814 int i;
15816 main ()
15818 int j;
15820 return 0;
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15825 else
15826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828 as_fn_error "compiler failed
15829 See \`config.log' for more details." "$LINENO" 5; }
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 libsanitizer_cv_sys_filetype=$filetype
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15835 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15837 # Match the file type to decide what files to compile.
15838 FORMAT_FILE=
15839 case "$libsanitizer_cv_sys_filetype" in
15840 elf*) FORMAT_FILE="elf.lo" ;;
15841 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15842 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15843 FORMAT_FILE="unknown.lo"
15844 backtrace_supported=no
15846 esac
15849 # ELF defines.
15850 elfsize=
15851 case "$libsanitizer_cv_sys_filetype" in
15852 elf32) elfsize=32 ;;
15853 elf64) elfsize=64 ;;
15854 esac
15856 cat >>confdefs.h <<_ACEOF
15857 #define BACKTRACE_ELF_SIZE $elfsize
15858 _ACEOF
15861 BACKTRACE_SUPPORTED=0
15862 if test "$backtrace_supported" = "yes"; then
15863 BACKTRACE_SUPPORTED=1
15869 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15871 acx_cv_header_stdint=stddef.h
15872 acx_cv_header_stdint_kind="(already complete)"
15873 for i in stdint.h $inttype_headers; do
15874 unset ac_cv_type_uintptr_t
15875 unset ac_cv_type_uintmax_t
15876 unset ac_cv_type_int_least32_t
15877 unset ac_cv_type_int_fast32_t
15878 unset ac_cv_type_uint64_t
15879 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15880 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15881 #include <$i>
15883 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15884 acx_cv_header_stdint=$i
15885 else
15886 continue
15889 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15890 #include <$i>
15892 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15894 else
15895 acx_cv_header_stdint_kind="(mostly complete)"
15898 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15899 #include <$i>
15901 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15903 else
15904 acx_cv_header_stdint_kind="(mostly complete)"
15907 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15908 #include <$i>
15910 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15912 else
15913 acx_cv_header_stdint_kind="(mostly complete)"
15916 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15917 #include <$i>
15919 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15921 else
15922 acx_cv_header_stdint_kind="(lacks uint64_t)"
15925 break
15926 done
15927 if test "$acx_cv_header_stdint" = stddef.h; then
15928 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15929 for i in stdint.h $inttype_headers; do
15930 unset ac_cv_type_uintptr_t
15931 unset ac_cv_type_uint32_t
15932 unset ac_cv_type_uint64_t
15933 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15934 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15935 #include <$i>
15937 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15938 acx_cv_header_stdint=$i
15939 else
15940 continue
15943 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15944 #include <$i>
15946 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15950 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15951 #include <$i>
15953 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15957 break
15958 done
15960 if test "$acx_cv_header_stdint" = stddef.h; then
15961 acx_cv_header_stdint_kind="(u_intXX_t style)"
15962 for i in sys/types.h $inttype_headers; do
15963 unset ac_cv_type_u_int32_t
15964 unset ac_cv_type_u_int64_t
15965 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15966 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15967 #include <$i>
15969 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15970 acx_cv_header_stdint=$i
15971 else
15972 continue
15975 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15976 #include <$i>
15978 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15982 break
15983 done
15985 if test "$acx_cv_header_stdint" = stddef.h; then
15986 acx_cv_header_stdint_kind="(using manual detection)"
15989 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15990 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15991 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15992 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15993 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15995 # ----------------- Summarize what we found so far
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15998 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16000 case `$as_basename -- gstdint.h ||
16001 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16002 Xgstdint.h : 'X\(//\)$' \| \
16003 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16004 $as_echo X/gstdint.h |
16005 sed '/^.*\/\([^/][^/]*\)\/*$/{
16006 s//\1/
16009 /^X\/\(\/\/\)$/{
16010 s//\1/
16013 /^X\/\(\/\).*/{
16014 s//\1/
16017 s/.*/./; q'` in
16018 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16019 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16020 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16021 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16022 *) ;;
16023 esac
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16026 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16028 # ----------------- done included file, check C basic types --------
16030 # Lacking an uintptr_t? Test size of void *
16031 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16032 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16035 # This bug is HP SR number 8606223364.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16037 $as_echo_n "checking size of void *... " >&6; }
16038 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16043 else
16044 if test "$ac_cv_type_void_p" = yes; then
16045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16047 { as_fn_set_status 77
16048 as_fn_error "cannot compute sizeof (void *)
16049 See \`config.log' for more details." "$LINENO" 5; }; }
16050 else
16051 ac_cv_sizeof_void_p=0
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16057 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16061 cat >>confdefs.h <<_ACEOF
16062 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16063 _ACEOF
16066 esac
16068 # Lacking an uint64_t? Test size of long
16069 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16070 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073 # This bug is HP SR number 8606223364.
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16075 $as_echo_n "checking size of long... " >&6; }
16076 if test "${ac_cv_sizeof_long+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16078 else
16079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16081 else
16082 if test "$ac_cv_type_long" = yes; then
16083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16085 { as_fn_set_status 77
16086 as_fn_error "cannot compute sizeof (long)
16087 See \`config.log' for more details." "$LINENO" 5; }; }
16088 else
16089 ac_cv_sizeof_long=0
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16095 $as_echo "$ac_cv_sizeof_long" >&6; }
16099 cat >>confdefs.h <<_ACEOF
16100 #define SIZEOF_LONG $ac_cv_sizeof_long
16101 _ACEOF
16104 esac
16106 if test $acx_cv_header_stdint = stddef.h; then
16107 # Lacking a good header? Test size of everything and deduce all types.
16108 # The cast to long int works around a bug in the HP C Compiler
16109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16111 # This bug is HP SR number 8606223364.
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16113 $as_echo_n "checking size of int... " >&6; }
16114 if test "${ac_cv_sizeof_int+set}" = set; then :
16115 $as_echo_n "(cached) " >&6
16116 else
16117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16119 else
16120 if test "$ac_cv_type_int" = yes; then
16121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16123 { as_fn_set_status 77
16124 as_fn_error "cannot compute sizeof (int)
16125 See \`config.log' for more details." "$LINENO" 5; }; }
16126 else
16127 ac_cv_sizeof_int=0
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16133 $as_echo "$ac_cv_sizeof_int" >&6; }
16137 cat >>confdefs.h <<_ACEOF
16138 #define SIZEOF_INT $ac_cv_sizeof_int
16139 _ACEOF
16142 # The cast to long int works around a bug in the HP C Compiler
16143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145 # This bug is HP SR number 8606223364.
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16147 $as_echo_n "checking size of short... " >&6; }
16148 if test "${ac_cv_sizeof_short+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16153 else
16154 if test "$ac_cv_type_short" = yes; then
16155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16157 { as_fn_set_status 77
16158 as_fn_error "cannot compute sizeof (short)
16159 See \`config.log' for more details." "$LINENO" 5; }; }
16160 else
16161 ac_cv_sizeof_short=0
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16167 $as_echo "$ac_cv_sizeof_short" >&6; }
16171 cat >>confdefs.h <<_ACEOF
16172 #define SIZEOF_SHORT $ac_cv_sizeof_short
16173 _ACEOF
16176 # The cast to long int works around a bug in the HP C Compiler
16177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16179 # This bug is HP SR number 8606223364.
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16181 $as_echo_n "checking size of char... " >&6; }
16182 if test "${ac_cv_sizeof_char+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16187 else
16188 if test "$ac_cv_type_char" = yes; then
16189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16191 { as_fn_set_status 77
16192 as_fn_error "cannot compute sizeof (char)
16193 See \`config.log' for more details." "$LINENO" 5; }; }
16194 else
16195 ac_cv_sizeof_char=0
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16201 $as_echo "$ac_cv_sizeof_char" >&6; }
16205 cat >>confdefs.h <<_ACEOF
16206 #define SIZEOF_CHAR $ac_cv_sizeof_char
16207 _ACEOF
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16212 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16213 case "$ac_cv_sizeof_char" in
16214 1) acx_cv_type_int8_t=char ;;
16215 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16216 esac
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16218 $as_echo "$acx_cv_type_int8_t" >&6; }
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16221 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16222 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16223 2:*) acx_cv_type_int16_t=int ;;
16224 *:2) acx_cv_type_int16_t=short ;;
16225 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16226 esac
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16228 $as_echo "$acx_cv_type_int16_t" >&6; }
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16231 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16232 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16233 4:*) acx_cv_type_int32_t=int ;;
16234 *:4) acx_cv_type_int32_t=long ;;
16235 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16236 esac
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16238 $as_echo "$acx_cv_type_int32_t" >&6; }
16241 # These tests are here to make the output prettier
16243 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16244 case "$ac_cv_sizeof_long" in
16245 8) acx_cv_type_int64_t=long ;;
16246 esac
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16248 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16250 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16253 # Now we can use the above types
16255 if test "$ac_cv_type_uintptr_t" != yes; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16257 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16258 case $ac_cv_sizeof_void_p in
16259 2) acx_cv_type_intptr_t=int16_t ;;
16260 4) acx_cv_type_intptr_t=int32_t ;;
16261 8) acx_cv_type_intptr_t=int64_t ;;
16262 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16263 esac
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16265 $as_echo "$acx_cv_type_intptr_t" >&6; }
16268 # ----------------- done all checks, emit header -------------
16269 ac_config_commands="$ac_config_commands gstdint.h"
16274 for ac_header in sys/mman.h alloca.h
16275 do :
16276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16278 eval as_val=\$$as_ac_Header
16279 if test "x$as_val" = x""yes; then :
16280 cat >>confdefs.h <<_ACEOF
16281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16282 _ACEOF
16286 done
16288 if test "$ac_cv_header_sys_mman_h" = "no"; then
16289 have_mmap=no
16290 else
16291 if test -n "${with_target_subdir}"; then
16292 # When built as a GCC target library, we can't do a link test. We
16293 # simply assume that if we have mman.h, we have mmap.
16294 have_mmap=yes
16295 else
16296 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16297 if test "x$ac_cv_func_mmap" = x""yes; then :
16298 have_mmap=yes
16299 else
16300 have_mmap=no
16305 if test "$have_mmap" = "no"; then
16306 VIEW_FILE=read.lo
16307 ALLOC_FILE=alloc.lo
16308 else
16309 VIEW_FILE=mmapio.lo
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16313 #include <sys/mman.h>
16314 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16315 #error no MAP_ANONYMOUS
16316 #endif
16318 _ACEOF
16319 if ac_fn_c_try_cpp "$LINENO"; then :
16320 ALLOC_FILE=mmap.lo
16321 else
16322 ALLOC_FILE=alloc.lo
16324 rm -f conftest.err conftest.$ac_ext
16329 BACKTRACE_USES_MALLOC=0
16330 if test "$ALLOC_FILE" = "alloc.lo"; then
16331 BACKTRACE_USES_MALLOC=1
16335 # Don't care about thread support
16336 BACKTRACE_SUPPORTS_THREADS=0
16339 # Check for dl_iterate_phdr.
16340 for ac_header in link.h
16341 do :
16342 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16343 if test "x$ac_cv_header_link_h" = x""yes; then :
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_LINK_H 1
16346 _ACEOF
16350 done
16352 if test "$ac_cv_header_link_h" = "no"; then
16353 have_dl_iterate_phdr=no
16354 else
16355 # When built as a GCC target library, we can't do a link test.
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 #include <link.h>
16360 _ACEOF
16361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16362 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16363 have_dl_iterate_phdr=yes
16364 else
16365 have_dl_iterate_phdr=no
16367 rm -f conftest*
16369 case "${host}" in
16370 *-*-solaris2.10*)
16371 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16372 # header file but is only in -ldl.
16373 have_dl_iterate_phdr=no ;;
16374 esac
16376 if test "$have_dl_iterate_phdr" = "yes"; then
16378 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16382 # Check for the fcntl function.
16383 if test -n "${with_target_subdir}"; then
16384 case "${host}" in
16385 *-*-mingw*) have_fcntl=no ;;
16386 *) have_fcntl=yes ;;
16387 esac
16388 else
16389 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16390 if test "x$ac_cv_func_fcntl" = x""yes; then :
16391 have_fcntl=yes
16392 else
16393 have_fcntl=no
16397 if test "$have_fcntl" = "yes"; then
16399 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16403 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16404 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16405 ac_have_decl=1
16406 else
16407 ac_have_decl=0
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_DECL_STRNLEN $ac_have_decl
16412 _ACEOF
16415 # Check for getexecname function.
16416 if test -n "${with_target_subdir}"; then
16417 case "${host}" in
16418 *-*-solaris2*) have_getexecname=yes ;;
16419 *) have_getexecname=no ;;
16420 esac
16421 else
16422 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16423 if test "x$ac_cv_func_getexecname" = x""yes; then :
16424 have_getexecname=yes
16425 else
16426 have_getexecname=no
16430 if test "$have_getexecname" = "yes"; then
16432 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16436 # Check for rpc/xdr.h
16437 for ac_header in rpc/xdr.h
16438 do :
16439 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16440 if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then :
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_RPC_XDR_H 1
16443 _ACEOF
16447 done
16449 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16450 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16451 else
16452 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16455 # Check for tirpc/rpc/xdr.h
16456 for ac_header in tirpc/rpc/xdr.h
16457 do :
16458 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16459 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_TIRPC_RPC_XDR_H 1
16462 _ACEOF
16466 done
16468 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16469 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16470 else
16471 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16474 RPC_DEFS=$rpc_defs
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking obstack params" >&5
16478 $as_echo_n "checking obstack params... " >&6; }
16479 if test "${libsanitizer_cv_sys_obstack+set}" = set; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 save_cppflags=$CPPFLAGS
16483 CPPFLAGS="-I${srcdir}/../include -o conftest.iii $CPPFLAGS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16487 #include "obstack.h"
16488 #ifdef _OBSTACK_SIZE_T
16489 _OBSTACK_SIZE_T
16490 #else
16492 #endif
16494 _ACEOF
16495 if ac_fn_c_try_cpp "$LINENO"; then :
16496 libsanitizer_cv_sys_obstack=`sed -e '/^#/d;/^[ ]*$/d' conftest.iii | sed -e '$!d;s/size_t/SIZE_T/'`
16497 else
16498 libsanitizer_cv_sys_obstack=int
16500 rm -f conftest.err conftest.$ac_ext
16501 CPPFLAGS=$save_cppflags
16502 rm -f conftest.iii
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_obstack" >&5
16506 $as_echo "$libsanitizer_cv_sys_obstack" >&6; }
16507 OBSTACK_DEFS=-D_OBSTACK_SIZE_T=\"$libsanitizer_cv_sys_obstack\"
16510 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16511 LIBBACKTRACE_SUPPORTED_TRUE=
16512 LIBBACKTRACE_SUPPORTED_FALSE='#'
16513 else
16514 LIBBACKTRACE_SUPPORTED_TRUE='#'
16515 LIBBACKTRACE_SUPPORTED_FALSE=
16520 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16522 ac_config_headers="$ac_config_headers config.h"
16525 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16528 if test "x$TSAN_SUPPORTED" = "xyes"; then
16529 ac_config_files="$ac_config_files tsan/Makefile"
16535 cat >confcache <<\_ACEOF
16536 # This file is a shell script that caches the results of configure
16537 # tests run on this system so they can be shared between configure
16538 # scripts and configure runs, see configure's option --config-cache.
16539 # It is not useful on other systems. If it contains results you don't
16540 # want to keep, you may remove or edit it.
16542 # config.status only pays attention to the cache file if you give it
16543 # the --recheck option to rerun configure.
16545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16547 # following values.
16549 _ACEOF
16551 # The following way of writing the cache mishandles newlines in values,
16552 # but we know of no workaround that is simple, portable, and efficient.
16553 # So, we kill variables containing newlines.
16554 # Ultrix sh set writes to stderr and can't be redirected directly,
16555 # and sets the high bit in the cache file unless we assign to the vars.
16557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16558 eval ac_val=\$$ac_var
16559 case $ac_val in #(
16560 *${as_nl}*)
16561 case $ac_var in #(
16562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16564 esac
16565 case $ac_var in #(
16566 _ | IFS | as_nl) ;; #(
16567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16568 *) { eval $ac_var=; unset $ac_var;} ;;
16569 esac ;;
16570 esac
16571 done
16573 (set) 2>&1 |
16574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16575 *${as_nl}ac_space=\ *)
16576 # `set' does not quote correctly, so add quotes: double-quote
16577 # substitution turns \\\\ into \\, and sed turns \\ into \.
16578 sed -n \
16579 "s/'/'\\\\''/g;
16580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16581 ;; #(
16583 # `set' quotes correctly as required by POSIX, so do not add quotes.
16584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16586 esac |
16587 sort
16589 sed '
16590 /^ac_cv_env_/b end
16591 t clear
16592 :clear
16593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16594 t end
16595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16596 :end' >>confcache
16597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16598 if test -w "$cache_file"; then
16599 test "x$cache_file" != "x/dev/null" &&
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16601 $as_echo "$as_me: updating cache $cache_file" >&6;}
16602 cat confcache >$cache_file
16603 else
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16608 rm -f confcache
16610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16611 # Let make expand exec_prefix.
16612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16614 DEFS=-DHAVE_CONFIG_H
16616 ac_libobjs=
16617 ac_ltlibobjs=
16618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16619 # 1. Remove the extension, and $U if already installed.
16620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16623 # will be set to the directory where LIBOBJS objects are built.
16624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16626 done
16627 LIBOBJS=$ac_libobjs
16629 LTLIBOBJS=$ac_ltlibobjs
16632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16633 as_fn_error "conditional \"AMDEP\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16637 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 if test -n "$EXEEXT"; then
16641 am__EXEEXT_TRUE=
16642 am__EXEEXT_FALSE='#'
16643 else
16644 am__EXEEXT_TRUE='#'
16645 am__EXEEXT_FALSE=
16648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16649 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16653 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16656 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16657 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16660 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16661 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16664 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16665 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16668 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16669 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16672 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16673 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16676 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16677 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16681 : ${CONFIG_STATUS=./config.status}
16682 ac_write_fail=0
16683 ac_clean_files_save=$ac_clean_files
16684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16687 as_write_fail=0
16688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16689 #! $SHELL
16690 # Generated by $as_me.
16691 # Run this file to recreate the current configuration.
16692 # Compiler output produced by configure, useful for debugging
16693 # configure, is in config.log if it exists.
16695 debug=false
16696 ac_cs_recheck=false
16697 ac_cs_silent=false
16699 SHELL=\${CONFIG_SHELL-$SHELL}
16700 export SHELL
16701 _ASEOF
16702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16703 ## -------------------- ##
16704 ## M4sh Initialization. ##
16705 ## -------------------- ##
16707 # Be more Bourne compatible
16708 DUALCASE=1; export DUALCASE # for MKS sh
16709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16710 emulate sh
16711 NULLCMD=:
16712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16713 # is contrary to our usage. Disable this feature.
16714 alias -g '${1+"$@"}'='"$@"'
16715 setopt NO_GLOB_SUBST
16716 else
16717 case `(set -o) 2>/dev/null` in #(
16718 *posix*) :
16719 set -o posix ;; #(
16720 *) :
16722 esac
16726 as_nl='
16728 export as_nl
16729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16733 # Prefer a ksh shell builtin over an external printf program on Solaris,
16734 # but without wasting forks for bash or zsh.
16735 if test -z "$BASH_VERSION$ZSH_VERSION" \
16736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16737 as_echo='print -r --'
16738 as_echo_n='print -rn --'
16739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16740 as_echo='printf %s\n'
16741 as_echo_n='printf %s'
16742 else
16743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16745 as_echo_n='/usr/ucb/echo -n'
16746 else
16747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16748 as_echo_n_body='eval
16749 arg=$1;
16750 case $arg in #(
16751 *"$as_nl"*)
16752 expr "X$arg" : "X\\(.*\\)$as_nl";
16753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16754 esac;
16755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16757 export as_echo_n_body
16758 as_echo_n='sh -c $as_echo_n_body as_echo'
16760 export as_echo_body
16761 as_echo='sh -c $as_echo_body as_echo'
16764 # The user is always right.
16765 if test "${PATH_SEPARATOR+set}" != set; then
16766 PATH_SEPARATOR=:
16767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16769 PATH_SEPARATOR=';'
16774 # IFS
16775 # We need space, tab and new line, in precisely that order. Quoting is
16776 # there to prevent editors from complaining about space-tab.
16777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16778 # splitting by setting IFS to empty value.)
16779 IFS=" "" $as_nl"
16781 # Find who we are. Look in the path if we contain no directory separator.
16782 case $0 in #((
16783 *[\\/]* ) as_myself=$0 ;;
16784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16787 IFS=$as_save_IFS
16788 test -z "$as_dir" && as_dir=.
16789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16790 done
16791 IFS=$as_save_IFS
16794 esac
16795 # We did not find ourselves, most probably we were run as `sh COMMAND'
16796 # in which case we are not to be found in the path.
16797 if test "x$as_myself" = x; then
16798 as_myself=$0
16800 if test ! -f "$as_myself"; then
16801 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16802 exit 1
16805 # Unset variables that we do not need and which cause bugs (e.g. in
16806 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16807 # suppresses any "Segmentation fault" message there. '((' could
16808 # trigger a bug in pdksh 5.2.14.
16809 for as_var in BASH_ENV ENV MAIL MAILPATH
16810 do eval test x\${$as_var+set} = xset \
16811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16812 done
16813 PS1='$ '
16814 PS2='> '
16815 PS4='+ '
16817 # NLS nuisances.
16818 LC_ALL=C
16819 export LC_ALL
16820 LANGUAGE=C
16821 export LANGUAGE
16823 # CDPATH.
16824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16827 # as_fn_error ERROR [LINENO LOG_FD]
16828 # ---------------------------------
16829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16831 # script with status $?, using 1 if that was 0.
16832 as_fn_error ()
16834 as_status=$?; test $as_status -eq 0 && as_status=1
16835 if test "$3"; then
16836 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16837 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16839 $as_echo "$as_me: error: $1" >&2
16840 as_fn_exit $as_status
16841 } # as_fn_error
16844 # as_fn_set_status STATUS
16845 # -----------------------
16846 # Set $? to STATUS, without forking.
16847 as_fn_set_status ()
16849 return $1
16850 } # as_fn_set_status
16852 # as_fn_exit STATUS
16853 # -----------------
16854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16855 as_fn_exit ()
16857 set +e
16858 as_fn_set_status $1
16859 exit $1
16860 } # as_fn_exit
16862 # as_fn_unset VAR
16863 # ---------------
16864 # Portably unset VAR.
16865 as_fn_unset ()
16867 { eval $1=; unset $1;}
16869 as_unset=as_fn_unset
16870 # as_fn_append VAR VALUE
16871 # ----------------------
16872 # Append the text in VALUE to the end of the definition contained in VAR. Take
16873 # advantage of any shell optimizations that allow amortized linear growth over
16874 # repeated appends, instead of the typical quadratic growth present in naive
16875 # implementations.
16876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16877 eval 'as_fn_append ()
16879 eval $1+=\$2
16881 else
16882 as_fn_append ()
16884 eval $1=\$$1\$2
16886 fi # as_fn_append
16888 # as_fn_arith ARG...
16889 # ------------------
16890 # Perform arithmetic evaluation on the ARGs, and store the result in the
16891 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16892 # must be portable across $(()) and expr.
16893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16894 eval 'as_fn_arith ()
16896 as_val=$(( $* ))
16898 else
16899 as_fn_arith ()
16901 as_val=`expr "$@" || test $? -eq 1`
16903 fi # as_fn_arith
16906 if expr a : '\(a\)' >/dev/null 2>&1 &&
16907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16908 as_expr=expr
16909 else
16910 as_expr=false
16913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16914 as_basename=basename
16915 else
16916 as_basename=false
16919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16920 as_dirname=dirname
16921 else
16922 as_dirname=false
16925 as_me=`$as_basename -- "$0" ||
16926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16927 X"$0" : 'X\(//\)$' \| \
16928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16929 $as_echo X/"$0" |
16930 sed '/^.*\/\([^/][^/]*\)\/*$/{
16931 s//\1/
16934 /^X\/\(\/\/\)$/{
16935 s//\1/
16938 /^X\/\(\/\).*/{
16939 s//\1/
16942 s/.*/./; q'`
16944 # Avoid depending upon Character Ranges.
16945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16948 as_cr_digits='0123456789'
16949 as_cr_alnum=$as_cr_Letters$as_cr_digits
16951 ECHO_C= ECHO_N= ECHO_T=
16952 case `echo -n x` in #(((((
16953 -n*)
16954 case `echo 'xy\c'` in
16955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16956 xy) ECHO_C='\c';;
16957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16958 ECHO_T=' ';;
16959 esac;;
16961 ECHO_N='-n';;
16962 esac
16964 rm -f conf$$ conf$$.exe conf$$.file
16965 if test -d conf$$.dir; then
16966 rm -f conf$$.dir/conf$$.file
16967 else
16968 rm -f conf$$.dir
16969 mkdir conf$$.dir 2>/dev/null
16971 if (echo >conf$$.file) 2>/dev/null; then
16972 if ln -s conf$$.file conf$$ 2>/dev/null; then
16973 as_ln_s='ln -s'
16974 # ... but there are two gotchas:
16975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16977 # In both cases, we have to default to `cp -p'.
16978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16979 as_ln_s='cp -p'
16980 elif ln conf$$.file conf$$ 2>/dev/null; then
16981 as_ln_s=ln
16982 else
16983 as_ln_s='cp -p'
16985 else
16986 as_ln_s='cp -p'
16988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16989 rmdir conf$$.dir 2>/dev/null
16992 # as_fn_mkdir_p
16993 # -------------
16994 # Create "$as_dir" as a directory, including parents if necessary.
16995 as_fn_mkdir_p ()
16998 case $as_dir in #(
16999 -*) as_dir=./$as_dir;;
17000 esac
17001 test -d "$as_dir" || eval $as_mkdir_p || {
17002 as_dirs=
17003 while :; do
17004 case $as_dir in #(
17005 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17006 *) as_qdir=$as_dir;;
17007 esac
17008 as_dirs="'$as_qdir' $as_dirs"
17009 as_dir=`$as_dirname -- "$as_dir" ||
17010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17011 X"$as_dir" : 'X\(//\)[^/]' \| \
17012 X"$as_dir" : 'X\(//\)$' \| \
17013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17014 $as_echo X"$as_dir" |
17015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17016 s//\1/
17019 /^X\(\/\/\)[^/].*/{
17020 s//\1/
17023 /^X\(\/\/\)$/{
17024 s//\1/
17027 /^X\(\/\).*/{
17028 s//\1/
17031 s/.*/./; q'`
17032 test -d "$as_dir" && break
17033 done
17034 test -z "$as_dirs" || eval "mkdir $as_dirs"
17035 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17038 } # as_fn_mkdir_p
17039 if mkdir -p . 2>/dev/null; then
17040 as_mkdir_p='mkdir -p "$as_dir"'
17041 else
17042 test -d ./-p && rmdir ./-p
17043 as_mkdir_p=false
17046 if test -x / >/dev/null 2>&1; then
17047 as_test_x='test -x'
17048 else
17049 if ls -dL / >/dev/null 2>&1; then
17050 as_ls_L_option=L
17051 else
17052 as_ls_L_option=
17054 as_test_x='
17055 eval sh -c '\''
17056 if test -d "$1"; then
17057 test -d "$1/.";
17058 else
17059 case $1 in #(
17060 -*)set "./$1";;
17061 esac;
17062 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17063 ???[sx]*):;;*)false;;esac;fi
17064 '\'' sh
17067 as_executable_p=$as_test_x
17069 # Sed expression to map a string onto a valid CPP name.
17070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17072 # Sed expression to map a string onto a valid variable name.
17073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17076 exec 6>&1
17077 ## ----------------------------------- ##
17078 ## Main body of $CONFIG_STATUS script. ##
17079 ## ----------------------------------- ##
17080 _ASEOF
17081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084 # Save the log message, to keep $0 and so on meaningful, and to
17085 # report actual input values of CONFIG_FILES etc. instead of their
17086 # values after options handling.
17087 ac_log="
17088 This file was extended by package-unused $as_me version-unused, which was
17089 generated by GNU Autoconf 2.64. Invocation command line was
17091 CONFIG_FILES = $CONFIG_FILES
17092 CONFIG_HEADERS = $CONFIG_HEADERS
17093 CONFIG_LINKS = $CONFIG_LINKS
17094 CONFIG_COMMANDS = $CONFIG_COMMANDS
17095 $ $0 $@
17097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17100 _ACEOF
17102 case $ac_config_files in *"
17103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17104 esac
17106 case $ac_config_headers in *"
17107 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17108 esac
17111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17112 # Files that config.status was made for.
17113 config_files="$ac_config_files"
17114 config_headers="$ac_config_headers"
17115 config_commands="$ac_config_commands"
17117 _ACEOF
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 ac_cs_usage="\
17121 \`$as_me' instantiates files and other configuration actions
17122 from templates according to the current configuration. Unless the files
17123 and actions are specified as TAGs, all are instantiated by default.
17125 Usage: $0 [OPTION]... [TAG]...
17127 -h, --help print this help, then exit
17128 -V, --version print version number and configuration settings, then exit
17129 -q, --quiet, --silent
17130 do not print progress messages
17131 -d, --debug don't remove temporary files
17132 --recheck update $as_me by reconfiguring in the same conditions
17133 --file=FILE[:TEMPLATE]
17134 instantiate the configuration file FILE
17135 --header=FILE[:TEMPLATE]
17136 instantiate the configuration header FILE
17138 Configuration files:
17139 $config_files
17141 Configuration headers:
17142 $config_headers
17144 Configuration commands:
17145 $config_commands
17147 Report bugs to <libsanitizer>."
17149 _ACEOF
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 ac_cs_version="\\
17152 package-unused config.status version-unused
17153 configured by $0, generated by GNU Autoconf 2.64,
17154 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17156 Copyright (C) 2009 Free Software Foundation, Inc.
17157 This config.status script is free software; the Free Software Foundation
17158 gives unlimited permission to copy, distribute and modify it."
17160 ac_pwd='$ac_pwd'
17161 srcdir='$srcdir'
17162 INSTALL='$INSTALL'
17163 MKDIR_P='$MKDIR_P'
17164 AWK='$AWK'
17165 test -n "\$AWK" || AWK=awk
17166 _ACEOF
17168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169 # The default lists apply if the user does not specify any file.
17170 ac_need_defaults=:
17171 while test $# != 0
17173 case $1 in
17174 --*=*)
17175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17177 ac_shift=:
17180 ac_option=$1
17181 ac_optarg=$2
17182 ac_shift=shift
17184 esac
17186 case $ac_option in
17187 # Handling of the options.
17188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17189 ac_cs_recheck=: ;;
17190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17191 $as_echo "$ac_cs_version"; exit ;;
17192 --debug | --debu | --deb | --de | --d | -d )
17193 debug=: ;;
17194 --file | --fil | --fi | --f )
17195 $ac_shift
17196 case $ac_optarg in
17197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17198 esac
17199 as_fn_append CONFIG_FILES " '$ac_optarg'"
17200 ac_need_defaults=false;;
17201 --header | --heade | --head | --hea )
17202 $ac_shift
17203 case $ac_optarg in
17204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17205 esac
17206 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17207 ac_need_defaults=false;;
17208 --he | --h)
17209 # Conflict between --help and --header
17210 as_fn_error "ambiguous option: \`$1'
17211 Try \`$0 --help' for more information.";;
17212 --help | --hel | -h )
17213 $as_echo "$ac_cs_usage"; exit ;;
17214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17216 ac_cs_silent=: ;;
17218 # This is an error.
17219 -*) as_fn_error "unrecognized option: \`$1'
17220 Try \`$0 --help' for more information." ;;
17222 *) as_fn_append ac_config_targets " $1"
17223 ac_need_defaults=false ;;
17225 esac
17226 shift
17227 done
17229 ac_configure_extra_args=
17231 if $ac_cs_silent; then
17232 exec 6>/dev/null
17233 ac_configure_extra_args="$ac_configure_extra_args --silent"
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17238 if \$ac_cs_recheck; then
17239 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17240 shift
17241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17242 CONFIG_SHELL='$SHELL'
17243 export CONFIG_SHELL
17244 exec "\$@"
17247 _ACEOF
17248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17249 exec 5>>config.log
17251 echo
17252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17253 ## Running $as_me. ##
17254 _ASBOX
17255 $as_echo "$ac_log"
17256 } >&5
17258 _ACEOF
17259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17261 # INIT-COMMANDS
17264 srcdir="$srcdir"
17265 host="$host"
17266 target="$target"
17267 with_multisubdir="$with_multisubdir"
17268 with_multisrctop="$with_multisrctop"
17269 with_target_subdir="$with_target_subdir"
17270 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17271 multi_basedir="$multi_basedir"
17272 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17273 CC="$CC"
17274 CXX="$CXX"
17275 GFORTRAN="$GFORTRAN"
17276 GCJ="$GCJ"
17277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17280 # The HP-UX ksh and POSIX shell print the target directory to stdout
17281 # if CDPATH is set.
17282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17284 sed_quote_subst='$sed_quote_subst'
17285 double_quote_subst='$double_quote_subst'
17286 delay_variable_subst='$delay_variable_subst'
17287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17290 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17291 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17292 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17293 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17294 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17318 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17319 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17335 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"`'
17336 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17337 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17338 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17339 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17341 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17342 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17343 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17344 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17345 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17346 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17347 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17348 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17349 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17350 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17351 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17352 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17353 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17354 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17355 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17356 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17357 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17358 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17359 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17360 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17361 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17362 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17363 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17364 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17365 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17366 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17367 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17368 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17369 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17370 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17371 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17372 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17373 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17374 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17375 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17376 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17382 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17383 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17384 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17385 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17386 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17387 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17388 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17389 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17390 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17391 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17392 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17393 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17394 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17395 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17396 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17397 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17398 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17399 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17400 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17401 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17402 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17403 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17404 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17405 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17406 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17407 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17408 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17409 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17410 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17411 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17412 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17413 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17414 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17415 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17416 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17417 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17418 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17419 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17420 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17421 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17422 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17423 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17424 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17425 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17426 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17427 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17428 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17429 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17430 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17433 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17434 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17435 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17436 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17437 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17438 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17439 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17440 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17441 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17442 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17443 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17444 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17445 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17446 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17447 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17448 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17449 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17450 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17451 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17452 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17453 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17454 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17455 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17456 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17457 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17458 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17459 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17460 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17461 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17463 LTCC='$LTCC'
17464 LTCFLAGS='$LTCFLAGS'
17465 compiler='$compiler_DEFAULT'
17467 # A function that is used when there is no print builtin or printf.
17468 func_fallback_echo ()
17470 eval 'cat <<_LTECHO_EOF
17472 _LTECHO_EOF'
17475 # Quote evaled strings.
17476 for var in SHELL \
17477 ECHO \
17478 SED \
17479 GREP \
17480 EGREP \
17481 FGREP \
17482 LD \
17483 NM \
17484 LN_S \
17485 lt_SP2NL \
17486 lt_NL2SP \
17487 reload_flag \
17488 OBJDUMP \
17489 deplibs_check_method \
17490 file_magic_cmd \
17491 AR \
17492 AR_FLAGS \
17493 STRIP \
17494 RANLIB \
17495 CC \
17496 CFLAGS \
17497 compiler \
17498 lt_cv_sys_global_symbol_pipe \
17499 lt_cv_sys_global_symbol_to_cdecl \
17500 lt_cv_sys_global_symbol_to_c_name_address \
17501 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17502 lt_prog_compiler_no_builtin_flag \
17503 lt_prog_compiler_wl \
17504 lt_prog_compiler_pic \
17505 lt_prog_compiler_static \
17506 lt_cv_prog_compiler_c_o \
17507 need_locks \
17508 DSYMUTIL \
17509 NMEDIT \
17510 LIPO \
17511 OTOOL \
17512 OTOOL64 \
17513 shrext_cmds \
17514 export_dynamic_flag_spec \
17515 whole_archive_flag_spec \
17516 compiler_needs_object \
17517 with_gnu_ld \
17518 allow_undefined_flag \
17519 no_undefined_flag \
17520 hardcode_libdir_flag_spec \
17521 hardcode_libdir_flag_spec_ld \
17522 hardcode_libdir_separator \
17523 fix_srcfile_path \
17524 exclude_expsyms \
17525 include_expsyms \
17526 file_list_spec \
17527 variables_saved_for_relink \
17528 libname_spec \
17529 library_names_spec \
17530 soname_spec \
17531 install_override_mode \
17532 finish_eval \
17533 old_striplib \
17534 striplib \
17535 compiler_lib_search_dirs \
17536 predep_objects \
17537 postdep_objects \
17538 predeps \
17539 postdeps \
17540 compiler_lib_search_path \
17541 LD_CXX \
17542 reload_flag_CXX \
17543 compiler_CXX \
17544 lt_prog_compiler_no_builtin_flag_CXX \
17545 lt_prog_compiler_wl_CXX \
17546 lt_prog_compiler_pic_CXX \
17547 lt_prog_compiler_static_CXX \
17548 lt_cv_prog_compiler_c_o_CXX \
17549 export_dynamic_flag_spec_CXX \
17550 whole_archive_flag_spec_CXX \
17551 compiler_needs_object_CXX \
17552 with_gnu_ld_CXX \
17553 allow_undefined_flag_CXX \
17554 no_undefined_flag_CXX \
17555 hardcode_libdir_flag_spec_CXX \
17556 hardcode_libdir_flag_spec_ld_CXX \
17557 hardcode_libdir_separator_CXX \
17558 fix_srcfile_path_CXX \
17559 exclude_expsyms_CXX \
17560 include_expsyms_CXX \
17561 file_list_spec_CXX \
17562 compiler_lib_search_dirs_CXX \
17563 predep_objects_CXX \
17564 postdep_objects_CXX \
17565 predeps_CXX \
17566 postdeps_CXX \
17567 compiler_lib_search_path_CXX; do
17568 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17569 *[\\\\\\\`\\"\\\$]*)
17570 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17573 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17575 esac
17576 done
17578 # Double-quote double-evaled strings.
17579 for var in reload_cmds \
17580 old_postinstall_cmds \
17581 old_postuninstall_cmds \
17582 old_archive_cmds \
17583 extract_expsyms_cmds \
17584 old_archive_from_new_cmds \
17585 old_archive_from_expsyms_cmds \
17586 archive_cmds \
17587 archive_expsym_cmds \
17588 module_cmds \
17589 module_expsym_cmds \
17590 export_symbols_cmds \
17591 prelink_cmds \
17592 postinstall_cmds \
17593 postuninstall_cmds \
17594 finish_cmds \
17595 sys_lib_search_path_spec \
17596 sys_lib_dlsearch_path_spec \
17597 reload_cmds_CXX \
17598 old_archive_cmds_CXX \
17599 old_archive_from_new_cmds_CXX \
17600 old_archive_from_expsyms_cmds_CXX \
17601 archive_cmds_CXX \
17602 archive_expsym_cmds_CXX \
17603 module_cmds_CXX \
17604 module_expsym_cmds_CXX \
17605 export_symbols_cmds_CXX \
17606 prelink_cmds_CXX; do
17607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17608 *[\\\\\\\`\\"\\\$]*)
17609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17614 esac
17615 done
17617 ac_aux_dir='$ac_aux_dir'
17618 xsi_shell='$xsi_shell'
17619 lt_shell_append='$lt_shell_append'
17621 # See if we are running on zsh, and set the options which allow our
17622 # commands through without removal of \ escapes INIT.
17623 if test -n "\${ZSH_VERSION+set}" ; then
17624 setopt NO_GLOB_SUBST
17628 PACKAGE='$PACKAGE'
17629 VERSION='$VERSION'
17630 TIMESTAMP='$TIMESTAMP'
17631 RM='$RM'
17632 ofile='$ofile'
17639 GCC="$GCC"
17640 CC="$CC"
17641 acx_cv_header_stdint="$acx_cv_header_stdint"
17642 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17643 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17644 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17645 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17646 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17647 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17648 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17649 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17650 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17651 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17652 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17653 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17654 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17657 _ACEOF
17659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17661 # Handling of arguments.
17662 for ac_config_target in $ac_config_targets
17664 case $ac_config_target in
17665 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17668 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17670 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17671 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17672 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17673 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17674 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17675 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17676 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17677 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17678 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17679 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17681 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17682 esac
17683 done
17686 # If the user did not use the arguments to specify the items to instantiate,
17687 # then the envvar interface is used. Set only those that are not.
17688 # We use the long form for the default assignment because of an extremely
17689 # bizarre bug on SunOS 4.1.3.
17690 if $ac_need_defaults; then
17691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17696 # Have a temporary directory for convenience. Make it in the build tree
17697 # simply because there is no reason against having it here, and in addition,
17698 # creating and moving files from /tmp can sometimes cause problems.
17699 # Hook for its removal unless debugging.
17700 # Note that there is a small window in which the directory will not be cleaned:
17701 # after its creation but before its name has been assigned to `$tmp'.
17702 $debug ||
17704 tmp=
17705 trap 'exit_status=$?
17706 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17708 trap 'as_fn_exit 1' 1 2 13 15
17710 # Create a (secure) tmp directory for tmp files.
17713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17714 test -n "$tmp" && test -d "$tmp"
17715 } ||
17717 tmp=./conf$$-$RANDOM
17718 (umask 077 && mkdir "$tmp")
17719 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17721 # Set up the scripts for CONFIG_FILES section.
17722 # No need to generate them if there are no CONFIG_FILES.
17723 # This happens for instance with `./config.status config.h'.
17724 if test -n "$CONFIG_FILES"; then
17727 ac_cr=`echo X | tr X '\015'`
17728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17729 # But we know of no other shell where ac_cr would be empty at this
17730 # point, so we can use a bashism as a fallback.
17731 if test "x$ac_cr" = x; then
17732 eval ac_cr=\$\'\\r\'
17734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17736 ac_cs_awk_cr='\r'
17737 else
17738 ac_cs_awk_cr=$ac_cr
17741 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17742 _ACEOF
17746 echo "cat >conf$$subs.awk <<_ACEOF" &&
17747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17748 echo "_ACEOF"
17749 } >conf$$subs.sh ||
17750 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17752 ac_delim='%!_!# '
17753 for ac_last_try in false false false false false :; do
17754 . ./conf$$subs.sh ||
17755 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17758 if test $ac_delim_n = $ac_delim_num; then
17759 break
17760 elif $ac_last_try; then
17761 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17762 else
17763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17765 done
17766 rm -f conf$$subs.sh
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17769 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17770 _ACEOF
17771 sed -n '
17773 s/^/S["/; s/!.*/"]=/
17776 s/^[^!]*!//
17777 :repl
17778 t repl
17779 s/'"$ac_delim"'$//
17780 t delim
17783 s/\(.\{148\}\).*/\1/
17784 t more1
17785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17788 b repl
17789 :more1
17790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17793 s/.\{148\}//
17794 t nl
17795 :delim
17797 s/\(.\{148\}\).*/\1/
17798 t more2
17799 s/["\\]/\\&/g; s/^/"/; s/$/"/
17802 :more2
17803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17806 s/.\{148\}//
17807 t delim
17808 ' <conf$$subs.awk | sed '
17809 /^[^""]/{
17811 s/\n//
17813 ' >>$CONFIG_STATUS || ac_write_fail=1
17814 rm -f conf$$subs.awk
17815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816 _ACAWK
17817 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17818 for (key in S) S_is_set[key] = 1
17819 FS = "\a"
17823 line = $ 0
17824 nfields = split(line, field, "@")
17825 substed = 0
17826 len = length(field[1])
17827 for (i = 2; i < nfields; i++) {
17828 key = field[i]
17829 keylen = length(key)
17830 if (S_is_set[key]) {
17831 value = S[key]
17832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17833 len += length(value) + length(field[++i])
17834 substed = 1
17835 } else
17836 len += 1 + keylen
17839 print line
17842 _ACAWK
17843 _ACEOF
17844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17847 else
17849 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17850 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17851 _ACEOF
17853 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17854 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17855 # trailing colons and then remove the whole line if VPATH becomes empty
17856 # (actually we leave an empty line to preserve line numbers).
17857 if test "x$srcdir" = x.; then
17858 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17859 s/:*\$(srcdir):*/:/
17860 s/:*\${srcdir}:*/:/
17861 s/:*@srcdir@:*/:/
17862 s/^\([^=]*=[ ]*\):*/\1/
17863 s/:*$//
17864 s/^[^=]*=[ ]*$//
17868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17869 fi # test -n "$CONFIG_FILES"
17871 # Set up the scripts for CONFIG_HEADERS section.
17872 # No need to generate them if there are no CONFIG_HEADERS.
17873 # This happens for instance with `./config.status Makefile'.
17874 if test -n "$CONFIG_HEADERS"; then
17875 cat >"$tmp/defines.awk" <<\_ACAWK ||
17876 BEGIN {
17877 _ACEOF
17879 # Transform confdefs.h into an awk script `defines.awk', embedded as
17880 # here-document in config.status, that substitutes the proper values into
17881 # config.h.in to produce config.h.
17883 # Create a delimiter string that does not exist in confdefs.h, to ease
17884 # handling of long lines.
17885 ac_delim='%!_!# '
17886 for ac_last_try in false false :; do
17887 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17888 if test -z "$ac_t"; then
17889 break
17890 elif $ac_last_try; then
17891 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17892 else
17893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17895 done
17897 # For the awk script, D is an array of macro values keyed by name,
17898 # likewise P contains macro parameters if any. Preserve backslash
17899 # newline sequences.
17901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17902 sed -n '
17903 s/.\{148\}/&'"$ac_delim"'/g
17904 t rset
17905 :rset
17906 s/^[ ]*#[ ]*define[ ][ ]*/ /
17907 t def
17909 :def
17910 s/\\$//
17911 t bsnl
17912 s/["\\]/\\&/g
17913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17914 D["\1"]=" \3"/p
17915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17917 :bsnl
17918 s/["\\]/\\&/g
17919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17920 D["\1"]=" \3\\\\\\n"\\/p
17921 t cont
17922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17923 t cont
17925 :cont
17927 s/.\{148\}/&'"$ac_delim"'/g
17928 t clear
17929 :clear
17930 s/\\$//
17931 t bsnlc
17932 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17934 :bsnlc
17935 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17936 b cont
17937 ' <confdefs.h | sed '
17938 s/'"$ac_delim"'/"\\\
17939 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 for (key in D) D_is_set[key] = 1
17943 FS = "\a"
17945 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17946 line = \$ 0
17947 split(line, arg, " ")
17948 if (arg[1] == "#") {
17949 defundef = arg[2]
17950 mac1 = arg[3]
17951 } else {
17952 defundef = substr(arg[1], 2)
17953 mac1 = arg[2]
17955 split(mac1, mac2, "(") #)
17956 macro = mac2[1]
17957 prefix = substr(line, 1, index(line, defundef) - 1)
17958 if (D_is_set[macro]) {
17959 # Preserve the white space surrounding the "#".
17960 print prefix "define", macro P[macro] D[macro]
17961 next
17962 } else {
17963 # Replace #undef with comments. This is necessary, for example,
17964 # in the case of _POSIX_SOURCE, which is predefined and required
17965 # on some systems where configure will not decide to define it.
17966 if (defundef == "undef") {
17967 print "/*", prefix defundef, macro, "*/"
17968 next
17972 { print }
17973 _ACAWK
17974 _ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17977 fi # test -n "$CONFIG_HEADERS"
17980 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17981 shift
17982 for ac_tag
17984 case $ac_tag in
17985 :[FHLC]) ac_mode=$ac_tag; continue;;
17986 esac
17987 case $ac_mode$ac_tag in
17988 :[FHL]*:*);;
17989 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17990 :[FH]-) ac_tag=-:-;;
17991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17992 esac
17993 ac_save_IFS=$IFS
17994 IFS=:
17995 set x $ac_tag
17996 IFS=$ac_save_IFS
17997 shift
17998 ac_file=$1
17999 shift
18001 case $ac_mode in
18002 :L) ac_source=$1;;
18003 :[FH])
18004 ac_file_inputs=
18005 for ac_f
18007 case $ac_f in
18008 -) ac_f="$tmp/stdin";;
18009 *) # Look for the file first in the build tree, then in the source tree
18010 # (if the path is not absolute). The absolute path cannot be DOS-style,
18011 # because $ac_f cannot contain `:'.
18012 test -f "$ac_f" ||
18013 case $ac_f in
18014 [\\/$]*) false;;
18015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18016 esac ||
18017 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18018 esac
18019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18020 as_fn_append ac_file_inputs " '$ac_f'"
18021 done
18023 # Let's still pretend it is `configure' which instantiates (i.e., don't
18024 # use $as_me), people would be surprised to read:
18025 # /* config.h. Generated by config.status. */
18026 configure_input='Generated from '`
18027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18028 `' by configure.'
18029 if test x"$ac_file" != x-; then
18030 configure_input="$ac_file. $configure_input"
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18032 $as_echo "$as_me: creating $ac_file" >&6;}
18034 # Neutralize special characters interpreted by sed in replacement strings.
18035 case $configure_input in #(
18036 *\&* | *\|* | *\\* )
18037 ac_sed_conf_input=`$as_echo "$configure_input" |
18038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18039 *) ac_sed_conf_input=$configure_input;;
18040 esac
18042 case $ac_tag in
18043 *:-:* | *:-) cat >"$tmp/stdin" \
18044 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18045 esac
18047 esac
18049 ac_dir=`$as_dirname -- "$ac_file" ||
18050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18051 X"$ac_file" : 'X\(//\)[^/]' \| \
18052 X"$ac_file" : 'X\(//\)$' \| \
18053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18054 $as_echo X"$ac_file" |
18055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18056 s//\1/
18059 /^X\(\/\/\)[^/].*/{
18060 s//\1/
18063 /^X\(\/\/\)$/{
18064 s//\1/
18067 /^X\(\/\).*/{
18068 s//\1/
18071 s/.*/./; q'`
18072 as_dir="$ac_dir"; as_fn_mkdir_p
18073 ac_builddir=.
18075 case "$ac_dir" in
18076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18079 # A ".." for each directory in $ac_dir_suffix.
18080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18081 case $ac_top_builddir_sub in
18082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18084 esac ;;
18085 esac
18086 ac_abs_top_builddir=$ac_pwd
18087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18088 # for backward compatibility:
18089 ac_top_builddir=$ac_top_build_prefix
18091 case $srcdir in
18092 .) # We are building in place.
18093 ac_srcdir=.
18094 ac_top_srcdir=$ac_top_builddir_sub
18095 ac_abs_top_srcdir=$ac_pwd ;;
18096 [\\/]* | ?:[\\/]* ) # Absolute name.
18097 ac_srcdir=$srcdir$ac_dir_suffix;
18098 ac_top_srcdir=$srcdir
18099 ac_abs_top_srcdir=$srcdir ;;
18100 *) # Relative name.
18101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18102 ac_top_srcdir=$ac_top_build_prefix$srcdir
18103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18104 esac
18105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18108 case $ac_mode in
18111 # CONFIG_FILE
18114 case $INSTALL in
18115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18117 esac
18118 ac_MKDIR_P=$MKDIR_P
18119 case $MKDIR_P in
18120 [\\/$]* | ?:[\\/]* ) ;;
18121 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18122 esac
18123 _ACEOF
18125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126 # If the template does not know about datarootdir, expand it.
18127 # FIXME: This hack should be removed a few years after 2.60.
18128 ac_datarootdir_hack=; ac_datarootdir_seen=
18129 ac_sed_dataroot='
18130 /datarootdir/ {
18134 /@datadir@/p
18135 /@docdir@/p
18136 /@infodir@/p
18137 /@localedir@/p
18138 /@mandir@/p'
18139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18140 *datarootdir*) ac_datarootdir_seen=yes;;
18141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18144 _ACEOF
18145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18146 ac_datarootdir_hack='
18147 s&@datadir@&$datadir&g
18148 s&@docdir@&$docdir&g
18149 s&@infodir@&$infodir&g
18150 s&@localedir@&$localedir&g
18151 s&@mandir@&$mandir&g
18152 s&\\\${datarootdir}&$datarootdir&g' ;;
18153 esac
18154 _ACEOF
18156 # Neutralize VPATH when `$srcdir' = `.'.
18157 # Shell code in configure.ac might set extrasub.
18158 # FIXME: do we really want to maintain this feature?
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 ac_sed_extra="$ac_vpsub
18161 $extrasub
18162 _ACEOF
18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18166 s|@configure_input@|$ac_sed_conf_input|;t t
18167 s&@top_builddir@&$ac_top_builddir_sub&;t t
18168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18169 s&@srcdir@&$ac_srcdir&;t t
18170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18171 s&@top_srcdir@&$ac_top_srcdir&;t t
18172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18173 s&@builddir@&$ac_builddir&;t t
18174 s&@abs_builddir@&$ac_abs_builddir&;t t
18175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18176 s&@INSTALL@&$ac_INSTALL&;t t
18177 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18178 $ac_datarootdir_hack
18180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18181 || as_fn_error "could not create $ac_file" "$LINENO" 5
18183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18184 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18187 which seems to be undefined. Please make sure it is defined." >&5
18188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18189 which seems to be undefined. Please make sure it is defined." >&2;}
18191 rm -f "$tmp/stdin"
18192 case $ac_file in
18193 -) cat "$tmp/out" && rm -f "$tmp/out";;
18194 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18195 esac \
18196 || as_fn_error "could not create $ac_file" "$LINENO" 5
18200 # CONFIG_HEADER
18202 if test x"$ac_file" != x-; then
18204 $as_echo "/* $configure_input */" \
18205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18206 } >"$tmp/config.h" \
18207 || as_fn_error "could not create $ac_file" "$LINENO" 5
18208 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18211 else
18212 rm -f "$ac_file"
18213 mv "$tmp/config.h" "$ac_file" \
18214 || as_fn_error "could not create $ac_file" "$LINENO" 5
18216 else
18217 $as_echo "/* $configure_input */" \
18218 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18219 || as_fn_error "could not create -" "$LINENO" 5
18221 # Compute "$ac_file"'s index in $config_headers.
18222 _am_arg="$ac_file"
18223 _am_stamp_count=1
18224 for _am_header in $config_headers :; do
18225 case $_am_header in
18226 $_am_arg | $_am_arg:* )
18227 break ;;
18229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18230 esac
18231 done
18232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234 X"$_am_arg" : 'X\(//\)[^/]' \| \
18235 X"$_am_arg" : 'X\(//\)$' \| \
18236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18237 $as_echo X"$_am_arg" |
18238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239 s//\1/
18242 /^X\(\/\/\)[^/].*/{
18243 s//\1/
18246 /^X\(\/\/\)$/{
18247 s//\1/
18250 /^X\(\/\).*/{
18251 s//\1/
18254 s/.*/./; q'`/stamp-h$_am_stamp_count
18257 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18258 $as_echo "$as_me: executing $ac_file commands" >&6;}
18260 esac
18263 case $ac_file$ac_mode in
18264 "default-1":C)
18265 # Only add multilib support code if we just rebuilt the top-level
18266 # Makefile.
18267 case " $CONFIG_FILES " in
18268 *" Makefile "*)
18269 ac_file=Makefile . ${multi_basedir}/config-ml.in
18271 esac ;;
18272 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18273 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18274 # are listed without --file. Let's play safe and only enable the eval
18275 # if we detect the quoting.
18276 case $CONFIG_FILES in
18277 *\'*) eval set x "$CONFIG_FILES" ;;
18278 *) set x $CONFIG_FILES ;;
18279 esac
18280 shift
18281 for mf
18283 # Strip MF so we end up with the name of the file.
18284 mf=`echo "$mf" | sed -e 's/:.*$//'`
18285 # Check whether this is an Automake generated Makefile or not.
18286 # We used to match only the files named `Makefile.in', but
18287 # some people rename them; so instead we look at the file content.
18288 # Grep'ing the first line is not enough: some people post-process
18289 # each Makefile.in and add a new line on top of each file to say so.
18290 # Grep'ing the whole file is not good either: AIX grep has a line
18291 # limit of 2048, but all sed's we know have understand at least 4000.
18292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18293 dirpart=`$as_dirname -- "$mf" ||
18294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18295 X"$mf" : 'X\(//\)[^/]' \| \
18296 X"$mf" : 'X\(//\)$' \| \
18297 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18298 $as_echo X"$mf" |
18299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18300 s//\1/
18303 /^X\(\/\/\)[^/].*/{
18304 s//\1/
18307 /^X\(\/\/\)$/{
18308 s//\1/
18311 /^X\(\/\).*/{
18312 s//\1/
18315 s/.*/./; q'`
18316 else
18317 continue
18319 # Extract the definition of DEPDIR, am__include, and am__quote
18320 # from the Makefile without running `make'.
18321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18322 test -z "$DEPDIR" && continue
18323 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18324 test -z "am__include" && continue
18325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18326 # When using ansi2knr, U may be empty or an underscore; expand it
18327 U=`sed -n 's/^U = //p' < "$mf"`
18328 # Find all dependency output files, they are included files with
18329 # $(DEPDIR) in their names. We invoke sed twice because it is the
18330 # simplest approach to changing $(DEPDIR) to its actual value in the
18331 # expansion.
18332 for file in `sed -n "
18333 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18334 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18335 # Make sure the directory exists.
18336 test -f "$dirpart/$file" && continue
18337 fdir=`$as_dirname -- "$file" ||
18338 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18339 X"$file" : 'X\(//\)[^/]' \| \
18340 X"$file" : 'X\(//\)$' \| \
18341 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18342 $as_echo X"$file" |
18343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18344 s//\1/
18347 /^X\(\/\/\)[^/].*/{
18348 s//\1/
18351 /^X\(\/\/\)$/{
18352 s//\1/
18355 /^X\(\/\).*/{
18356 s//\1/
18359 s/.*/./; q'`
18360 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18361 # echo "creating $dirpart/$file"
18362 echo '# dummy' > "$dirpart/$file"
18363 done
18364 done
18367 "libtool":C)
18369 # See if we are running on zsh, and set the options which allow our
18370 # commands through without removal of \ escapes.
18371 if test -n "${ZSH_VERSION+set}" ; then
18372 setopt NO_GLOB_SUBST
18375 cfgfile="${ofile}T"
18376 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18377 $RM "$cfgfile"
18379 cat <<_LT_EOF >> "$cfgfile"
18380 #! $SHELL
18382 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18383 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18388 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18389 # Written by Gordon Matzigkeit, 1996
18391 # This file is part of GNU Libtool.
18393 # GNU Libtool is free software; you can redistribute it and/or
18394 # modify it under the terms of the GNU General Public License as
18395 # published by the Free Software Foundation; either version 2 of
18396 # the License, or (at your option) any later version.
18398 # As a special exception to the GNU General Public License,
18399 # if you distribute this file as part of a program or library that
18400 # is built using GNU Libtool, you may include this file under the
18401 # same distribution terms that you use for the rest of that program.
18403 # GNU Libtool is distributed in the hope that it will be useful,
18404 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18405 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18406 # GNU General Public License for more details.
18408 # You should have received a copy of the GNU General Public License
18409 # along with GNU Libtool; see the file COPYING. If not, a copy
18410 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18411 # obtained by writing to the Free Software Foundation, Inc.,
18412 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18415 # The names of the tagged configurations supported by this script.
18416 available_tags="CXX "
18418 # ### BEGIN LIBTOOL CONFIG
18420 # Which release of libtool.m4 was used?
18421 macro_version=$macro_version
18422 macro_revision=$macro_revision
18424 # Whether or not to build shared libraries.
18425 build_libtool_libs=$enable_shared
18427 # Whether or not to build static libraries.
18428 build_old_libs=$enable_static
18430 # What type of objects to build.
18431 pic_mode=$pic_mode
18433 # Whether or not to optimize for fast installation.
18434 fast_install=$enable_fast_install
18436 # Shell to use when invoking shell scripts.
18437 SHELL=$lt_SHELL
18439 # An echo program that protects backslashes.
18440 ECHO=$lt_ECHO
18442 # The host system.
18443 host_alias=$host_alias
18444 host=$host
18445 host_os=$host_os
18447 # The build system.
18448 build_alias=$build_alias
18449 build=$build
18450 build_os=$build_os
18452 # A sed program that does not truncate output.
18453 SED=$lt_SED
18455 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18456 Xsed="\$SED -e 1s/^X//"
18458 # A grep program that handles long lines.
18459 GREP=$lt_GREP
18461 # An ERE matcher.
18462 EGREP=$lt_EGREP
18464 # A literal string matcher.
18465 FGREP=$lt_FGREP
18467 # A BSD- or MS-compatible name lister.
18468 NM=$lt_NM
18470 # Whether we need soft or hard links.
18471 LN_S=$lt_LN_S
18473 # What is the maximum length of a command?
18474 max_cmd_len=$max_cmd_len
18476 # Object file suffix (normally "o").
18477 objext=$ac_objext
18479 # Executable file suffix (normally "").
18480 exeext=$exeext
18482 # whether the shell understands "unset".
18483 lt_unset=$lt_unset
18485 # turn spaces into newlines.
18486 SP2NL=$lt_lt_SP2NL
18488 # turn newlines into spaces.
18489 NL2SP=$lt_lt_NL2SP
18491 # An object symbol dumper.
18492 OBJDUMP=$lt_OBJDUMP
18494 # Method to check whether dependent libraries are shared objects.
18495 deplibs_check_method=$lt_deplibs_check_method
18497 # Command to use when deplibs_check_method == "file_magic".
18498 file_magic_cmd=$lt_file_magic_cmd
18500 # The archiver.
18501 AR=$lt_AR
18502 AR_FLAGS=$lt_AR_FLAGS
18504 # A symbol stripping program.
18505 STRIP=$lt_STRIP
18507 # Commands used to install an old-style archive.
18508 RANLIB=$lt_RANLIB
18509 old_postinstall_cmds=$lt_old_postinstall_cmds
18510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512 # Whether to use a lock for old archive extraction.
18513 lock_old_archive_extraction=$lock_old_archive_extraction
18515 # A C compiler.
18516 LTCC=$lt_CC
18518 # LTCC compiler flags.
18519 LTCFLAGS=$lt_CFLAGS
18521 # Take the output of nm and produce a listing of raw symbols and C names.
18522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18524 # Transform the output of nm in a proper C declaration.
18525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18527 # Transform the output of nm in a C name address pair.
18528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18530 # Transform the output of nm in a C name address pair when lib prefix is needed.
18531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18533 # The name of the directory that contains temporary libtool files.
18534 objdir=$objdir
18536 # Used to examine libraries when file_magic_cmd begins with "file".
18537 MAGIC_CMD=$MAGIC_CMD
18539 # Must we lock files when doing compilation?
18540 need_locks=$lt_need_locks
18542 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18543 DSYMUTIL=$lt_DSYMUTIL
18545 # Tool to change global to local symbols on Mac OS X.
18546 NMEDIT=$lt_NMEDIT
18548 # Tool to manipulate fat objects and archives on Mac OS X.
18549 LIPO=$lt_LIPO
18551 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18552 OTOOL=$lt_OTOOL
18554 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18555 OTOOL64=$lt_OTOOL64
18557 # Old archive suffix (normally "a").
18558 libext=$libext
18560 # Shared library suffix (normally ".so").
18561 shrext_cmds=$lt_shrext_cmds
18563 # The commands to extract the exported symbol list from a shared archive.
18564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18566 # Variables whose values should be saved in libtool wrapper scripts and
18567 # restored at link time.
18568 variables_saved_for_relink=$lt_variables_saved_for_relink
18570 # Do we need the "lib" prefix for modules?
18571 need_lib_prefix=$need_lib_prefix
18573 # Do we need a version for libraries?
18574 need_version=$need_version
18576 # Library versioning type.
18577 version_type=$version_type
18579 # Shared library runtime path variable.
18580 runpath_var=$runpath_var
18582 # Shared library path variable.
18583 shlibpath_var=$shlibpath_var
18585 # Is shlibpath searched before the hard-coded library search path?
18586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588 # Format of library name prefix.
18589 libname_spec=$lt_libname_spec
18591 # List of archive names. First name is the real one, the rest are links.
18592 # The last name is the one that the linker finds with -lNAME
18593 library_names_spec=$lt_library_names_spec
18595 # The coded name of the library, if different from the real name.
18596 soname_spec=$lt_soname_spec
18598 # Permission mode override for installation of shared libraries.
18599 install_override_mode=$lt_install_override_mode
18601 # Command to use after installation of a shared archive.
18602 postinstall_cmds=$lt_postinstall_cmds
18604 # Command to use after uninstallation of a shared archive.
18605 postuninstall_cmds=$lt_postuninstall_cmds
18607 # Commands used to finish a libtool library installation in a directory.
18608 finish_cmds=$lt_finish_cmds
18610 # As "finish_cmds", except a single script fragment to be evaled but
18611 # not shown.
18612 finish_eval=$lt_finish_eval
18614 # Whether we should hardcode library paths into libraries.
18615 hardcode_into_libs=$hardcode_into_libs
18617 # Compile-time system search path for libraries.
18618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18620 # Run-time system search path for libraries.
18621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18623 # Whether dlopen is supported.
18624 dlopen_support=$enable_dlopen
18626 # Whether dlopen of programs is supported.
18627 dlopen_self=$enable_dlopen_self
18629 # Whether dlopen of statically linked programs is supported.
18630 dlopen_self_static=$enable_dlopen_self_static
18632 # Commands to strip libraries.
18633 old_striplib=$lt_old_striplib
18634 striplib=$lt_striplib
18637 # The linker used to build libraries.
18638 LD=$lt_LD
18640 # How to create reloadable object files.
18641 reload_flag=$lt_reload_flag
18642 reload_cmds=$lt_reload_cmds
18644 # Commands used to build an old-style archive.
18645 old_archive_cmds=$lt_old_archive_cmds
18647 # A language specific compiler.
18648 CC=$lt_compiler
18650 # Is the compiler the GNU compiler?
18651 with_gcc=$GCC
18653 # Compiler flag to turn off builtin functions.
18654 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18656 # How to pass a linker flag through the compiler.
18657 wl=$lt_lt_prog_compiler_wl
18659 # Additional compiler flags for building library objects.
18660 pic_flag=$lt_lt_prog_compiler_pic
18662 # Compiler flag to prevent dynamic linking.
18663 link_static_flag=$lt_lt_prog_compiler_static
18665 # Does compiler simultaneously support -c and -o options?
18666 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18668 # Whether or not to add -lc for building shared libraries.
18669 build_libtool_need_lc=$archive_cmds_need_lc
18671 # Whether or not to disallow shared libs when runtime libs are static.
18672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18674 # Compiler flag to allow reflexive dlopens.
18675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18677 # Compiler flag to generate shared objects directly from archives.
18678 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18680 # Whether the compiler copes with passing no objects directly.
18681 compiler_needs_object=$lt_compiler_needs_object
18683 # Create an old-style archive from a shared archive.
18684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18686 # Create a temporary old-style archive to link instead of a shared archive.
18687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18689 # Commands used to build a shared archive.
18690 archive_cmds=$lt_archive_cmds
18691 archive_expsym_cmds=$lt_archive_expsym_cmds
18693 # Commands used to build a loadable module if different from building
18694 # a shared archive.
18695 module_cmds=$lt_module_cmds
18696 module_expsym_cmds=$lt_module_expsym_cmds
18698 # Whether we are building with GNU ld or not.
18699 with_gnu_ld=$lt_with_gnu_ld
18701 # Flag that allows shared libraries with undefined symbols to be built.
18702 allow_undefined_flag=$lt_allow_undefined_flag
18704 # Flag that enforces no undefined symbols.
18705 no_undefined_flag=$lt_no_undefined_flag
18707 # Flag to hardcode \$libdir into a binary during linking.
18708 # This must work even if \$libdir does not exist
18709 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18711 # If ld is used when linking, flag to hardcode \$libdir into a binary
18712 # during linking. This must work even if \$libdir does not exist.
18713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18715 # Whether we need a single "-rpath" flag with a separated argument.
18716 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18719 # DIR into the resulting binary.
18720 hardcode_direct=$hardcode_direct
18722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18723 # DIR into the resulting binary and the resulting library dependency is
18724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18725 # library is relocated.
18726 hardcode_direct_absolute=$hardcode_direct_absolute
18728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729 # into the resulting binary.
18730 hardcode_minus_L=$hardcode_minus_L
18732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733 # into the resulting binary.
18734 hardcode_shlibpath_var=$hardcode_shlibpath_var
18736 # Set to "yes" if building a shared library automatically hardcodes DIR
18737 # into the library and all subsequent libraries and executables linked
18738 # against it.
18739 hardcode_automatic=$hardcode_automatic
18741 # Set to yes if linker adds runtime paths of dependent libraries
18742 # to runtime path list.
18743 inherit_rpath=$inherit_rpath
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs
18748 # Fix the shell variable \$srcfile for the compiler.
18749 fix_srcfile_path=$lt_fix_srcfile_path
18751 # Set to "yes" if exported symbols are required.
18752 always_export_symbols=$always_export_symbols
18754 # The commands to list exported symbols.
18755 export_symbols_cmds=$lt_export_symbols_cmds
18757 # Symbols that should not be listed in the preloaded symbols.
18758 exclude_expsyms=$lt_exclude_expsyms
18760 # Symbols that must always be exported.
18761 include_expsyms=$lt_include_expsyms
18763 # Commands necessary for linking programs (against libraries) with templates.
18764 prelink_cmds=$lt_prelink_cmds
18766 # Specify filename containing input files.
18767 file_list_spec=$lt_file_list_spec
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action
18772 # The directories searched by this compiler when creating a shared library.
18773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18775 # Dependencies to place before and after the objects being linked to
18776 # create a shared library.
18777 predep_objects=$lt_predep_objects
18778 postdep_objects=$lt_postdep_objects
18779 predeps=$lt_predeps
18780 postdeps=$lt_postdeps
18782 # The library search path used internally by the compiler when linking
18783 # a shared library.
18784 compiler_lib_search_path=$lt_compiler_lib_search_path
18786 # ### END LIBTOOL CONFIG
18788 _LT_EOF
18790 case $host_os in
18791 aix3*)
18792 cat <<\_LT_EOF >> "$cfgfile"
18793 # AIX sometimes has problems with the GCC collect2 program. For some
18794 # reason, if we set the COLLECT_NAMES environment variable, the problems
18795 # vanish in a puff of smoke.
18796 if test "X${COLLECT_NAMES+set}" != Xset; then
18797 COLLECT_NAMES=
18798 export COLLECT_NAMES
18800 _LT_EOF
18802 esac
18805 ltmain="$ac_aux_dir/ltmain.sh"
18808 # We use sed instead of cat because bash on DJGPP gets confused if
18809 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18810 # text mode, it properly converts lines to CR/LF. This bash problem
18811 # is reportedly fixed, but why not run on old versions too?
18812 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18813 || (rm -f "$cfgfile"; exit 1)
18815 case $xsi_shell in
18816 yes)
18817 cat << \_LT_EOF >> "$cfgfile"
18819 # func_dirname file append nondir_replacement
18820 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18821 # otherwise set result to NONDIR_REPLACEMENT.
18822 func_dirname ()
18824 case ${1} in
18825 */*) func_dirname_result="${1%/*}${2}" ;;
18826 * ) func_dirname_result="${3}" ;;
18827 esac
18830 # func_basename file
18831 func_basename ()
18833 func_basename_result="${1##*/}"
18836 # func_dirname_and_basename file append nondir_replacement
18837 # perform func_basename and func_dirname in a single function
18838 # call:
18839 # dirname: Compute the dirname of FILE. If nonempty,
18840 # add APPEND to the result, otherwise set result
18841 # to NONDIR_REPLACEMENT.
18842 # value returned in "$func_dirname_result"
18843 # basename: Compute filename of FILE.
18844 # value retuned in "$func_basename_result"
18845 # Implementation must be kept synchronized with func_dirname
18846 # and func_basename. For efficiency, we do not delegate to
18847 # those functions but instead duplicate the functionality here.
18848 func_dirname_and_basename ()
18850 case ${1} in
18851 */*) func_dirname_result="${1%/*}${2}" ;;
18852 * ) func_dirname_result="${3}" ;;
18853 esac
18854 func_basename_result="${1##*/}"
18857 # func_stripname prefix suffix name
18858 # strip PREFIX and SUFFIX off of NAME.
18859 # PREFIX and SUFFIX must not contain globbing or regex special
18860 # characters, hashes, percent signs, but SUFFIX may contain a leading
18861 # dot (in which case that matches only a dot).
18862 func_stripname ()
18864 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18865 # positional parameters, so assign one to ordinary parameter first.
18866 func_stripname_result=${3}
18867 func_stripname_result=${func_stripname_result#"${1}"}
18868 func_stripname_result=${func_stripname_result%"${2}"}
18871 # func_opt_split
18872 func_opt_split ()
18874 func_opt_split_opt=${1%%=*}
18875 func_opt_split_arg=${1#*=}
18878 # func_lo2o object
18879 func_lo2o ()
18881 case ${1} in
18882 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18883 *) func_lo2o_result=${1} ;;
18884 esac
18887 # func_xform libobj-or-source
18888 func_xform ()
18890 func_xform_result=${1%.*}.lo
18893 # func_arith arithmetic-term...
18894 func_arith ()
18896 func_arith_result=$(( $* ))
18899 # func_len string
18900 # STRING may not start with a hyphen.
18901 func_len ()
18903 func_len_result=${#1}
18906 _LT_EOF
18908 *) # Bourne compatible functions.
18909 cat << \_LT_EOF >> "$cfgfile"
18911 # func_dirname file append nondir_replacement
18912 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18913 # otherwise set result to NONDIR_REPLACEMENT.
18914 func_dirname ()
18916 # Extract subdirectory from the argument.
18917 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18918 if test "X$func_dirname_result" = "X${1}"; then
18919 func_dirname_result="${3}"
18920 else
18921 func_dirname_result="$func_dirname_result${2}"
18925 # func_basename file
18926 func_basename ()
18928 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18932 # func_stripname prefix suffix name
18933 # strip PREFIX and SUFFIX off of NAME.
18934 # PREFIX and SUFFIX must not contain globbing or regex special
18935 # characters, hashes, percent signs, but SUFFIX may contain a leading
18936 # dot (in which case that matches only a dot).
18937 # func_strip_suffix prefix name
18938 func_stripname ()
18940 case ${2} in
18941 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18942 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18943 esac
18946 # sed scripts:
18947 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18948 my_sed_long_arg='1s/^-[^=]*=//'
18950 # func_opt_split
18951 func_opt_split ()
18953 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18954 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18957 # func_lo2o object
18958 func_lo2o ()
18960 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18963 # func_xform libobj-or-source
18964 func_xform ()
18966 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18969 # func_arith arithmetic-term...
18970 func_arith ()
18972 func_arith_result=`expr "$@"`
18975 # func_len string
18976 # STRING may not start with a hyphen.
18977 func_len ()
18979 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18982 _LT_EOF
18983 esac
18985 case $lt_shell_append in
18986 yes)
18987 cat << \_LT_EOF >> "$cfgfile"
18989 # func_append var value
18990 # Append VALUE to the end of shell variable VAR.
18991 func_append ()
18993 eval "$1+=\$2"
18995 _LT_EOF
18998 cat << \_LT_EOF >> "$cfgfile"
19000 # func_append var value
19001 # Append VALUE to the end of shell variable VAR.
19002 func_append ()
19004 eval "$1=\$$1\$2"
19007 _LT_EOF
19009 esac
19012 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19013 || (rm -f "$cfgfile"; exit 1)
19015 mv -f "$cfgfile" "$ofile" ||
19016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19017 chmod +x "$ofile"
19020 cat <<_LT_EOF >> "$ofile"
19022 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19024 # The linker used to build libraries.
19025 LD=$lt_LD_CXX
19027 # How to create reloadable object files.
19028 reload_flag=$lt_reload_flag_CXX
19029 reload_cmds=$lt_reload_cmds_CXX
19031 # Commands used to build an old-style archive.
19032 old_archive_cmds=$lt_old_archive_cmds_CXX
19034 # A language specific compiler.
19035 CC=$lt_compiler_CXX
19037 # Is the compiler the GNU compiler?
19038 with_gcc=$GCC_CXX
19040 # Compiler flag to turn off builtin functions.
19041 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19043 # How to pass a linker flag through the compiler.
19044 wl=$lt_lt_prog_compiler_wl_CXX
19046 # Additional compiler flags for building library objects.
19047 pic_flag=$lt_lt_prog_compiler_pic_CXX
19049 # Compiler flag to prevent dynamic linking.
19050 link_static_flag=$lt_lt_prog_compiler_static_CXX
19052 # Does compiler simultaneously support -c and -o options?
19053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19055 # Whether or not to add -lc for building shared libraries.
19056 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19058 # Whether or not to disallow shared libs when runtime libs are static.
19059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19061 # Compiler flag to allow reflexive dlopens.
19062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19064 # Compiler flag to generate shared objects directly from archives.
19065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19067 # Whether the compiler copes with passing no objects directly.
19068 compiler_needs_object=$lt_compiler_needs_object_CXX
19070 # Create an old-style archive from a shared archive.
19071 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19073 # Create a temporary old-style archive to link instead of a shared archive.
19074 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19076 # Commands used to build a shared archive.
19077 archive_cmds=$lt_archive_cmds_CXX
19078 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19080 # Commands used to build a loadable module if different from building
19081 # a shared archive.
19082 module_cmds=$lt_module_cmds_CXX
19083 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19085 # Whether we are building with GNU ld or not.
19086 with_gnu_ld=$lt_with_gnu_ld_CXX
19088 # Flag that allows shared libraries with undefined symbols to be built.
19089 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19091 # Flag that enforces no undefined symbols.
19092 no_undefined_flag=$lt_no_undefined_flag_CXX
19094 # Flag to hardcode \$libdir into a binary during linking.
19095 # This must work even if \$libdir does not exist
19096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19098 # If ld is used when linking, flag to hardcode \$libdir into a binary
19099 # during linking. This must work even if \$libdir does not exist.
19100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19102 # Whether we need a single "-rpath" flag with a separated argument.
19103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19106 # DIR into the resulting binary.
19107 hardcode_direct=$hardcode_direct_CXX
19109 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19110 # DIR into the resulting binary and the resulting library dependency is
19111 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19112 # library is relocated.
19113 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19115 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19116 # into the resulting binary.
19117 hardcode_minus_L=$hardcode_minus_L_CXX
19119 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19120 # into the resulting binary.
19121 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19123 # Set to "yes" if building a shared library automatically hardcodes DIR
19124 # into the library and all subsequent libraries and executables linked
19125 # against it.
19126 hardcode_automatic=$hardcode_automatic_CXX
19128 # Set to yes if linker adds runtime paths of dependent libraries
19129 # to runtime path list.
19130 inherit_rpath=$inherit_rpath_CXX
19132 # Whether libtool must link a program against all its dependency libraries.
19133 link_all_deplibs=$link_all_deplibs_CXX
19135 # Fix the shell variable \$srcfile for the compiler.
19136 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19138 # Set to "yes" if exported symbols are required.
19139 always_export_symbols=$always_export_symbols_CXX
19141 # The commands to list exported symbols.
19142 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19144 # Symbols that should not be listed in the preloaded symbols.
19145 exclude_expsyms=$lt_exclude_expsyms_CXX
19147 # Symbols that must always be exported.
19148 include_expsyms=$lt_include_expsyms_CXX
19150 # Commands necessary for linking programs (against libraries) with templates.
19151 prelink_cmds=$lt_prelink_cmds_CXX
19153 # Specify filename containing input files.
19154 file_list_spec=$lt_file_list_spec_CXX
19156 # How to hardcode a shared library path into an executable.
19157 hardcode_action=$hardcode_action_CXX
19159 # The directories searched by this compiler when creating a shared library.
19160 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19162 # Dependencies to place before and after the objects being linked to
19163 # create a shared library.
19164 predep_objects=$lt_predep_objects_CXX
19165 postdep_objects=$lt_postdep_objects_CXX
19166 predeps=$lt_predeps_CXX
19167 postdeps=$lt_postdeps_CXX
19169 # The library search path used internally by the compiler when linking
19170 # a shared library.
19171 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19173 # ### END LIBTOOL TAG CONFIG: CXX
19174 _LT_EOF
19177 "gstdint.h":C)
19178 if test "$GCC" = yes; then
19179 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19180 else
19181 echo "/* generated for $CC */" > tmp-stdint.h
19184 sed 's/^ *//' >> tmp-stdint.h <<EOF
19186 #ifndef GCC_GENERATED_STDINT_H
19187 #define GCC_GENERATED_STDINT_H 1
19189 #include <sys/types.h>
19192 if test "$acx_cv_header_stdint" != stdint.h; then
19193 echo "#include <stddef.h>" >> tmp-stdint.h
19195 if test "$acx_cv_header_stdint" != stddef.h; then
19196 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19199 sed 's/^ *//' >> tmp-stdint.h <<EOF
19200 /* glibc uses these symbols as guards to prevent redefinitions. */
19201 #ifdef __int8_t_defined
19202 #define _INT8_T
19203 #define _INT16_T
19204 #define _INT32_T
19205 #endif
19206 #ifdef __uint32_t_defined
19207 #define _UINT32_T
19208 #endif
19212 # ----------------- done header, emit basic int types -------------
19213 if test "$acx_cv_header_stdint" = stddef.h; then
19214 sed 's/^ *//' >> tmp-stdint.h <<EOF
19216 #ifndef _UINT8_T
19217 #define _UINT8_T
19218 #ifndef __uint8_t_defined
19219 #define __uint8_t_defined
19220 #ifndef uint8_t
19221 typedef unsigned $acx_cv_type_int8_t uint8_t;
19222 #endif
19223 #endif
19224 #endif
19226 #ifndef _UINT16_T
19227 #define _UINT16_T
19228 #ifndef __uint16_t_defined
19229 #define __uint16_t_defined
19230 #ifndef uint16_t
19231 typedef unsigned $acx_cv_type_int16_t uint16_t;
19232 #endif
19233 #endif
19234 #endif
19236 #ifndef _UINT32_T
19237 #define _UINT32_T
19238 #ifndef __uint32_t_defined
19239 #define __uint32_t_defined
19240 #ifndef uint32_t
19241 typedef unsigned $acx_cv_type_int32_t uint32_t;
19242 #endif
19243 #endif
19244 #endif
19246 #ifndef _INT8_T
19247 #define _INT8_T
19248 #ifndef __int8_t_defined
19249 #define __int8_t_defined
19250 #ifndef int8_t
19251 typedef $acx_cv_type_int8_t int8_t;
19252 #endif
19253 #endif
19254 #endif
19256 #ifndef _INT16_T
19257 #define _INT16_T
19258 #ifndef __int16_t_defined
19259 #define __int16_t_defined
19260 #ifndef int16_t
19261 typedef $acx_cv_type_int16_t int16_t;
19262 #endif
19263 #endif
19264 #endif
19266 #ifndef _INT32_T
19267 #define _INT32_T
19268 #ifndef __int32_t_defined
19269 #define __int32_t_defined
19270 #ifndef int32_t
19271 typedef $acx_cv_type_int32_t int32_t;
19272 #endif
19273 #endif
19274 #endif
19276 elif test "$ac_cv_type_u_int32_t" = yes; then
19277 sed 's/^ *//' >> tmp-stdint.h <<EOF
19279 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19280 #ifndef _INT8_T
19281 #define _INT8_T
19282 #endif
19283 #ifndef _INT16_T
19284 #define _INT16_T
19285 #endif
19286 #ifndef _INT32_T
19287 #define _INT32_T
19288 #endif
19290 #ifndef _UINT8_T
19291 #define _UINT8_T
19292 #ifndef __uint8_t_defined
19293 #define __uint8_t_defined
19294 #ifndef uint8_t
19295 typedef u_int8_t uint8_t;
19296 #endif
19297 #endif
19298 #endif
19300 #ifndef _UINT16_T
19301 #define _UINT16_T
19302 #ifndef __uint16_t_defined
19303 #define __uint16_t_defined
19304 #ifndef uint16_t
19305 typedef u_int16_t uint16_t;
19306 #endif
19307 #endif
19308 #endif
19310 #ifndef _UINT32_T
19311 #define _UINT32_T
19312 #ifndef __uint32_t_defined
19313 #define __uint32_t_defined
19314 #ifndef uint32_t
19315 typedef u_int32_t uint32_t;
19316 #endif
19317 #endif
19318 #endif
19320 else
19321 sed 's/^ *//' >> tmp-stdint.h <<EOF
19323 /* Some systems have guard macros to prevent redefinitions, define them. */
19324 #ifndef _INT8_T
19325 #define _INT8_T
19326 #endif
19327 #ifndef _INT16_T
19328 #define _INT16_T
19329 #endif
19330 #ifndef _INT32_T
19331 #define _INT32_T
19332 #endif
19333 #ifndef _UINT8_T
19334 #define _UINT8_T
19335 #endif
19336 #ifndef _UINT16_T
19337 #define _UINT16_T
19338 #endif
19339 #ifndef _UINT32_T
19340 #define _UINT32_T
19341 #endif
19345 # ------------- done basic int types, emit int64_t types ------------
19346 if test "$ac_cv_type_uint64_t" = yes; then
19347 sed 's/^ *//' >> tmp-stdint.h <<EOF
19349 /* system headers have good uint64_t and int64_t */
19350 #ifndef _INT64_T
19351 #define _INT64_T
19352 #endif
19353 #ifndef _UINT64_T
19354 #define _UINT64_T
19355 #endif
19357 elif test "$ac_cv_type_u_int64_t" = yes; then
19358 sed 's/^ *//' >> tmp-stdint.h <<EOF
19360 /* system headers have an u_int64_t (and int64_t) */
19361 #ifndef _INT64_T
19362 #define _INT64_T
19363 #endif
19364 #ifndef _UINT64_T
19365 #define _UINT64_T
19366 #ifndef __uint64_t_defined
19367 #define __uint64_t_defined
19368 #ifndef uint64_t
19369 typedef u_int64_t uint64_t;
19370 #endif
19371 #endif
19372 #endif
19374 elif test -n "$acx_cv_type_int64_t"; then
19375 sed 's/^ *//' >> tmp-stdint.h <<EOF
19377 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19378 #ifndef _INT64_T
19379 #define _INT64_T
19380 #ifndef int64_t
19381 typedef $acx_cv_type_int64_t int64_t;
19382 #endif
19383 #endif
19384 #ifndef _UINT64_T
19385 #define _UINT64_T
19386 #ifndef __uint64_t_defined
19387 #define __uint64_t_defined
19388 #ifndef uint64_t
19389 typedef unsigned $acx_cv_type_int64_t uint64_t;
19390 #endif
19391 #endif
19392 #endif
19394 else
19395 sed 's/^ *//' >> tmp-stdint.h <<EOF
19397 /* some common heuristics for int64_t, using compiler-specific tests */
19398 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19399 #ifndef _INT64_T
19400 #define _INT64_T
19401 #ifndef __int64_t_defined
19402 #ifndef int64_t
19403 typedef long long int64_t;
19404 #endif
19405 #endif
19406 #endif
19407 #ifndef _UINT64_T
19408 #define _UINT64_T
19409 #ifndef uint64_t
19410 typedef unsigned long long uint64_t;
19411 #endif
19412 #endif
19414 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19415 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19416 does not implement __extension__. But that compiler doesn't define
19417 __GNUC_MINOR__. */
19418 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19419 # define __extension__
19420 # endif
19422 # ifndef _INT64_T
19423 # define _INT64_T
19424 # ifndef int64_t
19425 __extension__ typedef long long int64_t;
19426 # endif
19427 # endif
19428 # ifndef _UINT64_T
19429 # define _UINT64_T
19430 # ifndef uint64_t
19431 __extension__ typedef unsigned long long uint64_t;
19432 # endif
19433 # endif
19435 #elif !defined __STRICT_ANSI__
19436 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19438 # ifndef _INT64_T
19439 # define _INT64_T
19440 # ifndef int64_t
19441 typedef __int64 int64_t;
19442 # endif
19443 # endif
19444 # ifndef _UINT64_T
19445 # define _UINT64_T
19446 # ifndef uint64_t
19447 typedef unsigned __int64 uint64_t;
19448 # endif
19449 # endif
19450 # endif /* compiler */
19452 #endif /* ANSI version */
19456 # ------------- done int64_t types, emit intptr types ------------
19457 if test "$ac_cv_type_uintptr_t" != yes; then
19458 sed 's/^ *//' >> tmp-stdint.h <<EOF
19460 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19461 #ifndef __uintptr_t_defined
19462 #ifndef uintptr_t
19463 typedef u$acx_cv_type_intptr_t uintptr_t;
19464 #endif
19465 #endif
19466 #ifndef __intptr_t_defined
19467 #ifndef intptr_t
19468 typedef $acx_cv_type_intptr_t intptr_t;
19469 #endif
19470 #endif
19474 # ------------- done intptr types, emit int_least types ------------
19475 if test "$ac_cv_type_int_least32_t" != yes; then
19476 sed 's/^ *//' >> tmp-stdint.h <<EOF
19478 /* Define int_least types */
19479 typedef int8_t int_least8_t;
19480 typedef int16_t int_least16_t;
19481 typedef int32_t int_least32_t;
19482 #ifdef _INT64_T
19483 typedef int64_t int_least64_t;
19484 #endif
19486 typedef uint8_t uint_least8_t;
19487 typedef uint16_t uint_least16_t;
19488 typedef uint32_t uint_least32_t;
19489 #ifdef _UINT64_T
19490 typedef uint64_t uint_least64_t;
19491 #endif
19495 # ------------- done intptr types, emit int_fast types ------------
19496 if test "$ac_cv_type_int_fast32_t" != yes; then
19497 sed 's/^ *//' >> tmp-stdint.h <<EOF
19499 /* Define int_fast types. short is often slow */
19500 typedef int8_t int_fast8_t;
19501 typedef int int_fast16_t;
19502 typedef int32_t int_fast32_t;
19503 #ifdef _INT64_T
19504 typedef int64_t int_fast64_t;
19505 #endif
19507 typedef uint8_t uint_fast8_t;
19508 typedef unsigned int uint_fast16_t;
19509 typedef uint32_t uint_fast32_t;
19510 #ifdef _UINT64_T
19511 typedef uint64_t uint_fast64_t;
19512 #endif
19516 if test "$ac_cv_type_uintmax_t" != yes; then
19517 sed 's/^ *//' >> tmp-stdint.h <<EOF
19519 /* Define intmax based on what we found */
19520 #ifndef intmax_t
19521 #ifdef _INT64_T
19522 typedef int64_t intmax_t;
19523 #else
19524 typedef long intmax_t;
19525 #endif
19526 #endif
19527 #ifndef uintmax_t
19528 #ifdef _UINT64_T
19529 typedef uint64_t uintmax_t;
19530 #else
19531 typedef unsigned long uintmax_t;
19532 #endif
19533 #endif
19537 sed 's/^ *//' >> tmp-stdint.h <<EOF
19539 #endif /* GCC_GENERATED_STDINT_H */
19542 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19543 rm -f tmp-stdint.h
19544 else
19545 mv -f tmp-stdint.h gstdint.h
19549 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19550 s!`test -f '$<' || echo '$(srcdir)/'`!!
19551 _EOF
19552 sed -f vpsed$$ $ac_file > tmp$$
19553 mv tmp$$ $ac_file
19554 rm vpsed$$
19555 echo 'MULTISUBDIR =' >> $ac_file
19556 ml_norecursion=yes
19557 . ${multi_basedir}/config-ml.in
19558 { ml_norecursion=; unset ml_norecursion;}
19560 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19561 s!`test -f '$<' || echo '$(srcdir)/'`!!
19562 _EOF
19563 sed -f vpsed$$ $ac_file > tmp$$
19564 mv tmp$$ $ac_file
19565 rm vpsed$$
19566 echo 'MULTISUBDIR =' >> $ac_file
19567 ml_norecursion=yes
19568 . ${multi_basedir}/config-ml.in
19569 { ml_norecursion=; unset ml_norecursion;}
19571 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19572 s!`test -f '$<' || echo '$(srcdir)/'`!!
19573 _EOF
19574 sed -f vpsed$$ $ac_file > tmp$$
19575 mv tmp$$ $ac_file
19576 rm vpsed$$
19577 echo 'MULTISUBDIR =' >> $ac_file
19578 ml_norecursion=yes
19579 . ${multi_basedir}/config-ml.in
19580 { ml_norecursion=; unset ml_norecursion;}
19582 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19583 s!`test -f '$<' || echo '$(srcdir)/'`!!
19584 _EOF
19585 sed -f vpsed$$ $ac_file > tmp$$
19586 mv tmp$$ $ac_file
19587 rm vpsed$$
19588 echo 'MULTISUBDIR =' >> $ac_file
19589 ml_norecursion=yes
19590 . ${multi_basedir}/config-ml.in
19591 { ml_norecursion=; unset ml_norecursion;}
19593 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19594 s!`test -f '$<' || echo '$(srcdir)/'`!!
19595 _EOF
19596 sed -f vpsed$$ $ac_file > tmp$$
19597 mv tmp$$ $ac_file
19598 rm vpsed$$
19599 echo 'MULTISUBDIR =' >> $ac_file
19600 ml_norecursion=yes
19601 . ${multi_basedir}/config-ml.in
19602 { ml_norecursion=; unset ml_norecursion;}
19604 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19605 s!`test -f '$<' || echo '$(srcdir)/'`!!
19606 _EOF
19607 sed -f vpsed$$ $ac_file > tmp$$
19608 mv tmp$$ $ac_file
19609 rm vpsed$$
19610 echo 'MULTISUBDIR =' >> $ac_file
19611 ml_norecursion=yes
19612 . ${multi_basedir}/config-ml.in
19613 { ml_norecursion=; unset ml_norecursion;}
19615 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19616 s!`test -f '$<' || echo '$(srcdir)/'`!!
19617 _EOF
19618 sed -f vpsed$$ $ac_file > tmp$$
19619 mv tmp$$ $ac_file
19620 rm vpsed$$
19621 echo 'MULTISUBDIR =' >> $ac_file
19622 ml_norecursion=yes
19623 . ${multi_basedir}/config-ml.in
19624 { ml_norecursion=; unset ml_norecursion;}
19627 esac
19628 done # for ac_tag
19631 as_fn_exit 0
19632 _ACEOF
19633 ac_clean_files=$ac_clean_files_save
19635 test $ac_write_fail = 0 ||
19636 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19639 # configure is writing to config.log, and then calls config.status.
19640 # config.status does its own redirection, appending to config.log.
19641 # Unfortunately, on DOS this fails, as config.log is still kept open
19642 # by configure, so config.status won't be able to write to it; its
19643 # output is simply discarded. So we exec the FD to /dev/null,
19644 # effectively closing config.log, so it can be properly (re)opened and
19645 # appended to by config.status. When coming back to configure, we
19646 # need to make the FD available again.
19647 if test "$no_create" != yes; then
19648 ac_cs_success=:
19649 ac_config_status_args=
19650 test "$silent" = yes &&
19651 ac_config_status_args="$ac_config_status_args --quiet"
19652 exec 5>/dev/null
19653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19654 exec 5>>config.log
19655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19656 # would make configure fail if this is the last instruction.
19657 $ac_cs_success || as_fn_exit $?
19659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}