[ARM/AArch64][testsuite] Add vsubhn, vraddhn and vrsubhn tests. Split vaddhn.c into...
[official-gcc.git] / libsanitizer / configure
bloba2a96b76a3f1d1aaa42e436ec89d72ba37d8a1e9
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 BACKTRACE_SUPPORTS_THREADS
611 BACKTRACE_USES_MALLOC
612 ALLOC_FILE
613 VIEW_FILE
614 BACKTRACE_SUPPORTED
615 FORMAT_FILE
616 SANITIZER_SUPPORTED_FALSE
617 SANITIZER_SUPPORTED_TRUE
618 USING_MAC_INTERPOSE_FALSE
619 USING_MAC_INTERPOSE_TRUE
620 link_liblsan
621 link_libubsan
622 link_libtsan
623 link_libasan
624 LSAN_SUPPORTED_FALSE
625 LSAN_SUPPORTED_TRUE
626 TSAN_SUPPORTED_FALSE
627 TSAN_SUPPORTED_TRUE
628 enable_static
629 enable_shared
630 CXXCPP
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
637 OBJDUMP
638 LN_S
640 ac_ct_DUMPBIN
641 DUMPBIN
643 FGREP
645 LIBTOOL
646 RANLIB
647 am__fastdepCCAS_FALSE
648 am__fastdepCCAS_TRUE
649 CCASDEPMODE
650 CCASFLAGS
651 CCAS
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 ac_ct_CXX
656 CXXFLAGS
658 toolexeclibdir
659 toolexecdir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 LIBSTDCXX_RAW_CXX_LDFLAGS
697 LIBSTDCXX_RAW_CXX_CXXFLAGS
698 target_noncanonical
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 EGREP
712 GREP
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_version_specific_runtime_libs
763 enable_dependency_tracking
764 enable_multilib
765 enable_maintainer_mode
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
783 CXXFLAGS
785 CCAS
786 CCASFLAGS
787 CXXCPP'
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information."
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 esac
1195 done
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of package-unused version-unused:";;
1401 esac
1402 cat <<\_ACEOF
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
1411 --enable-multilib build many library versions (default)
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436 CXX C++ compiler command
1437 CXXFLAGS C++ compiler flags
1438 CCAS assembler compiler command (defaults to CC)
1439 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1440 CXXCPP C++ preprocessor
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <libsanitizer>.
1446 _ACEOF
1447 ac_status=$?
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 package-unused configure version-unused
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } >/dev/null && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 $as_echo_n "(cached) " >&6
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( cat <<\_ASBOX
1668 ## --------------------------- ##
1669 ## Report this to libsanitizer ##
1670 ## --------------------------- ##
1671 _ASBOX
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1674 esac
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 eval "$3=\$ac_header_compiler"
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_run
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_cxx_try_compile LINENO
1764 # ----------------------------
1765 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_cxx_try_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext
1770 if { { ac_try="$ac_compile"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_compile") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_cxx_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest.$ac_objext; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
1799 } # ac_fn_cxx_try_compile
1801 # ac_fn_c_try_link LINENO
1802 # -----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_link ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext conftest$ac_exeext
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest$ac_exeext && {
1827 test "$cross_compiling" = yes ||
1828 $as_test_x conftest$ac_exeext
1829 }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=1
1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839 # interfere with the next link command; also delete a directory that is
1840 # left behind by Apple's compiler. We do this before executing the actions.
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 return $ac_retval
1845 } # ac_fn_c_try_link
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862 #define $2 innocuous_$2
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1869 #ifdef __STDC__
1870 # include <limits.h>
1871 #else
1872 # include <assert.h>
1873 #endif
1875 #undef $2
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1892 main ()
1894 return $2 ();
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"; then :
1900 eval "$3=yes"
1901 else
1902 eval "$3=no"
1904 rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 } # ac_fn_c_check_func
1914 # ac_fn_cxx_try_cpp LINENO
1915 # ------------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_cpp ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } >/dev/null && {
1936 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937 test ! -s conftest.err
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=1
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 return $ac_retval
1949 } # ac_fn_cxx_try_cpp
1951 # ac_fn_cxx_try_link LINENO
1952 # -------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_link ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 $as_test_x conftest$ac_exeext
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 return $ac_retval
1995 } # ac_fn_cxx_try_link
1997 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1998 # --------------------------------------------
1999 # Tries to find the compile-time value of EXPR in a program that includes
2000 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2001 # computed
2002 ac_fn_c_compute_int ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if test "$cross_compiling" = yes; then
2006 # Depending upon the size, compute the lo and hi bounds.
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static int test_array [1 - 2 * !(($2) >= 0)];
2014 test_array [0] = 0
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_lo=0 ac_mid=0
2022 while :; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=$ac_mid; break
2038 else
2039 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2040 if test $ac_lo -le $ac_mid; then
2041 ac_lo= ac_hi=
2042 break
2044 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 main ()
2055 static int test_array [1 - 2 * !(($2) < 0)];
2056 test_array [0] = 0
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=-1 ac_mid=-1
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=$ac_mid; break
2080 else
2081 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2082 if test $ac_mid -le $ac_hi; then
2083 ac_lo= ac_hi=
2084 break
2086 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 else
2091 ac_lo= ac_hi=
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 # Binary search between lo and hi bounds.
2097 while test "x$ac_lo" != "x$ac_hi"; do
2098 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=$ac_mid
2114 else
2115 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119 case $ac_lo in #((
2120 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2121 '') ac_retval=1 ;;
2122 esac
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2127 static long int longval () { return $2; }
2128 static unsigned long int ulongval () { return $2; }
2129 #include <stdio.h>
2130 #include <stdlib.h>
2132 main ()
2135 FILE *f = fopen ("conftest.val", "w");
2136 if (! f)
2137 return 1;
2138 if (($2) < 0)
2140 long int i = longval ();
2141 if (i != ($2))
2142 return 1;
2143 fprintf (f, "%ld", i);
2145 else
2147 unsigned long int i = ulongval ();
2148 if (i != ($2))
2149 return 1;
2150 fprintf (f, "%lu", i);
2152 /* Do not output a trailing newline, as this causes \r\n confusion
2153 on some platforms. */
2154 return ferror (f) || fclose (f) != 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_run "$LINENO"; then :
2161 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2162 else
2163 ac_retval=1
2165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2166 conftest.$ac_objext conftest.beam conftest.$ac_ext
2167 rm -f conftest.val
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171 return $ac_retval
2173 } # ac_fn_c_compute_int
2175 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2176 # -------------------------------------------
2177 # Tests whether TYPE exists after having included INCLUDES, setting cache
2178 # variable VAR accordingly.
2179 ac_fn_c_check_type ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 eval "$3=no"
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 main ()
2194 if (sizeof ($2))
2195 return 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 if (sizeof (($2)))
2208 return 0;
2210 return 0;
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2215 else
2216 eval "$3=yes"
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227 } # ac_fn_c_check_type
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR
2230 # ------------------------------------
2231 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2232 ac_fn_c_check_decl ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 as_decl_name=`echo $2|sed 's/ *(.*//'`
2236 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2238 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 #ifndef $as_decl_name
2249 #ifdef __cplusplus
2250 (void) $as_decl_use;
2251 #else
2252 (void) $as_decl_name;
2253 #endif
2254 #endif
2257 return 0;
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262 else
2263 eval "$3=no"
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272 } # ac_fn_c_check_decl
2273 cat >config.log <<_ACEOF
2274 This file contains any messages produced by compilers while
2275 running configure, to aid debugging if configure makes a mistake.
2277 It was created by package-unused $as_me version-unused, which was
2278 generated by GNU Autoconf 2.64. Invocation command line was
2280 $ $0 $@
2282 _ACEOF
2283 exec 5>>config.log
2285 cat <<_ASUNAME
2286 ## --------- ##
2287 ## Platform. ##
2288 ## --------- ##
2290 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2291 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2292 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2293 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2294 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2296 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2297 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2299 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2300 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2301 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2302 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2303 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2304 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2305 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2307 _ASUNAME
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 $as_echo "PATH: $as_dir"
2315 done
2316 IFS=$as_save_IFS
2318 } >&5
2320 cat >&5 <<_ACEOF
2323 ## ----------- ##
2324 ## Core tests. ##
2325 ## ----------- ##
2327 _ACEOF
2330 # Keep a trace of the command line.
2331 # Strip out --no-create and --no-recursion so they do not pile up.
2332 # Strip out --silent because we don't want to record it for future runs.
2333 # Also quote any args containing shell meta-characters.
2334 # Make two passes to allow for proper duplicate-argument suppression.
2335 ac_configure_args=
2336 ac_configure_args0=
2337 ac_configure_args1=
2338 ac_must_keep_next=false
2339 for ac_pass in 1 2
2341 for ac_arg
2343 case $ac_arg in
2344 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2346 | -silent | --silent | --silen | --sile | --sil)
2347 continue ;;
2348 *\'*)
2349 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2350 esac
2351 case $ac_pass in
2352 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2354 as_fn_append ac_configure_args1 " '$ac_arg'"
2355 if test $ac_must_keep_next = true; then
2356 ac_must_keep_next=false # Got value, back to normal.
2357 else
2358 case $ac_arg in
2359 *=* | --config-cache | -C | -disable-* | --disable-* \
2360 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2361 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2362 | -with-* | --with-* | -without-* | --without-* | --x)
2363 case "$ac_configure_args0 " in
2364 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2365 esac
2367 -* ) ac_must_keep_next=true ;;
2368 esac
2370 as_fn_append ac_configure_args " '$ac_arg'"
2372 esac
2373 done
2374 done
2375 { ac_configure_args0=; unset ac_configure_args0;}
2376 { ac_configure_args1=; unset ac_configure_args1;}
2378 # When interrupted or exit'd, cleanup temporary files, and complete
2379 # config.log. We remove comments because anyway the quotes in there
2380 # would cause problems or look ugly.
2381 # WARNING: Use '\'' to represent an apostrophe within the trap.
2382 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2383 trap 'exit_status=$?
2384 # Save into config.log some information that might help in debugging.
2386 echo
2388 cat <<\_ASBOX
2389 ## ---------------- ##
2390 ## Cache variables. ##
2391 ## ---------------- ##
2392 _ASBOX
2393 echo
2394 # The following way of writing the cache mishandles newlines in values,
2396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2397 eval ac_val=\$$ac_var
2398 case $ac_val in #(
2399 *${as_nl}*)
2400 case $ac_var in #(
2401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2403 esac
2404 case $ac_var in #(
2405 _ | IFS | as_nl) ;; #(
2406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2407 *) { eval $ac_var=; unset $ac_var;} ;;
2408 esac ;;
2409 esac
2410 done
2411 (set) 2>&1 |
2412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2413 *${as_nl}ac_space=\ *)
2414 sed -n \
2415 "s/'\''/'\''\\\\'\'''\''/g;
2416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2417 ;; #(
2419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421 esac |
2422 sort
2424 echo
2426 cat <<\_ASBOX
2427 ## ----------------- ##
2428 ## Output variables. ##
2429 ## ----------------- ##
2430 _ASBOX
2431 echo
2432 for ac_var in $ac_subst_vars
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2442 if test -n "$ac_subst_files"; then
2443 cat <<\_ASBOX
2444 ## ------------------- ##
2445 ## File substitutions. ##
2446 ## ------------------- ##
2447 _ASBOX
2448 echo
2449 for ac_var in $ac_subst_files
2451 eval ac_val=\$$ac_var
2452 case $ac_val in
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 esac
2455 $as_echo "$ac_var='\''$ac_val'\''"
2456 done | sort
2457 echo
2460 if test -s confdefs.h; then
2461 cat <<\_ASBOX
2462 ## ----------- ##
2463 ## confdefs.h. ##
2464 ## ----------- ##
2465 _ASBOX
2466 echo
2467 cat confdefs.h
2468 echo
2470 test "$ac_signal" != 0 &&
2471 $as_echo "$as_me: caught signal $ac_signal"
2472 $as_echo "$as_me: exit $exit_status"
2473 } >&5
2474 rm -f core *.core core.conftest.* &&
2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476 exit $exit_status
2478 for ac_signal in 1 2 13 15; do
2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2480 done
2481 ac_signal=0
2483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2484 rm -f -r conftest* confdefs.h
2486 $as_echo "/* confdefs.h */" > confdefs.h
2488 # Predefined preprocessor variables.
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_NAME "$PACKAGE_NAME"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496 _ACEOF
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_STRING "$PACKAGE_STRING"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_URL "$PACKAGE_URL"
2512 _ACEOF
2515 # Let the site file select an alternate cache file if it wants to.
2516 # Prefer an explicitly selected file to automatically selected ones.
2517 ac_site_file1=NONE
2518 ac_site_file2=NONE
2519 if test -n "$CONFIG_SITE"; then
2520 ac_site_file1=$CONFIG_SITE
2521 elif test "x$prefix" != xNONE; then
2522 ac_site_file1=$prefix/share/config.site
2523 ac_site_file2=$prefix/etc/config.site
2524 else
2525 ac_site_file1=$ac_default_prefix/share/config.site
2526 ac_site_file2=$ac_default_prefix/etc/config.site
2528 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2530 test "x$ac_site_file" = xNONE && continue
2531 if test -r "$ac_site_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534 sed 's/^/| /' "$ac_site_file" >&5
2535 . "$ac_site_file"
2537 done
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special
2541 # files actually), so we avoid doing that.
2542 if test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2605 done
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2630 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2631 # Check whether --enable-version-specific-runtime-libs was given.
2632 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2633 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2634 yes) version_specific_libs=yes ;;
2635 no) version_specific_libs=no ;;
2636 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2637 esac
2638 else
2639 version_specific_libs=no
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2643 $as_echo "$version_specific_libs" >&6; }
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2689 if test -z "$ac_cv_prog_CC"; then
2690 ac_ct_CC=$CC
2691 # Extract the first word of "gcc", so it can be a program name with args.
2692 set dummy gcc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_CC="gcc"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719 if test -n "$ac_ct_CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721 $as_echo "$ac_ct_CC" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2727 if test "x$ac_ct_CC" = x; then
2728 CC=""
2729 else
2730 case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736 CC=$ac_ct_CC
2738 else
2739 CC="$ac_cv_prog_CC"
2742 if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}cc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if test "${ac_cv_prog_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_CC="${ac_tool_prefix}cc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2765 done
2766 done
2767 IFS=$as_save_IFS
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2783 if test -z "$CC"; then
2784 # Extract the first word of "cc", so it can be a program name with args.
2785 set dummy cc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2803 ac_prog_rejected=yes
2804 continue
2806 ac_cv_prog_CC="cc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2810 done
2811 done
2812 IFS=$as_save_IFS
2814 if test $ac_prog_rejected = yes; then
2815 # We found a bogon in the path, so make sure we never use it.
2816 set dummy $ac_cv_prog_CC
2817 shift
2818 if test $# != 0; then
2819 # We chose a different compiler from the bogus one.
2820 # However, it has the same basename, so the bogon will be chosen
2821 # first if we set CC to just the basename; use the full file name.
2822 shift
2823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 for ac_prog in cl.exe
2843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$CC" && break
2881 done
2883 if test -z "$CC"; then
2884 ac_ct_CC=$CC
2885 for ac_prog in cl.exe
2887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2888 set dummy $ac_prog; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_ac_ct_CC="$ac_prog"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2910 IFS=$as_save_IFS
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917 $as_echo "$ac_ct_CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2924 test -n "$ac_ct_CC" && break
2925 done
2927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CC=$ac_ct_CC
2943 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error "no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details." "$LINENO" 5; }
2948 # Provide some information about the compiler.
2949 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950 set X $ac_compile
2951 ac_compiler=$2
2952 for ac_option in --version -v -V -qversion; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961 ac_status=$?
2962 if test -s conftest.err; then
2963 sed '10a\
2964 ... rest of stderr output deleted ...
2965 10q' conftest.err >conftest.er1
2966 cat conftest.er1 >&5
2967 rm -f conftest.er1 conftest.err
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 done
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2988 # of exeext.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2990 $as_echo_n "checking for C compiler default output file name... " >&6; }
2991 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2996 ac_rmfiles=
2997 for ac_file in $ac_files
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003 done
3004 rm -f $ac_rmfiles
3006 if { { ac_try="$ac_link_default"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3020 # so that the user can short-circuit this test for compilers unknown to
3021 # Autoconf.
3022 for ac_file in $ac_files ''
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3044 break;;
3045 esac
3046 done
3047 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049 else
3050 ac_file=''
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 if test -z "$ac_file"; then :
3055 $as_echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 { as_fn_set_status 77
3061 as_fn_error "C compiler cannot create executables
3062 See \`config.log' for more details." "$LINENO" 5; }; }
3064 ac_exeext=$ac_cv_exeext
3066 # Check that the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3069 $as_echo_n "checking whether the C compiler works... " >&6; }
3070 # If not cross compiling, check that we can run a simple program.
3071 if test "$cross_compiling" != yes; then
3072 if { ac_try='./$ac_file'
3073 { { case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_try") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; }; then
3083 cross_compiling=no
3084 else
3085 if test "$cross_compiling" = maybe; then
3086 cross_compiling=yes
3087 else
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error "cannot run C compiled programs.
3091 If you meant to cross compile, use \`--host'.
3092 See \`config.log' for more details." "$LINENO" 5; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; }
3099 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3100 ac_clean_files=$ac_clean_files_save
3101 # Check that the compiler produces executables we can run. If not, either
3102 # the compiler is broken, or we cross compile.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3104 $as_echo_n "checking whether we are cross compiling... " >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3106 $as_echo "$cross_compiling" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109 $as_echo_n "checking for suffix of executables... " >&6; }
3110 if { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3123 # work properly (i.e., refer to `conftest.exe'), while it won't with
3124 # `rm'.
3125 for ac_file in conftest.exe conftest conftest.*; do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 break;;
3131 * ) break;;
3132 esac
3133 done
3134 else
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error "cannot compute suffix of executables: cannot compile and link
3138 See \`config.log' for more details." "$LINENO" 5; }
3140 rm -f conftest$ac_cv_exeext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142 $as_echo "$ac_cv_exeext" >&6; }
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3148 $as_echo_n "checking for suffix of object files... " >&6; }
3149 if test "${ac_cv_objext+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3156 main ()
3160 return 0;
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { { ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compile") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182 done
3183 else
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details." "$LINENO" 5; }
3192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3195 $as_echo "$ac_cv_objext" >&6; }
3196 OBJEXT=$ac_cv_objext
3197 ac_objext=$OBJEXT
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3199 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3200 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3207 main ()
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3214 return 0;
3216 _ACEOF
3217 if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_compiler_gnu=yes
3219 else
3220 ac_compiler_gnu=no
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3227 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3228 if test $ac_compiler_gnu = yes; then
3229 GCC=yes
3230 else
3231 GCC=
3233 ac_test_CFLAGS=${CFLAGS+set}
3234 ac_save_CFLAGS=$CFLAGS
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3236 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3237 if test "${ac_cv_prog_cc_g+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3242 ac_cv_prog_cc_g=no
3243 CFLAGS="-g"
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_cv_prog_cc_g=yes
3257 else
3258 CFLAGS=""
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 if ac_fn_c_try_compile "$LINENO"; then :
3272 else
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274 CFLAGS="-g"
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_g=yes
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3297 $as_echo "$ac_cv_prog_cc_g" >&6; }
3298 if test "$ac_test_CFLAGS" = set; then
3299 CFLAGS=$ac_save_CFLAGS
3300 elif test $ac_cv_prog_cc_g = yes; then
3301 if test "$GCC" = yes; then
3302 CFLAGS="-g -O2"
3303 else
3304 CFLAGS="-g"
3306 else
3307 if test "$GCC" = yes; then
3308 CFLAGS="-O2"
3309 else
3310 CFLAGS=
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3314 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3315 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 ac_cv_prog_cc_c89=no
3319 ac_save_CC=$CC
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322 #include <stdarg.h>
3323 #include <stdio.h>
3324 #include <sys/types.h>
3325 #include <sys/stat.h>
3326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3327 struct buf { int x; };
3328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329 static char *e (p, i)
3330 char **p;
3331 int i;
3333 return p[i];
3335 static char *f (char * (*g) (char **, int), char **p, ...)
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3345 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3346 function prototypes and stuff, but not '\xHH' hex character constants.
3347 These don't provoke an error unfortunately, instead are silently treated
3348 as 'x'. The following induces an error, until -std is added to get
3349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3350 array size at least. It's necessary to write '\x00'==0 to get something
3351 that's true only with -std. */
3352 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3354 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355 inside strings and character constants. */
3356 #define FOO(x) 'x'
3357 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3359 int test (int i, double x);
3360 struct s1 {int (*f) (int a);};
3361 struct s2 {int (*f) (double a);};
3362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 int argc;
3364 char **argv;
3366 main ()
3368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3370 return 0;
3372 _ACEOF
3373 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3376 CC="$ac_save_CC $ac_arg"
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_prog_cc_c89=$ac_arg
3380 rm -f core conftest.err conftest.$ac_objext
3381 test "x$ac_cv_prog_cc_c89" != "xno" && break
3382 done
3383 rm -f conftest.$ac_ext
3384 CC=$ac_save_CC
3387 # AC_CACHE_VAL
3388 case "x$ac_cv_prog_cc_c89" in
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3391 $as_echo "none needed" >&6; } ;;
3392 xno)
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3394 $as_echo "unsupported" >&6; } ;;
3396 CC="$CC $ac_cv_prog_cc_c89"
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3398 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3399 esac
3400 if test "x$ac_cv_prog_cc_c89" != xno; then :
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3417 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3418 # On Suns, sometimes $CPP names a directory.
3419 if test -n "$CPP" && test -d "$CPP"; then
3420 CPP=
3422 if test -z "$CPP"; then
3423 if test "${ac_cv_prog_CPP+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 # Double quotes because CPP needs to be expanded
3427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429 ac_preproc_ok=false
3430 for ac_c_preproc_warn_flag in '' yes
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error" is here to catch this case.
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440 #ifdef __STDC__
3441 # include <limits.h>
3442 #else
3443 # include <assert.h>
3444 #endif
3445 Syntax error
3446 _ACEOF
3447 if ac_fn_c_try_cpp "$LINENO"; then :
3449 else
3450 # Broken: fails on valid input.
3451 continue
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <ac_nonexistent.h>
3460 _ACEOF
3461 if ac_fn_c_try_cpp "$LINENO"; then :
3462 # Broken: success on invalid input.
3463 continue
3464 else
3465 # Passes both tests.
3466 ac_preproc_ok=:
3467 break
3469 rm -f conftest.err conftest.$ac_ext
3471 done
3472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473 rm -f conftest.err conftest.$ac_ext
3474 if $ac_preproc_ok; then :
3475 break
3478 done
3479 ac_cv_prog_CPP=$CPP
3482 CPP=$ac_cv_prog_CPP
3483 else
3484 ac_cv_prog_CPP=$CPP
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3487 $as_echo "$CPP" >&6; }
3488 ac_preproc_ok=false
3489 for ac_c_preproc_warn_flag in '' yes
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494 # <limits.h> exists even on freestanding compilers.
3495 # On the NeXT, cc -E runs the code through the compiler's parser,
3496 # not just through cpp. "Syntax error" is here to catch this case.
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504 Syntax error
3505 _ACEOF
3506 if ac_fn_c_try_cpp "$LINENO"; then :
3508 else
3509 # Broken: fails on valid input.
3510 continue
3512 rm -f conftest.err conftest.$ac_ext
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if ac_fn_c_try_cpp "$LINENO"; then :
3521 # Broken: success on invalid input.
3522 continue
3523 else
3524 # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3528 rm -f conftest.err conftest.$ac_ext
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then :
3535 else
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." "$LINENO" 5; }
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3551 if test "${ac_cv_path_GREP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -z "$GREP"; then
3555 ac_path_GREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in grep ggrep; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3566 # Check for GNU ac_path_GREP and select it if it is found.
3567 # Check for GNU $ac_path_GREP
3568 case `"$ac_path_GREP" --version 2>&1` in
3569 *GNU*)
3570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3572 ac_count=0
3573 $as_echo_n 0123456789 >"conftest.in"
3574 while :
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 $as_echo 'GREP' >> "conftest.nl"
3580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582 as_fn_arith $ac_count + 1 && ac_count=$as_val
3583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_GREP="$ac_path_GREP"
3586 ac_path_GREP_max=$ac_count
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3590 done
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592 esac
3594 $ac_path_GREP_found && break 3
3595 done
3596 done
3597 done
3598 IFS=$as_save_IFS
3599 if test -z "$ac_cv_path_GREP"; then
3600 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3602 else
3603 ac_cv_path_GREP=$GREP
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3608 $as_echo "$ac_cv_path_GREP" >&6; }
3609 GREP="$ac_cv_path_GREP"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3613 $as_echo_n "checking for egrep... " >&6; }
3614 if test "${ac_cv_path_EGREP+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3618 then ac_cv_path_EGREP="$GREP -E"
3619 else
3620 if test -z "$EGREP"; then
3621 ac_path_EGREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in egrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3632 # Check for GNU ac_path_EGREP and select it if it is found.
3633 # Check for GNU $ac_path_EGREP
3634 case `"$ac_path_EGREP" --version 2>&1` in
3635 *GNU*)
3636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3638 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in"
3640 while :
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'EGREP' >> "conftest.nl"
3646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 as_fn_arith $ac_count + 1 && ac_count=$as_val
3649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_EGREP="$ac_path_EGREP"
3652 ac_path_EGREP_max=$ac_count
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658 esac
3660 $ac_path_EGREP_found && break 3
3661 done
3662 done
3663 done
3664 IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_EGREP"; then
3666 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 else
3669 ac_cv_path_EGREP=$EGREP
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3675 $as_echo "$ac_cv_path_EGREP" >&6; }
3676 EGREP="$ac_cv_path_EGREP"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3680 $as_echo_n "checking for ANSI C header files... " >&6; }
3681 if test "${ac_cv_header_stdc+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <stdlib.h>
3687 #include <stdarg.h>
3688 #include <string.h>
3689 #include <float.h>
3692 main ()
3696 return 0;
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_header_stdc=yes
3701 else
3702 ac_cv_header_stdc=no
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 if test $ac_cv_header_stdc = yes; then
3707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 #include <string.h>
3712 _ACEOF
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 $EGREP "memchr" >/dev/null 2>&1; then :
3716 else
3717 ac_cv_header_stdc=no
3719 rm -f conftest*
3723 if test $ac_cv_header_stdc = yes; then
3724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <stdlib.h>
3729 _ACEOF
3730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 $EGREP "free" >/dev/null 2>&1; then :
3733 else
3734 ac_cv_header_stdc=no
3736 rm -f conftest*
3740 if test $ac_cv_header_stdc = yes; then
3741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3742 if test "$cross_compiling" = yes; then :
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <ctype.h>
3748 #include <stdlib.h>
3749 #if ((' ' & 0x0FF) == 0x020)
3750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3752 #else
3753 # define ISLOWER(c) \
3754 (('a' <= (c) && (c) <= 'i') \
3755 || ('j' <= (c) && (c) <= 'r') \
3756 || ('s' <= (c) && (c) <= 'z'))
3757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3758 #endif
3760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3762 main ()
3764 int i;
3765 for (i = 0; i < 256; i++)
3766 if (XOR (islower (i), ISLOWER (i))
3767 || toupper (i) != TOUPPER (i))
3768 return 2;
3769 return 0;
3771 _ACEOF
3772 if ac_fn_c_try_run "$LINENO"; then :
3774 else
3775 ac_cv_header_stdc=no
3777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3778 conftest.$ac_objext conftest.beam conftest.$ac_ext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3784 $as_echo "$ac_cv_header_stdc" >&6; }
3785 if test $ac_cv_header_stdc = yes; then
3787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3793 inttypes.h stdint.h unistd.h
3794 do :
3795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3798 eval as_val=\$$as_ac_Header
3799 if test "x$as_val" = x""yes; then :
3800 cat >>confdefs.h <<_ACEOF
3801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802 _ACEOF
3806 done
3810 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3811 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3812 MINIX=yes
3813 else
3814 MINIX=
3818 if test "$MINIX" = yes; then
3820 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3823 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3826 $as_echo "#define _MINIX 1" >>confdefs.h
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3832 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3833 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3839 # define __EXTENSIONS__ 1
3840 $ac_includes_default
3842 main ()
3846 return 0;
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_safe_to_define___extensions__=yes
3851 else
3852 ac_cv_safe_to_define___extensions__=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3857 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3861 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3863 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3865 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3867 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3871 # Do not delete or change the following two lines. For why, see
3872 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3873 ac_aux_dir=
3874 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3875 for ac_t in install-sh install.sh shtool; do
3876 if test -f "$ac_dir/$ac_t"; then
3877 ac_aux_dir=$ac_dir
3878 ac_install_sh="$ac_aux_dir/$ac_t -c"
3879 break 2
3881 done
3882 done
3883 if test -z "$ac_aux_dir"; then
3884 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3887 # These three variables are undocumented and unsupported,
3888 # and are intended to be withdrawn in a future Autoconf release.
3889 # They can cause serious problems if a builder's source tree is in a directory
3890 # whose full name contains unusual characters.
3891 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3892 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3893 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3896 # Make sure we can run config.sub.
3897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3898 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3901 $as_echo_n "checking build system type... " >&6; }
3902 if test "${ac_cv_build+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 ac_build_alias=$build_alias
3906 test "x$ac_build_alias" = x &&
3907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3908 test "x$ac_build_alias" = x &&
3909 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3911 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3915 $as_echo "$ac_cv_build" >&6; }
3916 case $ac_cv_build in
3917 *-*-*) ;;
3918 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3919 esac
3920 build=$ac_cv_build
3921 ac_save_IFS=$IFS; IFS='-'
3922 set x $ac_cv_build
3923 shift
3924 build_cpu=$1
3925 build_vendor=$2
3926 shift; shift
3927 # Remember, the first character of IFS is used to create $*,
3928 # except with old shells:
3929 build_os=$*
3930 IFS=$ac_save_IFS
3931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3935 $as_echo_n "checking host system type... " >&6; }
3936 if test "${ac_cv_host+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test "x$host_alias" = x; then
3940 ac_cv_host=$ac_cv_build
3941 else
3942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3943 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3948 $as_echo "$ac_cv_host" >&6; }
3949 case $ac_cv_host in
3950 *-*-*) ;;
3951 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3952 esac
3953 host=$ac_cv_host
3954 ac_save_IFS=$IFS; IFS='-'
3955 set x $ac_cv_host
3956 shift
3957 host_cpu=$1
3958 host_vendor=$2
3959 shift; shift
3960 # Remember, the first character of IFS is used to create $*,
3961 # except with old shells:
3962 host_os=$*
3963 IFS=$ac_save_IFS
3964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3968 $as_echo_n "checking target system type... " >&6; }
3969 if test "${ac_cv_target+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test "x$target_alias" = x; then
3973 ac_cv_target=$ac_cv_host
3974 else
3975 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3976 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3981 $as_echo "$ac_cv_target" >&6; }
3982 case $ac_cv_target in
3983 *-*-*) ;;
3984 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3985 esac
3986 target=$ac_cv_target
3987 ac_save_IFS=$IFS; IFS='-'
3988 set x $ac_cv_target
3989 shift
3990 target_cpu=$1
3991 target_vendor=$2
3992 shift; shift
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3995 target_os=$*
3996 IFS=$ac_save_IFS
3997 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4000 # The aliases save the names the user supplied, while $host etc.
4001 # will get canonicalized.
4002 test -n "$target_alias" &&
4003 test "$program_prefix$program_suffix$program_transform_name" = \
4004 NONENONEs,x,x, &&
4005 program_prefix=${target_alias}-
4007 target_alias=${target_alias-$host_alias}
4009 case ${build_alias} in
4010 "") build_noncanonical=${build} ;;
4011 *) build_noncanonical=${build_alias} ;;
4012 esac
4014 case ${host_alias} in
4015 "") host_noncanonical=${build_noncanonical} ;;
4016 *) host_noncanonical=${host_alias} ;;
4017 esac
4019 case ${target_alias} in
4020 "") target_noncanonical=${host_noncanonical} ;;
4021 *) target_noncanonical=${target_alias} ;;
4022 esac
4028 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4029 -I\$(top_builddir)/../libstdc++-v3/include \
4030 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4031 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4032 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4033 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4038 am__api_version='1.11'
4040 # Find a good install program. We prefer a C program (faster),
4041 # so one script is as good as another. But avoid the broken or
4042 # incompatible versions:
4043 # SysV /etc/install, /usr/sbin/install
4044 # SunOS /usr/etc/install
4045 # IRIX /sbin/install
4046 # AIX /bin/install
4047 # AmigaOS /C/install, which installs bootblocks on floppy discs
4048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4051 # OS/2's system install, which has a completely different semantic
4052 # ./install, which can be erroneously created by make from ./install.sh.
4053 # Reject install programs that cannot install multiple files.
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4055 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4056 if test -z "$INSTALL"; then
4057 if test "${ac_cv_path_install+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 # Account for people who put trailing slashes in PATH elements.
4066 case $as_dir/ in #((
4067 ./ | .// | /[cC]/* | \
4068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4070 /usr/ucb/* ) ;;
4072 # OSF1 and SCO ODT 3.0 have their own names for install.
4073 # Don't use installbsd from OSF since it installs stuff as root
4074 # by default.
4075 for ac_prog in ginstall scoinst install; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4078 if test $ac_prog = install &&
4079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080 # AIX install. It has an incompatible calling convention.
4082 elif test $ac_prog = install &&
4083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084 # program-specific install script used by HP pwplus--don't use.
4086 else
4087 rm -rf conftest.one conftest.two conftest.dir
4088 echo one > conftest.one
4089 echo two > conftest.two
4090 mkdir conftest.dir
4091 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4092 test -s conftest.one && test -s conftest.two &&
4093 test -s conftest.dir/conftest.one &&
4094 test -s conftest.dir/conftest.two
4095 then
4096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4097 break 3
4101 done
4102 done
4104 esac
4106 done
4107 IFS=$as_save_IFS
4109 rm -rf conftest.one conftest.two conftest.dir
4112 if test "${ac_cv_path_install+set}" = set; then
4113 INSTALL=$ac_cv_path_install
4114 else
4115 # As a last resort, use the slow shell script. Don't cache a
4116 # value for INSTALL within a source directory, because that will
4117 # break other packages using the cache if that directory is
4118 # removed, or if the value is a relative name.
4119 INSTALL=$ac_install_sh
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4123 $as_echo "$INSTALL" >&6; }
4125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4126 # It thinks the first close brace ends the variable substitution.
4127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4134 $as_echo_n "checking whether build environment is sane... " >&6; }
4135 # Just in case
4136 sleep 1
4137 echo timestamp > conftest.file
4138 # Reject unsafe characters in $srcdir or the absolute working directory
4139 # name. Accept space and tab only in the latter.
4140 am_lf='
4142 case `pwd` in
4143 *[\\\"\#\$\&\'\`$am_lf]*)
4144 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4145 esac
4146 case $srcdir in
4147 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4148 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4149 esac
4151 # Do `set' in a subshell so we don't clobber the current shell's
4152 # arguments. Must try -L first in case configure is actually a
4153 # symlink; some systems play weird games with the mod time of symlinks
4154 # (eg FreeBSD returns the mod time of the symlink's containing
4155 # directory).
4156 if (
4157 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4158 if test "$*" = "X"; then
4159 # -L didn't work.
4160 set X `ls -t "$srcdir/configure" conftest.file`
4162 rm -f conftest.file
4163 if test "$*" != "X $srcdir/configure conftest.file" \
4164 && test "$*" != "X conftest.file $srcdir/configure"; then
4166 # If neither matched, then we have a broken ls. This can happen
4167 # if, for instance, CONFIG_SHELL is bash and it inherits a
4168 # broken ls alias from the environment. This has actually
4169 # happened. Such a system could not be considered "sane".
4170 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4171 alias in your environment" "$LINENO" 5
4174 test "$2" = conftest.file
4176 then
4177 # Ok.
4179 else
4180 as_fn_error "newly created file is older than distributed files!
4181 Check your system clock" "$LINENO" 5
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 test "$program_prefix" != NONE &&
4186 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4187 # Use a double $ so make ignores it.
4188 test "$program_suffix" != NONE &&
4189 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4190 # Double any \ or $.
4191 # By default was `s,x,x', remove it if useless.
4192 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4193 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4195 # expand $ac_aux_dir to an absolute path
4196 am_aux_dir=`cd $ac_aux_dir && pwd`
4198 if test x"${MISSING+set}" != xset; then
4199 case $am_aux_dir in
4200 *\ * | *\ *)
4201 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4203 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4204 esac
4206 # Use eval to expand $SHELL
4207 if eval "$MISSING --run true"; then
4208 am_missing_run="$MISSING --run "
4209 else
4210 am_missing_run=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4212 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4215 if test x"${install_sh}" != xset; then
4216 case $am_aux_dir in
4217 *\ * | *\ *)
4218 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4220 install_sh="\${SHELL} $am_aux_dir/install-sh"
4221 esac
4224 # Installed binaries are usually stripped using `strip' when the user
4225 # run `make install-strip'. However `strip' might not be the right
4226 # tool to use in cross-compilation environments, therefore Automake
4227 # will honor the `STRIP' environment variable to overrule this program.
4228 if test "$cross_compiling" != no; then
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}strip; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_STRIP+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$STRIP"; then
4238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4251 done
4252 done
4253 IFS=$as_save_IFS
4257 STRIP=$ac_cv_prog_STRIP
4258 if test -n "$STRIP"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4260 $as_echo "$STRIP" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 if test -z "$ac_cv_prog_STRIP"; then
4269 ac_ct_STRIP=$STRIP
4270 # Extract the first word of "strip", so it can be a program name with args.
4271 set dummy strip; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$ac_ct_STRIP"; then
4278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_STRIP="strip"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4298 if test -n "$ac_ct_STRIP"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4300 $as_echo "$ac_ct_STRIP" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4306 if test "x$ac_ct_STRIP" = x; then
4307 STRIP=":"
4308 else
4309 case $cross_compiling:$ac_tool_warned in
4310 yes:)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315 STRIP=$ac_ct_STRIP
4317 else
4318 STRIP="$ac_cv_prog_STRIP"
4322 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4325 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4326 if test -z "$MKDIR_P"; then
4327 if test "${ac_cv_path_mkdir+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in mkdir gmkdir; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4338 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4339 'mkdir (GNU coreutils) '* | \
4340 'mkdir (coreutils) '* | \
4341 'mkdir (fileutils) '4.1*)
4342 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4343 break 3;;
4344 esac
4345 done
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 if test "${ac_cv_path_mkdir+set}" = set; then
4353 MKDIR_P="$ac_cv_path_mkdir -p"
4354 else
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for MKDIR_P within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 test -d ./--version && rmdir ./--version
4360 MKDIR_P="$ac_install_sh -d"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4364 $as_echo "$MKDIR_P" >&6; }
4366 mkdir_p="$MKDIR_P"
4367 case $mkdir_p in
4368 [\\/$]* | ?:[\\/]*) ;;
4369 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4370 esac
4372 for ac_prog in gawk mawk nawk awk
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if test "${ac_cv_prog_AWK+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$AWK"; then
4382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_prog_AWK="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4395 done
4396 done
4397 IFS=$as_save_IFS
4401 AWK=$ac_cv_prog_AWK
4402 if test -n "$AWK"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4404 $as_echo "$AWK" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4411 test -n "$AWK" && break
4412 done
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4416 set x ${MAKE-make}
4417 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4418 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 cat >conftest.make <<\_ACEOF
4422 SHELL = /bin/sh
4423 all:
4424 @echo '@@@%%%=$(MAKE)=@@@%%%'
4425 _ACEOF
4426 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4427 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4428 *@@@%%%=?*=@@@%%%*)
4429 eval ac_cv_prog_make_${ac_make}_set=yes;;
4431 eval ac_cv_prog_make_${ac_make}_set=no;;
4432 esac
4433 rm -f conftest.make
4435 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437 $as_echo "yes" >&6; }
4438 SET_MAKE=
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 SET_MAKE="MAKE=${MAKE-make}"
4445 rm -rf .tst 2>/dev/null
4446 mkdir .tst 2>/dev/null
4447 if test -d .tst; then
4448 am__leading_dot=.
4449 else
4450 am__leading_dot=_
4452 rmdir .tst 2>/dev/null
4454 DEPDIR="${am__leading_dot}deps"
4456 ac_config_commands="$ac_config_commands depfiles"
4459 am_make=${MAKE-make}
4460 cat > confinc << 'END'
4461 am__doit:
4462 @echo this is the am__doit target
4463 .PHONY: am__doit
4465 # If we don't find an include directive, just comment out the code.
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4467 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4468 am__include="#"
4469 am__quote=
4470 _am_result=none
4471 # First try GNU make style include.
4472 echo "include confinc" > confmf
4473 # Ignore all kinds of additional output from `make'.
4474 case `$am_make -s -f confmf 2> /dev/null` in #(
4475 *the\ am__doit\ target*)
4476 am__include=include
4477 am__quote=
4478 _am_result=GNU
4480 esac
4481 # Now try BSD make style include.
4482 if test "$am__include" = "#"; then
4483 echo '.include "confinc"' > confmf
4484 case `$am_make -s -f confmf 2> /dev/null` in #(
4485 *the\ am__doit\ target*)
4486 am__include=.include
4487 am__quote="\""
4488 _am_result=BSD
4490 esac
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4495 $as_echo "$_am_result" >&6; }
4496 rm -f confinc confmf
4498 # Check whether --enable-dependency-tracking was given.
4499 if test "${enable_dependency_tracking+set}" = set; then :
4500 enableval=$enable_dependency_tracking;
4503 if test "x$enable_dependency_tracking" != xno; then
4504 am_depcomp="$ac_aux_dir/depcomp"
4505 AMDEPBACKSLASH='\'
4507 if test "x$enable_dependency_tracking" != xno; then
4508 AMDEP_TRUE=
4509 AMDEP_FALSE='#'
4510 else
4511 AMDEP_TRUE='#'
4512 AMDEP_FALSE=
4516 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4517 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4518 # is not polluted with repeated "-I."
4519 am__isrc=' -I$(srcdir)'
4520 # test to see if srcdir already configured
4521 if test -f $srcdir/config.status; then
4522 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4526 # test whether we have cygpath
4527 if test -z "$CYGPATH_W"; then
4528 if (cygpath --version) >/dev/null 2>/dev/null; then
4529 CYGPATH_W='cygpath -w'
4530 else
4531 CYGPATH_W=echo
4536 # Define the identity of the package.
4537 PACKAGE='package-unused'
4538 VERSION='version-unused'
4541 cat >>confdefs.h <<_ACEOF
4542 #define PACKAGE "$PACKAGE"
4543 _ACEOF
4546 cat >>confdefs.h <<_ACEOF
4547 #define VERSION "$VERSION"
4548 _ACEOF
4550 # Some tools Automake needs.
4552 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4555 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4558 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4561 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4564 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4566 # We need awk for the "check" target. The system "awk" is bad on
4567 # some platforms.
4568 # Always define AMTAR for backward compatibility.
4570 AMTAR=${AMTAR-"${am_missing_run}tar"}
4572 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4577 depcc="$CC" am_compiler_list=
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4580 $as_echo_n "checking dependency style of $depcc... " >&6; }
4581 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4585 # We make a subdir and do the tests there. Otherwise we can end up
4586 # making bogus files that we don't know about and never remove. For
4587 # instance it was reported that on HP-UX the gcc test will end up
4588 # making a dummy file named `D' -- because `-MD' means `put the output
4589 # in D'.
4590 mkdir conftest.dir
4591 # Copy depcomp to subdir because otherwise we won't find it if we're
4592 # using a relative directory.
4593 cp "$am_depcomp" conftest.dir
4594 cd conftest.dir
4595 # We will build objects and dependencies in a subdirectory because
4596 # it helps to detect inapplicable dependency modes. For instance
4597 # both Tru64's cc and ICC support -MD to output dependencies as a
4598 # side effect of compilation, but ICC will put the dependencies in
4599 # the current directory while Tru64 will put them in the object
4600 # directory.
4601 mkdir sub
4603 am_cv_CC_dependencies_compiler_type=none
4604 if test "$am_compiler_list" = ""; then
4605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4607 am__universal=false
4608 case " $depcc " in #(
4609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4610 esac
4612 for depmode in $am_compiler_list; do
4613 # Setup a source with many dependencies, because some compilers
4614 # like to wrap large dependency lists on column 80 (with \), and
4615 # we should not choose a depcomp mode which is confused by this.
4617 # We need to recreate these files for each test, as the compiler may
4618 # overwrite some of them when testing with obscure command lines.
4619 # This happens at least with the AIX C compiler.
4620 : > sub/conftest.c
4621 for i in 1 2 3 4 5 6; do
4622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4624 # Solaris 8's {/usr,}/bin/sh.
4625 touch sub/conftst$i.h
4626 done
4627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4630 # mode. It turns out that the SunPro C++ compiler does not properly
4631 # handle `-M -o', and we need to detect this. Also, some Intel
4632 # versions had trouble with output in subdirs
4633 am__obj=sub/conftest.${OBJEXT-o}
4634 am__minus_obj="-o $am__obj"
4635 case $depmode in
4636 gcc)
4637 # This depmode causes a compiler race in universal mode.
4638 test "$am__universal" = false || continue
4640 nosideeffect)
4641 # after this tag, mechanisms are not by side-effect, so they'll
4642 # only be used when explicitly requested
4643 if test "x$enable_dependency_tracking" = xyes; then
4644 continue
4645 else
4646 break
4649 msvisualcpp | msvcmsys)
4650 # This compiler won't grok `-c -o', but also, the minuso test has
4651 # not run yet. These depmodes are late enough in the game, and
4652 # so weak that their functioning should not be impacted.
4653 am__obj=conftest.${OBJEXT-o}
4654 am__minus_obj=
4656 none) break ;;
4657 esac
4658 if depmode=$depmode \
4659 source=sub/conftest.c object=$am__obj \
4660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4662 >/dev/null 2>conftest.err &&
4663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4667 # icc doesn't choke on unknown options, it will just issue warnings
4668 # or remarks (even with -Werror). So we grep stderr for any message
4669 # that says an option was ignored or not supported.
4670 # When given -MP, icc 7.0 and 7.1 complain thusly:
4671 # icc: Command line warning: ignoring option '-M'; no argument required
4672 # The diagnosis changed in icc 8.0:
4673 # icc: Command line remark: option '-MP' not supported
4674 if (grep 'ignoring option' conftest.err ||
4675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4676 am_cv_CC_dependencies_compiler_type=$depmode
4677 break
4680 done
4682 cd ..
4683 rm -rf conftest.dir
4684 else
4685 am_cv_CC_dependencies_compiler_type=none
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4690 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4691 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4694 test "x$enable_dependency_tracking" != xno \
4695 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4696 am__fastdepCC_TRUE=
4697 am__fastdepCC_FALSE='#'
4698 else
4699 am__fastdepCC_TRUE='#'
4700 am__fastdepCC_FALSE=
4705 # Default to --enable-multilib
4706 # Check whether --enable-multilib was given.
4707 if test "${enable_multilib+set}" = set; then :
4708 enableval=$enable_multilib; case "$enableval" in
4709 yes) multilib=yes ;;
4710 no) multilib=no ;;
4711 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4712 esac
4713 else
4714 multilib=yes
4718 # We may get other options which we leave undocumented:
4719 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4720 # See config-ml.in if you want the gory details.
4722 if test "$srcdir" = "."; then
4723 if test "$with_target_subdir" != "."; then
4724 multi_basedir="$srcdir/$with_multisrctop../.."
4725 else
4726 multi_basedir="$srcdir/$with_multisrctop.."
4728 else
4729 multi_basedir="$srcdir/.."
4733 # Even if the default multilib is not a cross compilation,
4734 # it may be that some of the other multilibs are.
4735 if test $cross_compiling = no && test $multilib = yes \
4736 && test "x${with_multisubdir}" != x ; then
4737 cross_compiling=maybe
4740 ac_config_commands="$ac_config_commands default-1"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4744 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4745 # Check whether --enable-maintainer-mode was given.
4746 if test "${enable_maintainer_mode+set}" = set; then :
4747 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4748 else
4749 USE_MAINTAINER_MODE=no
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4753 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4754 if test $USE_MAINTAINER_MODE = yes; then
4755 MAINTAINER_MODE_TRUE=
4756 MAINTAINER_MODE_FALSE='#'
4757 else
4758 MAINTAINER_MODE_TRUE='#'
4759 MAINTAINER_MODE_FALSE=
4762 MAINT=$MAINTAINER_MODE_TRUE
4766 # Calculate toolexeclibdir
4767 # Also toolexecdir, though it's only used in toolexeclibdir
4768 case ${version_specific_libs} in
4769 yes)
4770 # Need the gcc compiler version to know where to install libraries
4771 # and header files if --enable-version-specific-runtime-libs option
4772 # is selected.
4773 toolexecdir='$(libdir)/gcc/$(target_alias)'
4774 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4777 if test -n "$with_cross_host" &&
4778 test x"$with_cross_host" != x"no"; then
4779 # Install a library built with a cross compiler in tooldir, not libdir.
4780 toolexecdir='$(exec_prefix)/$(target_alias)'
4781 toolexeclibdir='$(toolexecdir)/lib'
4782 else
4783 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4784 toolexeclibdir='$(libdir)'
4786 multi_os_directory=`$CC -print-multi-os-directory`
4787 case $multi_os_directory in
4788 .) ;; # Avoid trailing /.
4789 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4790 esac
4792 esac
4796 # Checks for programs.
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_CC+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 CC=$ac_cv_prog_CC
4831 if test -n "$CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4833 $as_echo "$CC" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4841 if test -z "$ac_cv_prog_CC"; then
4842 ac_ct_CC=$CC
4843 # Extract the first word of "gcc", so it can be a program name with args.
4844 set dummy gcc; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$ac_ct_CC"; then
4851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_ac_ct_CC="gcc"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4871 if test -n "$ac_ct_CC"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4873 $as_echo "$ac_ct_CC" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4879 if test "x$ac_ct_CC" = x; then
4880 CC=""
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888 CC=$ac_ct_CC
4890 else
4891 CC="$ac_cv_prog_CC"
4894 if test -z "$CC"; then
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}cc; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$CC"; then
4904 ac_cv_prog_CC="$CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_CC="${ac_tool_prefix}cc"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 CC=$ac_cv_prog_CC
4924 if test -n "$CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4926 $as_echo "$CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4935 if test -z "$CC"; then
4936 # Extract the first word of "cc", so it can be a program name with args.
4937 set dummy cc; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_CC+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$CC"; then
4944 ac_cv_prog_CC="$CC" # Let the user override the test.
4945 else
4946 ac_prog_rejected=no
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4955 ac_prog_rejected=yes
4956 continue
4958 ac_cv_prog_CC="cc"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4966 if test $ac_prog_rejected = yes; then
4967 # We found a bogon in the path, so make sure we never use it.
4968 set dummy $ac_cv_prog_CC
4969 shift
4970 if test $# != 0; then
4971 # We chose a different compiler from the bogus one.
4972 # However, it has the same basename, so the bogon will be chosen
4973 # first if we set CC to just the basename; use the full file name.
4974 shift
4975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4980 CC=$ac_cv_prog_CC
4981 if test -n "$CC"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983 $as_echo "$CC" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4991 if test -z "$CC"; then
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in cl.exe
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 CC=$ac_cv_prog_CC
5023 if test -n "$CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5025 $as_echo "$CC" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 test -n "$CC" && break
5033 done
5035 if test -z "$CC"; then
5036 ac_ct_CC=$CC
5037 for ac_prog in cl.exe
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_CC"; then
5047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_CC="$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5067 if test -n "$ac_ct_CC"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5069 $as_echo "$ac_ct_CC" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 test -n "$ac_ct_CC" && break
5077 done
5079 if test "x$ac_ct_CC" = x; then
5080 CC=""
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083 yes:)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086 ac_tool_warned=yes ;;
5087 esac
5088 CC=$ac_ct_CC
5095 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "no acceptable C compiler found in \$PATH
5098 See \`config.log' for more details." "$LINENO" 5; }
5100 # Provide some information about the compiler.
5101 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5102 set X $ac_compile
5103 ac_compiler=$2
5104 for ac_option in --version -v -V -qversion; do
5105 { { ac_try="$ac_compiler $ac_option >&5"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5113 ac_status=$?
5114 if test -s conftest.err; then
5115 sed '10a\
5116 ... rest of stderr output deleted ...
5117 10q' conftest.err >conftest.er1
5118 cat conftest.er1 >&5
5119 rm -f conftest.er1 conftest.err
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }
5123 done
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5127 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5134 main ()
5136 #ifndef __GNUC__
5137 choke me
5138 #endif
5141 return 0;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 ac_compiler_gnu=yes
5146 else
5147 ac_compiler_gnu=no
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5155 if test $ac_compiler_gnu = yes; then
5156 GCC=yes
5157 else
5158 GCC=
5160 ac_test_CFLAGS=${CFLAGS+set}
5161 ac_save_CFLAGS=$CFLAGS
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5164 if test "${ac_cv_prog_cc_g+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 ac_save_c_werror_flag=$ac_c_werror_flag
5168 ac_c_werror_flag=yes
5169 ac_cv_prog_cc_g=no
5170 CFLAGS="-g"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5175 main ()
5179 return 0;
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_cv_prog_cc_g=yes
5184 else
5185 CFLAGS=""
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5190 main ()
5194 return 0;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5199 else
5200 ac_c_werror_flag=$ac_save_c_werror_flag
5201 CFLAGS="-g"
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5206 main ()
5210 return 0;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_cv_prog_cc_g=yes
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_c_werror_flag=$ac_save_c_werror_flag
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5224 $as_echo "$ac_cv_prog_cc_g" >&6; }
5225 if test "$ac_test_CFLAGS" = set; then
5226 CFLAGS=$ac_save_CFLAGS
5227 elif test $ac_cv_prog_cc_g = yes; then
5228 if test "$GCC" = yes; then
5229 CFLAGS="-g -O2"
5230 else
5231 CFLAGS="-g"
5233 else
5234 if test "$GCC" = yes; then
5235 CFLAGS="-O2"
5236 else
5237 CFLAGS=
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5242 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 ac_cv_prog_cc_c89=no
5246 ac_save_CC=$CC
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <stdarg.h>
5250 #include <stdio.h>
5251 #include <sys/types.h>
5252 #include <sys/stat.h>
5253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5254 struct buf { int x; };
5255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5256 static char *e (p, i)
5257 char **p;
5258 int i;
5260 return p[i];
5262 static char *f (char * (*g) (char **, int), char **p, ...)
5264 char *s;
5265 va_list v;
5266 va_start (v,p);
5267 s = g (p, va_arg (v,int));
5268 va_end (v);
5269 return s;
5272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5273 function prototypes and stuff, but not '\xHH' hex character constants.
5274 These don't provoke an error unfortunately, instead are silently treated
5275 as 'x'. The following induces an error, until -std is added to get
5276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5277 array size at least. It's necessary to write '\x00'==0 to get something
5278 that's true only with -std. */
5279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5282 inside strings and character constants. */
5283 #define FOO(x) 'x'
5284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5286 int test (int i, double x);
5287 struct s1 {int (*f) (int a);};
5288 struct s2 {int (*f) (double a);};
5289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5290 int argc;
5291 char **argv;
5293 main ()
5295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5297 return 0;
5299 _ACEOF
5300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5303 CC="$ac_save_CC $ac_arg"
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_cv_prog_cc_c89=$ac_arg
5307 rm -f core conftest.err conftest.$ac_objext
5308 test "x$ac_cv_prog_cc_c89" != "xno" && break
5309 done
5310 rm -f conftest.$ac_ext
5311 CC=$ac_save_CC
5314 # AC_CACHE_VAL
5315 case "x$ac_cv_prog_cc_c89" in
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5318 $as_echo "none needed" >&6; } ;;
5319 xno)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5321 $as_echo "unsupported" >&6; } ;;
5323 CC="$CC $ac_cv_prog_cc_c89"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5325 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5326 esac
5327 if test "x$ac_cv_prog_cc_c89" != xno; then :
5331 ac_ext=c
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337 ac_ext=cpp
5338 ac_cpp='$CXXCPP $CPPFLAGS'
5339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5342 if test -z "$CXX"; then
5343 if test -n "$CCC"; then
5344 CXX=$CCC
5345 else
5346 if test -n "$ac_tool_prefix"; then
5347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_CXX+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$CXX"; then
5357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 CXX=$ac_cv_prog_CXX
5377 if test -n "$CXX"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5379 $as_echo "$CXX" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5386 test -n "$CXX" && break
5387 done
5389 if test -z "$CXX"; then
5390 ac_ct_CXX=$CXX
5391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$ac_ct_CXX"; then
5401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_CXX="$ac_prog"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5421 if test -n "$ac_ct_CXX"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5423 $as_echo "$ac_ct_CXX" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5430 test -n "$ac_ct_CXX" && break
5431 done
5433 if test "x$ac_ct_CXX" = x; then
5434 CXX="g++"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 CXX=$ac_ct_CXX
5448 # Provide some information about the compiler.
5449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5450 set X $ac_compile
5451 ac_compiler=$2
5452 for ac_option in --version -v -V -qversion; do
5453 { { ac_try="$ac_compiler $ac_option >&5"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5461 ac_status=$?
5462 if test -s conftest.err; then
5463 sed '10a\
5464 ... rest of stderr output deleted ...
5465 10q' conftest.err >conftest.er1
5466 cat conftest.er1 >&5
5467 rm -f conftest.er1 conftest.err
5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5470 test $ac_status = 0; }
5471 done
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5474 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5475 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5482 main ()
5484 #ifndef __GNUC__
5485 choke me
5486 #endif
5489 return 0;
5491 _ACEOF
5492 if ac_fn_cxx_try_compile "$LINENO"; then :
5493 ac_compiler_gnu=yes
5494 else
5495 ac_compiler_gnu=no
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5502 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5503 if test $ac_compiler_gnu = yes; then
5504 GXX=yes
5505 else
5506 GXX=
5508 ac_test_CXXFLAGS=${CXXFLAGS+set}
5509 ac_save_CXXFLAGS=$CXXFLAGS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5511 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5512 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5516 ac_cxx_werror_flag=yes
5517 ac_cv_prog_cxx_g=no
5518 CXXFLAGS="-g"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5523 main ()
5527 return 0;
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_prog_cxx_g=yes
5532 else
5533 CXXFLAGS=""
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5538 main ()
5542 return 0;
5544 _ACEOF
5545 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 else
5548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5549 CXXFLAGS="-g"
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 main ()
5558 return 0;
5560 _ACEOF
5561 if ac_fn_cxx_try_compile "$LINENO"; then :
5562 ac_cv_prog_cxx_g=yes
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5572 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5573 if test "$ac_test_CXXFLAGS" = set; then
5574 CXXFLAGS=$ac_save_CXXFLAGS
5575 elif test $ac_cv_prog_cxx_g = yes; then
5576 if test "$GXX" = yes; then
5577 CXXFLAGS="-g -O2"
5578 else
5579 CXXFLAGS="-g"
5581 else
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-O2"
5584 else
5585 CXXFLAGS=
5588 ac_ext=c
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 depcc="$CXX" am_compiler_list=
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5597 $as_echo_n "checking dependency style of $depcc... " >&6; }
5598 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5602 # We make a subdir and do the tests there. Otherwise we can end up
5603 # making bogus files that we don't know about and never remove. For
5604 # instance it was reported that on HP-UX the gcc test will end up
5605 # making a dummy file named `D' -- because `-MD' means `put the output
5606 # in D'.
5607 mkdir conftest.dir
5608 # Copy depcomp to subdir because otherwise we won't find it if we're
5609 # using a relative directory.
5610 cp "$am_depcomp" conftest.dir
5611 cd conftest.dir
5612 # We will build objects and dependencies in a subdirectory because
5613 # it helps to detect inapplicable dependency modes. For instance
5614 # both Tru64's cc and ICC support -MD to output dependencies as a
5615 # side effect of compilation, but ICC will put the dependencies in
5616 # the current directory while Tru64 will put them in the object
5617 # directory.
5618 mkdir sub
5620 am_cv_CXX_dependencies_compiler_type=none
5621 if test "$am_compiler_list" = ""; then
5622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5624 am__universal=false
5625 case " $depcc " in #(
5626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5627 esac
5629 for depmode in $am_compiler_list; do
5630 # Setup a source with many dependencies, because some compilers
5631 # like to wrap large dependency lists on column 80 (with \), and
5632 # we should not choose a depcomp mode which is confused by this.
5634 # We need to recreate these files for each test, as the compiler may
5635 # overwrite some of them when testing with obscure command lines.
5636 # This happens at least with the AIX C compiler.
5637 : > sub/conftest.c
5638 for i in 1 2 3 4 5 6; do
5639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5641 # Solaris 8's {/usr,}/bin/sh.
5642 touch sub/conftst$i.h
5643 done
5644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5647 # mode. It turns out that the SunPro C++ compiler does not properly
5648 # handle `-M -o', and we need to detect this. Also, some Intel
5649 # versions had trouble with output in subdirs
5650 am__obj=sub/conftest.${OBJEXT-o}
5651 am__minus_obj="-o $am__obj"
5652 case $depmode in
5653 gcc)
5654 # This depmode causes a compiler race in universal mode.
5655 test "$am__universal" = false || continue
5657 nosideeffect)
5658 # after this tag, mechanisms are not by side-effect, so they'll
5659 # only be used when explicitly requested
5660 if test "x$enable_dependency_tracking" = xyes; then
5661 continue
5662 else
5663 break
5666 msvisualcpp | msvcmsys)
5667 # This compiler won't grok `-c -o', but also, the minuso test has
5668 # not run yet. These depmodes are late enough in the game, and
5669 # so weak that their functioning should not be impacted.
5670 am__obj=conftest.${OBJEXT-o}
5671 am__minus_obj=
5673 none) break ;;
5674 esac
5675 if depmode=$depmode \
5676 source=sub/conftest.c object=$am__obj \
5677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5679 >/dev/null 2>conftest.err &&
5680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5684 # icc doesn't choke on unknown options, it will just issue warnings
5685 # or remarks (even with -Werror). So we grep stderr for any message
5686 # that says an option was ignored or not supported.
5687 # When given -MP, icc 7.0 and 7.1 complain thusly:
5688 # icc: Command line warning: ignoring option '-M'; no argument required
5689 # The diagnosis changed in icc 8.0:
5690 # icc: Command line remark: option '-MP' not supported
5691 if (grep 'ignoring option' conftest.err ||
5692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5693 am_cv_CXX_dependencies_compiler_type=$depmode
5694 break
5697 done
5699 cd ..
5700 rm -rf conftest.dir
5701 else
5702 am_cv_CXX_dependencies_compiler_type=none
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5707 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5711 test "x$enable_dependency_tracking" != xno \
5712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5713 am__fastdepCXX_TRUE=
5714 am__fastdepCXX_FALSE='#'
5715 else
5716 am__fastdepCXX_TRUE='#'
5717 am__fastdepCXX_FALSE=
5721 # By default we simply use the C compiler to build assembly code.
5723 test "${CCAS+set}" = set || CCAS=$CC
5724 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5728 depcc="$CCAS" am_compiler_list=
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5731 $as_echo_n "checking dependency style of $depcc... " >&6; }
5732 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5736 # We make a subdir and do the tests there. Otherwise we can end up
5737 # making bogus files that we don't know about and never remove. For
5738 # instance it was reported that on HP-UX the gcc test will end up
5739 # making a dummy file named `D' -- because `-MD' means `put the output
5740 # in D'.
5741 mkdir conftest.dir
5742 # Copy depcomp to subdir because otherwise we won't find it if we're
5743 # using a relative directory.
5744 cp "$am_depcomp" conftest.dir
5745 cd conftest.dir
5746 # We will build objects and dependencies in a subdirectory because
5747 # it helps to detect inapplicable dependency modes. For instance
5748 # both Tru64's cc and ICC support -MD to output dependencies as a
5749 # side effect of compilation, but ICC will put the dependencies in
5750 # the current directory while Tru64 will put them in the object
5751 # directory.
5752 mkdir sub
5754 am_cv_CCAS_dependencies_compiler_type=none
5755 if test "$am_compiler_list" = ""; then
5756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758 am__universal=false
5761 for depmode in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5769 : > sub/conftest.c
5770 for i in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub/conftst$i.h
5775 done
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5779 # mode. It turns out that the SunPro C++ compiler does not properly
5780 # handle `-M -o', and we need to detect this. Also, some Intel
5781 # versions had trouble with output in subdirs
5782 am__obj=sub/conftest.${OBJEXT-o}
5783 am__minus_obj="-o $am__obj"
5784 case $depmode in
5785 gcc)
5786 # This depmode causes a compiler race in universal mode.
5787 test "$am__universal" = false || continue
5789 nosideeffect)
5790 # after this tag, mechanisms are not by side-effect, so they'll
5791 # only be used when explicitly requested
5792 if test "x$enable_dependency_tracking" = xyes; then
5793 continue
5794 else
5795 break
5798 msvisualcpp | msvcmsys)
5799 # This compiler won't grok `-c -o', but also, the minuso test has
5800 # not run yet. These depmodes are late enough in the game, and
5801 # so weak that their functioning should not be impacted.
5802 am__obj=conftest.${OBJEXT-o}
5803 am__minus_obj=
5805 none) break ;;
5806 esac
5807 if depmode=$depmode \
5808 source=sub/conftest.c object=$am__obj \
5809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5811 >/dev/null 2>conftest.err &&
5812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5816 # icc doesn't choke on unknown options, it will just issue warnings
5817 # or remarks (even with -Werror). So we grep stderr for any message
5818 # that says an option was ignored or not supported.
5819 # When given -MP, icc 7.0 and 7.1 complain thusly:
5820 # icc: Command line warning: ignoring option '-M'; no argument required
5821 # The diagnosis changed in icc 8.0:
5822 # icc: Command line remark: option '-MP' not supported
5823 if (grep 'ignoring option' conftest.err ||
5824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5825 am_cv_CCAS_dependencies_compiler_type=$depmode
5826 break
5829 done
5831 cd ..
5832 rm -rf conftest.dir
5833 else
5834 am_cv_CCAS_dependencies_compiler_type=none
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5839 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5840 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5843 test "x$enable_dependency_tracking" != xno \
5844 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5845 am__fastdepCCAS_TRUE=
5846 am__fastdepCCAS_FALSE='#'
5847 else
5848 am__fastdepCCAS_TRUE='#'
5849 am__fastdepCCAS_FALSE=
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$RANLIB"; then
5862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5875 done
5876 done
5877 IFS=$as_save_IFS
5881 RANLIB=$ac_cv_prog_RANLIB
5882 if test -n "$RANLIB"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5884 $as_echo "$RANLIB" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5892 if test -z "$ac_cv_prog_RANLIB"; then
5893 ac_ct_RANLIB=$RANLIB
5894 # Extract the first word of "ranlib", so it can be a program name with args.
5895 set dummy ranlib; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$ac_ct_RANLIB"; then
5902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_ac_ct_RANLIB="ranlib"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5922 if test -n "$ac_ct_RANLIB"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5924 $as_echo "$ac_ct_RANLIB" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5930 if test "x$ac_ct_RANLIB" = x; then
5931 RANLIB=":"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 RANLIB=$ac_ct_RANLIB
5941 else
5942 RANLIB="$ac_cv_prog_RANLIB"
5946 enable_dlopen=yes
5950 case `pwd` in
5951 *\ * | *\ *)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5953 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5954 esac
5958 macro_version='2.2.7a'
5959 macro_revision='1.3134'
5973 ltmain="$ac_aux_dir/ltmain.sh"
5975 # Backslashify metacharacters that are still active within
5976 # double-quoted strings.
5977 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5979 # Same as above, but do not quote variable references.
5980 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5982 # Sed substitution to delay expansion of an escaped shell variable in a
5983 # double_quote_subst'ed string.
5984 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5986 # Sed substitution to delay expansion of an escaped single quote.
5987 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5989 # Sed substitution to avoid accidental globbing in evaled expressions
5990 no_glob_subst='s/\*/\\\*/g'
5992 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5997 $as_echo_n "checking how to print strings... " >&6; }
5998 # Test print first, because it will be a builtin if present.
5999 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6000 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6001 ECHO='print -r --'
6002 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6003 ECHO='printf %s\n'
6004 else
6005 # Use this function as a fallback that always works.
6006 func_fallback_echo ()
6008 eval 'cat <<_LTECHO_EOF
6010 _LTECHO_EOF'
6012 ECHO='func_fallback_echo'
6015 # func_echo_all arg...
6016 # Invoke $ECHO with all args, space-separated.
6017 func_echo_all ()
6019 $ECHO ""
6022 case "$ECHO" in
6023 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6024 $as_echo "printf" >&6; } ;;
6025 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6026 $as_echo "print -r" >&6; } ;;
6027 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6028 $as_echo "cat" >&6; } ;;
6029 esac
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6045 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6046 if test "${ac_cv_path_SED+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6050 for ac_i in 1 2 3 4 5 6 7; do
6051 ac_script="$ac_script$as_nl$ac_script"
6052 done
6053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6054 { ac_script=; unset ac_script;}
6055 if test -z "$SED"; then
6056 ac_path_SED_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_prog in sed gsed; do
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6067 # Check for GNU ac_path_SED and select it if it is found.
6068 # Check for GNU $ac_path_SED
6069 case `"$ac_path_SED" --version 2>&1` in
6070 *GNU*)
6071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6073 ac_count=0
6074 $as_echo_n 0123456789 >"conftest.in"
6075 while :
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo '' >> "conftest.nl"
6081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 as_fn_arith $ac_count + 1 && ac_count=$as_val
6084 if test $ac_count -gt ${ac_path_SED_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_SED="$ac_path_SED"
6087 ac_path_SED_max=$ac_count
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
6091 done
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 esac
6095 $ac_path_SED_found && break 3
6096 done
6097 done
6098 done
6099 IFS=$as_save_IFS
6100 if test -z "$ac_cv_path_SED"; then
6101 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6103 else
6104 ac_cv_path_SED=$SED
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6109 $as_echo "$ac_cv_path_SED" >&6; }
6110 SED="$ac_cv_path_SED"
6111 rm -f conftest.sed
6113 test -z "$SED" && SED=sed
6114 Xsed="$SED -e 1s/^X//"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6127 $as_echo_n "checking for fgrep... " >&6; }
6128 if test "${ac_cv_path_FGREP+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6132 then ac_cv_path_FGREP="$GREP -F"
6133 else
6134 if test -z "$FGREP"; then
6135 ac_path_FGREP_found=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in fgrep; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6145 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6146 # Check for GNU ac_path_FGREP and select it if it is found.
6147 # Check for GNU $ac_path_FGREP
6148 case `"$ac_path_FGREP" --version 2>&1` in
6149 *GNU*)
6150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6152 ac_count=0
6153 $as_echo_n 0123456789 >"conftest.in"
6154 while :
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo 'FGREP' >> "conftest.nl"
6160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162 as_fn_arith $ac_count + 1 && ac_count=$as_val
6163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_FGREP="$ac_path_FGREP"
6166 ac_path_FGREP_max=$ac_count
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6170 done
6171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6172 esac
6174 $ac_path_FGREP_found && break 3
6175 done
6176 done
6177 done
6178 IFS=$as_save_IFS
6179 if test -z "$ac_cv_path_FGREP"; then
6180 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6182 else
6183 ac_cv_path_FGREP=$FGREP
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6189 $as_echo "$ac_cv_path_FGREP" >&6; }
6190 FGREP="$ac_cv_path_FGREP"
6193 test -z "$GREP" && GREP=grep
6213 # Check whether --with-gnu-ld was given.
6214 if test "${with_gnu_ld+set}" = set; then :
6215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6216 else
6217 with_gnu_ld=no
6220 ac_prog=ld
6221 if test "$GCC" = yes; then
6222 # Check if gcc -print-prog-name=ld gives a path.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6224 $as_echo_n "checking for ld used by $CC... " >&6; }
6225 case $host in
6226 *-*-mingw*)
6227 # gcc leaves a trailing carriage return which upsets mingw
6228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6231 esac
6232 case $ac_prog in
6233 # Accept absolute paths.
6234 [\\/]* | ?:[\\/]*)
6235 re_direlt='/[^/][^/]*/\.\./'
6236 # Canonicalize the pathname of ld
6237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6240 done
6241 test -z "$LD" && LD="$ac_prog"
6244 # If it fails, then pretend we aren't using GCC.
6245 ac_prog=ld
6248 # If it is relative, then search for the first ld in PATH.
6249 with_gnu_ld=unknown
6251 esac
6252 elif test "$with_gnu_ld" = yes; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6254 $as_echo_n "checking for GNU ld... " >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6257 $as_echo_n "checking for non-GNU ld... " >&6; }
6259 if test "${lt_cv_path_LD+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -z "$LD"; then
6263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6264 for ac_dir in $PATH; do
6265 IFS="$lt_save_ifs"
6266 test -z "$ac_dir" && ac_dir=.
6267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6268 lt_cv_path_LD="$ac_dir/$ac_prog"
6269 # Check to see if the program is GNU ld. I'd rather use --version,
6270 # but apparently some variants of GNU ld only accept -v.
6271 # Break only if it was the GNU/non-GNU ld that we prefer.
6272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6273 *GNU* | *'with BFD'*)
6274 test "$with_gnu_ld" != no && break
6277 test "$with_gnu_ld" != yes && break
6279 esac
6281 done
6282 IFS="$lt_save_ifs"
6283 else
6284 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6288 LD="$lt_cv_path_LD"
6289 if test -n "$LD"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6291 $as_echo "$LD" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6296 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6299 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6303 case `$LD -v 2>&1 </dev/null` in
6304 *GNU* | *'with BFD'*)
6305 lt_cv_prog_gnu_ld=yes
6308 lt_cv_prog_gnu_ld=no
6310 esac
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6313 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6314 with_gnu_ld=$lt_cv_prog_gnu_ld
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6326 if test "${lt_cv_path_NM+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$NM"; then
6330 # Let the user override the test.
6331 lt_cv_path_NM="$NM"
6332 else
6333 lt_nm_to_check="${ac_tool_prefix}nm"
6334 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6335 lt_nm_to_check="$lt_nm_to_check nm"
6337 for lt_tmp_nm in $lt_nm_to_check; do
6338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6340 IFS="$lt_save_ifs"
6341 test -z "$ac_dir" && ac_dir=.
6342 tmp_nm="$ac_dir/$lt_tmp_nm"
6343 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6344 # Check to see if the nm accepts a BSD-compat flag.
6345 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6346 # nm: unknown option "B" ignored
6347 # Tru64's nm complains that /dev/null is an invalid object file
6348 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6349 */dev/null* | *'Invalid file or object type'*)
6350 lt_cv_path_NM="$tmp_nm -B"
6351 break
6354 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6355 */dev/null*)
6356 lt_cv_path_NM="$tmp_nm -p"
6357 break
6360 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6361 continue # so that we can try to find one that supports BSD flags
6363 esac
6365 esac
6367 done
6368 IFS="$lt_save_ifs"
6369 done
6370 : ${lt_cv_path_NM=no}
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6374 $as_echo "$lt_cv_path_NM" >&6; }
6375 if test "$lt_cv_path_NM" != "no"; then
6376 NM="$lt_cv_path_NM"
6377 else
6378 # Didn't find any BSD compatible name lister, look for dumpbin.
6379 if test -n "$DUMPBIN"; then :
6380 # Let the user override the test.
6381 else
6382 if test -n "$ac_tool_prefix"; then
6383 for ac_prog in dumpbin "link -dump"
6385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$DUMPBIN"; then
6393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6406 done
6407 done
6408 IFS=$as_save_IFS
6412 DUMPBIN=$ac_cv_prog_DUMPBIN
6413 if test -n "$DUMPBIN"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6415 $as_echo "$DUMPBIN" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6422 test -n "$DUMPBIN" && break
6423 done
6425 if test -z "$DUMPBIN"; then
6426 ac_ct_DUMPBIN=$DUMPBIN
6427 for ac_prog in dumpbin "link -dump"
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_DUMPBIN"; then
6437 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6457 if test -n "$ac_ct_DUMPBIN"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6459 $as_echo "$ac_ct_DUMPBIN" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6466 test -n "$ac_ct_DUMPBIN" && break
6467 done
6469 if test "x$ac_ct_DUMPBIN" = x; then
6470 DUMPBIN=":"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478 DUMPBIN=$ac_ct_DUMPBIN
6482 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6483 *COFF*)
6484 DUMPBIN="$DUMPBIN -symbols"
6487 DUMPBIN=:
6489 esac
6492 if test "$DUMPBIN" != ":"; then
6493 NM="$DUMPBIN"
6496 test -z "$NM" && NM=nm
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6504 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6505 if test "${lt_cv_nm_interface+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 lt_cv_nm_interface="BSD nm"
6509 echo "int some_variable = 0;" > conftest.$ac_ext
6510 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6511 (eval "$ac_compile" 2>conftest.err)
6512 cat conftest.err >&5
6513 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6514 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6515 cat conftest.err >&5
6516 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6517 cat conftest.out >&5
6518 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6519 lt_cv_nm_interface="MS dumpbin"
6521 rm -f conftest*
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6524 $as_echo "$lt_cv_nm_interface" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6527 $as_echo_n "checking whether ln -s works... " >&6; }
6528 LN_S=$as_ln_s
6529 if test "$LN_S" = "ln -s"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6531 $as_echo "yes" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6534 $as_echo "no, using $LN_S" >&6; }
6537 # find the maximum length of command line arguments
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6539 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6540 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6544 teststring="ABCD"
6546 case $build_os in
6547 msdosdjgpp*)
6548 # On DJGPP, this test can blow up pretty badly due to problems in libc
6549 # (any single argument exceeding 2000 bytes causes a buffer overrun
6550 # during glob expansion). Even if it were fixed, the result of this
6551 # check would be larger than it should be.
6552 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6555 gnu*)
6556 # Under GNU Hurd, this test is not required because there is
6557 # no limit to the length of command line arguments.
6558 # Libtool will interpret -1 as no limit whatsoever
6559 lt_cv_sys_max_cmd_len=-1;
6562 cygwin* | mingw* | cegcc*)
6563 # On Win9x/ME, this test blows up -- it succeeds, but takes
6564 # about 5 minutes as the teststring grows exponentially.
6565 # Worse, since 9x/ME are not pre-emptively multitasking,
6566 # you end up with a "frozen" computer, even though with patience
6567 # the test eventually succeeds (with a max line length of 256k).
6568 # Instead, let's just punt: use the minimum linelength reported by
6569 # all of the supported platforms: 8192 (on NT/2K/XP).
6570 lt_cv_sys_max_cmd_len=8192;
6573 mint*)
6574 # On MiNT this can take a long time and run out of memory.
6575 lt_cv_sys_max_cmd_len=8192;
6578 amigaos*)
6579 # On AmigaOS with pdksh, this test takes hours, literally.
6580 # So we just punt and use a minimum line length of 8192.
6581 lt_cv_sys_max_cmd_len=8192;
6584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6585 # This has been around since 386BSD, at least. Likely further.
6586 if test -x /sbin/sysctl; then
6587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6588 elif test -x /usr/sbin/sysctl; then
6589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6590 else
6591 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6593 # And add a safety zone
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6598 interix*)
6599 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6600 lt_cv_sys_max_cmd_len=196608
6603 osf*)
6604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6606 # nice to cause kernel panics so lets avoid the loop below.
6607 # First set a reasonable default.
6608 lt_cv_sys_max_cmd_len=16384
6610 if test -x /sbin/sysconfig; then
6611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6613 esac
6616 sco3.2v5*)
6617 lt_cv_sys_max_cmd_len=102400
6619 sysv5* | sco5v6* | sysv4.2uw2*)
6620 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6621 if test -n "$kargmax"; then
6622 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6623 else
6624 lt_cv_sys_max_cmd_len=32768
6628 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6629 if test -n "$lt_cv_sys_max_cmd_len"; then
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6632 else
6633 # Make teststring a little bigger before we do anything with it.
6634 # a 1K string should be a reasonable start.
6635 for i in 1 2 3 4 5 6 7 8 ; do
6636 teststring=$teststring$teststring
6637 done
6638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6639 # If test is not a shell built-in, we'll probably end up computing a
6640 # maximum length that is only half of the actual maximum length, but
6641 # we can't tell.
6642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6643 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6644 test $i != 17 # 1/2 MB should be enough
6646 i=`expr $i + 1`
6647 teststring=$teststring$teststring
6648 done
6649 # Only check the string length outside the loop.
6650 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6651 teststring=
6652 # Add a significant safety factor because C++ compilers can tack on
6653 # massive amounts of additional arguments before passing them to the
6654 # linker. It appears as though 1/2 is a usable value.
6655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6658 esac
6662 if test -n $lt_cv_sys_max_cmd_len ; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6664 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6667 $as_echo "none" >&6; }
6669 max_cmd_len=$lt_cv_sys_max_cmd_len
6676 : ${CP="cp -f"}
6677 : ${MV="mv -f"}
6678 : ${RM="rm -f"}
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6681 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6682 # Try some XSI features
6683 xsi_shell=no
6684 ( _lt_dummy="a/b/c"
6685 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6686 = c,a/b,, \
6687 && eval 'test $(( 1 + 1 )) -eq 2 \
6688 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6689 && xsi_shell=yes
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6691 $as_echo "$xsi_shell" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6695 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6696 lt_shell_append=no
6697 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6698 >/dev/null 2>&1 \
6699 && lt_shell_append=yes
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6701 $as_echo "$lt_shell_append" >&6; }
6704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6705 lt_unset=unset
6706 else
6707 lt_unset=false
6714 # test EBCDIC or ASCII
6715 case `echo X|tr X '\101'` in
6716 A) # ASCII based system
6717 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6718 lt_SP2NL='tr \040 \012'
6719 lt_NL2SP='tr \015\012 \040\040'
6721 *) # EBCDIC based system
6722 lt_SP2NL='tr \100 \n'
6723 lt_NL2SP='tr \r\n \100\100'
6725 esac
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6737 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 lt_cv_ld_reload_flag='-r'
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6744 reload_flag=$lt_cv_ld_reload_flag
6745 case $reload_flag in
6746 "" | " "*) ;;
6747 *) reload_flag=" $reload_flag" ;;
6748 esac
6749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6750 case $host_os in
6751 darwin*)
6752 if test "$GCC" = yes; then
6753 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6754 else
6755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758 esac
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$OBJDUMP"; then
6777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6790 done
6791 done
6792 IFS=$as_save_IFS
6796 OBJDUMP=$ac_cv_prog_OBJDUMP
6797 if test -n "$OBJDUMP"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6799 $as_echo "$OBJDUMP" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6807 if test -z "$ac_cv_prog_OBJDUMP"; then
6808 ac_ct_OBJDUMP=$OBJDUMP
6809 # Extract the first word of "objdump", so it can be a program name with args.
6810 set dummy objdump; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$ac_ct_OBJDUMP"; then
6817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6837 if test -n "$ac_ct_OBJDUMP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6839 $as_echo "$ac_ct_OBJDUMP" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6845 if test "x$ac_ct_OBJDUMP" = x; then
6846 OBJDUMP="false"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854 OBJDUMP=$ac_ct_OBJDUMP
6856 else
6857 OBJDUMP="$ac_cv_prog_OBJDUMP"
6860 test -z "$OBJDUMP" && OBJDUMP=objdump
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6872 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 lt_cv_file_magic_cmd='$MAGIC_CMD'
6876 lt_cv_file_magic_test_file=
6877 lt_cv_deplibs_check_method='unknown'
6878 # Need to set the preceding variable on all platforms that support
6879 # interlibrary dependencies.
6880 # 'none' -- dependencies not supported.
6881 # `unknown' -- same as none, but documents that we really don't know.
6882 # 'pass_all' -- all dependencies passed with no checks.
6883 # 'test_compile' -- check by making test program.
6884 # 'file_magic [[regex]]' -- check by looking for files in library path
6885 # which responds to the $file_magic_cmd with a given extended regex.
6886 # If you have `file' or equivalent on your system and you're not sure
6887 # whether `pass_all' will *always* work, you probably want this one.
6889 case $host_os in
6890 aix[4-9]*)
6891 lt_cv_deplibs_check_method=pass_all
6894 beos*)
6895 lt_cv_deplibs_check_method=pass_all
6898 bsdi[45]*)
6899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6900 lt_cv_file_magic_cmd='/usr/bin/file -L'
6901 lt_cv_file_magic_test_file=/shlib/libc.so
6904 cygwin*)
6905 # func_win32_libid is a shell function defined in ltmain.sh
6906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6907 lt_cv_file_magic_cmd='func_win32_libid'
6910 mingw* | pw32*)
6911 # Base MSYS/MinGW do not provide the 'file' command needed by
6912 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6913 # unless we find 'file', for example because we are cross-compiling.
6914 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6915 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6917 lt_cv_file_magic_cmd='func_win32_libid'
6918 else
6919 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6920 lt_cv_file_magic_cmd='$OBJDUMP -f'
6924 cegcc*)
6925 # use the weaker test based on 'objdump'. See mingw*.
6926 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6927 lt_cv_file_magic_cmd='$OBJDUMP -f'
6930 darwin* | rhapsody*)
6931 lt_cv_deplibs_check_method=pass_all
6934 freebsd* | dragonfly*)
6935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6936 case $host_cpu in
6937 i*86 )
6938 # Not sure whether the presence of OpenBSD here was a mistake.
6939 # Let's accept both of them until this is cleared up.
6940 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6941 lt_cv_file_magic_cmd=/usr/bin/file
6942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6944 esac
6945 else
6946 lt_cv_deplibs_check_method=pass_all
6950 gnu*)
6951 lt_cv_deplibs_check_method=pass_all
6954 haiku*)
6955 lt_cv_deplibs_check_method=pass_all
6958 hpux10.20* | hpux11*)
6959 lt_cv_file_magic_cmd=/usr/bin/file
6960 case $host_cpu in
6961 ia64*)
6962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6965 hppa*64*)
6966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6973 esac
6976 interix[3-9]*)
6977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6981 irix5* | irix6* | nonstopux*)
6982 case $LD in
6983 *-32|*"-32 ") libmagic=32-bit;;
6984 *-n32|*"-n32 ") libmagic=N32;;
6985 *-64|*"-64 ") libmagic=64-bit;;
6986 *) libmagic=never-match;;
6987 esac
6988 lt_cv_deplibs_check_method=pass_all
6991 # This must be Linux ELF.
6992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6993 lt_cv_deplibs_check_method=pass_all
6996 netbsd*)
6997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6999 else
7000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7004 newos6*)
7005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7006 lt_cv_file_magic_cmd=/usr/bin/file
7007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7010 *nto* | *qnx*)
7011 lt_cv_deplibs_check_method=pass_all
7014 openbsd*)
7015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7017 else
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7022 osf3* | osf4* | osf5*)
7023 lt_cv_deplibs_check_method=pass_all
7026 rdos*)
7027 lt_cv_deplibs_check_method=pass_all
7030 solaris*)
7031 lt_cv_deplibs_check_method=pass_all
7034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7035 lt_cv_deplibs_check_method=pass_all
7038 sysv4 | sysv4.3*)
7039 case $host_vendor in
7040 motorola)
7041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7044 ncr)
7045 lt_cv_deplibs_check_method=pass_all
7047 sequent)
7048 lt_cv_file_magic_cmd='/bin/file'
7049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7051 sni)
7052 lt_cv_file_magic_cmd='/bin/file'
7053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7054 lt_cv_file_magic_test_file=/lib/libc.so
7056 siemens)
7057 lt_cv_deplibs_check_method=pass_all
7060 lt_cv_deplibs_check_method=pass_all
7062 esac
7065 tpf*)
7066 lt_cv_deplibs_check_method=pass_all
7068 esac
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7073 file_magic_cmd=$lt_cv_file_magic_cmd
7074 deplibs_check_method=$lt_cv_deplibs_check_method
7075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}ar; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_prog_AR+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$AR"; then
7097 ac_cv_prog_AR="$AR" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_prog_AR="${ac_tool_prefix}ar"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7116 AR=$ac_cv_prog_AR
7117 if test -n "$AR"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7119 $as_echo "$AR" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7127 if test -z "$ac_cv_prog_AR"; then
7128 ac_ct_AR=$AR
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7150 done
7151 done
7152 IFS=$as_save_IFS
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7159 $as_echo "$ac_ct_AR" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test "x$ac_ct_AR" = x; then
7166 AR="false"
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174 AR=$ac_ct_AR
7176 else
7177 AR="$ac_cv_prog_AR"
7180 test -z "$AR" && AR=ar
7181 test -z "$AR_FLAGS" && AR_FLAGS=cru
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}strip; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_STRIP+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$STRIP"; then
7202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 STRIP=$ac_cv_prog_STRIP
7222 if test -n "$STRIP"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7224 $as_echo "$STRIP" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$ac_cv_prog_STRIP"; then
7233 ac_ct_STRIP=$STRIP
7234 # Extract the first word of "strip", so it can be a program name with args.
7235 set dummy strip; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_STRIP"; then
7242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_STRIP="strip"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7262 if test -n "$ac_ct_STRIP"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7264 $as_echo "$ac_ct_STRIP" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 if test "x$ac_ct_STRIP" = x; then
7271 STRIP=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 STRIP=$ac_ct_STRIP
7281 else
7282 STRIP="$ac_cv_prog_STRIP"
7285 test -z "$STRIP" && STRIP=:
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 if test -n "$RANLIB"; then
7301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7314 done
7315 done
7316 IFS=$as_save_IFS
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7323 $as_echo "$RANLIB" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_RANLIB"; then
7332 ac_ct_RANLIB=$RANLIB
7333 # Extract the first word of "ranlib", so it can be a program name with args.
7334 set dummy ranlib; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$ac_ct_RANLIB"; then
7341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_RANLIB="ranlib"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7356 IFS=$as_save_IFS
7360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7361 if test -n "$ac_ct_RANLIB"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7363 $as_echo "$ac_ct_RANLIB" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_RANLIB" = x; then
7370 RANLIB=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378 RANLIB=$ac_ct_RANLIB
7380 else
7381 RANLIB="$ac_cv_prog_RANLIB"
7384 test -z "$RANLIB" && RANLIB=:
7391 # Determine commands to create old-style static archives.
7392 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7393 old_postinstall_cmds='chmod 644 $oldlib'
7394 old_postuninstall_cmds=
7396 if test -n "$RANLIB"; then
7397 case $host_os in
7398 openbsd*)
7399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7404 esac
7405 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7408 case $host_os in
7409 darwin*)
7410 lock_old_archive_extraction=yes ;;
7412 lock_old_archive_extraction=no ;;
7413 esac
7453 # If no C compiler was specified, use CC.
7454 LTCC=${LTCC-"$CC"}
7456 # If no C compiler flags were specified, use CFLAGS.
7457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7459 # Allow CC to be a program name with arguments.
7460 compiler=$CC
7463 # Check for command to grab the raw symbol name followed by C symbol from nm.
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7465 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7470 # These are sane defaults that work on at least a few old systems.
7471 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7473 # Character class describing NM global symbol codes.
7474 symcode='[BCDEGRST]'
7476 # Regexp to match symbols that can be accessed directly from C.
7477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7479 # Define system-specific variables.
7480 case $host_os in
7481 aix*)
7482 symcode='[BCDT]'
7484 cygwin* | mingw* | pw32* | cegcc*)
7485 symcode='[ABCDGISTW]'
7487 hpux*)
7488 if test "$host_cpu" = ia64; then
7489 symcode='[ABCDEGRST]'
7492 irix* | nonstopux*)
7493 symcode='[BCDEGRST]'
7495 osf*)
7496 symcode='[BCDEGQRST]'
7498 solaris*)
7499 symcode='[BDRT]'
7501 sco3.2v5*)
7502 symcode='[DT]'
7504 sysv4.2uw2*)
7505 symcode='[DT]'
7507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7508 symcode='[ABDT]'
7510 sysv4)
7511 symcode='[DFNSTU]'
7513 esac
7515 # If we're using GNU nm, then use its standard symbol codes.
7516 case `$NM -V 2>&1` in
7517 *GNU* | *'with BFD'*)
7518 symcode='[ABCDGIRSTW]' ;;
7519 esac
7521 # Transform an extracted symbol line into a proper C declaration.
7522 # Some systems (esp. on ia64) link data and code symbols differently,
7523 # so use this general approach.
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7526 # Transform an extracted symbol line into symbol name and symbol address
7527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7528 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7530 # Handle CRLF in mingw tool chain
7531 opt_cr=
7532 case $build_os in
7533 mingw*)
7534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7536 esac
7538 # Try without a prefix underscore, then with it.
7539 for ac_symprfx in "" "_"; do
7541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7542 symxfrm="\\1 $ac_symprfx\\2 \\2"
7544 # Write the raw and C identifiers.
7545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7546 # Fake it for dumpbin and say T for any non-static function
7547 # and D for any global variable.
7548 # Also find C++ and __fastcall symbols from MSVC++,
7549 # which start with @ or ?.
7550 lt_cv_sys_global_symbol_pipe="$AWK '"\
7551 " {last_section=section; section=\$ 3};"\
7552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7553 " \$ 0!~/External *\|/{next};"\
7554 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7555 " {if(hide[section]) next};"\
7556 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7557 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7558 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7559 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7560 " ' prfx=^$ac_symprfx"
7561 else
7562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7565 # Check to see that the pipe works correctly.
7566 pipe_works=no
7568 rm -f conftest*
7569 cat > conftest.$ac_ext <<_LT_EOF
7570 #ifdef __cplusplus
7571 extern "C" {
7572 #endif
7573 char nm_test_var;
7574 void nm_test_func(void);
7575 void nm_test_func(void){}
7576 #ifdef __cplusplus
7578 #endif
7579 int main(){nm_test_var='a';nm_test_func();return(0);}
7580 _LT_EOF
7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583 (eval $ac_compile) 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 # Now try to grab the symbols.
7588 nlist=conftest.nm
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7590 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7591 ac_status=$?
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; } && test -s "$nlist"; then
7594 # Try sorting and uniquifying the output.
7595 if sort "$nlist" | uniq > "$nlist"T; then
7596 mv -f "$nlist"T "$nlist"
7597 else
7598 rm -f "$nlist"T
7601 # Make sure that we snagged all the symbols we need.
7602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7604 cat <<_LT_EOF > conftest.$ac_ext
7605 #ifdef __cplusplus
7606 extern "C" {
7607 #endif
7609 _LT_EOF
7610 # Now generate the symbol file.
7611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7613 cat <<_LT_EOF >> conftest.$ac_ext
7615 /* The mapping between symbol names and symbols. */
7616 const struct {
7617 const char *name;
7618 void *address;
7620 lt__PROGRAM__LTX_preloaded_symbols[] =
7622 { "@PROGRAM@", (void *) 0 },
7623 _LT_EOF
7624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7625 cat <<\_LT_EOF >> conftest.$ac_ext
7626 {0, (void *) 0}
7629 /* This works around a problem in FreeBSD linker */
7630 #ifdef FREEBSD_WORKAROUND
7631 static const void *lt_preloaded_setup() {
7632 return lt__PROGRAM__LTX_preloaded_symbols;
7634 #endif
7636 #ifdef __cplusplus
7638 #endif
7639 _LT_EOF
7640 # Now try linking the two files.
7641 mv conftest.$ac_objext conftstm.$ac_objext
7642 lt_save_LIBS="$LIBS"
7643 lt_save_CFLAGS="$CFLAGS"
7644 LIBS="conftstm.$ac_objext"
7645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7647 (eval $ac_link) 2>&5
7648 ac_status=$?
7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7651 pipe_works=yes
7653 LIBS="$lt_save_LIBS"
7654 CFLAGS="$lt_save_CFLAGS"
7655 else
7656 echo "cannot find nm_test_func in $nlist" >&5
7658 else
7659 echo "cannot find nm_test_var in $nlist" >&5
7661 else
7662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7664 else
7665 echo "$progname: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7668 rm -rf conftest* conftst*
7670 # Do not use the global_symbol_pipe unless it works.
7671 if test "$pipe_works" = yes; then
7672 break
7673 else
7674 lt_cv_sys_global_symbol_pipe=
7676 done
7680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7681 lt_cv_sys_global_symbol_to_cdecl=
7683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7685 $as_echo "failed" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7688 $as_echo "ok" >&6; }
7712 # Check whether --enable-libtool-lock was given.
7713 if test "${enable_libtool_lock+set}" = set; then :
7714 enableval=$enable_libtool_lock;
7717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7719 # Some flags need to be propagated to the compiler or linker for good
7720 # libtool support.
7721 case $host in
7722 ia64-*-hpux*)
7723 # Find out which ABI we are using.
7724 echo 'int i;' > conftest.$ac_ext
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726 (eval $ac_compile) 2>&5
7727 ac_status=$?
7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }; then
7730 case `/usr/bin/file conftest.$ac_objext` in
7731 *ELF-32*)
7732 HPUX_IA64_MODE="32"
7734 *ELF-64*)
7735 HPUX_IA64_MODE="64"
7737 esac
7739 rm -rf conftest*
7741 *-*-irix6*)
7742 # Find out which ABI we are using.
7743 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 if test "$lt_cv_prog_gnu_ld" = yes; then
7750 case `/usr/bin/file conftest.$ac_objext` in
7751 *32-bit*)
7752 LD="${LD-ld} -melf32bsmip"
7754 *N32*)
7755 LD="${LD-ld} -melf32bmipn32"
7757 *64-bit*)
7758 LD="${LD-ld} -melf64bmip"
7760 esac
7761 else
7762 case `/usr/bin/file conftest.$ac_objext` in
7763 *32-bit*)
7764 LD="${LD-ld} -32"
7766 *N32*)
7767 LD="${LD-ld} -n32"
7769 *64-bit*)
7770 LD="${LD-ld} -64"
7772 esac
7775 rm -rf conftest*
7778 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7779 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7780 # Find out which ABI we are using.
7781 echo 'int i;' > conftest.$ac_ext
7782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 case `/usr/bin/file conftest.o` in
7788 *32-bit*)
7789 case $host in
7790 x86_64-*kfreebsd*-gnu)
7791 LD="${LD-ld} -m elf_i386_fbsd"
7793 x86_64-*linux*)
7794 case `/usr/bin/file conftest.o` in
7795 *x86-64*)
7796 LD="${LD-ld} -m elf32_x86_64"
7799 LD="${LD-ld} -m elf_i386"
7801 esac
7803 powerpc64le-*linux*)
7804 LD="${LD-ld} -m elf32lppclinux"
7806 powerpc64-*linux*)
7807 LD="${LD-ld} -m elf32ppclinux"
7809 s390x-*linux*)
7810 LD="${LD-ld} -m elf_s390"
7812 sparc64-*linux*)
7813 LD="${LD-ld} -m elf32_sparc"
7815 esac
7817 *64-bit*)
7818 case $host in
7819 x86_64-*kfreebsd*-gnu)
7820 LD="${LD-ld} -m elf_x86_64_fbsd"
7822 x86_64-*linux*)
7823 LD="${LD-ld} -m elf_x86_64"
7825 powerpcle-*linux*)
7826 LD="${LD-ld} -m elf64lppc"
7828 powerpc-*linux*)
7829 LD="${LD-ld} -m elf64ppc"
7831 s390*-*linux*|s390*-*tpf*)
7832 LD="${LD-ld} -m elf64_s390"
7834 sparc*-*linux*)
7835 LD="${LD-ld} -m elf64_sparc"
7837 esac
7839 esac
7841 rm -rf conftest*
7844 *-*-sco3.2v5*)
7845 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7846 SAVE_CFLAGS="$CFLAGS"
7847 CFLAGS="$CFLAGS -belf"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7849 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7850 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 ac_ext=c
7854 ac_cpp='$CPP $CPPFLAGS'
7855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7863 main ()
7867 return 0;
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 lt_cv_cc_needs_belf=yes
7872 else
7873 lt_cv_cc_needs_belf=no
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 ac_ext=c
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7885 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7888 CFLAGS="$SAVE_CFLAGS"
7891 sparc*-*solaris*)
7892 # Find out which ABI we are using.
7893 echo 'int i;' > conftest.$ac_ext
7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7895 (eval $ac_compile) 2>&5
7896 ac_status=$?
7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; then
7899 case `/usr/bin/file conftest.o` in
7900 *64-bit*)
7901 case $lt_cv_prog_gnu_ld in
7902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7904 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7905 LD="${LD-ld} -64"
7908 esac
7910 esac
7912 rm -rf conftest*
7914 esac
7916 need_locks="$enable_libtool_lock"
7919 case $host_os in
7920 rhapsody* | darwin*)
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$DSYMUTIL"; then
7930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7950 if test -n "$DSYMUTIL"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7952 $as_echo "$DSYMUTIL" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_DSYMUTIL"; then
7961 ac_ct_DSYMUTIL=$DSYMUTIL
7962 # Extract the first word of "dsymutil", so it can be a program name with args.
7963 set dummy dsymutil; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$ac_ct_DSYMUTIL"; then
7970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7990 if test -n "$ac_ct_DSYMUTIL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_DSYMUTIL" = x; then
7999 DSYMUTIL=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 DSYMUTIL=$ac_ct_DSYMUTIL
8009 else
8010 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$NMEDIT"; then
8022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8041 NMEDIT=$ac_cv_prog_NMEDIT
8042 if test -n "$NMEDIT"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8044 $as_echo "$NMEDIT" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_prog_NMEDIT"; then
8053 ac_ct_NMEDIT=$NMEDIT
8054 # Extract the first word of "nmedit", so it can be a program name with args.
8055 set dummy nmedit; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$ac_ct_NMEDIT"; then
8062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8082 if test -n "$ac_ct_NMEDIT"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8084 $as_echo "$ac_ct_NMEDIT" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_ct_NMEDIT" = x; then
8091 NMEDIT=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099 NMEDIT=$ac_ct_NMEDIT
8101 else
8102 NMEDIT="$ac_cv_prog_NMEDIT"
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_LIPO+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$LIPO"; then
8114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8133 LIPO=$ac_cv_prog_LIPO
8134 if test -n "$LIPO"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8136 $as_echo "$LIPO" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_LIPO"; then
8145 ac_ct_LIPO=$LIPO
8146 # Extract the first word of "lipo", so it can be a program name with args.
8147 set dummy lipo; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$ac_ct_LIPO"; then
8154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_prog_ac_ct_LIPO="lipo"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8169 IFS=$as_save_IFS
8173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8174 if test -n "$ac_ct_LIPO"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8176 $as_echo "$ac_ct_LIPO" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_LIPO" = x; then
8183 LIPO=":"
8184 else
8185 case $cross_compiling:$ac_tool_warned in
8186 yes:)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191 LIPO=$ac_ct_LIPO
8193 else
8194 LIPO="$ac_cv_prog_LIPO"
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}otool; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$OTOOL"; then
8206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8219 done
8220 done
8221 IFS=$as_save_IFS
8225 OTOOL=$ac_cv_prog_OTOOL
8226 if test -n "$OTOOL"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8228 $as_echo "$OTOOL" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test -z "$ac_cv_prog_OTOOL"; then
8237 ac_ct_OTOOL=$OTOOL
8238 # Extract the first word of "otool", so it can be a program name with args.
8239 set dummy otool; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$ac_ct_OTOOL"; then
8246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_ac_ct_OTOOL="otool"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8266 if test -n "$ac_ct_OTOOL"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8268 $as_echo "$ac_ct_OTOOL" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8274 if test "x$ac_ct_OTOOL" = x; then
8275 OTOOL=":"
8276 else
8277 case $cross_compiling:$ac_tool_warned in
8278 yes:)
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281 ac_tool_warned=yes ;;
8282 esac
8283 OTOOL=$ac_ct_OTOOL
8285 else
8286 OTOOL="$ac_cv_prog_OTOOL"
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$OTOOL64"; then
8298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8317 OTOOL64=$ac_cv_prog_OTOOL64
8318 if test -n "$OTOOL64"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8320 $as_echo "$OTOOL64" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test -z "$ac_cv_prog_OTOOL64"; then
8329 ac_ct_OTOOL64=$OTOOL64
8330 # Extract the first word of "otool64", so it can be a program name with args.
8331 set dummy otool64; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$ac_ct_OTOOL64"; then
8338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_ac_ct_OTOOL64="otool64"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8358 if test -n "$ac_ct_OTOOL64"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8360 $as_echo "$ac_ct_OTOOL64" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8366 if test "x$ac_ct_OTOOL64" = x; then
8367 OTOOL64=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 OTOOL64=$ac_ct_OTOOL64
8377 else
8378 OTOOL64="$ac_cv_prog_OTOOL64"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8408 $as_echo_n "checking for -single_module linker flag... " >&6; }
8409 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 lt_cv_apple_cc_single_mod=no
8413 if test -z "${LT_MULTI_MODULE}"; then
8414 # By default we will add the -single_module flag. You can override
8415 # by either setting the environment variable LT_MULTI_MODULE
8416 # non-empty at configure time, or by adding -multi_module to the
8417 # link flags.
8418 rm -rf libconftest.dylib*
8419 echo "int foo(void){return 1;}" > conftest.c
8420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8421 -dynamiclib -Wl,-single_module conftest.c" >&5
8422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8424 _lt_result=$?
8425 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8426 lt_cv_apple_cc_single_mod=yes
8427 else
8428 cat conftest.err >&5
8430 rm -rf libconftest.dylib*
8431 rm -f conftest.*
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8435 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8437 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8438 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 lt_cv_ld_exported_symbols_list=no
8442 save_LDFLAGS=$LDFLAGS
8443 echo "_main" > conftest.sym
8444 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8449 main ()
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 lt_cv_ld_exported_symbols_list=yes
8458 else
8459 lt_cv_ld_exported_symbols_list=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LDFLAGS="$save_LDFLAGS"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8467 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8469 $as_echo_n "checking for -force_load linker flag... " >&6; }
8470 if test "${lt_cv_ld_force_load+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 lt_cv_ld_force_load=no
8474 cat > conftest.c << _LT_EOF
8475 int forced_loaded() { return 2;}
8476 _LT_EOF
8477 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8478 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8479 echo "$AR cru libconftest.a conftest.o" >&5
8480 $AR cru libconftest.a conftest.o 2>&5
8481 cat > conftest.c << _LT_EOF
8482 int main() { return 0;}
8483 _LT_EOF
8484 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8485 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8486 _lt_result=$?
8487 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8488 lt_cv_ld_force_load=yes
8489 else
8490 cat conftest.err >&5
8492 rm -f conftest.err libconftest.a conftest conftest.c
8493 rm -rf conftest.dSYM
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8497 $as_echo "$lt_cv_ld_force_load" >&6; }
8498 case $host_os in
8499 rhapsody* | darwin1.[012])
8500 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8501 darwin1.*)
8502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8503 darwin*) # darwin 5.x on
8504 # if running on 10.5 or later, the deployment target defaults
8505 # to the OS version, if on x86, and 10.4, the deployment
8506 # target defaults to 10.4. Don't you love it?
8507 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8508 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8510 10.[012][,.]*)
8511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8512 10.*)
8513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8514 esac
8516 esac
8517 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8518 _lt_dar_single_mod='$single_module'
8520 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8521 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8522 else
8523 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8525 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8526 _lt_dsymutil='~$DSYMUTIL $lib || :'
8527 else
8528 _lt_dsymutil=
8531 esac
8533 for ac_header in dlfcn.h
8534 do :
8535 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8537 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_DLFCN_H 1
8540 _ACEOF
8544 done
8551 # Set options
8556 enable_win32_dll=no
8559 # Check whether --enable-shared was given.
8560 if test "${enable_shared+set}" = set; then :
8561 enableval=$enable_shared; p=${PACKAGE-default}
8562 case $enableval in
8563 yes) enable_shared=yes ;;
8564 no) enable_shared=no ;;
8566 enable_shared=no
8567 # Look at the argument we got. We use all the common list separators.
8568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8569 for pkg in $enableval; do
8570 IFS="$lt_save_ifs"
8571 if test "X$pkg" = "X$p"; then
8572 enable_shared=yes
8574 done
8575 IFS="$lt_save_ifs"
8577 esac
8578 else
8579 enable_shared=yes
8590 # Check whether --enable-static was given.
8591 if test "${enable_static+set}" = set; then :
8592 enableval=$enable_static; p=${PACKAGE-default}
8593 case $enableval in
8594 yes) enable_static=yes ;;
8595 no) enable_static=no ;;
8597 enable_static=no
8598 # Look at the argument we got. We use all the common list separators.
8599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8600 for pkg in $enableval; do
8601 IFS="$lt_save_ifs"
8602 if test "X$pkg" = "X$p"; then
8603 enable_static=yes
8605 done
8606 IFS="$lt_save_ifs"
8608 esac
8609 else
8610 enable_static=yes
8622 # Check whether --with-pic was given.
8623 if test "${with_pic+set}" = set; then :
8624 withval=$with_pic; pic_mode="$withval"
8625 else
8626 pic_mode=default
8630 test -z "$pic_mode" && pic_mode=default
8638 # Check whether --enable-fast-install was given.
8639 if test "${enable_fast_install+set}" = set; then :
8640 enableval=$enable_fast_install; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_fast_install=yes ;;
8643 no) enable_fast_install=no ;;
8645 enable_fast_install=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8649 IFS="$lt_save_ifs"
8650 if test "X$pkg" = "X$p"; then
8651 enable_fast_install=yes
8653 done
8654 IFS="$lt_save_ifs"
8656 esac
8657 else
8658 enable_fast_install=yes
8671 # This can be used to rebuild libtool when needed
8672 LIBTOOL_DEPS="$ltmain"
8674 # Always use our own libtool.
8675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8702 test -z "$LN_S" && LN_S="ln -s"
8717 if test -n "${ZSH_VERSION+set}" ; then
8718 setopt NO_GLOB_SUBST
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8722 $as_echo_n "checking for objdir... " >&6; }
8723 if test "${lt_cv_objdir+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 rm -f .libs 2>/dev/null
8727 mkdir .libs 2>/dev/null
8728 if test -d .libs; then
8729 lt_cv_objdir=.libs
8730 else
8731 # MS-DOS does not allow filenames that begin with a dot.
8732 lt_cv_objdir=_libs
8734 rmdir .libs 2>/dev/null
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8737 $as_echo "$lt_cv_objdir" >&6; }
8738 objdir=$lt_cv_objdir
8744 cat >>confdefs.h <<_ACEOF
8745 #define LT_OBJDIR "$lt_cv_objdir/"
8746 _ACEOF
8751 case $host_os in
8752 aix3*)
8753 # AIX sometimes has problems with the GCC collect2 program. For some
8754 # reason, if we set the COLLECT_NAMES environment variable, the problems
8755 # vanish in a puff of smoke.
8756 if test "X${COLLECT_NAMES+set}" != Xset; then
8757 COLLECT_NAMES=
8758 export COLLECT_NAMES
8761 esac
8763 # Global variables:
8764 ofile=libtool
8765 can_build_shared=yes
8767 # All known linkers require a `.a' archive for static linking (except MSVC,
8768 # which needs '.lib').
8769 libext=a
8771 with_gnu_ld="$lt_cv_prog_gnu_ld"
8773 old_CC="$CC"
8774 old_CFLAGS="$CFLAGS"
8776 # Set sane defaults for various variables
8777 test -z "$CC" && CC=cc
8778 test -z "$LTCC" && LTCC=$CC
8779 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8780 test -z "$LD" && LD=ld
8781 test -z "$ac_objext" && ac_objext=o
8783 for cc_temp in $compiler""; do
8784 case $cc_temp in
8785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8787 \-*) ;;
8788 *) break;;
8789 esac
8790 done
8791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8794 # Only perform the check for file, if the check method requires it
8795 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8796 case $deplibs_check_method in
8797 file_magic*)
8798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8800 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 case $MAGIC_CMD in
8805 [\\/*] | ?:[\\/]*)
8806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8809 lt_save_MAGIC_CMD="$MAGIC_CMD"
8810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8812 for ac_dir in $ac_dummy; do
8813 IFS="$lt_save_ifs"
8814 test -z "$ac_dir" && ac_dir=.
8815 if test -f $ac_dir/${ac_tool_prefix}file; then
8816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8817 if test -n "$file_magic_test_file"; then
8818 case $deplibs_check_method in
8819 "file_magic "*)
8820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8823 $EGREP "$file_magic_regex" > /dev/null; then
8825 else
8826 cat <<_LT_EOF 1>&2
8828 *** Warning: the command libtool uses to detect shared libraries,
8829 *** $file_magic_cmd, produces output that libtool cannot recognize.
8830 *** The result is that libtool may fail to recognize shared libraries
8831 *** as such. This will affect the creation of libtool libraries that
8832 *** depend on shared libraries, but programs linked with such libtool
8833 *** libraries will work regardless of this problem. Nevertheless, you
8834 *** may want to report the problem to your system manager and/or to
8835 *** bug-libtool@gnu.org
8837 _LT_EOF
8838 fi ;;
8839 esac
8841 break
8843 done
8844 IFS="$lt_save_ifs"
8845 MAGIC_CMD="$lt_save_MAGIC_CMD"
8847 esac
8850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8851 if test -n "$MAGIC_CMD"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8853 $as_echo "$MAGIC_CMD" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8863 if test -z "$lt_cv_path_MAGIC_CMD"; then
8864 if test -n "$ac_tool_prefix"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8866 $as_echo_n "checking for file... " >&6; }
8867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 case $MAGIC_CMD in
8871 [\\/*] | ?:[\\/]*)
8872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8875 lt_save_MAGIC_CMD="$MAGIC_CMD"
8876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878 for ac_dir in $ac_dummy; do
8879 IFS="$lt_save_ifs"
8880 test -z "$ac_dir" && ac_dir=.
8881 if test -f $ac_dir/file; then
8882 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8883 if test -n "$file_magic_test_file"; then
8884 case $deplibs_check_method in
8885 "file_magic "*)
8886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889 $EGREP "$file_magic_regex" > /dev/null; then
8891 else
8892 cat <<_LT_EOF 1>&2
8894 *** Warning: the command libtool uses to detect shared libraries,
8895 *** $file_magic_cmd, produces output that libtool cannot recognize.
8896 *** The result is that libtool may fail to recognize shared libraries
8897 *** as such. This will affect the creation of libtool libraries that
8898 *** depend on shared libraries, but programs linked with such libtool
8899 *** libraries will work regardless of this problem. Nevertheless, you
8900 *** may want to report the problem to your system manager and/or to
8901 *** bug-libtool@gnu.org
8903 _LT_EOF
8904 fi ;;
8905 esac
8907 break
8909 done
8910 IFS="$lt_save_ifs"
8911 MAGIC_CMD="$lt_save_MAGIC_CMD"
8913 esac
8916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917 if test -n "$MAGIC_CMD"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8919 $as_echo "$MAGIC_CMD" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8926 else
8927 MAGIC_CMD=:
8933 esac
8935 # Use C for the default configuration in the libtool script
8937 lt_save_CC="$CC"
8938 ac_ext=c
8939 ac_cpp='$CPP $CPPFLAGS'
8940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945 # Source file extension for C test sources.
8946 ac_ext=c
8948 # Object file extension for compiled C test sources.
8949 objext=o
8950 objext=$objext
8952 # Code to be used in simple compile tests
8953 lt_simple_compile_test_code="int some_variable = 0;"
8955 # Code to be used in simple link tests
8956 lt_simple_link_test_code='int main(){return(0);}'
8964 # If no C compiler was specified, use CC.
8965 LTCC=${LTCC-"$CC"}
8967 # If no C compiler flags were specified, use CFLAGS.
8968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8970 # Allow CC to be a program name with arguments.
8971 compiler=$CC
8973 # Save the default compiler, since it gets overwritten when the other
8974 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8975 compiler_DEFAULT=$CC
8977 # save warnings/boilerplate of simple test code
8978 ac_outfile=conftest.$ac_objext
8979 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8981 _lt_compiler_boilerplate=`cat conftest.err`
8982 $RM conftest*
8984 ac_outfile=conftest.$ac_objext
8985 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8987 _lt_linker_boilerplate=`cat conftest.err`
8988 $RM -r conftest*
8991 ## CAVEAT EMPTOR:
8992 ## There is no encapsulation within the following macros, do not change
8993 ## the running order or otherwise move them around unless you know exactly
8994 ## what you are doing...
8995 if test -n "$compiler"; then
8997 lt_prog_compiler_no_builtin_flag=
8999 if test "$GCC" = yes; then
9000 case $cc_basename in
9001 nvcc*)
9002 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9004 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9005 esac
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9008 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9009 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_rtti_exceptions=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="-fno-rtti -fno-exceptions"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9027 ac_status=$?
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_rtti_exceptions=yes
9039 $RM conftest*
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9043 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9045 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9046 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9047 else
9058 lt_prog_compiler_wl=
9059 lt_prog_compiler_pic=
9060 lt_prog_compiler_static=
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9065 if test "$GCC" = yes; then
9066 lt_prog_compiler_wl='-Wl,'
9067 lt_prog_compiler_static='-static'
9069 case $host_os in
9070 aix*)
9071 # All AIX code is PIC.
9072 if test "$host_cpu" = ia64; then
9073 # AIX 5 now supports IA64 processor
9074 lt_prog_compiler_static='-Bstatic'
9076 lt_prog_compiler_pic='-fPIC'
9079 amigaos*)
9080 case $host_cpu in
9081 powerpc)
9082 # see comment about AmigaOS4 .so support
9083 lt_prog_compiler_pic='-fPIC'
9085 m68k)
9086 # FIXME: we need at least 68020 code to build shared libraries, but
9087 # adding the `-m68020' flag to GCC prevents building anything better,
9088 # like `-m68040'.
9089 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9091 esac
9094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9095 # PIC is the default for these OSes.
9098 mingw* | cygwin* | pw32* | os2* | cegcc*)
9099 # This hack is so that the source file can tell whether it is being
9100 # built for inclusion in a dll (and should export symbols for example).
9101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9102 # (--disable-auto-import) libraries
9103 lt_prog_compiler_pic='-DDLL_EXPORT'
9106 darwin* | rhapsody*)
9107 # PIC is the default on this platform
9108 # Common symbols not allowed in MH_DYLIB files
9109 lt_prog_compiler_pic='-fno-common'
9112 haiku*)
9113 # PIC is the default for Haiku.
9114 # The "-static" flag exists, but is broken.
9115 lt_prog_compiler_static=
9118 hpux*)
9119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9121 # sets the default TLS model and affects inlining.
9122 case $host_cpu in
9123 hppa*64*)
9124 # +Z the default
9127 lt_prog_compiler_pic='-fPIC'
9129 esac
9132 interix[3-9]*)
9133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9134 # Instead, we relocate shared libraries at runtime.
9137 msdosdjgpp*)
9138 # Just because we use GCC doesn't mean we suddenly get shared libraries
9139 # on systems that don't support them.
9140 lt_prog_compiler_can_build_shared=no
9141 enable_shared=no
9144 *nto* | *qnx*)
9145 # QNX uses GNU C++, but need to define -shared option too, otherwise
9146 # it will coredump.
9147 lt_prog_compiler_pic='-fPIC -shared'
9150 sysv4*MP*)
9151 if test -d /usr/nec; then
9152 lt_prog_compiler_pic=-Kconform_pic
9157 lt_prog_compiler_pic='-fPIC'
9159 esac
9161 case $cc_basename in
9162 nvcc*) # Cuda Compiler Driver 2.2
9163 lt_prog_compiler_wl='-Xlinker '
9164 lt_prog_compiler_pic='-Xcompiler -fPIC'
9166 esac
9167 else
9168 # PORTME Check for flag to pass linker flags through the system compiler.
9169 case $host_os in
9170 aix*)
9171 lt_prog_compiler_wl='-Wl,'
9172 if test "$host_cpu" = ia64; then
9173 # AIX 5 now supports IA64 processor
9174 lt_prog_compiler_static='-Bstatic'
9175 else
9176 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9180 mingw* | cygwin* | pw32* | os2* | cegcc*)
9181 # This hack is so that the source file can tell whether it is being
9182 # built for inclusion in a dll (and should export symbols for example).
9183 lt_prog_compiler_pic='-DDLL_EXPORT'
9186 hpux9* | hpux10* | hpux11*)
9187 lt_prog_compiler_wl='-Wl,'
9188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9189 # not for PA HP-UX.
9190 case $host_cpu in
9191 hppa*64*|ia64*)
9192 # +Z the default
9195 lt_prog_compiler_pic='+Z'
9197 esac
9198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9199 lt_prog_compiler_static='${wl}-a ${wl}archive'
9202 irix5* | irix6* | nonstopux*)
9203 lt_prog_compiler_wl='-Wl,'
9204 # PIC (with -KPIC) is the default.
9205 lt_prog_compiler_static='-non_shared'
9208 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9209 case $cc_basename in
9210 # old Intel for x86_64 which still supported -KPIC.
9211 ecc*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-static'
9216 # icc used to be incompatible with GCC.
9217 # ICC 10 doesn't accept -KPIC any more.
9218 icc* | ifort*)
9219 lt_prog_compiler_wl='-Wl,'
9220 lt_prog_compiler_pic='-fPIC'
9221 lt_prog_compiler_static='-static'
9223 # Lahey Fortran 8.1.
9224 lf95*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='--shared'
9227 lt_prog_compiler_static='--static'
9229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group compilers (*not* the Pentium gcc compiler,
9231 # which looks to be a dead project)
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_pic='-fpic'
9234 lt_prog_compiler_static='-Bstatic'
9236 ccc*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # All Alpha code is PIC.
9239 lt_prog_compiler_static='-non_shared'
9241 xl* | bgxl* | bgf* | mpixl*)
9242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-qpic'
9245 lt_prog_compiler_static='-qstaticlink'
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ F* | *Sun*Fortran*)
9250 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9251 lt_prog_compiler_pic='-KPIC'
9252 lt_prog_compiler_static='-Bstatic'
9253 lt_prog_compiler_wl=''
9255 *Sun\ C*)
9256 # Sun C 5.9
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9259 lt_prog_compiler_wl='-Wl,'
9261 esac
9263 esac
9266 newsos6)
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-Bstatic'
9271 *nto* | *qnx*)
9272 # QNX uses GNU C++, but need to define -shared option too, otherwise
9273 # it will coredump.
9274 lt_prog_compiler_pic='-fPIC -shared'
9277 osf3* | osf4* | osf5*)
9278 lt_prog_compiler_wl='-Wl,'
9279 # All OSF/1 code is PIC.
9280 lt_prog_compiler_static='-non_shared'
9283 rdos*)
9284 lt_prog_compiler_static='-non_shared'
9287 solaris*)
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 case $cc_basename in
9291 f77* | f90* | f95*)
9292 lt_prog_compiler_wl='-Qoption ld ';;
9294 lt_prog_compiler_wl='-Wl,';;
9295 esac
9298 sunos4*)
9299 lt_prog_compiler_wl='-Qoption ld '
9300 lt_prog_compiler_pic='-PIC'
9301 lt_prog_compiler_static='-Bstatic'
9304 sysv4 | sysv4.2uw2* | sysv4.3*)
9305 lt_prog_compiler_wl='-Wl,'
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9310 sysv4*MP*)
9311 if test -d /usr/nec ;then
9312 lt_prog_compiler_pic='-Kconform_pic'
9313 lt_prog_compiler_static='-Bstatic'
9317 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9318 lt_prog_compiler_wl='-Wl,'
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9323 unicos*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_can_build_shared=no
9328 uts4*)
9329 lt_prog_compiler_pic='-pic'
9330 lt_prog_compiler_static='-Bstatic'
9334 lt_prog_compiler_can_build_shared=no
9336 esac
9339 case $host_os in
9340 # For platforms which do not support PIC, -DPIC is meaningless:
9341 *djgpp*)
9342 lt_prog_compiler_pic=
9345 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9347 esac
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9349 $as_echo "$lt_prog_compiler_pic" >&6; }
9357 # Check to make sure the PIC flag actually works.
9359 if test -n "$lt_prog_compiler_pic"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9361 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9362 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 lt_cv_prog_compiler_pic_works=no
9366 ac_outfile=conftest.$ac_objext
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9369 # Insert the option either (1) after the last *FLAGS variable, or
9370 # (2) before a word containing "conftest.", or (3) at the end.
9371 # Note that $ac_compile itself does not contain backslashes and begins
9372 # with a dollar sign (not a hyphen), so the echo should work correctly.
9373 # The option is referenced via a variable to avoid confusing sed.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>conftest.err)
9380 ac_status=$?
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s "$ac_outfile"; then
9384 # The compiler can only warn and ignore the option if not recognized
9385 # So say no if there are warnings other than the usual output.
9386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_pic_works=yes
9392 $RM conftest*
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9398 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9399 case $lt_prog_compiler_pic in
9400 "" | " "*) ;;
9401 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9402 esac
9403 else
9404 lt_prog_compiler_pic=
9405 lt_prog_compiler_can_build_shared=no
9416 # Check to make sure the static flag actually works.
9418 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9421 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_prog_compiler_static_works=no
9425 save_LDFLAGS="$LDFLAGS"
9426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err; then
9432 # Append any errors to the config.log.
9433 cat conftest.err 1>&5
9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_static_works=yes
9439 else
9440 lt_cv_prog_compiler_static_works=yes
9443 $RM -r conftest*
9444 LDFLAGS="$save_LDFLAGS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9448 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9450 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9452 else
9453 lt_prog_compiler_static=
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9464 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 lt_cv_prog_compiler_c_o=no
9468 $RM -r conftest 2>/dev/null
9469 mkdir conftest
9470 cd conftest
9471 mkdir out
9472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9474 lt_compiler_flag="-o out/conftest2.$ac_objext"
9475 # Insert the option either (1) after the last *FLAGS variable, or
9476 # (2) before a word containing "conftest.", or (3) at the end.
9477 # Note that $ac_compile itself does not contain backslashes and begins
9478 # with a dollar sign (not a hyphen), so the echo should work correctly.
9479 lt_compile=`echo "$ac_compile" | $SED \
9480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9482 -e 's:$: $lt_compiler_flag:'`
9483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9484 (eval "$lt_compile" 2>out/conftest.err)
9485 ac_status=$?
9486 cat out/conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9489 then
9490 # The compiler can only warn and ignore the option if not recognized
9491 # So say no if there are warnings
9492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9495 lt_cv_prog_compiler_c_o=yes
9498 chmod u+w . 2>&5
9499 $RM conftest*
9500 # SGI C++ compiler will create directory out/ii_files/ for
9501 # template instantiation
9502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9503 $RM out/* && rmdir out
9504 cd ..
9505 $RM -r conftest
9506 $RM conftest*
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9519 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 lt_cv_prog_compiler_c_o=no
9523 $RM -r conftest 2>/dev/null
9524 mkdir conftest
9525 cd conftest
9526 mkdir out
9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9529 lt_compiler_flag="-o out/conftest2.$ac_objext"
9530 # Insert the option either (1) after the last *FLAGS variable, or
9531 # (2) before a word containing "conftest.", or (3) at the end.
9532 # Note that $ac_compile itself does not contain backslashes and begins
9533 # with a dollar sign (not a hyphen), so the echo should work correctly.
9534 lt_compile=`echo "$ac_compile" | $SED \
9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9537 -e 's:$: $lt_compiler_flag:'`
9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9539 (eval "$lt_compile" 2>out/conftest.err)
9540 ac_status=$?
9541 cat out/conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9544 then
9545 # The compiler can only warn and ignore the option if not recognized
9546 # So say no if there are warnings
9547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9550 lt_cv_prog_compiler_c_o=yes
9553 chmod u+w . 2>&5
9554 $RM conftest*
9555 # SGI C++ compiler will create directory out/ii_files/ for
9556 # template instantiation
9557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9558 $RM out/* && rmdir out
9559 cd ..
9560 $RM -r conftest
9561 $RM conftest*
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9570 hard_links="nottested"
9571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9572 # do not overwrite the value of need_locks provided by the user
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9574 $as_echo_n "checking if we can lock with hard links... " >&6; }
9575 hard_links=yes
9576 $RM conftest*
9577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9578 touch conftest.a
9579 ln conftest.a conftest.b 2>&5 || hard_links=no
9580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9582 $as_echo "$hard_links" >&6; }
9583 if test "$hard_links" = no; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9586 need_locks=warn
9588 else
9589 need_locks=no
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9600 runpath_var=
9601 allow_undefined_flag=
9602 always_export_symbols=no
9603 archive_cmds=
9604 archive_expsym_cmds=
9605 compiler_needs_object=no
9606 enable_shared_with_static_runtimes=no
9607 export_dynamic_flag_spec=
9608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9609 hardcode_automatic=no
9610 hardcode_direct=no
9611 hardcode_direct_absolute=no
9612 hardcode_libdir_flag_spec=
9613 hardcode_libdir_flag_spec_ld=
9614 hardcode_libdir_separator=
9615 hardcode_minus_L=no
9616 hardcode_shlibpath_var=unsupported
9617 inherit_rpath=no
9618 link_all_deplibs=unknown
9619 module_cmds=
9620 module_expsym_cmds=
9621 old_archive_from_new_cmds=
9622 old_archive_from_expsyms_cmds=
9623 thread_safe_flag_spec=
9624 whole_archive_flag_spec=
9625 # include_expsyms should be a list of space-separated symbols to be *always*
9626 # included in the symbol list
9627 include_expsyms=
9628 # exclude_expsyms can be an extended regexp of symbols to exclude
9629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9631 # as well as any symbol that contains `d'.
9632 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9634 # platforms (ab)use it in PIC code, but their linkers get confused if
9635 # the symbol is explicitly referenced. Since portable code cannot
9636 # rely on this symbol name, it's probably fine to never include it in
9637 # preloaded symbol tables.
9638 # Exclude shared library initialization/finalization symbols.
9639 extract_expsyms_cmds=
9641 case $host_os in
9642 cygwin* | mingw* | pw32* | cegcc*)
9643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9644 # When not using gcc, we currently assume that we are using
9645 # Microsoft Visual C++.
9646 if test "$GCC" != yes; then
9647 with_gnu_ld=no
9650 interix*)
9651 # we just hope/assume this is gcc and not c89 (= MSVC++)
9652 with_gnu_ld=yes
9654 openbsd*)
9655 with_gnu_ld=no
9657 esac
9659 ld_shlibs=yes
9661 # On some targets, GNU ld is compatible enough with the native linker
9662 # that we're better off using the native interface for both.
9663 lt_use_gnu_ld_interface=no
9664 if test "$with_gnu_ld" = yes; then
9665 case $host_os in
9666 aix*)
9667 # The AIX port of GNU ld has always aspired to compatibility
9668 # with the native linker. However, as the warning in the GNU ld
9669 # block says, versions before 2.19.5* couldn't really create working
9670 # shared libraries, regardless of the interface used.
9671 case `$LD -v 2>&1` in
9672 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9673 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9674 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9676 lt_use_gnu_ld_interface=yes
9678 esac
9681 lt_use_gnu_ld_interface=yes
9683 esac
9686 if test "$lt_use_gnu_ld_interface" = yes; then
9687 # If archive_cmds runs LD, not CC, wlarc should be empty
9688 wlarc='${wl}'
9690 # Set some defaults for GNU ld with shared library support. These
9691 # are reset later if shared libraries are not supported. Putting them
9692 # here allows them to be overridden if necessary.
9693 runpath_var=LD_RUN_PATH
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 export_dynamic_flag_spec='${wl}--export-dynamic'
9696 # ancient GNU ld didn't support --whole-archive et. al.
9697 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9698 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9699 else
9700 whole_archive_flag_spec=
9702 supports_anon_versioning=no
9703 case `$LD -v 2>&1` in
9704 *GNU\ gold*) supports_anon_versioning=yes ;;
9705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9708 *\ 2.11.*) ;; # other 2.11 versions
9709 *) supports_anon_versioning=yes ;;
9710 esac
9712 # See if GNU ld supports shared libraries.
9713 case $host_os in
9714 aix[3-9]*)
9715 # On AIX/PPC, the GNU linker is very broken
9716 if test "$host_cpu" != ia64; then
9717 ld_shlibs=no
9718 cat <<_LT_EOF 1>&2
9720 *** Warning: the GNU linker, at least up to release 2.19, is reported
9721 *** to be unable to reliably create shared libraries on AIX.
9722 *** Therefore, libtool is disabling shared libraries support. If you
9723 *** really care for shared libraries, you may want to install binutils
9724 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9725 *** You will then need to restart the configuration process.
9727 _LT_EOF
9731 amigaos*)
9732 case $host_cpu in
9733 powerpc)
9734 # see comment about AmigaOS4 .so support
9735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 archive_expsym_cmds=''
9738 m68k)
9739 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_minus_L=yes
9743 esac
9746 beos*)
9747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748 allow_undefined_flag=unsupported
9749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9750 # support --undefined. This deserves some investigation. FIXME
9751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 else
9753 ld_shlibs=no
9757 cygwin* | mingw* | pw32* | cegcc*)
9758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9759 # as there is no search path for DLLs.
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 export_dynamic_flag_spec='${wl}--export-all-symbols'
9762 allow_undefined_flag=unsupported
9763 always_export_symbols=no
9764 enable_shared_with_static_runtimes=yes
9765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769 # If the export-symbols file already is a .def file (1st line
9770 # is EXPORTS), use it as is; otherwise, prepend...
9771 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772 cp $export_symbols $output_objdir/$soname.def;
9773 else
9774 echo EXPORTS > $output_objdir/$soname.def;
9775 cat $export_symbols >> $output_objdir/$soname.def;
9777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9778 else
9779 ld_shlibs=no
9783 haiku*)
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 link_all_deplibs=yes
9788 interix[3-9]*)
9789 hardcode_direct=no
9790 hardcode_shlibpath_var=no
9791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9792 export_dynamic_flag_spec='${wl}-E'
9793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9794 # Instead, shared libraries are loaded at an image base (0x10000000 by
9795 # default) and relocated if they conflict, which is a slow very memory
9796 # consuming and fragmenting process. To avoid this, we pick a random,
9797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9800 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9803 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9804 tmp_diet=no
9805 if test "$host_os" = linux-dietlibc; then
9806 case $cc_basename in
9807 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9808 esac
9810 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9811 && test "$tmp_diet" = no
9812 then
9813 tmp_addflag=' $pic_flag'
9814 tmp_sharedflag='-shared'
9815 case $cc_basename,$host_cpu in
9816 pgcc*) # Portland Group C compiler
9817 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9818 tmp_addflag=' $pic_flag'
9820 pgf77* | pgf90* | pgf95* | pgfortran*)
9821 # Portland Group f77 and f90 compilers
9822 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9823 tmp_addflag=' $pic_flag -Mnomain' ;;
9824 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9825 tmp_addflag=' -i_dynamic' ;;
9826 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9827 tmp_addflag=' -i_dynamic -nofor_main' ;;
9828 ifc* | ifort*) # Intel Fortran compiler
9829 tmp_addflag=' -nofor_main' ;;
9830 lf95*) # Lahey Fortran 8.1
9831 whole_archive_flag_spec=
9832 tmp_sharedflag='--shared' ;;
9833 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9834 tmp_sharedflag='-qmkshrobj'
9835 tmp_addflag= ;;
9836 nvcc*) # Cuda Compiler Driver 2.2
9837 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9838 compiler_needs_object=yes
9840 esac
9841 case `$CC -V 2>&1 | sed 5q` in
9842 *Sun\ C*) # Sun C 5.9
9843 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9844 compiler_needs_object=yes
9845 tmp_sharedflag='-G' ;;
9846 *Sun\ F*) # Sun Fortran 8.3
9847 tmp_sharedflag='-G' ;;
9848 esac
9849 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 if test "x$supports_anon_versioning" = xyes; then
9852 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9854 echo "local: *; };" >> $output_objdir/$libname.ver~
9855 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9858 case $cc_basename in
9859 xlf* | bgf* | bgxlf* | mpixlf*)
9860 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9861 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9862 hardcode_libdir_flag_spec=
9863 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9864 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9865 if test "x$supports_anon_versioning" = xyes; then
9866 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868 echo "local: *; };" >> $output_objdir/$libname.ver~
9869 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9872 esac
9873 else
9874 ld_shlibs=no
9878 netbsd*)
9879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9881 wlarc=
9882 else
9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9888 solaris*)
9889 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9890 ld_shlibs=no
9891 cat <<_LT_EOF 1>&2
9893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9894 *** create shared libraries on Solaris systems. Therefore, libtool
9895 *** is disabling shared libraries support. We urge you to upgrade GNU
9896 *** binutils to release 2.9.1 or newer. Another option is to modify
9897 *** your PATH or compiler configuration so that the native linker is
9898 *** used, and then restart.
9900 _LT_EOF
9901 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904 else
9905 ld_shlibs=no
9909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9910 case `$LD -v 2>&1` in
9911 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9912 ld_shlibs=no
9913 cat <<_LT_EOF 1>&2
9915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9916 *** reliably create shared libraries on SCO systems. Therefore, libtool
9917 *** is disabling shared libraries support. We urge you to upgrade GNU
9918 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9919 *** your PATH or compiler configuration so that the native linker is
9920 *** used, and then restart.
9922 _LT_EOF
9925 # For security reasons, it is highly recommended that you always
9926 # use absolute paths for naming shared libraries, and exclude the
9927 # DT_RUNPATH tag from executables and libraries. But doing so
9928 # requires that you compile everything twice, which is a pain.
9929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9933 else
9934 ld_shlibs=no
9937 esac
9940 sunos4*)
9941 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 wlarc=
9943 hardcode_direct=yes
9944 hardcode_shlibpath_var=no
9948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 else
9952 ld_shlibs=no
9955 esac
9957 if test "$ld_shlibs" = no; then
9958 runpath_var=
9959 hardcode_libdir_flag_spec=
9960 export_dynamic_flag_spec=
9961 whole_archive_flag_spec=
9963 else
9964 # PORTME fill in a description of your system's linker (not GNU ld)
9965 case $host_os in
9966 aix3*)
9967 allow_undefined_flag=unsupported
9968 always_export_symbols=yes
9969 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9970 # Note: this linker hardcodes the directories in LIBPATH if there
9971 # are no directories specified by -L.
9972 hardcode_minus_L=yes
9973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9974 # Neither direct hardcoding nor static linking is supported with a
9975 # broken collect2.
9976 hardcode_direct=unsupported
9980 aix[4-9]*)
9981 if test "$host_cpu" = ia64; then
9982 # On IA64, the linker does run time linking by default, so we don't
9983 # have to do anything special.
9984 aix_use_runtimelinking=no
9985 exp_sym_flag='-Bexport'
9986 no_entry_flag=""
9987 else
9988 # If we're using GNU nm, then we don't want the "-C" option.
9989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9990 # Also, AIX nm treats weak defined symbols like other global
9991 # defined symbols, whereas GNU nm marks them as "W".
9992 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9993 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9994 else
9995 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9997 aix_use_runtimelinking=no
9999 # Test if we are trying to use run time linking or normal
10000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10001 # need to do runtime linking.
10002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10003 for ld_flag in $LDFLAGS; do
10004 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10005 aix_use_runtimelinking=yes
10006 break
10008 done
10010 esac
10012 exp_sym_flag='-bexport'
10013 no_entry_flag='-bnoentry'
10016 # When large executables or shared objects are built, AIX ld can
10017 # have problems creating the table of contents. If linking a library
10018 # or program results in "error TOC overflow" add -mminimal-toc to
10019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10022 archive_cmds=''
10023 hardcode_direct=yes
10024 hardcode_direct_absolute=yes
10025 hardcode_libdir_separator=':'
10026 link_all_deplibs=yes
10027 file_list_spec='${wl}-f,'
10029 if test "$GCC" = yes; then
10030 case $host_os in aix4.[012]|aix4.[012].*)
10031 # We only want to do this on AIX 4.2 and lower, the check
10032 # below for broken collect2 doesn't work under 4.3+
10033 collect2name=`${CC} -print-prog-name=collect2`
10034 if test -f "$collect2name" &&
10035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10036 then
10037 # We have reworked collect2
10039 else
10040 # We have old collect2
10041 hardcode_direct=unsupported
10042 # It fails to find uninstalled libraries when the uninstalled
10043 # path is not listed in the libpath. Setting hardcode_minus_L
10044 # to unsupported forces relinking
10045 hardcode_minus_L=yes
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_libdir_separator=
10050 esac
10051 shared_flag='-shared'
10052 if test "$aix_use_runtimelinking" = yes; then
10053 shared_flag="$shared_flag "'${wl}-G'
10055 else
10056 # not using gcc
10057 if test "$host_cpu" = ia64; then
10058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10059 # chokes on -Wl,-G. The following line is correct:
10060 shared_flag='-G'
10061 else
10062 if test "$aix_use_runtimelinking" = yes; then
10063 shared_flag='${wl}-G'
10064 else
10065 shared_flag='${wl}-bM:SRE'
10070 export_dynamic_flag_spec='${wl}-bexpall'
10071 # It seems that -bexpall does not export symbols beginning with
10072 # underscore (_), so it is better to generate a list of symbols to export.
10073 always_export_symbols=yes
10074 if test "$aix_use_runtimelinking" = yes; then
10075 # Warning - without using the other runtime loading flags (-brtl),
10076 # -berok will link without error, but may produce a broken library.
10077 allow_undefined_flag='-berok'
10078 # Determine the default libpath from the value encoded in an
10079 # empty executable.
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10084 main ()
10088 return 0;
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10093 lt_aix_libpath_sed='
10094 /Import File Strings/,/^$/ {
10095 /^0/ {
10096 s/^0 *\(.*\)$/\1/
10100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 # Check for a 64-bit object if we didn't find anything.
10102 if test -z "$aix_libpath"; then
10103 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10111 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10112 else
10113 if test "$host_cpu" = ia64; then
10114 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10115 allow_undefined_flag="-z nodefs"
10116 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10117 else
10118 # Determine the default libpath from the value encoded in an
10119 # empty executable.
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10124 main ()
10128 return 0;
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10133 lt_aix_libpath_sed='
10134 /Import File Strings/,/^$/ {
10135 /^0/ {
10136 s/^0 *\(.*\)$/\1/
10140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10141 # Check for a 64-bit object if we didn't find anything.
10142 if test -z "$aix_libpath"; then
10143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10151 # Warning - without using the other run time loading flags,
10152 # -berok will link without error, but may produce a broken library.
10153 no_undefined_flag=' ${wl}-bernotok'
10154 allow_undefined_flag=' ${wl}-berok'
10155 if test "$with_gnu_ld" = yes; then
10156 # We only use this code for GNU lds that support --whole-archive.
10157 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10158 else
10159 # Exported symbols can be pulled into shared objects from archives
10160 whole_archive_flag_spec='$convenience'
10162 archive_cmds_need_lc=yes
10163 # This is similar to how AIX traditionally builds its shared libraries.
10164 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10169 amigaos*)
10170 case $host_cpu in
10171 powerpc)
10172 # see comment about AmigaOS4 .so support
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds=''
10176 m68k)
10177 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10181 esac
10184 bsdi[45]*)
10185 export_dynamic_flag_spec=-rdynamic
10188 cygwin* | mingw* | pw32* | cegcc*)
10189 # When not using gcc, we currently assume that we are using
10190 # Microsoft Visual C++.
10191 # hardcode_libdir_flag_spec is actually meaningless, as there is
10192 # no search path for DLLs.
10193 hardcode_libdir_flag_spec=' '
10194 allow_undefined_flag=unsupported
10195 # Tell ltmain to make .lib files, not .a files.
10196 libext=lib
10197 # Tell ltmain to make .dll files, not .so files.
10198 shrext_cmds=".dll"
10199 # FIXME: Setting linknames here is a bad hack.
10200 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10201 # The linker will automatically build a .lib file if we build a DLL.
10202 old_archive_from_new_cmds='true'
10203 # FIXME: Should let the user specify the lib program.
10204 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10205 fix_srcfile_path='`cygpath -w "$srcfile"`'
10206 enable_shared_with_static_runtimes=yes
10209 darwin* | rhapsody*)
10212 archive_cmds_need_lc=no
10213 hardcode_direct=no
10214 hardcode_automatic=yes
10215 hardcode_shlibpath_var=unsupported
10216 if test "$lt_cv_ld_force_load" = "yes"; then
10217 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10218 else
10219 whole_archive_flag_spec=''
10221 link_all_deplibs=yes
10222 allow_undefined_flag="$_lt_dar_allow_undefined"
10223 case $cc_basename in
10224 ifort*) _lt_dar_can_shared=yes ;;
10225 *) _lt_dar_can_shared=$GCC ;;
10226 esac
10227 if test "$_lt_dar_can_shared" = "yes"; then
10228 output_verbose_link_cmd=func_echo_all
10229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10231 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10232 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10234 else
10235 ld_shlibs=no
10240 dgux*)
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_shlibpath_var=no
10246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10247 # support. Future versions do this automatically, but an explicit c++rt0.o
10248 # does not break anything, and helps significantly (at the cost of a little
10249 # extra space).
10250 freebsd2.2*)
10251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10252 hardcode_libdir_flag_spec='-R$libdir'
10253 hardcode_direct=yes
10254 hardcode_shlibpath_var=no
10257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10258 freebsd2.*)
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10266 freebsd* | dragonfly*)
10267 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10268 hardcode_libdir_flag_spec='-R$libdir'
10269 hardcode_direct=yes
10270 hardcode_shlibpath_var=no
10273 hpux9*)
10274 if test "$GCC" = yes; then
10275 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10276 else
10277 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 hardcode_direct=yes
10283 # hardcode_minus_L: Not really in the search PATH,
10284 # but as the default location of the library.
10285 hardcode_minus_L=yes
10286 export_dynamic_flag_spec='${wl}-E'
10289 hpux10*)
10290 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10291 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10292 else
10293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10295 if test "$with_gnu_ld" = no; then
10296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10297 hardcode_libdir_flag_spec_ld='+b $libdir'
10298 hardcode_libdir_separator=:
10299 hardcode_direct=yes
10300 hardcode_direct_absolute=yes
10301 export_dynamic_flag_spec='${wl}-E'
10302 # hardcode_minus_L: Not really in the search PATH,
10303 # but as the default location of the library.
10304 hardcode_minus_L=yes
10308 hpux11*)
10309 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10310 case $host_cpu in
10311 hppa*64*)
10312 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 ia64*)
10315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10320 esac
10321 else
10322 case $host_cpu in
10323 hppa*64*)
10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 ia64*)
10327 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10331 # Older versions of the 11.00 compiler do not understand -b yet
10332 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10334 $as_echo_n "checking if $CC understands -b... " >&6; }
10335 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_prog_compiler__b=no
10339 save_LDFLAGS="$LDFLAGS"
10340 LDFLAGS="$LDFLAGS -b"
10341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10343 # The linker can only warn and ignore the option if not recognized
10344 # So say no if there are warnings
10345 if test -s conftest.err; then
10346 # Append any errors to the config.log.
10347 cat conftest.err 1>&5
10348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10350 if diff conftest.exp conftest.er2 >/dev/null; then
10351 lt_cv_prog_compiler__b=yes
10353 else
10354 lt_cv_prog_compiler__b=yes
10357 $RM -r conftest*
10358 LDFLAGS="$save_LDFLAGS"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10362 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10364 if test x"$lt_cv_prog_compiler__b" = xyes; then
10365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10366 else
10367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10371 esac
10373 if test "$with_gnu_ld" = no; then
10374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10375 hardcode_libdir_separator=:
10377 case $host_cpu in
10378 hppa*64*|ia64*)
10379 hardcode_direct=no
10380 hardcode_shlibpath_var=no
10383 hardcode_direct=yes
10384 hardcode_direct_absolute=yes
10385 export_dynamic_flag_spec='${wl}-E'
10387 # hardcode_minus_L: Not really in the search PATH,
10388 # but as the default location of the library.
10389 hardcode_minus_L=yes
10391 esac
10395 irix5* | irix6* | nonstopux*)
10396 if test "$GCC" = yes; then
10397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10398 # Try to use the -exported_symbol ld option, if it does not
10399 # work, assume that -exports_file does not work either and
10400 # implicitly export all symbols.
10401 save_LDFLAGS="$LDFLAGS"
10402 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int foo(void) {}
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"; then :
10408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS="$save_LDFLAGS"
10414 else
10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10418 archive_cmds_need_lc='no'
10419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 hardcode_libdir_separator=:
10421 inherit_rpath=yes
10422 link_all_deplibs=yes
10425 netbsd*)
10426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10428 else
10429 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10431 hardcode_libdir_flag_spec='-R$libdir'
10432 hardcode_direct=yes
10433 hardcode_shlibpath_var=no
10436 newsos6)
10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_direct=yes
10439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10440 hardcode_libdir_separator=:
10441 hardcode_shlibpath_var=no
10444 *nto* | *qnx*)
10447 openbsd*)
10448 if test -f /usr/libexec/ld.so; then
10449 hardcode_direct=yes
10450 hardcode_shlibpath_var=no
10451 hardcode_direct_absolute=yes
10452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10456 export_dynamic_flag_spec='${wl}-E'
10457 else
10458 case $host_os in
10459 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_libdir_flag_spec='-R$libdir'
10464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10467 esac
10469 else
10470 ld_shlibs=no
10474 os2*)
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_minus_L=yes
10477 allow_undefined_flag=unsupported
10478 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10479 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10482 osf3*)
10483 if test "$GCC" = yes; then
10484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10485 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10486 else
10487 allow_undefined_flag=' -expect_unresolved \*'
10488 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10490 archive_cmds_need_lc='no'
10491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10492 hardcode_libdir_separator=:
10495 osf4* | osf5*) # as osf3* with the addition of -msym flag
10496 if test "$GCC" = yes; then
10497 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10498 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 else
10501 allow_undefined_flag=' -expect_unresolved \*'
10502 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10503 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10504 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10506 # Both c and cxx compiler support -rpath directly
10507 hardcode_libdir_flag_spec='-rpath $libdir'
10509 archive_cmds_need_lc='no'
10510 hardcode_libdir_separator=:
10513 solaris*)
10514 no_undefined_flag=' -z defs'
10515 if test "$GCC" = yes; then
10516 wlarc='${wl}'
10517 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10519 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10520 else
10521 case `$CC -V 2>&1` in
10522 *"Compilers 5.0"*)
10523 wlarc=''
10524 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10529 wlarc='${wl}'
10530 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10534 esac
10536 hardcode_libdir_flag_spec='-R$libdir'
10537 hardcode_shlibpath_var=no
10538 case $host_os in
10539 solaris2.[0-5] | solaris2.[0-5].*) ;;
10541 # The compiler driver will combine and reorder linker options,
10542 # but understands `-z linker_flag'. GCC discards it without `$wl',
10543 # but is careful enough not to reorder.
10544 # Supported since Solaris 2.6 (maybe 2.5.1?)
10545 if test "$GCC" = yes; then
10546 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10547 else
10548 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10551 esac
10552 link_all_deplibs=yes
10555 sunos4*)
10556 if test "x$host_vendor" = xsequent; then
10557 # Use $CC to link under sequent, because it throws in some extra .o
10558 # files that make .init and .fini sections work.
10559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10560 else
10561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_libdir_flag_spec='-L$libdir'
10564 hardcode_direct=yes
10565 hardcode_minus_L=yes
10566 hardcode_shlibpath_var=no
10569 sysv4)
10570 case $host_vendor in
10571 sni)
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_direct=yes # is this really true???
10575 siemens)
10576 ## LD is ld it makes a PLAMLIB
10577 ## CC just makes a GrossModule.
10578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10579 reload_cmds='$CC -r -o $output$reload_objs'
10580 hardcode_direct=no
10582 motorola)
10583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10586 esac
10587 runpath_var='LD_RUN_PATH'
10588 hardcode_shlibpath_var=no
10591 sysv4.3*)
10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_shlibpath_var=no
10594 export_dynamic_flag_spec='-Bexport'
10597 sysv4*MP*)
10598 if test -d /usr/nec; then
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_shlibpath_var=no
10601 runpath_var=LD_RUN_PATH
10602 hardcode_runpath_var=yes
10603 ld_shlibs=yes
10607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10608 no_undefined_flag='${wl}-z,text'
10609 archive_cmds_need_lc=no
10610 hardcode_shlibpath_var=no
10611 runpath_var='LD_RUN_PATH'
10613 if test "$GCC" = yes; then
10614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 else
10617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 sysv5* | sco3.2v5* | sco5v6*)
10623 # Note: We can NOT use -z defs as we might desire, because we do not
10624 # link with -lc, and that would cause any symbols used from libc to
10625 # always be unresolved, which means just about no library would
10626 # ever link correctly. If we're not using GNU ld we use -z text
10627 # though, which does catch some bad symbols but isn't as heavy-handed
10628 # as -z defs.
10629 no_undefined_flag='${wl}-z,text'
10630 allow_undefined_flag='${wl}-z,nodefs'
10631 archive_cmds_need_lc=no
10632 hardcode_shlibpath_var=no
10633 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10634 hardcode_libdir_separator=':'
10635 link_all_deplibs=yes
10636 export_dynamic_flag_spec='${wl}-Bexport'
10637 runpath_var='LD_RUN_PATH'
10639 if test "$GCC" = yes; then
10640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 uts4*)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_shlibpath_var=no
10655 ld_shlibs=no
10657 esac
10659 if test x$host_vendor = xsni; then
10660 case $host in
10661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10662 export_dynamic_flag_spec='${wl}-Blargedynsym'
10664 esac
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10669 $as_echo "$ld_shlibs" >&6; }
10670 test "$ld_shlibs" = no && can_build_shared=no
10672 with_gnu_ld=$with_gnu_ld
10689 # Do we need to explicitly link libc?
10691 case "x$archive_cmds_need_lc" in
10692 x|xyes)
10693 # Assume -lc should be added
10694 archive_cmds_need_lc=yes
10696 if test "$enable_shared" = yes && test "$GCC" = yes; then
10697 case $archive_cmds in
10698 *'~'*)
10699 # FIXME: we may have to deal with multi-command sequences.
10701 '$CC '*)
10702 # Test whether the compiler implicitly links with -lc since on some
10703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10704 # to ld, don't add -lc before -lgcc.
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10706 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10707 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 $RM conftest*
10711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10714 (eval $ac_compile) 2>&5
10715 ac_status=$?
10716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717 test $ac_status = 0; } 2>conftest.err; then
10718 soname=conftest
10719 lib=conftest
10720 libobjs=conftest.$ac_objext
10721 deplibs=
10722 wl=$lt_prog_compiler_wl
10723 pic_flag=$lt_prog_compiler_pic
10724 compiler_flags=-v
10725 linker_flags=-v
10726 verstring=
10727 output_objdir=.
10728 libname=conftest
10729 lt_save_allow_undefined_flag=$allow_undefined_flag
10730 allow_undefined_flag=
10731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10732 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10733 ac_status=$?
10734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735 test $ac_status = 0; }
10736 then
10737 lt_cv_archive_cmds_need_lc=no
10738 else
10739 lt_cv_archive_cmds_need_lc=yes
10741 allow_undefined_flag=$lt_save_allow_undefined_flag
10742 else
10743 cat conftest.err 1>&5
10745 $RM conftest*
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10749 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10750 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10752 esac
10755 esac
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10916 if test "$GCC" = yes; then
10917 case $host_os in
10918 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10919 *) lt_awk_arg="/^libraries:/" ;;
10920 esac
10921 case $host_os in
10922 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10923 *) lt_sed_strip_eq="s,=/,/,g" ;;
10924 esac
10925 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10926 case $lt_search_path_spec in
10927 *\;*)
10928 # if the path contains ";" then we assume it to be the separator
10929 # otherwise default to the standard path separator (i.e. ":") - it is
10930 # assumed that no part of a normal pathname contains ";" but that should
10931 # okay in the real world where ";" in dirpaths is itself problematic.
10932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10937 esac
10938 # Ok, now we have the path, separated by spaces, we can step through it
10939 # and add multilib dir if necessary.
10940 lt_tmp_lt_search_path_spec=
10941 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10942 for lt_sys_path in $lt_search_path_spec; do
10943 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10945 else
10946 test -d "$lt_sys_path" && \
10947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10949 done
10950 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10951 BEGIN {RS=" "; FS="/|\n";} {
10952 lt_foo="";
10953 lt_count=0;
10954 for (lt_i = NF; lt_i > 0; lt_i--) {
10955 if ($lt_i != "" && $lt_i != ".") {
10956 if ($lt_i == "..") {
10957 lt_count++;
10958 } else {
10959 if (lt_count == 0) {
10960 lt_foo="/" $lt_i lt_foo;
10961 } else {
10962 lt_count--;
10967 if (lt_foo != "") { lt_freq[lt_foo]++; }
10968 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10970 # AWK program above erroneously prepends '/' to C:/dos/paths
10971 # for these hosts.
10972 case $host_os in
10973 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10974 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10975 esac
10976 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10977 else
10978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10980 library_names_spec=
10981 libname_spec='lib$name'
10982 soname_spec=
10983 shrext_cmds=".so"
10984 postinstall_cmds=
10985 postuninstall_cmds=
10986 finish_cmds=
10987 finish_eval=
10988 shlibpath_var=
10989 shlibpath_overrides_runpath=unknown
10990 version_type=none
10991 dynamic_linker="$host_os ld.so"
10992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10993 need_lib_prefix=unknown
10994 hardcode_into_libs=no
10996 # when you set need_version to no, make sure it does not cause -set_version
10997 # flags to be left without arguments
10998 need_version=unknown
11000 case $host_os in
11001 aix3*)
11002 version_type=linux
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11004 shlibpath_var=LIBPATH
11006 # AIX 3 has no versioning support, so we append a major version to the name.
11007 soname_spec='${libname}${release}${shared_ext}$major'
11010 aix[4-9]*)
11011 version_type=linux
11012 need_lib_prefix=no
11013 need_version=no
11014 hardcode_into_libs=yes
11015 if test "$host_cpu" = ia64; then
11016 # AIX 5 supports IA64
11017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 else
11020 # With GCC up to 2.95.x, collect2 would create an import file
11021 # for dependence libraries. The import file would start with
11022 # the line `#! .'. This would cause the generated library to
11023 # depend on `.', always an invalid library. This was fixed in
11024 # development snapshots of GCC prior to 3.0.
11025 case $host_os in
11026 aix4 | aix4.[01] | aix4.[01].*)
11027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11028 echo ' yes '
11029 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11031 else
11032 can_build_shared=no
11035 esac
11036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11037 # soname into executable. Probably we can add versioning support to
11038 # collect2, so additional links can be useful in future.
11039 if test "$aix_use_runtimelinking" = yes; then
11040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11041 # instead of lib<name>.a to let people know that these are not
11042 # typical AIX shared libraries.
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 else
11045 # We preserve .a as extension for shared libraries through AIX4.2
11046 # and later when we are not doing run time linking.
11047 library_names_spec='${libname}${release}.a $libname.a'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LIBPATH
11054 amigaos*)
11055 case $host_cpu in
11056 powerpc)
11057 # Since July 2007 AmigaOS4 officially supports .so libraries.
11058 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 m68k)
11062 library_names_spec='$libname.ixlibrary $libname.a'
11063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11064 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11066 esac
11069 beos*)
11070 library_names_spec='${libname}${shared_ext}'
11071 dynamic_linker="$host_os ld.so"
11072 shlibpath_var=LIBRARY_PATH
11075 bsdi[45]*)
11076 version_type=linux
11077 need_version=no
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11084 # the default ld.so.conf also contains /usr/contrib/lib and
11085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11086 # libtool to hard-code these into programs
11089 cygwin* | mingw* | pw32* | cegcc*)
11090 version_type=windows
11091 shrext_cmds=".dll"
11092 need_version=no
11093 need_lib_prefix=no
11095 case $GCC,$host_os in
11096 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11097 library_names_spec='$libname.dll.a'
11098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11099 postinstall_cmds='base_file=`basename \${file}`~
11100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11101 dldir=$destdir/`dirname \$dlpath`~
11102 test -d \$dldir || mkdir -p \$dldir~
11103 $install_prog $dir/$dlname \$dldir/$dlname~
11104 chmod a+x \$dldir/$dlname~
11105 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11106 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11109 dlpath=$dir/\$dldll~
11110 $RM \$dlpath'
11111 shlibpath_overrides_runpath=yes
11113 case $host_os in
11114 cygwin*)
11115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11120 mingw* | cegcc*)
11121 # MinGW DLLs use traditional 'lib' prefix
11122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124 pw32*)
11125 # pw32 DLLs use 'pw' prefix rather than 'lib'
11126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11128 esac
11132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11134 esac
11135 dynamic_linker='Win32 ld.exe'
11136 # FIXME: first we should search . and the directory the executable is in
11137 shlibpath_var=PATH
11140 darwin* | rhapsody*)
11141 dynamic_linker="$host_os dyld"
11142 version_type=darwin
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11146 soname_spec='${libname}${release}${major}$shared_ext'
11147 shlibpath_overrides_runpath=yes
11148 shlibpath_var=DYLD_LIBRARY_PATH
11149 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11151 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11155 dgux*)
11156 version_type=linux
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11164 freebsd* | dragonfly*)
11165 # DragonFly does not have aout. When/if they implement a new
11166 # versioning mechanism, adjust this.
11167 if test -x /usr/bin/objformat; then
11168 objformat=`/usr/bin/objformat`
11169 else
11170 case $host_os in
11171 freebsd[23].*) objformat=aout ;;
11172 *) objformat=elf ;;
11173 esac
11175 version_type=freebsd-$objformat
11176 case $version_type in
11177 freebsd-elf*)
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179 need_version=no
11180 need_lib_prefix=no
11182 freebsd-*)
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11184 need_version=yes
11186 esac
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_os in
11189 freebsd2.*)
11190 shlibpath_overrides_runpath=yes
11192 freebsd3.[01]* | freebsdelf3.[01]*)
11193 shlibpath_overrides_runpath=yes
11194 hardcode_into_libs=yes
11196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11198 shlibpath_overrides_runpath=no
11199 hardcode_into_libs=yes
11201 *) # from 4.6 on, and DragonFly
11202 shlibpath_overrides_runpath=yes
11203 hardcode_into_libs=yes
11205 esac
11208 gnu*)
11209 version_type=linux
11210 need_lib_prefix=no
11211 need_version=no
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 hardcode_into_libs=yes
11218 haiku*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 dynamic_linker="$host_os runtime_loader"
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 shlibpath_var=LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11228 hardcode_into_libs=yes
11231 hpux9* | hpux10* | hpux11*)
11232 # Give a soname corresponding to the major version so that dld.sl refuses to
11233 # link against other versions.
11234 version_type=sunos
11235 need_lib_prefix=no
11236 need_version=no
11237 case $host_cpu in
11238 ia64*)
11239 shrext_cmds='.so'
11240 hardcode_into_libs=yes
11241 dynamic_linker="$host_os dld.so"
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 if test "X$HPUX_IA64_MODE" = X32; then
11247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11248 else
11249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11253 hppa*64*)
11254 shrext_cmds='.sl'
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.sl"
11257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11265 shrext_cmds='.sl'
11266 dynamic_linker="$host_os dld.sl"
11267 shlibpath_var=SHLIB_PATH
11268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11272 esac
11273 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11274 postinstall_cmds='chmod 555 $lib'
11275 # or fails outright, so override atomically:
11276 install_override_mode=555
11279 interix[3-9]*)
11280 version_type=linux
11281 need_lib_prefix=no
11282 need_version=no
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=no
11288 hardcode_into_libs=yes
11291 irix5* | irix6* | nonstopux*)
11292 case $host_os in
11293 nonstopux*) version_type=nonstopux ;;
11295 if test "$lt_cv_prog_gnu_ld" = yes; then
11296 version_type=linux
11297 else
11298 version_type=irix
11299 fi ;;
11300 esac
11301 need_lib_prefix=no
11302 need_version=no
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 case $host_os in
11306 irix5* | nonstopux*)
11307 libsuff= shlibsuff=
11310 case $LD in # libtool.m4 will add one of these switches to LD
11311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11312 libsuff= shlibsuff= libmagic=32-bit;;
11313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11314 libsuff=32 shlibsuff=N32 libmagic=N32;;
11315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11317 *) libsuff= shlibsuff= libmagic=never-match;;
11318 esac
11320 esac
11321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11322 shlibpath_overrides_runpath=no
11323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11325 hardcode_into_libs=yes
11328 # No shared lib support for Linux oldld, aout, or coff.
11329 linux*oldld* | linux*aout* | linux*coff*)
11330 dynamic_linker=no
11333 # This must be Linux ELF.
11334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=no
11344 # Some binutils ld are patched to set DT_RUNPATH
11345 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 lt_cv_shlibpath_overrides_runpath=no
11349 save_LDFLAGS=$LDFLAGS
11350 save_libdir=$libdir
11351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11357 main ()
11361 return 0;
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11366 lt_cv_shlibpath_overrides_runpath=yes
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LDFLAGS=$save_LDFLAGS
11372 libdir=$save_libdir
11376 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11378 # This implies no fast_install, which is unacceptable.
11379 # Some rework will be needed to allow for fast_install
11380 # before this can be enabled.
11381 hardcode_into_libs=yes
11383 # Append ld.so.conf contents to the search path
11384 if test -f /etc/ld.so.conf; then
11385 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11389 # We used to test for /lib/ld.so.1 and disable shared libraries on
11390 # powerpc, because MkLinux only supported shared libraries with the
11391 # GNU dynamic linker. Since this was broken with cross compilers,
11392 # most powerpc-linux boxes support dynamic linking these days and
11393 # people can always --disable-shared, the test was removed, and we
11394 # assume the GNU/Linux dynamic linker is in use.
11395 dynamic_linker='GNU/Linux ld.so'
11398 netbsd*)
11399 version_type=sunos
11400 need_lib_prefix=no
11401 need_version=no
11402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11405 dynamic_linker='NetBSD (a.out) ld.so'
11406 else
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 dynamic_linker='NetBSD ld.elf_so'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11416 newsos6)
11417 version_type=linux
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11423 *nto* | *qnx*)
11424 version_type=qnx
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=no
11431 hardcode_into_libs=yes
11432 dynamic_linker='ldqnx.so'
11435 openbsd*)
11436 version_type=sunos
11437 sys_lib_dlsearch_path_spec="/usr/lib"
11438 need_lib_prefix=no
11439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11440 case $host_os in
11441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11442 *) need_version=no ;;
11443 esac
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11448 case $host_os in
11449 openbsd2.[89] | openbsd2.[89].*)
11450 shlibpath_overrides_runpath=no
11453 shlibpath_overrides_runpath=yes
11455 esac
11456 else
11457 shlibpath_overrides_runpath=yes
11461 os2*)
11462 libname_spec='$name'
11463 shrext_cmds=".dll"
11464 need_lib_prefix=no
11465 library_names_spec='$libname${shared_ext} $libname.a'
11466 dynamic_linker='OS/2 ld.exe'
11467 shlibpath_var=LIBPATH
11470 osf3* | osf4* | osf5*)
11471 version_type=osf
11472 need_lib_prefix=no
11473 need_version=no
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11481 rdos*)
11482 dynamic_linker=no
11485 solaris*)
11486 version_type=linux
11487 need_lib_prefix=no
11488 need_version=no
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11494 # ldd complains unless libraries are executable
11495 postinstall_cmds='chmod +x $lib'
11498 sunos4*)
11499 version_type=sunos
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 if test "$with_gnu_ld" = yes; then
11505 need_lib_prefix=no
11507 need_version=yes
11510 sysv4 | sysv4.3*)
11511 version_type=linux
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 case $host_vendor in
11516 sni)
11517 shlibpath_overrides_runpath=no
11518 need_lib_prefix=no
11519 runpath_var=LD_RUN_PATH
11521 siemens)
11522 need_lib_prefix=no
11524 motorola)
11525 need_lib_prefix=no
11526 need_version=no
11527 shlibpath_overrides_runpath=no
11528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11530 esac
11533 sysv4*MP*)
11534 if test -d /usr/nec ;then
11535 version_type=linux
11536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11537 soname_spec='$libname${shared_ext}.$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11543 version_type=freebsd-elf
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 if test "$with_gnu_ld" = yes; then
11552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11553 else
11554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11555 case $host_os in
11556 sco3.2v5*)
11557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11559 esac
11561 sys_lib_dlsearch_path_spec='/usr/lib'
11564 tpf*)
11565 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11566 version_type=linux
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=no
11572 hardcode_into_libs=yes
11575 uts4*)
11576 version_type=linux
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11583 dynamic_linker=no
11585 esac
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11587 $as_echo "$dynamic_linker" >&6; }
11588 test "$dynamic_linker" = no && can_build_shared=no
11590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11591 if test "$GCC" = yes; then
11592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11599 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11695 hardcode_action=
11696 if test -n "$hardcode_libdir_flag_spec" ||
11697 test -n "$runpath_var" ||
11698 test "X$hardcode_automatic" = "Xyes" ; then
11700 # We can hardcode non-existent directories.
11701 if test "$hardcode_direct" != no &&
11702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11703 # have to relink, otherwise we might link with an installed library
11704 # when we should be linking with a yet-to-be-installed one
11705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11706 test "$hardcode_minus_L" != no; then
11707 # Linking always hardcodes the temporary library directory.
11708 hardcode_action=relink
11709 else
11710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11711 hardcode_action=immediate
11713 else
11714 # We cannot hardcode anything, or else we can only hardcode existing
11715 # directories.
11716 hardcode_action=unsupported
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11719 $as_echo "$hardcode_action" >&6; }
11721 if test "$hardcode_action" = relink ||
11722 test "$inherit_rpath" = yes; then
11723 # Fast installation is not supported
11724 enable_fast_install=no
11725 elif test "$shlibpath_overrides_runpath" = yes ||
11726 test "$enable_shared" = no; then
11727 # Fast installation is not necessary
11728 enable_fast_install=needless
11736 if test "x$enable_dlopen" != xyes; then
11737 enable_dlopen=unknown
11738 enable_dlopen_self=unknown
11739 enable_dlopen_self_static=unknown
11740 else
11741 lt_cv_dlopen=no
11742 lt_cv_dlopen_libs=
11744 case $host_os in
11745 beos*)
11746 lt_cv_dlopen="load_add_on"
11747 lt_cv_dlopen_libs=
11748 lt_cv_dlopen_self=yes
11751 mingw* | pw32* | cegcc*)
11752 lt_cv_dlopen="LoadLibrary"
11753 lt_cv_dlopen_libs=
11756 cygwin*)
11757 lt_cv_dlopen="dlopen"
11758 lt_cv_dlopen_libs=
11761 darwin*)
11762 # if libdl is installed we need to link against it
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 ac_check_lib_save_LIBS=$LIBS
11769 LIBS="-ldl $LIBS"
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11773 /* Override any GCC internal prototype to avoid an error.
11774 Use char because int might match the return type of a GCC
11775 builtin and then its argument prototype would still apply. */
11776 #ifdef __cplusplus
11777 extern "C"
11778 #endif
11779 char dlopen ();
11781 main ()
11783 return dlopen ();
11785 return 0;
11787 _ACEOF
11788 if ac_fn_c_try_link "$LINENO"; then :
11789 ac_cv_lib_dl_dlopen=yes
11790 else
11791 ac_cv_lib_dl_dlopen=no
11793 rm -f core conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11799 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11801 else
11803 lt_cv_dlopen="dyld"
11804 lt_cv_dlopen_libs=
11805 lt_cv_dlopen_self=yes
11812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11813 if test "x$ac_cv_func_shl_load" = x""yes; then :
11814 lt_cv_dlopen="shl_load"
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11817 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-ldld $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char shl_load ();
11834 main ()
11836 return shl_load ();
11838 return 0;
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 ac_cv_lib_dld_shl_load=yes
11843 else
11844 ac_cv_lib_dld_shl_load=no
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11852 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11854 else
11855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11856 if test "x$ac_cv_func_dlopen" = x""yes; then :
11857 lt_cv_dlopen="dlopen"
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldl $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char dlopen ();
11877 main ()
11879 return dlopen ();
11881 return 0;
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dl_dlopen=yes
11886 else
11887 ac_cv_lib_dl_dlopen=no
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897 else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11899 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-lsvld $LIBS"
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 /* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11911 #ifdef __cplusplus
11912 extern "C"
11913 #endif
11914 char dlopen ();
11916 main ()
11918 return dlopen ();
11920 return 0;
11922 _ACEOF
11923 if ac_fn_c_try_link "$LINENO"; then :
11924 ac_cv_lib_svld_dlopen=yes
11925 else
11926 ac_cv_lib_svld_dlopen=no
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11934 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-ldld $LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char dld_link ();
11955 main ()
11957 return dld_link ();
11959 return 0;
11961 _ACEOF
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_lib_dld_dld_link=yes
11964 else
11965 ac_cv_lib_dld_dld_link=no
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11972 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11973 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11974 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11993 esac
11995 if test "x$lt_cv_dlopen" != xno; then
11996 enable_dlopen=yes
11997 else
11998 enable_dlopen=no
12001 case $lt_cv_dlopen in
12002 dlopen)
12003 save_CPPFLAGS="$CPPFLAGS"
12004 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12006 save_LDFLAGS="$LDFLAGS"
12007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12009 save_LIBS="$LIBS"
12010 LIBS="$lt_cv_dlopen_libs $LIBS"
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12013 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12014 if test "${lt_cv_dlopen_self+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test "$cross_compiling" = yes; then :
12018 lt_cv_dlopen_self=cross
12019 else
12020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12021 lt_status=$lt_dlunknown
12022 cat > conftest.$ac_ext <<_LT_EOF
12023 #line 12023 "configure"
12024 #include "confdefs.h"
12026 #if HAVE_DLFCN_H
12027 #include <dlfcn.h>
12028 #endif
12030 #include <stdio.h>
12032 #ifdef RTLD_GLOBAL
12033 # define LT_DLGLOBAL RTLD_GLOBAL
12034 #else
12035 # ifdef DL_GLOBAL
12036 # define LT_DLGLOBAL DL_GLOBAL
12037 # else
12038 # define LT_DLGLOBAL 0
12039 # endif
12040 #endif
12042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12043 find out it does not work in some platform. */
12044 #ifndef LT_DLLAZY_OR_NOW
12045 # ifdef RTLD_LAZY
12046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12047 # else
12048 # ifdef DL_LAZY
12049 # define LT_DLLAZY_OR_NOW DL_LAZY
12050 # else
12051 # ifdef RTLD_NOW
12052 # define LT_DLLAZY_OR_NOW RTLD_NOW
12053 # else
12054 # ifdef DL_NOW
12055 # define LT_DLLAZY_OR_NOW DL_NOW
12056 # else
12057 # define LT_DLLAZY_OR_NOW 0
12058 # endif
12059 # endif
12060 # endif
12061 # endif
12062 #endif
12064 /* When -fvisbility=hidden is used, assume the code has been annotated
12065 correspondingly for the symbols needed. */
12066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12067 void fnord () __attribute__((visibility("default")));
12068 #endif
12070 void fnord () { int i=42; }
12071 int main ()
12073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12074 int status = $lt_dlunknown;
12076 if (self)
12078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12079 else
12081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12082 else puts (dlerror ());
12084 /* dlclose (self); */
12086 else
12087 puts (dlerror ());
12089 return status;
12091 _LT_EOF
12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12093 (eval $ac_link) 2>&5
12094 ac_status=$?
12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12097 (./conftest; exit; ) >&5 2>/dev/null
12098 lt_status=$?
12099 case x$lt_status in
12100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12103 esac
12104 else :
12105 # compilation failed
12106 lt_cv_dlopen_self=no
12109 rm -fr conftest*
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12114 $as_echo "$lt_cv_dlopen_self" >&6; }
12116 if test "x$lt_cv_dlopen_self" = xyes; then
12117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12119 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12120 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 if test "$cross_compiling" = yes; then :
12124 lt_cv_dlopen_self_static=cross
12125 else
12126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12127 lt_status=$lt_dlunknown
12128 cat > conftest.$ac_ext <<_LT_EOF
12129 #line 12129 "configure"
12130 #include "confdefs.h"
12132 #if HAVE_DLFCN_H
12133 #include <dlfcn.h>
12134 #endif
12136 #include <stdio.h>
12138 #ifdef RTLD_GLOBAL
12139 # define LT_DLGLOBAL RTLD_GLOBAL
12140 #else
12141 # ifdef DL_GLOBAL
12142 # define LT_DLGLOBAL DL_GLOBAL
12143 # else
12144 # define LT_DLGLOBAL 0
12145 # endif
12146 #endif
12148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12149 find out it does not work in some platform. */
12150 #ifndef LT_DLLAZY_OR_NOW
12151 # ifdef RTLD_LAZY
12152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12153 # else
12154 # ifdef DL_LAZY
12155 # define LT_DLLAZY_OR_NOW DL_LAZY
12156 # else
12157 # ifdef RTLD_NOW
12158 # define LT_DLLAZY_OR_NOW RTLD_NOW
12159 # else
12160 # ifdef DL_NOW
12161 # define LT_DLLAZY_OR_NOW DL_NOW
12162 # else
12163 # define LT_DLLAZY_OR_NOW 0
12164 # endif
12165 # endif
12166 # endif
12167 # endif
12168 #endif
12170 /* When -fvisbility=hidden is used, assume the code has been annotated
12171 correspondingly for the symbols needed. */
12172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12173 void fnord () __attribute__((visibility("default")));
12174 #endif
12176 void fnord () { int i=42; }
12177 int main ()
12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180 int status = $lt_dlunknown;
12182 if (self)
12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12185 else
12187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12188 else puts (dlerror ());
12190 /* dlclose (self); */
12192 else
12193 puts (dlerror ());
12195 return status;
12197 _LT_EOF
12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199 (eval $ac_link) 2>&5
12200 ac_status=$?
12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12203 (./conftest; exit; ) >&5 2>/dev/null
12204 lt_status=$?
12205 case x$lt_status in
12206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12209 esac
12210 else :
12211 # compilation failed
12212 lt_cv_dlopen_self_static=no
12215 rm -fr conftest*
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12220 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12223 CPPFLAGS="$save_CPPFLAGS"
12224 LDFLAGS="$save_LDFLAGS"
12225 LIBS="$save_LIBS"
12227 esac
12229 case $lt_cv_dlopen_self in
12230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12231 *) enable_dlopen_self=unknown ;;
12232 esac
12234 case $lt_cv_dlopen_self_static in
12235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12236 *) enable_dlopen_self_static=unknown ;;
12237 esac
12256 striplib=
12257 old_striplib=
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12259 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264 $as_echo "yes" >&6; }
12265 else
12266 # FIXME - insert some real tests, host_os isn't really good enough
12267 case $host_os in
12268 darwin*)
12269 if test -n "$STRIP" ; then
12270 striplib="$STRIP -x"
12271 old_striplib="$STRIP -S"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12283 esac
12297 # Report which library types will actually be built
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12299 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12301 $as_echo "$can_build_shared" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12304 $as_echo_n "checking whether to build shared libraries... " >&6; }
12305 test "$can_build_shared" = "no" && enable_shared=no
12307 # On AIX, shared libraries and static libraries use the same namespace, and
12308 # are all built from PIC.
12309 case $host_os in
12310 aix3*)
12311 test "$enable_shared" = yes && enable_static=no
12312 if test -n "$RANLIB"; then
12313 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12314 postinstall_cmds='$RANLIB $lib'
12318 aix[4-9]*)
12319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12320 test "$enable_shared" = yes && enable_static=no
12323 esac
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12325 $as_echo "$enable_shared" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12328 $as_echo_n "checking whether to build static libraries... " >&6; }
12329 # Make sure either enable_shared or enable_static is yes.
12330 test "$enable_shared" = yes || enable_static=yes
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12332 $as_echo "$enable_static" >&6; }
12338 ac_ext=c
12339 ac_cpp='$CPP $CPPFLAGS'
12340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 CC="$lt_save_CC"
12346 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12347 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12348 (test "X$CXX" != "Xg++"))) ; then
12349 ac_ext=cpp
12350 ac_cpp='$CXXCPP $CPPFLAGS'
12351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12355 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12356 if test -z "$CXXCPP"; then
12357 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 # Double quotes because CXXCPP needs to be expanded
12361 for CXXCPP in "$CXX -E" "/lib/cpp"
12363 ac_preproc_ok=false
12364 for ac_cxx_preproc_warn_flag in '' yes
12366 # Use a header file that comes with gcc, so configuring glibc
12367 # with a fresh cross-compiler works.
12368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 # <limits.h> exists even on freestanding compilers.
12370 # On the NeXT, cc -E runs the code through the compiler's parser,
12371 # not just through cpp. "Syntax error" is here to catch this case.
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379 Syntax error
12380 _ACEOF
12381 if ac_fn_cxx_try_cpp "$LINENO"; then :
12383 else
12384 # Broken: fails on valid input.
12385 continue
12387 rm -f conftest.err conftest.$ac_ext
12389 # OK, works on sane cases. Now check whether nonexistent headers
12390 # can be detected and how.
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <ac_nonexistent.h>
12394 _ACEOF
12395 if ac_fn_cxx_try_cpp "$LINENO"; then :
12396 # Broken: success on invalid input.
12397 continue
12398 else
12399 # Passes both tests.
12400 ac_preproc_ok=:
12401 break
12403 rm -f conftest.err conftest.$ac_ext
12405 done
12406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12407 rm -f conftest.err conftest.$ac_ext
12408 if $ac_preproc_ok; then :
12409 break
12412 done
12413 ac_cv_prog_CXXCPP=$CXXCPP
12416 CXXCPP=$ac_cv_prog_CXXCPP
12417 else
12418 ac_cv_prog_CXXCPP=$CXXCPP
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12421 $as_echo "$CXXCPP" >&6; }
12422 ac_preproc_ok=false
12423 for ac_cxx_preproc_warn_flag in '' yes
12425 # Use a header file that comes with gcc, so configuring glibc
12426 # with a fresh cross-compiler works.
12427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 # <limits.h> exists even on freestanding compilers.
12429 # On the NeXT, cc -E runs the code through the compiler's parser,
12430 # not just through cpp. "Syntax error" is here to catch this case.
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 #ifdef __STDC__
12434 # include <limits.h>
12435 #else
12436 # include <assert.h>
12437 #endif
12438 Syntax error
12439 _ACEOF
12440 if ac_fn_cxx_try_cpp "$LINENO"; then :
12442 else
12443 # Broken: fails on valid input.
12444 continue
12446 rm -f conftest.err conftest.$ac_ext
12448 # OK, works on sane cases. Now check whether nonexistent headers
12449 # can be detected and how.
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 #include <ac_nonexistent.h>
12453 _ACEOF
12454 if ac_fn_cxx_try_cpp "$LINENO"; then :
12455 # Broken: success on invalid input.
12456 continue
12457 else
12458 # Passes both tests.
12459 ac_preproc_ok=:
12460 break
12462 rm -f conftest.err conftest.$ac_ext
12464 done
12465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12466 rm -f conftest.err conftest.$ac_ext
12467 if $ac_preproc_ok; then :
12469 else
12470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12472 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12473 See \`config.log' for more details." "$LINENO" 5; }
12476 ac_ext=c
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12482 else
12483 _lt_caught_CXX_error=yes
12486 ac_ext=cpp
12487 ac_cpp='$CXXCPP $CPPFLAGS'
12488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12492 archive_cmds_need_lc_CXX=no
12493 allow_undefined_flag_CXX=
12494 always_export_symbols_CXX=no
12495 archive_expsym_cmds_CXX=
12496 compiler_needs_object_CXX=no
12497 export_dynamic_flag_spec_CXX=
12498 hardcode_direct_CXX=no
12499 hardcode_direct_absolute_CXX=no
12500 hardcode_libdir_flag_spec_CXX=
12501 hardcode_libdir_flag_spec_ld_CXX=
12502 hardcode_libdir_separator_CXX=
12503 hardcode_minus_L_CXX=no
12504 hardcode_shlibpath_var_CXX=unsupported
12505 hardcode_automatic_CXX=no
12506 inherit_rpath_CXX=no
12507 module_cmds_CXX=
12508 module_expsym_cmds_CXX=
12509 link_all_deplibs_CXX=unknown
12510 old_archive_cmds_CXX=$old_archive_cmds
12511 reload_flag_CXX=$reload_flag
12512 reload_cmds_CXX=$reload_cmds
12513 no_undefined_flag_CXX=
12514 whole_archive_flag_spec_CXX=
12515 enable_shared_with_static_runtimes_CXX=no
12517 # Source file extension for C++ test sources.
12518 ac_ext=cpp
12520 # Object file extension for compiled C++ test sources.
12521 objext=o
12522 objext_CXX=$objext
12524 # No sense in running all these tests if we already determined that
12525 # the CXX compiler isn't working. Some variables (like enable_shared)
12526 # are currently assumed to apply to all compilers on this platform,
12527 # and will be corrupted by setting them based on a non-working compiler.
12528 if test "$_lt_caught_CXX_error" != yes; then
12529 # Code to be used in simple compile tests
12530 lt_simple_compile_test_code="int some_variable = 0;"
12532 # Code to be used in simple link tests
12533 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12542 # If no C compiler was specified, use CC.
12543 LTCC=${LTCC-"$CC"}
12545 # If no C compiler flags were specified, use CFLAGS.
12546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12548 # Allow CC to be a program name with arguments.
12549 compiler=$CC
12552 # save warnings/boilerplate of simple test code
12553 ac_outfile=conftest.$ac_objext
12554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12556 _lt_compiler_boilerplate=`cat conftest.err`
12557 $RM conftest*
12559 ac_outfile=conftest.$ac_objext
12560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12562 _lt_linker_boilerplate=`cat conftest.err`
12563 $RM -r conftest*
12566 # Allow CC to be a program name with arguments.
12567 lt_save_CC=$CC
12568 lt_save_LD=$LD
12569 lt_save_GCC=$GCC
12570 GCC=$GXX
12571 lt_save_with_gnu_ld=$with_gnu_ld
12572 lt_save_path_LD=$lt_cv_path_LD
12573 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12574 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12575 else
12576 $as_unset lt_cv_prog_gnu_ld
12578 if test -n "${lt_cv_path_LDCXX+set}"; then
12579 lt_cv_path_LD=$lt_cv_path_LDCXX
12580 else
12581 $as_unset lt_cv_path_LD
12583 test -z "${LDCXX+set}" || LD=$LDCXX
12584 CC=${CXX-"c++"}
12585 compiler=$CC
12586 compiler_CXX=$CC
12587 for cc_temp in $compiler""; do
12588 case $cc_temp in
12589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12591 \-*) ;;
12592 *) break;;
12593 esac
12594 done
12595 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12598 if test -n "$compiler"; then
12599 # We don't want -fno-exception when compiling C++ code, so set the
12600 # no_builtin_flag separately
12601 if test "$GXX" = yes; then
12602 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12603 else
12604 lt_prog_compiler_no_builtin_flag_CXX=
12607 if test "$GXX" = yes; then
12608 # Set up default GNU C++ configuration
12612 # Check whether --with-gnu-ld was given.
12613 if test "${with_gnu_ld+set}" = set; then :
12614 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12615 else
12616 with_gnu_ld=no
12619 ac_prog=ld
12620 if test "$GCC" = yes; then
12621 # Check if gcc -print-prog-name=ld gives a path.
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12623 $as_echo_n "checking for ld used by $CC... " >&6; }
12624 case $host in
12625 *-*-mingw*)
12626 # gcc leaves a trailing carriage return which upsets mingw
12627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12630 esac
12631 case $ac_prog in
12632 # Accept absolute paths.
12633 [\\/]* | ?:[\\/]*)
12634 re_direlt='/[^/][^/]*/\.\./'
12635 # Canonicalize the pathname of ld
12636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12639 done
12640 test -z "$LD" && LD="$ac_prog"
12643 # If it fails, then pretend we aren't using GCC.
12644 ac_prog=ld
12647 # If it is relative, then search for the first ld in PATH.
12648 with_gnu_ld=unknown
12650 esac
12651 elif test "$with_gnu_ld" = yes; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12653 $as_echo_n "checking for GNU ld... " >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12656 $as_echo_n "checking for non-GNU ld... " >&6; }
12658 if test "${lt_cv_path_LD+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test -z "$LD"; then
12662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12663 for ac_dir in $PATH; do
12664 IFS="$lt_save_ifs"
12665 test -z "$ac_dir" && ac_dir=.
12666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12667 lt_cv_path_LD="$ac_dir/$ac_prog"
12668 # Check to see if the program is GNU ld. I'd rather use --version,
12669 # but apparently some variants of GNU ld only accept -v.
12670 # Break only if it was the GNU/non-GNU ld that we prefer.
12671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12672 *GNU* | *'with BFD'*)
12673 test "$with_gnu_ld" != no && break
12676 test "$with_gnu_ld" != yes && break
12678 esac
12680 done
12681 IFS="$lt_save_ifs"
12682 else
12683 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12687 LD="$lt_cv_path_LD"
12688 if test -n "$LD"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12690 $as_echo "$LD" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12695 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12698 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12702 case `$LD -v 2>&1 </dev/null` in
12703 *GNU* | *'with BFD'*)
12704 lt_cv_prog_gnu_ld=yes
12707 lt_cv_prog_gnu_ld=no
12709 esac
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12712 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12713 with_gnu_ld=$lt_cv_prog_gnu_ld
12721 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12722 # archiving commands below assume that GNU ld is being used.
12723 if test "$with_gnu_ld" = yes; then
12724 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12725 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'
12727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12730 # If archive_cmds runs LD, not CC, wlarc should be empty
12731 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12732 # investigate it a little bit more. (MM)
12733 wlarc='${wl}'
12735 # ancient GNU ld didn't support --whole-archive et. al.
12736 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12737 $GREP 'no-whole-archive' > /dev/null; then
12738 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12739 else
12740 whole_archive_flag_spec_CXX=
12742 else
12743 with_gnu_ld=no
12744 wlarc=
12746 # A generic and very simple default shared library creation
12747 # command for GNU C++ for the case where it uses the native
12748 # linker, instead of GNU ld. If possible, this setting should
12749 # overridden to take advantage of the native linker features on
12750 # the platform it is being used on.
12751 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12759 else
12760 GXX=no
12761 with_gnu_ld=no
12762 wlarc=
12765 # PORTME: fill in a description of your system's C++ link characteristics
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12768 ld_shlibs_CXX=yes
12769 case $host_os in
12770 aix3*)
12771 # FIXME: insert proper C++ library support
12772 ld_shlibs_CXX=no
12774 aix[4-9]*)
12775 if test "$host_cpu" = ia64; then
12776 # On IA64, the linker does run time linking by default, so we don't
12777 # have to do anything special.
12778 aix_use_runtimelinking=no
12779 exp_sym_flag='-Bexport'
12780 no_entry_flag=""
12781 else
12782 aix_use_runtimelinking=no
12784 # Test if we are trying to use run time linking or normal
12785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12786 # need to do runtime linking.
12787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12788 for ld_flag in $LDFLAGS; do
12789 case $ld_flag in
12790 *-brtl*)
12791 aix_use_runtimelinking=yes
12792 break
12794 esac
12795 done
12797 esac
12799 exp_sym_flag='-bexport'
12800 no_entry_flag='-bnoentry'
12803 # When large executables or shared objects are built, AIX ld can
12804 # have problems creating the table of contents. If linking a library
12805 # or program results in "error TOC overflow" add -mminimal-toc to
12806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12809 archive_cmds_CXX=''
12810 hardcode_direct_CXX=yes
12811 hardcode_direct_absolute_CXX=yes
12812 hardcode_libdir_separator_CXX=':'
12813 link_all_deplibs_CXX=yes
12814 file_list_spec_CXX='${wl}-f,'
12816 if test "$GXX" = yes; then
12817 case $host_os in aix4.[012]|aix4.[012].*)
12818 # We only want to do this on AIX 4.2 and lower, the check
12819 # below for broken collect2 doesn't work under 4.3+
12820 collect2name=`${CC} -print-prog-name=collect2`
12821 if test -f "$collect2name" &&
12822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12823 then
12824 # We have reworked collect2
12826 else
12827 # We have old collect2
12828 hardcode_direct_CXX=unsupported
12829 # It fails to find uninstalled libraries when the uninstalled
12830 # path is not listed in the libpath. Setting hardcode_minus_L
12831 # to unsupported forces relinking
12832 hardcode_minus_L_CXX=yes
12833 hardcode_libdir_flag_spec_CXX='-L$libdir'
12834 hardcode_libdir_separator_CXX=
12836 esac
12837 shared_flag='-shared'
12838 if test "$aix_use_runtimelinking" = yes; then
12839 shared_flag="$shared_flag "'${wl}-G'
12841 else
12842 # not using gcc
12843 if test "$host_cpu" = ia64; then
12844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12845 # chokes on -Wl,-G. The following line is correct:
12846 shared_flag='-G'
12847 else
12848 if test "$aix_use_runtimelinking" = yes; then
12849 shared_flag='${wl}-G'
12850 else
12851 shared_flag='${wl}-bM:SRE'
12856 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12857 # It seems that -bexpall does not export symbols beginning with
12858 # underscore (_), so it is better to generate a list of symbols to
12859 # export.
12860 always_export_symbols_CXX=yes
12861 if test "$aix_use_runtimelinking" = yes; then
12862 # Warning - without using the other runtime loading flags (-brtl),
12863 # -berok will link without error, but may produce a broken library.
12864 allow_undefined_flag_CXX='-berok'
12865 # Determine the default libpath from the value encoded in an empty
12866 # executable.
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12871 main ()
12875 return 0;
12877 _ACEOF
12878 if ac_fn_cxx_try_link "$LINENO"; then :
12880 lt_aix_libpath_sed='
12881 /Import File Strings/,/^$/ {
12882 /^0/ {
12883 s/^0 *\(.*\)$/\1/
12887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12888 # Check for a 64-bit object if we didn't find anything.
12889 if test -z "$aix_libpath"; then
12890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12897 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12899 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12900 else
12901 if test "$host_cpu" = ia64; then
12902 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12903 allow_undefined_flag_CXX="-z nodefs"
12904 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12905 else
12906 # Determine the default libpath from the value encoded in an
12907 # empty executable.
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12912 main ()
12916 return 0;
12918 _ACEOF
12919 if ac_fn_cxx_try_link "$LINENO"; then :
12921 lt_aix_libpath_sed='
12922 /Import File Strings/,/^$/ {
12923 /^0/ {
12924 s/^0 *\(.*\)$/\1/
12928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12929 # Check for a 64-bit object if we didn't find anything.
12930 if test -z "$aix_libpath"; then
12931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12939 # Warning - without using the other run time loading flags,
12940 # -berok will link without error, but may produce a broken library.
12941 no_undefined_flag_CXX=' ${wl}-bernotok'
12942 allow_undefined_flag_CXX=' ${wl}-berok'
12943 if test "$with_gnu_ld" = yes; then
12944 # We only use this code for GNU lds that support --whole-archive.
12945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12946 else
12947 # Exported symbols can be pulled into shared objects from archives
12948 whole_archive_flag_spec_CXX='$convenience'
12950 archive_cmds_need_lc_CXX=yes
12951 # This is similar to how AIX traditionally builds its shared
12952 # libraries.
12953 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12958 beos*)
12959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12960 allow_undefined_flag_CXX=unsupported
12961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12962 # support --undefined. This deserves some investigation. FIXME
12963 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 else
12965 ld_shlibs_CXX=no
12969 chorus*)
12970 case $cc_basename in
12972 # FIXME: insert proper C++ library support
12973 ld_shlibs_CXX=no
12975 esac
12978 cygwin* | mingw* | pw32* | cegcc*)
12979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12980 # as there is no search path for DLLs.
12981 hardcode_libdir_flag_spec_CXX='-L$libdir'
12982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12983 allow_undefined_flag_CXX=unsupported
12984 always_export_symbols_CXX=no
12985 enable_shared_with_static_runtimes_CXX=yes
12987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12988 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12989 # If the export-symbols file already is a .def file (1st line
12990 # is EXPORTS), use it as is; otherwise, prepend...
12991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12992 cp $export_symbols $output_objdir/$soname.def;
12993 else
12994 echo EXPORTS > $output_objdir/$soname.def;
12995 cat $export_symbols >> $output_objdir/$soname.def;
12997 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12998 else
12999 ld_shlibs_CXX=no
13002 darwin* | rhapsody*)
13005 archive_cmds_need_lc_CXX=no
13006 hardcode_direct_CXX=no
13007 hardcode_automatic_CXX=yes
13008 hardcode_shlibpath_var_CXX=unsupported
13009 if test "$lt_cv_ld_force_load" = "yes"; then
13010 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13011 else
13012 whole_archive_flag_spec_CXX=''
13014 link_all_deplibs_CXX=yes
13015 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13016 case $cc_basename in
13017 ifort*) _lt_dar_can_shared=yes ;;
13018 *) _lt_dar_can_shared=$GCC ;;
13019 esac
13020 if test "$_lt_dar_can_shared" = "yes"; then
13021 output_verbose_link_cmd=func_echo_all
13022 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13023 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13024 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13025 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13026 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13027 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13028 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13031 else
13032 ld_shlibs_CXX=no
13037 dgux*)
13038 case $cc_basename in
13039 ec++*)
13040 # FIXME: insert proper C++ library support
13041 ld_shlibs_CXX=no
13043 ghcx*)
13044 # Green Hills C++ Compiler
13045 # FIXME: insert proper C++ library support
13046 ld_shlibs_CXX=no
13049 # FIXME: insert proper C++ library support
13050 ld_shlibs_CXX=no
13052 esac
13055 freebsd2.*)
13056 # C++ shared libraries reported to be fairly broken before
13057 # switch to ELF
13058 ld_shlibs_CXX=no
13061 freebsd-elf*)
13062 archive_cmds_need_lc_CXX=no
13065 freebsd* | dragonfly*)
13066 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13067 # conventions
13068 ld_shlibs_CXX=yes
13071 gnu*)
13074 haiku*)
13075 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13076 link_all_deplibs_CXX=yes
13079 hpux9*)
13080 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13081 hardcode_libdir_separator_CXX=:
13082 export_dynamic_flag_spec_CXX='${wl}-E'
13083 hardcode_direct_CXX=yes
13084 hardcode_minus_L_CXX=yes # Not in the search PATH,
13085 # but as the default
13086 # location of the library.
13088 case $cc_basename in
13089 CC*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13093 aCC*)
13094 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13099 # There doesn't appear to be a way to prevent this compiler from
13100 # explicitly linking system object files so we need to strip them
13101 # from the output so that they don't get included in the library
13102 # dependencies.
13103 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13106 if test "$GXX" = yes; then
13107 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13108 else
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13113 esac
13116 hpux10*|hpux11*)
13117 if test $with_gnu_ld = no; then
13118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13119 hardcode_libdir_separator_CXX=:
13121 case $host_cpu in
13122 hppa*64*|ia64*)
13125 export_dynamic_flag_spec_CXX='${wl}-E'
13127 esac
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13131 hardcode_direct_CXX=no
13132 hardcode_shlibpath_var_CXX=no
13135 hardcode_direct_CXX=yes
13136 hardcode_direct_absolute_CXX=yes
13137 hardcode_minus_L_CXX=yes # Not in the search PATH,
13138 # but as the default
13139 # location of the library.
13141 esac
13143 case $cc_basename in
13144 CC*)
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13148 aCC*)
13149 case $host_cpu in
13150 hppa*64*)
13151 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13153 ia64*)
13154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13159 esac
13160 # Commands to make compiler produce verbose output that lists
13161 # what "hidden" libraries, object files and flags are used when
13162 # linking a shared library.
13164 # There doesn't appear to be a way to prevent this compiler from
13165 # explicitly linking system object files so we need to strip them
13166 # from the output so that they don't get included in the library
13167 # dependencies.
13168 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13171 if test "$GXX" = yes; then
13172 if test $with_gnu_ld = no; then
13173 case $host_cpu in
13174 hppa*64*)
13175 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177 ia64*)
13178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 esac
13185 else
13186 # FIXME: insert proper C++ library support
13187 ld_shlibs_CXX=no
13190 esac
13193 interix[3-9]*)
13194 hardcode_direct_CXX=no
13195 hardcode_shlibpath_var_CXX=no
13196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13199 # Instead, shared libraries are loaded at an image base (0x10000000 by
13200 # default) and relocated if they conflict, which is a slow very memory
13201 # consuming and fragmenting process. To avoid this, we pick a random,
13202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13204 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13205 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13207 irix5* | irix6*)
13208 case $cc_basename in
13209 CC*)
13210 # SGI C++
13211 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13213 # Archives containing C++ object files must be created using
13214 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13215 # necessary to make sure instantiated templates are included
13216 # in the archive.
13217 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13220 if test "$GXX" = yes; then
13221 if test "$with_gnu_ld" = no; then
13222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13223 else
13224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13227 link_all_deplibs_CXX=yes
13229 esac
13230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13231 hardcode_libdir_separator_CXX=:
13232 inherit_rpath_CXX=yes
13235 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13236 case $cc_basename in
13237 KCC*)
13238 # Kuck and Associates, Inc. (KAI) C++ Compiler
13240 # KCC will only create a shared library if the output file
13241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13242 # to its proper name (with version) after linking.
13243 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13244 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13245 # Commands to make compiler produce verbose output that lists
13246 # what "hidden" libraries, object files and flags are used when
13247 # linking a shared library.
13249 # There doesn't appear to be a way to prevent this compiler from
13250 # explicitly linking system object files so we need to strip them
13251 # from the output so that they don't get included in the library
13252 # dependencies.
13253 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13255 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13258 # Archives containing C++ object files must be created using
13259 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13260 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13262 icpc* | ecpc* )
13263 # Intel C++
13264 with_gnu_ld=yes
13265 # version 8.0 and above of icpc choke on multiply defined symbols
13266 # if we add $predep_objects and $postdep_objects, however 7.1 and
13267 # earlier do not add the objects themselves.
13268 case `$CC -V 2>&1` in
13269 *"Version 7."*)
13270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13273 *) # Version 8.0 or newer
13274 tmp_idyn=
13275 case $host_cpu in
13276 ia64*) tmp_idyn=' -i_dynamic';;
13277 esac
13278 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13281 esac
13282 archive_cmds_need_lc_CXX=no
13283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13287 pgCC* | pgcpp*)
13288 # Portland Group C++ compiler
13289 case `$CC -V` in
13290 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13291 prelink_cmds_CXX='tpldir=Template.dir~
13292 rm -rf $tpldir~
13293 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13294 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13295 old_archive_cmds_CXX='tpldir=Template.dir~
13296 rm -rf $tpldir~
13297 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13298 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13299 $RANLIB $oldlib'
13300 archive_cmds_CXX='tpldir=Template.dir~
13301 rm -rf $tpldir~
13302 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13303 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13304 archive_expsym_cmds_CXX='tpldir=Template.dir~
13305 rm -rf $tpldir~
13306 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13307 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13309 *) # Version 6 and above use weak symbols
13310 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13311 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13313 esac
13315 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13317 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13319 cxx*)
13320 # Compaq C++
13321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13324 runpath_var=LD_RUN_PATH
13325 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13326 hardcode_libdir_separator_CXX=:
13328 # Commands to make compiler produce verbose output that lists
13329 # what "hidden" libraries, object files and flags are used when
13330 # linking a shared library.
13332 # There doesn't appear to be a way to prevent this compiler from
13333 # explicitly linking system object files so we need to strip them
13334 # from the output so that they don't get included in the library
13335 # dependencies.
13336 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13338 xl* | mpixl* | bgxl*)
13339 # IBM XL 8.0 on PPC, with GNU ld
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13342 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343 if test "x$supports_anon_versioning" = xyes; then
13344 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13346 echo "local: *; };" >> $output_objdir/$libname.ver~
13347 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13351 case `$CC -V 2>&1 | sed 5q` in
13352 *Sun\ C*)
13353 # Sun C++ 5.9
13354 no_undefined_flag_CXX=' -zdefs'
13355 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13357 hardcode_libdir_flag_spec_CXX='-R$libdir'
13358 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13359 compiler_needs_object_CXX=yes
13361 # Not sure whether something based on
13362 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13363 # would be better.
13364 output_verbose_link_cmd='func_echo_all'
13366 # Archives containing C++ object files must be created using
13367 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13368 # necessary to make sure instantiated templates are included
13369 # in the archive.
13370 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13372 esac
13374 esac
13377 lynxos*)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13382 m88k*)
13383 # FIXME: insert proper C++ library support
13384 ld_shlibs_CXX=no
13387 mvs*)
13388 case $cc_basename in
13389 cxx*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13394 # FIXME: insert proper C++ library support
13395 ld_shlibs_CXX=no
13397 esac
13400 netbsd*)
13401 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13402 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13403 wlarc=
13404 hardcode_libdir_flag_spec_CXX='-R$libdir'
13405 hardcode_direct_CXX=yes
13406 hardcode_shlibpath_var_CXX=no
13408 # Workaround some broken pre-1.5 toolchains
13409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13412 *nto* | *qnx*)
13413 ld_shlibs_CXX=yes
13416 openbsd2*)
13417 # C++ shared libraries are fairly broken
13418 ld_shlibs_CXX=no
13421 openbsd*)
13422 if test -f /usr/libexec/ld.so; then
13423 hardcode_direct_CXX=yes
13424 hardcode_shlibpath_var_CXX=no
13425 hardcode_direct_absolute_CXX=yes
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13430 export_dynamic_flag_spec_CXX='${wl}-E'
13431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13433 output_verbose_link_cmd=func_echo_all
13434 else
13435 ld_shlibs_CXX=no
13439 osf3* | osf4* | osf5*)
13440 case $cc_basename in
13441 KCC*)
13442 # Kuck and Associates, Inc. (KAI) C++ Compiler
13444 # KCC will only create a shared library if the output file
13445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13446 # to its proper name (with version) after linking.
13447 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450 hardcode_libdir_separator_CXX=:
13452 # Archives containing C++ object files must be created using
13453 # the KAI C++ compiler.
13454 case $host in
13455 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13456 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13457 esac
13459 RCC*)
13460 # Rational C++ 2.4.1
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13464 cxx*)
13465 case $host in
13466 osf3*)
13467 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13468 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13472 allow_undefined_flag_CXX=' -expect_unresolved \*'
13473 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13474 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13475 echo "-hidden">> $lib.exp~
13476 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13477 $RM $lib.exp'
13478 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13480 esac
13482 hardcode_libdir_separator_CXX=:
13484 # Commands to make compiler produce verbose output that lists
13485 # what "hidden" libraries, object files and flags are used when
13486 # linking a shared library.
13488 # There doesn't appear to be a way to prevent this compiler from
13489 # explicitly linking system object files so we need to strip them
13490 # from the output so that they don't get included in the library
13491 # dependencies.
13492 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13495 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13497 case $host in
13498 osf3*)
13499 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13502 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13504 esac
13506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13507 hardcode_libdir_separator_CXX=:
13509 # Commands to make compiler produce verbose output that lists
13510 # what "hidden" libraries, object files and flags are used when
13511 # linking a shared library.
13512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13514 else
13515 # FIXME: insert proper C++ library support
13516 ld_shlibs_CXX=no
13519 esac
13522 psos*)
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13527 sunos4*)
13528 case $cc_basename in
13529 CC*)
13530 # Sun C++ 4.x
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13534 lcc*)
13535 # Lucid
13536 # FIXME: insert proper C++ library support
13537 ld_shlibs_CXX=no
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13543 esac
13546 solaris*)
13547 case $cc_basename in
13548 CC*)
13549 # Sun C++ 4.2, 5.x and Centerline C++
13550 archive_cmds_need_lc_CXX=yes
13551 no_undefined_flag_CXX=' -zdefs'
13552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13556 hardcode_libdir_flag_spec_CXX='-R$libdir'
13557 hardcode_shlibpath_var_CXX=no
13558 case $host_os in
13559 solaris2.[0-5] | solaris2.[0-5].*) ;;
13561 # The compiler driver will combine and reorder linker options,
13562 # but understands `-z linker_flag'.
13563 # Supported since Solaris 2.6 (maybe 2.5.1?)
13564 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13566 esac
13567 link_all_deplibs_CXX=yes
13569 output_verbose_link_cmd='func_echo_all'
13571 # Archives containing C++ object files must be created using
13572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13573 # necessary to make sure instantiated templates are included
13574 # in the archive.
13575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13577 gcx*)
13578 # Green Hills C++ Compiler
13579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13581 # The C++ compiler must be used to create the archive.
13582 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13585 # GNU C++ compiler with Solaris linker
13586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13587 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13588 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13589 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13590 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13597 else
13598 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13599 # platform.
13600 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13607 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13610 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13611 case $host_os in
13612 solaris2.[0-5] | solaris2.[0-5].*) ;;
13614 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13616 esac
13619 esac
13622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13623 no_undefined_flag_CXX='${wl}-z,text'
13624 archive_cmds_need_lc_CXX=no
13625 hardcode_shlibpath_var_CXX=no
13626 runpath_var='LD_RUN_PATH'
13628 case $cc_basename in
13629 CC*)
13630 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 esac
13640 sysv5* | sco3.2v5* | sco5v6*)
13641 # Note: We can NOT use -z defs as we might desire, because we do not
13642 # link with -lc, and that would cause any symbols used from libc to
13643 # always be unresolved, which means just about no library would
13644 # ever link correctly. If we're not using GNU ld we use -z text
13645 # though, which does catch some bad symbols but isn't as heavy-handed
13646 # as -z defs.
13647 no_undefined_flag_CXX='${wl}-z,text'
13648 allow_undefined_flag_CXX='${wl}-z,nodefs'
13649 archive_cmds_need_lc_CXX=no
13650 hardcode_shlibpath_var_CXX=no
13651 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13652 hardcode_libdir_separator_CXX=':'
13653 link_all_deplibs_CXX=yes
13654 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13655 runpath_var='LD_RUN_PATH'
13657 case $cc_basename in
13658 CC*)
13659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13662 '"$old_archive_cmds_CXX"
13663 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13664 '"$reload_cmds_CXX"
13667 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 esac
13673 tandem*)
13674 case $cc_basename in
13675 NCC*)
13676 # NonStop-UX NCC 3.20
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13684 esac
13687 vxworks*)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13696 esac
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13699 $as_echo "$ld_shlibs_CXX" >&6; }
13700 test "$ld_shlibs_CXX" = no && can_build_shared=no
13702 GCC_CXX="$GXX"
13703 LD_CXX="$LD"
13705 ## CAVEAT EMPTOR:
13706 ## There is no encapsulation within the following macros, do not change
13707 ## the running order or otherwise move them around unless you know exactly
13708 ## what you are doing...
13709 # Dependencies to place before and after the object being linked:
13710 predep_objects_CXX=
13711 postdep_objects_CXX=
13712 predeps_CXX=
13713 postdeps_CXX=
13714 compiler_lib_search_path_CXX=
13716 cat > conftest.$ac_ext <<_LT_EOF
13717 class Foo
13719 public:
13720 Foo (void) { a = 0; }
13721 private:
13722 int a;
13724 _LT_EOF
13726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13727 (eval $ac_compile) 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13730 test $ac_status = 0; }; then
13731 # Parse the compiler output and extract the necessary
13732 # objects, libraries and library flags.
13734 # Sentinel used to keep track of whether or not we are before
13735 # the conftest object file.
13736 pre_test_object_deps_done=no
13738 for p in `eval "$output_verbose_link_cmd"`; do
13739 case $p in
13741 -L* | -R* | -l*)
13742 # Some compilers place space between "-{L,R}" and the path.
13743 # Remove the space.
13744 if test $p = "-L" ||
13745 test $p = "-R"; then
13746 prev=$p
13747 continue
13748 else
13749 prev=
13752 if test "$pre_test_object_deps_done" = no; then
13753 case $p in
13754 -L* | -R*)
13755 # Internal compiler library paths should come after those
13756 # provided the user. The postdeps already come after the
13757 # user supplied libs so there is no need to process them.
13758 if test -z "$compiler_lib_search_path_CXX"; then
13759 compiler_lib_search_path_CXX="${prev}${p}"
13760 else
13761 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13764 # The "-l" case would never come before the object being
13765 # linked, so don't bother handling this case.
13766 esac
13767 else
13768 if test -z "$postdeps_CXX"; then
13769 postdeps_CXX="${prev}${p}"
13770 else
13771 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13776 *.$objext)
13777 # This assumes that the test object file only shows up
13778 # once in the compiler output.
13779 if test "$p" = "conftest.$objext"; then
13780 pre_test_object_deps_done=yes
13781 continue
13784 if test "$pre_test_object_deps_done" = no; then
13785 if test -z "$predep_objects_CXX"; then
13786 predep_objects_CXX="$p"
13787 else
13788 predep_objects_CXX="$predep_objects_CXX $p"
13790 else
13791 if test -z "$postdep_objects_CXX"; then
13792 postdep_objects_CXX="$p"
13793 else
13794 postdep_objects_CXX="$postdep_objects_CXX $p"
13799 *) ;; # Ignore the rest.
13801 esac
13802 done
13804 # Clean up.
13805 rm -f a.out a.exe
13806 else
13807 echo "libtool.m4: error: problem compiling CXX test program"
13810 $RM -f confest.$objext
13812 # PORTME: override above test on systems where it is broken
13813 case $host_os in
13814 interix[3-9]*)
13815 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13816 # hack all around it, let's just trust "g++" to DTRT.
13817 predep_objects_CXX=
13818 postdep_objects_CXX=
13819 postdeps_CXX=
13822 linux*)
13823 case `$CC -V 2>&1 | sed 5q` in
13824 *Sun\ C*)
13825 # Sun C++ 5.9
13827 # The more standards-conforming stlport4 library is
13828 # incompatible with the Cstd library. Avoid specifying
13829 # it if it's in CXXFLAGS. Ignore libCrun as
13830 # -library=stlport4 depends on it.
13831 case " $CXX $CXXFLAGS " in
13832 *" -library=stlport4 "*)
13833 solaris_use_stlport4=yes
13835 esac
13837 if test "$solaris_use_stlport4" != yes; then
13838 postdeps_CXX='-library=Cstd -library=Crun'
13841 esac
13844 solaris*)
13845 case $cc_basename in
13846 CC*)
13847 # The more standards-conforming stlport4 library is
13848 # incompatible with the Cstd library. Avoid specifying
13849 # it if it's in CXXFLAGS. Ignore libCrun as
13850 # -library=stlport4 depends on it.
13851 case " $CXX $CXXFLAGS " in
13852 *" -library=stlport4 "*)
13853 solaris_use_stlport4=yes
13855 esac
13857 # Adding this requires a known-good setup of shared libraries for
13858 # Sun compiler versions before 5.6, else PIC objects from an old
13859 # archive will be linked into the output, leading to subtle bugs.
13860 if test "$solaris_use_stlport4" != yes; then
13861 postdeps_CXX='-library=Cstd -library=Crun'
13864 esac
13866 esac
13869 case " $postdeps_CXX " in
13870 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13871 esac
13872 compiler_lib_search_dirs_CXX=
13873 if test -n "${compiler_lib_search_path_CXX}"; then
13874 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13907 lt_prog_compiler_wl_CXX=
13908 lt_prog_compiler_pic_CXX=
13909 lt_prog_compiler_static_CXX=
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13914 # C++ specific cases for pic, static, wl, etc.
13915 if test "$GXX" = yes; then
13916 lt_prog_compiler_wl_CXX='-Wl,'
13917 lt_prog_compiler_static_CXX='-static'
13919 case $host_os in
13920 aix*)
13921 # All AIX code is PIC.
13922 if test "$host_cpu" = ia64; then
13923 # AIX 5 now supports IA64 processor
13924 lt_prog_compiler_static_CXX='-Bstatic'
13926 lt_prog_compiler_pic_CXX='-fPIC'
13929 amigaos*)
13930 case $host_cpu in
13931 powerpc)
13932 # see comment about AmigaOS4 .so support
13933 lt_prog_compiler_pic_CXX='-fPIC'
13935 m68k)
13936 # FIXME: we need at least 68020 code to build shared libraries, but
13937 # adding the `-m68020' flag to GCC prevents building anything better,
13938 # like `-m68040'.
13939 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13941 esac
13944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13945 # PIC is the default for these OSes.
13947 mingw* | cygwin* | os2* | pw32* | cegcc*)
13948 # This hack is so that the source file can tell whether it is being
13949 # built for inclusion in a dll (and should export symbols for example).
13950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13951 # (--disable-auto-import) libraries
13952 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13954 darwin* | rhapsody*)
13955 # PIC is the default on this platform
13956 # Common symbols not allowed in MH_DYLIB files
13957 lt_prog_compiler_pic_CXX='-fno-common'
13959 *djgpp*)
13960 # DJGPP does not support shared libraries at all
13961 lt_prog_compiler_pic_CXX=
13963 haiku*)
13964 # PIC is the default for Haiku.
13965 # The "-static" flag exists, but is broken.
13966 lt_prog_compiler_static_CXX=
13968 interix[3-9]*)
13969 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13970 # Instead, we relocate shared libraries at runtime.
13972 sysv4*MP*)
13973 if test -d /usr/nec; then
13974 lt_prog_compiler_pic_CXX=-Kconform_pic
13977 hpux*)
13978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13980 # sets the default TLS model and affects inlining.
13981 case $host_cpu in
13982 hppa*64*)
13985 lt_prog_compiler_pic_CXX='-fPIC'
13987 esac
13989 *qnx* | *nto*)
13990 # QNX uses GNU C++, but need to define -shared option too, otherwise
13991 # it will coredump.
13992 lt_prog_compiler_pic_CXX='-fPIC -shared'
13995 lt_prog_compiler_pic_CXX='-fPIC'
13997 esac
13998 else
13999 case $host_os in
14000 aix[4-9]*)
14001 # All AIX code is PIC.
14002 if test "$host_cpu" = ia64; then
14003 # AIX 5 now supports IA64 processor
14004 lt_prog_compiler_static_CXX='-Bstatic'
14005 else
14006 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14009 chorus*)
14010 case $cc_basename in
14011 cxch68*)
14012 # Green Hills C++ Compiler
14013 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14015 esac
14017 dgux*)
14018 case $cc_basename in
14019 ec++*)
14020 lt_prog_compiler_pic_CXX='-KPIC'
14022 ghcx*)
14023 # Green Hills C++ Compiler
14024 lt_prog_compiler_pic_CXX='-pic'
14028 esac
14030 freebsd* | dragonfly*)
14031 # FreeBSD uses GNU C++
14033 hpux9* | hpux10* | hpux11*)
14034 case $cc_basename in
14035 CC*)
14036 lt_prog_compiler_wl_CXX='-Wl,'
14037 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14038 if test "$host_cpu" != ia64; then
14039 lt_prog_compiler_pic_CXX='+Z'
14042 aCC*)
14043 lt_prog_compiler_wl_CXX='-Wl,'
14044 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14045 case $host_cpu in
14046 hppa*64*|ia64*)
14047 # +Z the default
14050 lt_prog_compiler_pic_CXX='+Z'
14052 esac
14056 esac
14058 interix*)
14059 # This is c89, which is MS Visual C++ (no shared libs)
14060 # Anyone wants to do a port?
14062 irix5* | irix6* | nonstopux*)
14063 case $cc_basename in
14064 CC*)
14065 lt_prog_compiler_wl_CXX='-Wl,'
14066 lt_prog_compiler_static_CXX='-non_shared'
14067 # CC pic flag -KPIC is the default.
14071 esac
14073 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14074 case $cc_basename in
14075 KCC*)
14076 # KAI C++ Compiler
14077 lt_prog_compiler_wl_CXX='--backend -Wl,'
14078 lt_prog_compiler_pic_CXX='-fPIC'
14080 ecpc* )
14081 # old Intel C++ for x86_64 which still supported -KPIC.
14082 lt_prog_compiler_wl_CXX='-Wl,'
14083 lt_prog_compiler_pic_CXX='-KPIC'
14084 lt_prog_compiler_static_CXX='-static'
14086 icpc* )
14087 # Intel C++, used to be incompatible with GCC.
14088 # ICC 10 doesn't accept -KPIC any more.
14089 lt_prog_compiler_wl_CXX='-Wl,'
14090 lt_prog_compiler_pic_CXX='-fPIC'
14091 lt_prog_compiler_static_CXX='-static'
14093 pgCC* | pgcpp*)
14094 # Portland Group C++ compiler
14095 lt_prog_compiler_wl_CXX='-Wl,'
14096 lt_prog_compiler_pic_CXX='-fpic'
14097 lt_prog_compiler_static_CXX='-Bstatic'
14099 cxx*)
14100 # Compaq C++
14101 # Make sure the PIC flag is empty. It appears that all Alpha
14102 # Linux and Compaq Tru64 Unix objects are PIC.
14103 lt_prog_compiler_pic_CXX=
14104 lt_prog_compiler_static_CXX='-non_shared'
14106 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14107 # IBM XL 8.0, 9.0 on PPC and BlueGene
14108 lt_prog_compiler_wl_CXX='-Wl,'
14109 lt_prog_compiler_pic_CXX='-qpic'
14110 lt_prog_compiler_static_CXX='-qstaticlink'
14113 case `$CC -V 2>&1 | sed 5q` in
14114 *Sun\ C*)
14115 # Sun C++ 5.9
14116 lt_prog_compiler_pic_CXX='-KPIC'
14117 lt_prog_compiler_static_CXX='-Bstatic'
14118 lt_prog_compiler_wl_CXX='-Qoption ld '
14120 esac
14122 esac
14124 lynxos*)
14126 m88k*)
14128 mvs*)
14129 case $cc_basename in
14130 cxx*)
14131 lt_prog_compiler_pic_CXX='-W c,exportall'
14135 esac
14137 netbsd*)
14139 *qnx* | *nto*)
14140 # QNX uses GNU C++, but need to define -shared option too, otherwise
14141 # it will coredump.
14142 lt_prog_compiler_pic_CXX='-fPIC -shared'
14144 osf3* | osf4* | osf5*)
14145 case $cc_basename in
14146 KCC*)
14147 lt_prog_compiler_wl_CXX='--backend -Wl,'
14149 RCC*)
14150 # Rational C++ 2.4.1
14151 lt_prog_compiler_pic_CXX='-pic'
14153 cxx*)
14154 # Digital/Compaq C++
14155 lt_prog_compiler_wl_CXX='-Wl,'
14156 # Make sure the PIC flag is empty. It appears that all Alpha
14157 # Linux and Compaq Tru64 Unix objects are PIC.
14158 lt_prog_compiler_pic_CXX=
14159 lt_prog_compiler_static_CXX='-non_shared'
14163 esac
14165 psos*)
14167 solaris*)
14168 case $cc_basename in
14169 CC*)
14170 # Sun C++ 4.2, 5.x and Centerline C++
14171 lt_prog_compiler_pic_CXX='-KPIC'
14172 lt_prog_compiler_static_CXX='-Bstatic'
14173 lt_prog_compiler_wl_CXX='-Qoption ld '
14175 gcx*)
14176 # Green Hills C++ Compiler
14177 lt_prog_compiler_pic_CXX='-PIC'
14181 esac
14183 sunos4*)
14184 case $cc_basename in
14185 CC*)
14186 # Sun C++ 4.x
14187 lt_prog_compiler_pic_CXX='-pic'
14188 lt_prog_compiler_static_CXX='-Bstatic'
14190 lcc*)
14191 # Lucid
14192 lt_prog_compiler_pic_CXX='-pic'
14196 esac
14198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14199 case $cc_basename in
14200 CC*)
14201 lt_prog_compiler_wl_CXX='-Wl,'
14202 lt_prog_compiler_pic_CXX='-KPIC'
14203 lt_prog_compiler_static_CXX='-Bstatic'
14205 esac
14207 tandem*)
14208 case $cc_basename in
14209 NCC*)
14210 # NonStop-UX NCC 3.20
14211 lt_prog_compiler_pic_CXX='-KPIC'
14215 esac
14217 vxworks*)
14220 lt_prog_compiler_can_build_shared_CXX=no
14222 esac
14225 case $host_os in
14226 # For platforms which do not support PIC, -DPIC is meaningless:
14227 *djgpp*)
14228 lt_prog_compiler_pic_CXX=
14231 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14233 esac
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14235 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14240 # Check to make sure the PIC flag actually works.
14242 if test -n "$lt_prog_compiler_pic_CXX"; then
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14245 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 lt_cv_prog_compiler_pic_works_CXX=no
14249 ac_outfile=conftest.$ac_objext
14250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14251 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14252 # Insert the option either (1) after the last *FLAGS variable, or
14253 # (2) before a word containing "conftest.", or (3) at the end.
14254 # Note that $ac_compile itself does not contain backslashes and begins
14255 # with a dollar sign (not a hyphen), so the echo should work correctly.
14256 # The option is referenced via a variable to avoid confusing sed.
14257 lt_compile=`echo "$ac_compile" | $SED \
14258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14260 -e 's:$: $lt_compiler_flag:'`
14261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14262 (eval "$lt_compile" 2>conftest.err)
14263 ac_status=$?
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 if (exit $ac_status) && test -s "$ac_outfile"; then
14267 # The compiler can only warn and ignore the option if not recognized
14268 # So say no if there are warnings other than the usual output.
14269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14272 lt_cv_prog_compiler_pic_works_CXX=yes
14275 $RM conftest*
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14279 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14281 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14282 case $lt_prog_compiler_pic_CXX in
14283 "" | " "*) ;;
14284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14285 esac
14286 else
14287 lt_prog_compiler_pic_CXX=
14288 lt_prog_compiler_can_build_shared_CXX=no
14296 # Check to make sure the static flag actually works.
14298 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14301 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 lt_cv_prog_compiler_static_works_CXX=no
14305 save_LDFLAGS="$LDFLAGS"
14306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14309 # The linker can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 if test -s conftest.err; then
14312 # Append any errors to the config.log.
14313 cat conftest.err 1>&5
14314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14316 if diff conftest.exp conftest.er2 >/dev/null; then
14317 lt_cv_prog_compiler_static_works_CXX=yes
14319 else
14320 lt_cv_prog_compiler_static_works_CXX=yes
14323 $RM -r conftest*
14324 LDFLAGS="$save_LDFLAGS"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14328 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14330 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14332 else
14333 lt_prog_compiler_static_CXX=
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 lt_cv_prog_compiler_c_o_CXX=no
14345 $RM -r conftest 2>/dev/null
14346 mkdir conftest
14347 cd conftest
14348 mkdir out
14349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351 lt_compiler_flag="-o out/conftest2.$ac_objext"
14352 # Insert the option either (1) after the last *FLAGS variable, or
14353 # (2) before a word containing "conftest.", or (3) at the end.
14354 # Note that $ac_compile itself does not contain backslashes and begins
14355 # with a dollar sign (not a hyphen), so the echo should work correctly.
14356 lt_compile=`echo "$ac_compile" | $SED \
14357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359 -e 's:$: $lt_compiler_flag:'`
14360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14361 (eval "$lt_compile" 2>out/conftest.err)
14362 ac_status=$?
14363 cat out/conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14366 then
14367 # The compiler can only warn and ignore the option if not recognized
14368 # So say no if there are warnings
14369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14372 lt_cv_prog_compiler_c_o_CXX=yes
14375 chmod u+w . 2>&5
14376 $RM conftest*
14377 # SGI C++ compiler will create directory out/ii_files/ for
14378 # template instantiation
14379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14380 $RM out/* && rmdir out
14381 cd ..
14382 $RM -r conftest
14383 $RM conftest*
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14392 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14393 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 lt_cv_prog_compiler_c_o_CXX=no
14397 $RM -r conftest 2>/dev/null
14398 mkdir conftest
14399 cd conftest
14400 mkdir out
14401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403 lt_compiler_flag="-o out/conftest2.$ac_objext"
14404 # Insert the option either (1) after the last *FLAGS variable, or
14405 # (2) before a word containing "conftest.", or (3) at the end.
14406 # Note that $ac_compile itself does not contain backslashes and begins
14407 # with a dollar sign (not a hyphen), so the echo should work correctly.
14408 lt_compile=`echo "$ac_compile" | $SED \
14409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14411 -e 's:$: $lt_compiler_flag:'`
14412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14413 (eval "$lt_compile" 2>out/conftest.err)
14414 ac_status=$?
14415 cat out/conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14418 then
14419 # The compiler can only warn and ignore the option if not recognized
14420 # So say no if there are warnings
14421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14424 lt_cv_prog_compiler_c_o_CXX=yes
14427 chmod u+w . 2>&5
14428 $RM conftest*
14429 # SGI C++ compiler will create directory out/ii_files/ for
14430 # template instantiation
14431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14432 $RM out/* && rmdir out
14433 cd ..
14434 $RM -r conftest
14435 $RM conftest*
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14439 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14444 hard_links="nottested"
14445 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14446 # do not overwrite the value of need_locks provided by the user
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14448 $as_echo_n "checking if we can lock with hard links... " >&6; }
14449 hard_links=yes
14450 $RM conftest*
14451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14452 touch conftest.a
14453 ln conftest.a conftest.b 2>&5 || hard_links=no
14454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14456 $as_echo "$hard_links" >&6; }
14457 if test "$hard_links" = no; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14460 need_locks=warn
14462 else
14463 need_locks=no
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14469 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14471 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14472 case $host_os in
14473 aix[4-9]*)
14474 # If we're using GNU nm, then we don't want the "-C" option.
14475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14476 # Also, AIX nm treats weak defined symbols like other global defined
14477 # symbols, whereas GNU nm marks them as "W".
14478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14479 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14480 else
14481 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14484 pw32*)
14485 export_symbols_cmds_CXX="$ltdll_cmds"
14487 cygwin* | mingw* | cegcc*)
14488 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 esac
14494 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497 $as_echo "$ld_shlibs_CXX" >&6; }
14498 test "$ld_shlibs_CXX" = no && can_build_shared=no
14500 with_gnu_ld_CXX=$with_gnu_ld
14508 # Do we need to explicitly link libc?
14510 case "x$archive_cmds_need_lc_CXX" in
14511 x|xyes)
14512 # Assume -lc should be added
14513 archive_cmds_need_lc_CXX=yes
14515 if test "$enable_shared" = yes && test "$GCC" = yes; then
14516 case $archive_cmds_CXX in
14517 *'~'*)
14518 # FIXME: we may have to deal with multi-command sequences.
14520 '$CC '*)
14521 # Test whether the compiler implicitly links with -lc since on some
14522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14523 # to ld, don't add -lc before -lgcc.
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14526 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 $RM conftest*
14530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14533 (eval $ac_compile) 2>&5
14534 ac_status=$?
14535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536 test $ac_status = 0; } 2>conftest.err; then
14537 soname=conftest
14538 lib=conftest
14539 libobjs=conftest.$ac_objext
14540 deplibs=
14541 wl=$lt_prog_compiler_wl_CXX
14542 pic_flag=$lt_prog_compiler_pic_CXX
14543 compiler_flags=-v
14544 linker_flags=-v
14545 verstring=
14546 output_objdir=.
14547 libname=conftest
14548 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14549 allow_undefined_flag_CXX=
14550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14551 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; }
14555 then
14556 lt_cv_archive_cmds_need_lc_CXX=no
14557 else
14558 lt_cv_archive_cmds_need_lc_CXX=yes
14560 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14561 else
14562 cat conftest.err 1>&5
14564 $RM conftest*
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14568 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14569 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14571 esac
14574 esac
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14642 library_names_spec=
14643 libname_spec='lib$name'
14644 soname_spec=
14645 shrext_cmds=".so"
14646 postinstall_cmds=
14647 postuninstall_cmds=
14648 finish_cmds=
14649 finish_eval=
14650 shlibpath_var=
14651 shlibpath_overrides_runpath=unknown
14652 version_type=none
14653 dynamic_linker="$host_os ld.so"
14654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14655 need_lib_prefix=unknown
14656 hardcode_into_libs=no
14658 # when you set need_version to no, make sure it does not cause -set_version
14659 # flags to be left without arguments
14660 need_version=unknown
14662 case $host_os in
14663 aix3*)
14664 version_type=linux
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14666 shlibpath_var=LIBPATH
14668 # AIX 3 has no versioning support, so we append a major version to the name.
14669 soname_spec='${libname}${release}${shared_ext}$major'
14672 aix[4-9]*)
14673 version_type=linux
14674 need_lib_prefix=no
14675 need_version=no
14676 hardcode_into_libs=yes
14677 if test "$host_cpu" = ia64; then
14678 # AIX 5 supports IA64
14679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 else
14682 # With GCC up to 2.95.x, collect2 would create an import file
14683 # for dependence libraries. The import file would start with
14684 # the line `#! .'. This would cause the generated library to
14685 # depend on `.', always an invalid library. This was fixed in
14686 # development snapshots of GCC prior to 3.0.
14687 case $host_os in
14688 aix4 | aix4.[01] | aix4.[01].*)
14689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14690 echo ' yes '
14691 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14693 else
14694 can_build_shared=no
14697 esac
14698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14699 # soname into executable. Probably we can add versioning support to
14700 # collect2, so additional links can be useful in future.
14701 if test "$aix_use_runtimelinking" = yes; then
14702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14703 # instead of lib<name>.a to let people know that these are not
14704 # typical AIX shared libraries.
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 else
14707 # We preserve .a as extension for shared libraries through AIX4.2
14708 # and later when we are not doing run time linking.
14709 library_names_spec='${libname}${release}.a $libname.a'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LIBPATH
14716 amigaos*)
14717 case $host_cpu in
14718 powerpc)
14719 # Since July 2007 AmigaOS4 officially supports .so libraries.
14720 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 m68k)
14724 library_names_spec='$libname.ixlibrary $libname.a'
14725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14726 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14728 esac
14731 beos*)
14732 library_names_spec='${libname}${shared_ext}'
14733 dynamic_linker="$host_os ld.so"
14734 shlibpath_var=LIBRARY_PATH
14737 bsdi[45]*)
14738 version_type=linux
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14746 # the default ld.so.conf also contains /usr/contrib/lib and
14747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14748 # libtool to hard-code these into programs
14751 cygwin* | mingw* | pw32* | cegcc*)
14752 version_type=windows
14753 shrext_cmds=".dll"
14754 need_version=no
14755 need_lib_prefix=no
14757 case $GCC,$host_os in
14758 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14759 library_names_spec='$libname.dll.a'
14760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14761 postinstall_cmds='base_file=`basename \${file}`~
14762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14763 dldir=$destdir/`dirname \$dlpath`~
14764 test -d \$dldir || mkdir -p \$dldir~
14765 $install_prog $dir/$dlname \$dldir/$dlname~
14766 chmod a+x \$dldir/$dlname~
14767 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14768 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14771 dlpath=$dir/\$dldll~
14772 $RM \$dlpath'
14773 shlibpath_overrides_runpath=yes
14775 case $host_os in
14776 cygwin*)
14777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14781 mingw* | cegcc*)
14782 # MinGW DLLs use traditional 'lib' prefix
14783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785 pw32*)
14786 # pw32 DLLs use 'pw' prefix rather than 'lib'
14787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14789 esac
14793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14795 esac
14796 dynamic_linker='Win32 ld.exe'
14797 # FIXME: first we should search . and the directory the executable is in
14798 shlibpath_var=PATH
14801 darwin* | rhapsody*)
14802 dynamic_linker="$host_os dyld"
14803 version_type=darwin
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14807 soname_spec='${libname}${release}${major}$shared_ext'
14808 shlibpath_overrides_runpath=yes
14809 shlibpath_var=DYLD_LIBRARY_PATH
14810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14812 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14815 dgux*)
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14824 freebsd* | dragonfly*)
14825 # DragonFly does not have aout. When/if they implement a new
14826 # versioning mechanism, adjust this.
14827 if test -x /usr/bin/objformat; then
14828 objformat=`/usr/bin/objformat`
14829 else
14830 case $host_os in
14831 freebsd[23].*) objformat=aout ;;
14832 *) objformat=elf ;;
14833 esac
14835 version_type=freebsd-$objformat
14836 case $version_type in
14837 freebsd-elf*)
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14839 need_version=no
14840 need_lib_prefix=no
14842 freebsd-*)
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14844 need_version=yes
14846 esac
14847 shlibpath_var=LD_LIBRARY_PATH
14848 case $host_os in
14849 freebsd2.*)
14850 shlibpath_overrides_runpath=yes
14852 freebsd3.[01]* | freebsdelf3.[01]*)
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14858 shlibpath_overrides_runpath=no
14859 hardcode_into_libs=yes
14861 *) # from 4.6 on, and DragonFly
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14865 esac
14868 gnu*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 hardcode_into_libs=yes
14878 haiku*)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 dynamic_linker="$host_os runtime_loader"
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14887 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14888 hardcode_into_libs=yes
14891 hpux9* | hpux10* | hpux11*)
14892 # Give a soname corresponding to the major version so that dld.sl refuses to
14893 # link against other versions.
14894 version_type=sunos
14895 need_lib_prefix=no
14896 need_version=no
14897 case $host_cpu in
14898 ia64*)
14899 shrext_cmds='.so'
14900 hardcode_into_libs=yes
14901 dynamic_linker="$host_os dld.so"
14902 shlibpath_var=LD_LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 if test "X$HPUX_IA64_MODE" = X32; then
14907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14908 else
14909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14913 hppa*64*)
14914 shrext_cmds='.sl'
14915 hardcode_into_libs=yes
14916 dynamic_linker="$host_os dld.sl"
14917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14925 shrext_cmds='.sl'
14926 dynamic_linker="$host_os dld.sl"
14927 shlibpath_var=SHLIB_PATH
14928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14932 esac
14933 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14934 postinstall_cmds='chmod 555 $lib'
14935 # or fails outright, so override atomically:
14936 install_override_mode=555
14939 interix[3-9]*)
14940 version_type=linux
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 shlibpath_overrides_runpath=no
14948 hardcode_into_libs=yes
14951 irix5* | irix6* | nonstopux*)
14952 case $host_os in
14953 nonstopux*) version_type=nonstopux ;;
14955 if test "$lt_cv_prog_gnu_ld" = yes; then
14956 version_type=linux
14957 else
14958 version_type=irix
14959 fi ;;
14960 esac
14961 need_lib_prefix=no
14962 need_version=no
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14965 case $host_os in
14966 irix5* | nonstopux*)
14967 libsuff= shlibsuff=
14970 case $LD in # libtool.m4 will add one of these switches to LD
14971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14972 libsuff= shlibsuff= libmagic=32-bit;;
14973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14974 libsuff=32 shlibsuff=N32 libmagic=N32;;
14975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14977 *) libsuff= shlibsuff= libmagic=never-match;;
14978 esac
14980 esac
14981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14982 shlibpath_overrides_runpath=no
14983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14985 hardcode_into_libs=yes
14988 # No shared lib support for Linux oldld, aout, or coff.
14989 linux*oldld* | linux*aout* | linux*coff*)
14990 dynamic_linker=no
14993 # This must be Linux ELF.
14994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14995 version_type=linux
14996 need_lib_prefix=no
14997 need_version=no
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15001 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=no
15004 # Some binutils ld are patched to set DT_RUNPATH
15005 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 lt_cv_shlibpath_overrides_runpath=no
15009 save_LDFLAGS=$LDFLAGS
15010 save_libdir=$libdir
15011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15017 main ()
15021 return 0;
15023 _ACEOF
15024 if ac_fn_cxx_try_link "$LINENO"; then :
15025 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15026 lt_cv_shlibpath_overrides_runpath=yes
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LDFLAGS=$save_LDFLAGS
15032 libdir=$save_libdir
15036 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15038 # This implies no fast_install, which is unacceptable.
15039 # Some rework will be needed to allow for fast_install
15040 # before this can be enabled.
15041 hardcode_into_libs=yes
15043 # Append ld.so.conf contents to the search path
15044 if test -f /etc/ld.so.conf; then
15045 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15049 # We used to test for /lib/ld.so.1 and disable shared libraries on
15050 # powerpc, because MkLinux only supported shared libraries with the
15051 # GNU dynamic linker. Since this was broken with cross compilers,
15052 # most powerpc-linux boxes support dynamic linking these days and
15053 # people can always --disable-shared, the test was removed, and we
15054 # assume the GNU/Linux dynamic linker is in use.
15055 dynamic_linker='GNU/Linux ld.so'
15058 netbsd*)
15059 version_type=sunos
15060 need_lib_prefix=no
15061 need_version=no
15062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15065 dynamic_linker='NetBSD (a.out) ld.so'
15066 else
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 dynamic_linker='NetBSD ld.elf_so'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15076 newsos6)
15077 version_type=linux
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15083 *nto* | *qnx*)
15084 version_type=qnx
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=no
15091 hardcode_into_libs=yes
15092 dynamic_linker='ldqnx.so'
15095 openbsd*)
15096 version_type=sunos
15097 sys_lib_dlsearch_path_spec="/usr/lib"
15098 need_lib_prefix=no
15099 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15100 case $host_os in
15101 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15102 *) need_version=no ;;
15103 esac
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15108 case $host_os in
15109 openbsd2.[89] | openbsd2.[89].*)
15110 shlibpath_overrides_runpath=no
15113 shlibpath_overrides_runpath=yes
15115 esac
15116 else
15117 shlibpath_overrides_runpath=yes
15121 os2*)
15122 libname_spec='$name'
15123 shrext_cmds=".dll"
15124 need_lib_prefix=no
15125 library_names_spec='$libname${shared_ext} $libname.a'
15126 dynamic_linker='OS/2 ld.exe'
15127 shlibpath_var=LIBPATH
15130 osf3* | osf4* | osf5*)
15131 version_type=osf
15132 need_lib_prefix=no
15133 need_version=no
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15141 rdos*)
15142 dynamic_linker=no
15145 solaris*)
15146 version_type=linux
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 # ldd complains unless libraries are executable
15155 postinstall_cmds='chmod +x $lib'
15158 sunos4*)
15159 version_type=sunos
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 shlibpath_overrides_runpath=yes
15164 if test "$with_gnu_ld" = yes; then
15165 need_lib_prefix=no
15167 need_version=yes
15170 sysv4 | sysv4.3*)
15171 version_type=linux
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 case $host_vendor in
15176 sni)
15177 shlibpath_overrides_runpath=no
15178 need_lib_prefix=no
15179 runpath_var=LD_RUN_PATH
15181 siemens)
15182 need_lib_prefix=no
15184 motorola)
15185 need_lib_prefix=no
15186 need_version=no
15187 shlibpath_overrides_runpath=no
15188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15190 esac
15193 sysv4*MP*)
15194 if test -d /usr/nec ;then
15195 version_type=linux
15196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15197 soname_spec='$libname${shared_ext}.$major'
15198 shlibpath_var=LD_LIBRARY_PATH
15202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15203 version_type=freebsd-elf
15204 need_lib_prefix=no
15205 need_version=no
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes
15210 hardcode_into_libs=yes
15211 if test "$with_gnu_ld" = yes; then
15212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15213 else
15214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15215 case $host_os in
15216 sco3.2v5*)
15217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15219 esac
15221 sys_lib_dlsearch_path_spec='/usr/lib'
15224 tpf*)
15225 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15226 version_type=linux
15227 need_lib_prefix=no
15228 need_version=no
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=no
15232 hardcode_into_libs=yes
15235 uts4*)
15236 version_type=linux
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15243 dynamic_linker=no
15245 esac
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15247 $as_echo "$dynamic_linker" >&6; }
15248 test "$dynamic_linker" = no && can_build_shared=no
15250 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15251 if test "$GCC" = yes; then
15252 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15255 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15256 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15258 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15259 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15301 hardcode_action_CXX=
15302 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15303 test -n "$runpath_var_CXX" ||
15304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15306 # We can hardcode non-existent directories.
15307 if test "$hardcode_direct_CXX" != no &&
15308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15309 # have to relink, otherwise we might link with an installed library
15310 # when we should be linking with a yet-to-be-installed one
15311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15312 test "$hardcode_minus_L_CXX" != no; then
15313 # Linking always hardcodes the temporary library directory.
15314 hardcode_action_CXX=relink
15315 else
15316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15317 hardcode_action_CXX=immediate
15319 else
15320 # We cannot hardcode anything, or else we can only hardcode existing
15321 # directories.
15322 hardcode_action_CXX=unsupported
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15325 $as_echo "$hardcode_action_CXX" >&6; }
15327 if test "$hardcode_action_CXX" = relink ||
15328 test "$inherit_rpath_CXX" = yes; then
15329 # Fast installation is not supported
15330 enable_fast_install=no
15331 elif test "$shlibpath_overrides_runpath" = yes ||
15332 test "$enable_shared" = no; then
15333 # Fast installation is not necessary
15334 enable_fast_install=needless
15343 fi # test -n "$compiler"
15345 CC=$lt_save_CC
15346 LDCXX=$LD
15347 LD=$lt_save_LD
15348 GCC=$lt_save_GCC
15349 with_gnu_ld=$lt_save_with_gnu_ld
15350 lt_cv_path_LDCXX=$lt_cv_path_LD
15351 lt_cv_path_LD=$lt_save_path_LD
15352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15354 fi # test "$_lt_caught_CXX_error" != yes
15356 ac_ext=c
15357 ac_cpp='$CPP $CPPFLAGS'
15358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374 ac_config_commands="$ac_config_commands libtool"
15379 # Only expand once:
15383 for ac_prog in gawk mawk nawk awk
15385 # Extract the first word of "$ac_prog", so it can be a program name with args.
15386 set dummy $ac_prog; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if test "${ac_cv_prog_AWK+set}" = set; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 if test -n "$AWK"; then
15393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15394 else
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15402 ac_cv_prog_AWK="$ac_prog"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15406 done
15407 done
15408 IFS=$as_save_IFS
15412 AWK=$ac_cv_prog_AWK
15413 if test -n "$AWK"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15415 $as_echo "$AWK" >&6; }
15416 else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15422 test -n "$AWK" && break
15423 done
15425 case "$AWK" in
15426 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15427 esac
15432 # The cast to long int works around a bug in the HP C Compiler
15433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15435 # This bug is HP SR number 8606223364.
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15437 $as_echo_n "checking size of void *... " >&6; }
15438 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15443 else
15444 if test "$ac_cv_type_void_p" = yes; then
15445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15447 { as_fn_set_status 77
15448 as_fn_error "cannot compute sizeof (void *)
15449 See \`config.log' for more details." "$LINENO" 5; }; }
15450 else
15451 ac_cv_sizeof_void_p=0
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15457 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15461 cat >>confdefs.h <<_ACEOF
15462 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15463 _ACEOF
15467 if test "${multilib}" = "yes"; then
15468 multilib_arg="--enable-multilib"
15469 else
15470 multilib_arg=
15473 # Get target configury.
15474 unset TSAN_SUPPORTED
15475 unset LSAN_SUPPORTED
15476 . ${srcdir}/configure.tgt
15477 if test "x$TSAN_SUPPORTED" = "xyes"; then
15478 TSAN_SUPPORTED_TRUE=
15479 TSAN_SUPPORTED_FALSE='#'
15480 else
15481 TSAN_SUPPORTED_TRUE='#'
15482 TSAN_SUPPORTED_FALSE=
15485 if test "x$LSAN_SUPPORTED" = "xyes"; then
15486 LSAN_SUPPORTED_TRUE=
15487 LSAN_SUPPORTED_FALSE='#'
15488 else
15489 LSAN_SUPPORTED_TRUE='#'
15490 LSAN_SUPPORTED_FALSE=
15494 # Check for functions needed.
15495 for ac_func in clock_getres clock_gettime clock_settime
15496 do :
15497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15499 eval as_val=\$$as_ac_var
15500 if test "x$as_val" = x""yes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 _ACEOF
15506 done
15509 # Common libraries that we need to link against for all sanitizer libs.
15510 link_sanitizer_common='-lpthread -ldl -lm'
15512 # Set up the set of additional libraries that we need to link against for libasan.
15513 link_libasan=$link_sanitizer_common
15516 # Set up the set of additional libraries that we need to link against for libtsan.
15517 link_libtsan=$link_sanitizer_common
15520 # Set up the set of additional libraries that we need to link against for libubsan.
15521 link_libubsan=$link_sanitizer_common
15524 # Set up the set of additional libraries that we need to link against for liblsan.
15525 link_liblsan=$link_sanitizer_common
15528 # At least for glibc, clock_gettime is in librt. But don't pull that
15529 # in if it still doesn't give us the function we want. This
15530 # test is copied from libgomp.
15531 if test $ac_cv_func_clock_gettime = no; then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15533 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15534 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lrt $LIBS"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char clock_gettime ();
15550 main ()
15552 return clock_gettime ();
15554 return 0;
15556 _ACEOF
15557 if ac_fn_c_try_link "$LINENO"; then :
15558 ac_cv_lib_rt_clock_gettime=yes
15559 else
15560 ac_cv_lib_rt_clock_gettime=no
15562 rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15567 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15568 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15569 link_libasan="-lrt $link_libasan"
15570 link_libtsan="-lrt $link_libtsan"
15571 # Other sanitizers do not override clock_* API
15577 case "$host" in
15578 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15579 *) MAC_INTERPOSE=false ;;
15580 esac
15581 if $MAC_INTERPOSE; then
15582 USING_MAC_INTERPOSE_TRUE=
15583 USING_MAC_INTERPOSE_FALSE='#'
15584 else
15585 USING_MAC_INTERPOSE_TRUE='#'
15586 USING_MAC_INTERPOSE_FALSE=
15590 backtrace_supported=yes
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15593 $as_echo_n "checking for necessary platform features... " >&6; }
15594 case "$target" in
15595 *-*-linux*)
15596 # Some old Linux distributions miss required syscalls.
15597 sanitizer_supported=no
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 #include <sys/syscall.h>
15602 main ()
15605 syscall (__NR_gettid);
15606 syscall (__NR_futex);
15607 syscall (__NR_exit_group);
15610 return 0;
15612 _ACEOF
15613 if ac_fn_c_try_compile "$LINENO"; then :
15614 sanitizer_supported=yes
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619 sanitizer_supported=yes
15621 esac
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15623 $as_echo "$sanitizer_supported" >&6; }
15624 if test "$sanitizer_supported" = yes; then
15625 SANITIZER_SUPPORTED_TRUE=
15626 SANITIZER_SUPPORTED_FALSE='#'
15627 else
15628 SANITIZER_SUPPORTED_TRUE='#'
15629 SANITIZER_SUPPORTED_FALSE=
15633 # Test for __sync support.
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15635 $as_echo_n "checking __sync extensions... " >&6; }
15636 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 if test -n "${with_target_subdir}"; then
15640 libsanitizer_cv_sys_sync=yes
15641 else
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int i;
15646 main ()
15648 __sync_bool_compare_and_swap (&i, i, i);
15649 __sync_lock_test_and_set (&i, 1);
15650 __sync_lock_release (&i);
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 libsanitizer_cv_sys_sync=yes
15657 else
15658 libsanitizer_cv_sys_sync=no
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15665 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15666 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15668 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15672 # Test for __atomic support.
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15674 $as_echo_n "checking __atomic extensions... " >&6; }
15675 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "${with_target_subdir}"; then
15679 libsanitizer_cv_sys_atomic=yes
15680 else
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 int i;
15685 main ()
15687 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15688 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15690 return 0;
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694 libsanitizer_cv_sys_atomic=yes
15695 else
15696 libsanitizer_cv_sys_atomic=no
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15703 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15704 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15706 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15710 # The library needs to be able to read the executable itself. Compile
15711 # a file to determine the executable format. The awk script
15712 # filetype.awk prints out the file type.
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15714 $as_echo_n "checking output filetype... " >&6; }
15715 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 filetype=
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int i;
15723 main ()
15725 int j;
15727 return 0;
15729 _ACEOF
15730 if ac_fn_c_try_compile "$LINENO"; then :
15731 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15732 else
15733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15735 as_fn_error "compiler failed
15736 See \`config.log' for more details." "$LINENO" 5; }
15738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 libsanitizer_cv_sys_filetype=$filetype
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15742 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15744 # Match the file type to decide what files to compile.
15745 FORMAT_FILE=
15746 case "$libsanitizer_cv_sys_filetype" in
15747 elf*) FORMAT_FILE="elf.lo" ;;
15748 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15749 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15750 FORMAT_FILE="unknown.lo"
15751 backtrace_supported=no
15753 esac
15756 # ELF defines.
15757 elfsize=
15758 case "$libsanitizer_cv_sys_filetype" in
15759 elf32) elfsize=32 ;;
15760 elf64) elfsize=64 ;;
15761 esac
15763 cat >>confdefs.h <<_ACEOF
15764 #define BACKTRACE_ELF_SIZE $elfsize
15765 _ACEOF
15768 BACKTRACE_SUPPORTED=0
15769 if test "$backtrace_supported" = "yes"; then
15770 BACKTRACE_SUPPORTED=1
15776 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15778 acx_cv_header_stdint=stddef.h
15779 acx_cv_header_stdint_kind="(already complete)"
15780 for i in stdint.h $inttype_headers; do
15781 unset ac_cv_type_uintptr_t
15782 unset ac_cv_type_uintmax_t
15783 unset ac_cv_type_int_least32_t
15784 unset ac_cv_type_int_fast32_t
15785 unset ac_cv_type_uint64_t
15786 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15787 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15788 #include <$i>
15790 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15791 acx_cv_header_stdint=$i
15792 else
15793 continue
15796 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15797 #include <$i>
15799 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15801 else
15802 acx_cv_header_stdint_kind="(mostly complete)"
15805 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15806 #include <$i>
15808 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15810 else
15811 acx_cv_header_stdint_kind="(mostly complete)"
15814 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15815 #include <$i>
15817 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15819 else
15820 acx_cv_header_stdint_kind="(mostly complete)"
15823 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15824 #include <$i>
15826 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15828 else
15829 acx_cv_header_stdint_kind="(lacks uint64_t)"
15832 break
15833 done
15834 if test "$acx_cv_header_stdint" = stddef.h; then
15835 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15836 for i in stdint.h $inttype_headers; do
15837 unset ac_cv_type_uintptr_t
15838 unset ac_cv_type_uint32_t
15839 unset ac_cv_type_uint64_t
15840 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15841 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15842 #include <$i>
15844 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15845 acx_cv_header_stdint=$i
15846 else
15847 continue
15850 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15851 #include <$i>
15853 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15857 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15858 #include <$i>
15860 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15864 break
15865 done
15867 if test "$acx_cv_header_stdint" = stddef.h; then
15868 acx_cv_header_stdint_kind="(u_intXX_t style)"
15869 for i in sys/types.h $inttype_headers; do
15870 unset ac_cv_type_u_int32_t
15871 unset ac_cv_type_u_int64_t
15872 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15873 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15874 #include <$i>
15876 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15877 acx_cv_header_stdint=$i
15878 else
15879 continue
15882 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15883 #include <$i>
15885 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15889 break
15890 done
15892 if test "$acx_cv_header_stdint" = stddef.h; then
15893 acx_cv_header_stdint_kind="(using manual detection)"
15896 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15897 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15898 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15899 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15900 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15902 # ----------------- Summarize what we found so far
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15905 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15907 case `$as_basename -- gstdint.h ||
15908 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15909 Xgstdint.h : 'X\(//\)$' \| \
15910 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15911 $as_echo X/gstdint.h |
15912 sed '/^.*\/\([^/][^/]*\)\/*$/{
15913 s//\1/
15916 /^X\/\(\/\/\)$/{
15917 s//\1/
15920 /^X\/\(\/\).*/{
15921 s//\1/
15924 s/.*/./; q'` in
15925 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15926 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15927 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15928 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15929 *) ;;
15930 esac
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15933 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15935 # ----------------- done included file, check C basic types --------
15937 # Lacking an uintptr_t? Test size of void *
15938 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15939 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15942 # This bug is HP SR number 8606223364.
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15944 $as_echo_n "checking size of void *... " >&6; }
15945 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15950 else
15951 if test "$ac_cv_type_void_p" = yes; then
15952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15954 { as_fn_set_status 77
15955 as_fn_error "cannot compute sizeof (void *)
15956 See \`config.log' for more details." "$LINENO" 5; }; }
15957 else
15958 ac_cv_sizeof_void_p=0
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15964 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15968 cat >>confdefs.h <<_ACEOF
15969 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15970 _ACEOF
15973 esac
15975 # Lacking an uint64_t? Test size of long
15976 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15977 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15980 # This bug is HP SR number 8606223364.
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15982 $as_echo_n "checking size of long... " >&6; }
15983 if test "${ac_cv_sizeof_long+set}" = set; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15988 else
15989 if test "$ac_cv_type_long" = yes; then
15990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15992 { as_fn_set_status 77
15993 as_fn_error "cannot compute sizeof (long)
15994 See \`config.log' for more details." "$LINENO" 5; }; }
15995 else
15996 ac_cv_sizeof_long=0
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16002 $as_echo "$ac_cv_sizeof_long" >&6; }
16006 cat >>confdefs.h <<_ACEOF
16007 #define SIZEOF_LONG $ac_cv_sizeof_long
16008 _ACEOF
16011 esac
16013 if test $acx_cv_header_stdint = stddef.h; then
16014 # Lacking a good header? Test size of everything and deduce all types.
16015 # The cast to long int works around a bug in the HP C Compiler
16016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16018 # This bug is HP SR number 8606223364.
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16020 $as_echo_n "checking size of int... " >&6; }
16021 if test "${ac_cv_sizeof_int+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16026 else
16027 if test "$ac_cv_type_int" = yes; then
16028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16030 { as_fn_set_status 77
16031 as_fn_error "cannot compute sizeof (int)
16032 See \`config.log' for more details." "$LINENO" 5; }; }
16033 else
16034 ac_cv_sizeof_int=0
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16040 $as_echo "$ac_cv_sizeof_int" >&6; }
16044 cat >>confdefs.h <<_ACEOF
16045 #define SIZEOF_INT $ac_cv_sizeof_int
16046 _ACEOF
16049 # The cast to long int works around a bug in the HP C Compiler
16050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16052 # This bug is HP SR number 8606223364.
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16054 $as_echo_n "checking size of short... " >&6; }
16055 if test "${ac_cv_sizeof_short+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16060 else
16061 if test "$ac_cv_type_short" = yes; then
16062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16064 { as_fn_set_status 77
16065 as_fn_error "cannot compute sizeof (short)
16066 See \`config.log' for more details." "$LINENO" 5; }; }
16067 else
16068 ac_cv_sizeof_short=0
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16074 $as_echo "$ac_cv_sizeof_short" >&6; }
16078 cat >>confdefs.h <<_ACEOF
16079 #define SIZEOF_SHORT $ac_cv_sizeof_short
16080 _ACEOF
16083 # The cast to long int works around a bug in the HP C Compiler
16084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16086 # This bug is HP SR number 8606223364.
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16088 $as_echo_n "checking size of char... " >&6; }
16089 if test "${ac_cv_sizeof_char+set}" = set; then :
16090 $as_echo_n "(cached) " >&6
16091 else
16092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16094 else
16095 if test "$ac_cv_type_char" = yes; then
16096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16098 { as_fn_set_status 77
16099 as_fn_error "cannot compute sizeof (char)
16100 See \`config.log' for more details." "$LINENO" 5; }; }
16101 else
16102 ac_cv_sizeof_char=0
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16108 $as_echo "$ac_cv_sizeof_char" >&6; }
16112 cat >>confdefs.h <<_ACEOF
16113 #define SIZEOF_CHAR $ac_cv_sizeof_char
16114 _ACEOF
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16119 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16120 case "$ac_cv_sizeof_char" in
16121 1) acx_cv_type_int8_t=char ;;
16122 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16123 esac
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16125 $as_echo "$acx_cv_type_int8_t" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16128 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16129 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16130 2:*) acx_cv_type_int16_t=int ;;
16131 *:2) acx_cv_type_int16_t=short ;;
16132 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16133 esac
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16135 $as_echo "$acx_cv_type_int16_t" >&6; }
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16138 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16139 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16140 4:*) acx_cv_type_int32_t=int ;;
16141 *:4) acx_cv_type_int32_t=long ;;
16142 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16143 esac
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16145 $as_echo "$acx_cv_type_int32_t" >&6; }
16148 # These tests are here to make the output prettier
16150 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16151 case "$ac_cv_sizeof_long" in
16152 8) acx_cv_type_int64_t=long ;;
16153 esac
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16155 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16157 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16160 # Now we can use the above types
16162 if test "$ac_cv_type_uintptr_t" != yes; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16164 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16165 case $ac_cv_sizeof_void_p in
16166 2) acx_cv_type_intptr_t=int16_t ;;
16167 4) acx_cv_type_intptr_t=int32_t ;;
16168 8) acx_cv_type_intptr_t=int64_t ;;
16169 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16170 esac
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16172 $as_echo "$acx_cv_type_intptr_t" >&6; }
16175 # ----------------- done all checks, emit header -------------
16176 ac_config_commands="$ac_config_commands gstdint.h"
16181 for ac_header in sys/mman.h alloca.h
16182 do :
16183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16185 eval as_val=\$$as_ac_Header
16186 if test "x$as_val" = x""yes; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16193 done
16195 if test "$ac_cv_header_sys_mman_h" = "no"; then
16196 have_mmap=no
16197 else
16198 if test -n "${with_target_subdir}"; then
16199 # When built as a GCC target library, we can't do a link test. We
16200 # simply assume that if we have mman.h, we have mmap.
16201 have_mmap=yes
16202 else
16203 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16204 if test "x$ac_cv_func_mmap" = x""yes; then :
16205 have_mmap=yes
16206 else
16207 have_mmap=no
16212 if test "$have_mmap" = "no"; then
16213 VIEW_FILE=read.lo
16214 ALLOC_FILE=alloc.lo
16215 else
16216 VIEW_FILE=mmapio.lo
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 #include <sys/mman.h>
16221 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16222 #error no MAP_ANONYMOUS
16223 #endif
16225 _ACEOF
16226 if ac_fn_c_try_cpp "$LINENO"; then :
16227 ALLOC_FILE=mmap.lo
16228 else
16229 ALLOC_FILE=alloc.lo
16231 rm -f conftest.err conftest.$ac_ext
16236 BACKTRACE_USES_MALLOC=0
16237 if test "$ALLOC_FILE" = "alloc.lo"; then
16238 BACKTRACE_USES_MALLOC=1
16242 # Don't care about thread support
16243 BACKTRACE_SUPPORTS_THREADS=0
16246 # Check for dl_iterate_phdr.
16247 for ac_header in link.h
16248 do :
16249 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16250 if test "x$ac_cv_header_link_h" = x""yes; then :
16251 cat >>confdefs.h <<_ACEOF
16252 #define HAVE_LINK_H 1
16253 _ACEOF
16257 done
16259 if test "$ac_cv_header_link_h" = "no"; then
16260 have_dl_iterate_phdr=no
16261 else
16262 # When built as a GCC target library, we can't do a link test.
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16265 #include <link.h>
16267 _ACEOF
16268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16269 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16270 have_dl_iterate_phdr=yes
16271 else
16272 have_dl_iterate_phdr=no
16274 rm -f conftest*
16276 case "${host}" in
16277 *-*-solaris2.10*)
16278 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16279 # header file but is only in -ldl.
16280 have_dl_iterate_phdr=no ;;
16281 esac
16283 if test "$have_dl_iterate_phdr" = "yes"; then
16285 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16289 # Check for the fcntl function.
16290 if test -n "${with_target_subdir}"; then
16291 case "${host}" in
16292 *-*-mingw*) have_fcntl=no ;;
16293 *) have_fcntl=yes ;;
16294 esac
16295 else
16296 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16297 if test "x$ac_cv_func_fcntl" = x""yes; then :
16298 have_fcntl=yes
16299 else
16300 have_fcntl=no
16304 if test "$have_fcntl" = "yes"; then
16306 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16310 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16311 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16312 ac_have_decl=1
16313 else
16314 ac_have_decl=0
16317 cat >>confdefs.h <<_ACEOF
16318 #define HAVE_DECL_STRNLEN $ac_have_decl
16319 _ACEOF
16322 # Check for getexecname function.
16323 if test -n "${with_target_subdir}"; then
16324 case "${host}" in
16325 *-*-solaris2*) have_getexecname=yes ;;
16326 *) have_getexecname=no ;;
16327 esac
16328 else
16329 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16330 if test "x$ac_cv_func_getexecname" = x""yes; then :
16331 have_getexecname=yes
16332 else
16333 have_getexecname=no
16337 if test "$have_getexecname" = "yes"; then
16339 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16343 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16344 LIBBACKTRACE_SUPPORTED_TRUE=
16345 LIBBACKTRACE_SUPPORTED_FALSE='#'
16346 else
16347 LIBBACKTRACE_SUPPORTED_TRUE='#'
16348 LIBBACKTRACE_SUPPORTED_FALSE=
16353 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16355 ac_config_headers="$ac_config_headers config.h"
16358 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16361 if test "x$TSAN_SUPPORTED" = "xyes"; then
16362 ac_config_files="$ac_config_files tsan/Makefile"
16368 cat >confcache <<\_ACEOF
16369 # This file is a shell script that caches the results of configure
16370 # tests run on this system so they can be shared between configure
16371 # scripts and configure runs, see configure's option --config-cache.
16372 # It is not useful on other systems. If it contains results you don't
16373 # want to keep, you may remove or edit it.
16375 # config.status only pays attention to the cache file if you give it
16376 # the --recheck option to rerun configure.
16378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16380 # following values.
16382 _ACEOF
16384 # The following way of writing the cache mishandles newlines in values,
16385 # but we know of no workaround that is simple, portable, and efficient.
16386 # So, we kill variables containing newlines.
16387 # Ultrix sh set writes to stderr and can't be redirected directly,
16388 # and sets the high bit in the cache file unless we assign to the vars.
16390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16391 eval ac_val=\$$ac_var
16392 case $ac_val in #(
16393 *${as_nl}*)
16394 case $ac_var in #(
16395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16397 esac
16398 case $ac_var in #(
16399 _ | IFS | as_nl) ;; #(
16400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16401 *) { eval $ac_var=; unset $ac_var;} ;;
16402 esac ;;
16403 esac
16404 done
16406 (set) 2>&1 |
16407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16408 *${as_nl}ac_space=\ *)
16409 # `set' does not quote correctly, so add quotes: double-quote
16410 # substitution turns \\\\ into \\, and sed turns \\ into \.
16411 sed -n \
16412 "s/'/'\\\\''/g;
16413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16414 ;; #(
16416 # `set' quotes correctly as required by POSIX, so do not add quotes.
16417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16419 esac |
16420 sort
16422 sed '
16423 /^ac_cv_env_/b end
16424 t clear
16425 :clear
16426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16427 t end
16428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16429 :end' >>confcache
16430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16431 if test -w "$cache_file"; then
16432 test "x$cache_file" != "x/dev/null" &&
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16434 $as_echo "$as_me: updating cache $cache_file" >&6;}
16435 cat confcache >$cache_file
16436 else
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16438 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16441 rm -f confcache
16443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16444 # Let make expand exec_prefix.
16445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16447 DEFS=-DHAVE_CONFIG_H
16449 ac_libobjs=
16450 ac_ltlibobjs=
16451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16452 # 1. Remove the extension, and $U if already installed.
16453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16456 # will be set to the directory where LIBOBJS objects are built.
16457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16459 done
16460 LIBOBJS=$ac_libobjs
16462 LTLIBOBJS=$ac_ltlibobjs
16465 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16466 as_fn_error "conditional \"AMDEP\" was never defined.
16467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16469 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16470 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16473 if test -n "$EXEEXT"; then
16474 am__EXEEXT_TRUE=
16475 am__EXEEXT_FALSE='#'
16476 else
16477 am__EXEEXT_TRUE='#'
16478 am__EXEEXT_FALSE=
16481 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16482 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16485 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16486 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16489 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16490 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16493 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16494 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16497 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16498 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16501 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16502 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16505 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16506 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16509 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16510 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16514 : ${CONFIG_STATUS=./config.status}
16515 ac_write_fail=0
16516 ac_clean_files_save=$ac_clean_files
16517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16520 as_write_fail=0
16521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16522 #! $SHELL
16523 # Generated by $as_me.
16524 # Run this file to recreate the current configuration.
16525 # Compiler output produced by configure, useful for debugging
16526 # configure, is in config.log if it exists.
16528 debug=false
16529 ac_cs_recheck=false
16530 ac_cs_silent=false
16532 SHELL=\${CONFIG_SHELL-$SHELL}
16533 export SHELL
16534 _ASEOF
16535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16536 ## -------------------- ##
16537 ## M4sh Initialization. ##
16538 ## -------------------- ##
16540 # Be more Bourne compatible
16541 DUALCASE=1; export DUALCASE # for MKS sh
16542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16543 emulate sh
16544 NULLCMD=:
16545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16546 # is contrary to our usage. Disable this feature.
16547 alias -g '${1+"$@"}'='"$@"'
16548 setopt NO_GLOB_SUBST
16549 else
16550 case `(set -o) 2>/dev/null` in #(
16551 *posix*) :
16552 set -o posix ;; #(
16553 *) :
16555 esac
16559 as_nl='
16561 export as_nl
16562 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16563 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16566 # Prefer a ksh shell builtin over an external printf program on Solaris,
16567 # but without wasting forks for bash or zsh.
16568 if test -z "$BASH_VERSION$ZSH_VERSION" \
16569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16570 as_echo='print -r --'
16571 as_echo_n='print -rn --'
16572 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16573 as_echo='printf %s\n'
16574 as_echo_n='printf %s'
16575 else
16576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16578 as_echo_n='/usr/ucb/echo -n'
16579 else
16580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16581 as_echo_n_body='eval
16582 arg=$1;
16583 case $arg in #(
16584 *"$as_nl"*)
16585 expr "X$arg" : "X\\(.*\\)$as_nl";
16586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16587 esac;
16588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16590 export as_echo_n_body
16591 as_echo_n='sh -c $as_echo_n_body as_echo'
16593 export as_echo_body
16594 as_echo='sh -c $as_echo_body as_echo'
16597 # The user is always right.
16598 if test "${PATH_SEPARATOR+set}" != set; then
16599 PATH_SEPARATOR=:
16600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16602 PATH_SEPARATOR=';'
16607 # IFS
16608 # We need space, tab and new line, in precisely that order. Quoting is
16609 # there to prevent editors from complaining about space-tab.
16610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16611 # splitting by setting IFS to empty value.)
16612 IFS=" "" $as_nl"
16614 # Find who we are. Look in the path if we contain no directory separator.
16615 case $0 in #((
16616 *[\\/]* ) as_myself=$0 ;;
16617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16618 for as_dir in $PATH
16620 IFS=$as_save_IFS
16621 test -z "$as_dir" && as_dir=.
16622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16623 done
16624 IFS=$as_save_IFS
16627 esac
16628 # We did not find ourselves, most probably we were run as `sh COMMAND'
16629 # in which case we are not to be found in the path.
16630 if test "x$as_myself" = x; then
16631 as_myself=$0
16633 if test ! -f "$as_myself"; then
16634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16635 exit 1
16638 # Unset variables that we do not need and which cause bugs (e.g. in
16639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16640 # suppresses any "Segmentation fault" message there. '((' could
16641 # trigger a bug in pdksh 5.2.14.
16642 for as_var in BASH_ENV ENV MAIL MAILPATH
16643 do eval test x\${$as_var+set} = xset \
16644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16645 done
16646 PS1='$ '
16647 PS2='> '
16648 PS4='+ '
16650 # NLS nuisances.
16651 LC_ALL=C
16652 export LC_ALL
16653 LANGUAGE=C
16654 export LANGUAGE
16656 # CDPATH.
16657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16660 # as_fn_error ERROR [LINENO LOG_FD]
16661 # ---------------------------------
16662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16664 # script with status $?, using 1 if that was 0.
16665 as_fn_error ()
16667 as_status=$?; test $as_status -eq 0 && as_status=1
16668 if test "$3"; then
16669 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16672 $as_echo "$as_me: error: $1" >&2
16673 as_fn_exit $as_status
16674 } # as_fn_error
16677 # as_fn_set_status STATUS
16678 # -----------------------
16679 # Set $? to STATUS, without forking.
16680 as_fn_set_status ()
16682 return $1
16683 } # as_fn_set_status
16685 # as_fn_exit STATUS
16686 # -----------------
16687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16688 as_fn_exit ()
16690 set +e
16691 as_fn_set_status $1
16692 exit $1
16693 } # as_fn_exit
16695 # as_fn_unset VAR
16696 # ---------------
16697 # Portably unset VAR.
16698 as_fn_unset ()
16700 { eval $1=; unset $1;}
16702 as_unset=as_fn_unset
16703 # as_fn_append VAR VALUE
16704 # ----------------------
16705 # Append the text in VALUE to the end of the definition contained in VAR. Take
16706 # advantage of any shell optimizations that allow amortized linear growth over
16707 # repeated appends, instead of the typical quadratic growth present in naive
16708 # implementations.
16709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16710 eval 'as_fn_append ()
16712 eval $1+=\$2
16714 else
16715 as_fn_append ()
16717 eval $1=\$$1\$2
16719 fi # as_fn_append
16721 # as_fn_arith ARG...
16722 # ------------------
16723 # Perform arithmetic evaluation on the ARGs, and store the result in the
16724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16725 # must be portable across $(()) and expr.
16726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16727 eval 'as_fn_arith ()
16729 as_val=$(( $* ))
16731 else
16732 as_fn_arith ()
16734 as_val=`expr "$@" || test $? -eq 1`
16736 fi # as_fn_arith
16739 if expr a : '\(a\)' >/dev/null 2>&1 &&
16740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16741 as_expr=expr
16742 else
16743 as_expr=false
16746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16747 as_basename=basename
16748 else
16749 as_basename=false
16752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16753 as_dirname=dirname
16754 else
16755 as_dirname=false
16758 as_me=`$as_basename -- "$0" ||
16759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16760 X"$0" : 'X\(//\)$' \| \
16761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16762 $as_echo X/"$0" |
16763 sed '/^.*\/\([^/][^/]*\)\/*$/{
16764 s//\1/
16767 /^X\/\(\/\/\)$/{
16768 s//\1/
16771 /^X\/\(\/\).*/{
16772 s//\1/
16775 s/.*/./; q'`
16777 # Avoid depending upon Character Ranges.
16778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16781 as_cr_digits='0123456789'
16782 as_cr_alnum=$as_cr_Letters$as_cr_digits
16784 ECHO_C= ECHO_N= ECHO_T=
16785 case `echo -n x` in #(((((
16786 -n*)
16787 case `echo 'xy\c'` in
16788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16789 xy) ECHO_C='\c';;
16790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16791 ECHO_T=' ';;
16792 esac;;
16794 ECHO_N='-n';;
16795 esac
16797 rm -f conf$$ conf$$.exe conf$$.file
16798 if test -d conf$$.dir; then
16799 rm -f conf$$.dir/conf$$.file
16800 else
16801 rm -f conf$$.dir
16802 mkdir conf$$.dir 2>/dev/null
16804 if (echo >conf$$.file) 2>/dev/null; then
16805 if ln -s conf$$.file conf$$ 2>/dev/null; then
16806 as_ln_s='ln -s'
16807 # ... but there are two gotchas:
16808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16810 # In both cases, we have to default to `cp -p'.
16811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16812 as_ln_s='cp -p'
16813 elif ln conf$$.file conf$$ 2>/dev/null; then
16814 as_ln_s=ln
16815 else
16816 as_ln_s='cp -p'
16818 else
16819 as_ln_s='cp -p'
16821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16822 rmdir conf$$.dir 2>/dev/null
16825 # as_fn_mkdir_p
16826 # -------------
16827 # Create "$as_dir" as a directory, including parents if necessary.
16828 as_fn_mkdir_p ()
16831 case $as_dir in #(
16832 -*) as_dir=./$as_dir;;
16833 esac
16834 test -d "$as_dir" || eval $as_mkdir_p || {
16835 as_dirs=
16836 while :; do
16837 case $as_dir in #(
16838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16839 *) as_qdir=$as_dir;;
16840 esac
16841 as_dirs="'$as_qdir' $as_dirs"
16842 as_dir=`$as_dirname -- "$as_dir" ||
16843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844 X"$as_dir" : 'X\(//\)[^/]' \| \
16845 X"$as_dir" : 'X\(//\)$' \| \
16846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16847 $as_echo X"$as_dir" |
16848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16849 s//\1/
16852 /^X\(\/\/\)[^/].*/{
16853 s//\1/
16856 /^X\(\/\/\)$/{
16857 s//\1/
16860 /^X\(\/\).*/{
16861 s//\1/
16864 s/.*/./; q'`
16865 test -d "$as_dir" && break
16866 done
16867 test -z "$as_dirs" || eval "mkdir $as_dirs"
16868 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16871 } # as_fn_mkdir_p
16872 if mkdir -p . 2>/dev/null; then
16873 as_mkdir_p='mkdir -p "$as_dir"'
16874 else
16875 test -d ./-p && rmdir ./-p
16876 as_mkdir_p=false
16879 if test -x / >/dev/null 2>&1; then
16880 as_test_x='test -x'
16881 else
16882 if ls -dL / >/dev/null 2>&1; then
16883 as_ls_L_option=L
16884 else
16885 as_ls_L_option=
16887 as_test_x='
16888 eval sh -c '\''
16889 if test -d "$1"; then
16890 test -d "$1/.";
16891 else
16892 case $1 in #(
16893 -*)set "./$1";;
16894 esac;
16895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16896 ???[sx]*):;;*)false;;esac;fi
16897 '\'' sh
16900 as_executable_p=$as_test_x
16902 # Sed expression to map a string onto a valid CPP name.
16903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16905 # Sed expression to map a string onto a valid variable name.
16906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16909 exec 6>&1
16910 ## ----------------------------------- ##
16911 ## Main body of $CONFIG_STATUS script. ##
16912 ## ----------------------------------- ##
16913 _ASEOF
16914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917 # Save the log message, to keep $0 and so on meaningful, and to
16918 # report actual input values of CONFIG_FILES etc. instead of their
16919 # values after options handling.
16920 ac_log="
16921 This file was extended by package-unused $as_me version-unused, which was
16922 generated by GNU Autoconf 2.64. Invocation command line was
16924 CONFIG_FILES = $CONFIG_FILES
16925 CONFIG_HEADERS = $CONFIG_HEADERS
16926 CONFIG_LINKS = $CONFIG_LINKS
16927 CONFIG_COMMANDS = $CONFIG_COMMANDS
16928 $ $0 $@
16930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16933 _ACEOF
16935 case $ac_config_files in *"
16936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16937 esac
16939 case $ac_config_headers in *"
16940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16941 esac
16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16945 # Files that config.status was made for.
16946 config_files="$ac_config_files"
16947 config_headers="$ac_config_headers"
16948 config_commands="$ac_config_commands"
16950 _ACEOF
16952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16953 ac_cs_usage="\
16954 \`$as_me' instantiates files and other configuration actions
16955 from templates according to the current configuration. Unless the files
16956 and actions are specified as TAGs, all are instantiated by default.
16958 Usage: $0 [OPTION]... [TAG]...
16960 -h, --help print this help, then exit
16961 -V, --version print version number and configuration settings, then exit
16962 -q, --quiet, --silent
16963 do not print progress messages
16964 -d, --debug don't remove temporary files
16965 --recheck update $as_me by reconfiguring in the same conditions
16966 --file=FILE[:TEMPLATE]
16967 instantiate the configuration file FILE
16968 --header=FILE[:TEMPLATE]
16969 instantiate the configuration header FILE
16971 Configuration files:
16972 $config_files
16974 Configuration headers:
16975 $config_headers
16977 Configuration commands:
16978 $config_commands
16980 Report bugs to <libsanitizer>."
16982 _ACEOF
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 ac_cs_version="\\
16985 package-unused config.status version-unused
16986 configured by $0, generated by GNU Autoconf 2.64,
16987 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16989 Copyright (C) 2009 Free Software Foundation, Inc.
16990 This config.status script is free software; the Free Software Foundation
16991 gives unlimited permission to copy, distribute and modify it."
16993 ac_pwd='$ac_pwd'
16994 srcdir='$srcdir'
16995 INSTALL='$INSTALL'
16996 MKDIR_P='$MKDIR_P'
16997 AWK='$AWK'
16998 test -n "\$AWK" || AWK=awk
16999 _ACEOF
17001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002 # The default lists apply if the user does not specify any file.
17003 ac_need_defaults=:
17004 while test $# != 0
17006 case $1 in
17007 --*=*)
17008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17009 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17010 ac_shift=:
17013 ac_option=$1
17014 ac_optarg=$2
17015 ac_shift=shift
17017 esac
17019 case $ac_option in
17020 # Handling of the options.
17021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17022 ac_cs_recheck=: ;;
17023 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17024 $as_echo "$ac_cs_version"; exit ;;
17025 --debug | --debu | --deb | --de | --d | -d )
17026 debug=: ;;
17027 --file | --fil | --fi | --f )
17028 $ac_shift
17029 case $ac_optarg in
17030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17031 esac
17032 as_fn_append CONFIG_FILES " '$ac_optarg'"
17033 ac_need_defaults=false;;
17034 --header | --heade | --head | --hea )
17035 $ac_shift
17036 case $ac_optarg in
17037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17038 esac
17039 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17040 ac_need_defaults=false;;
17041 --he | --h)
17042 # Conflict between --help and --header
17043 as_fn_error "ambiguous option: \`$1'
17044 Try \`$0 --help' for more information.";;
17045 --help | --hel | -h )
17046 $as_echo "$ac_cs_usage"; exit ;;
17047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17049 ac_cs_silent=: ;;
17051 # This is an error.
17052 -*) as_fn_error "unrecognized option: \`$1'
17053 Try \`$0 --help' for more information." ;;
17055 *) as_fn_append ac_config_targets " $1"
17056 ac_need_defaults=false ;;
17058 esac
17059 shift
17060 done
17062 ac_configure_extra_args=
17064 if $ac_cs_silent; then
17065 exec 6>/dev/null
17066 ac_configure_extra_args="$ac_configure_extra_args --silent"
17069 _ACEOF
17070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17071 if \$ac_cs_recheck; then
17072 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17073 shift
17074 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17075 CONFIG_SHELL='$SHELL'
17076 export CONFIG_SHELL
17077 exec "\$@"
17080 _ACEOF
17081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17082 exec 5>>config.log
17084 echo
17085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17086 ## Running $as_me. ##
17087 _ASBOX
17088 $as_echo "$ac_log"
17089 } >&5
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 # INIT-COMMANDS
17096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17098 srcdir="$srcdir"
17099 host="$host"
17100 target="$target"
17101 with_multisubdir="$with_multisubdir"
17102 with_multisrctop="$with_multisrctop"
17103 with_target_subdir="$with_target_subdir"
17104 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17105 multi_basedir="$multi_basedir"
17106 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17107 CC="$CC"
17108 CXX="$CXX"
17109 GFORTRAN="$GFORTRAN"
17110 GCJ="$GCJ"
17113 # The HP-UX ksh and POSIX shell print the target directory to stdout
17114 # if CDPATH is set.
17115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17117 sed_quote_subst='$sed_quote_subst'
17118 double_quote_subst='$double_quote_subst'
17119 delay_variable_subst='$delay_variable_subst'
17120 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17121 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17122 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17123 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17124 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17125 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17126 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17127 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17128 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17129 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17130 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17131 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17132 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17133 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17134 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17135 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17136 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17137 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17138 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17139 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17140 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17141 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17142 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17143 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17144 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17145 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17146 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17147 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17148 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17149 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17150 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17151 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17152 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17153 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17154 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17155 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17156 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17157 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17158 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17159 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17160 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17161 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17162 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17163 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17164 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17165 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17166 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17167 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17168 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"`'
17169 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17170 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17171 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17173 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17174 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17175 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17176 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17200 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17209 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17210 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17211 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17212 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17213 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17214 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17233 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17234 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17235 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17236 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17237 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17238 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17239 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17240 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17241 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17242 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17243 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17244 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17245 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17246 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17247 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17248 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17249 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17250 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17251 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17252 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17253 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17254 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17255 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17256 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17257 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17258 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17259 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17260 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17261 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17262 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17263 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17264 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17265 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17266 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17267 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17268 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17269 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17270 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17271 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17272 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17273 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17274 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17275 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17276 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17277 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17278 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17279 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17280 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17281 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17282 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17283 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17284 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17285 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17286 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17287 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17288 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17289 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17290 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17291 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17292 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17293 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17294 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17296 LTCC='$LTCC'
17297 LTCFLAGS='$LTCFLAGS'
17298 compiler='$compiler_DEFAULT'
17300 # A function that is used when there is no print builtin or printf.
17301 func_fallback_echo ()
17303 eval 'cat <<_LTECHO_EOF
17305 _LTECHO_EOF'
17308 # Quote evaled strings.
17309 for var in SHELL \
17310 ECHO \
17311 SED \
17312 GREP \
17313 EGREP \
17314 FGREP \
17315 LD \
17316 NM \
17317 LN_S \
17318 lt_SP2NL \
17319 lt_NL2SP \
17320 reload_flag \
17321 OBJDUMP \
17322 deplibs_check_method \
17323 file_magic_cmd \
17324 AR \
17325 AR_FLAGS \
17326 STRIP \
17327 RANLIB \
17328 CC \
17329 CFLAGS \
17330 compiler \
17331 lt_cv_sys_global_symbol_pipe \
17332 lt_cv_sys_global_symbol_to_cdecl \
17333 lt_cv_sys_global_symbol_to_c_name_address \
17334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17335 lt_prog_compiler_no_builtin_flag \
17336 lt_prog_compiler_wl \
17337 lt_prog_compiler_pic \
17338 lt_prog_compiler_static \
17339 lt_cv_prog_compiler_c_o \
17340 need_locks \
17341 DSYMUTIL \
17342 NMEDIT \
17343 LIPO \
17344 OTOOL \
17345 OTOOL64 \
17346 shrext_cmds \
17347 export_dynamic_flag_spec \
17348 whole_archive_flag_spec \
17349 compiler_needs_object \
17350 with_gnu_ld \
17351 allow_undefined_flag \
17352 no_undefined_flag \
17353 hardcode_libdir_flag_spec \
17354 hardcode_libdir_flag_spec_ld \
17355 hardcode_libdir_separator \
17356 fix_srcfile_path \
17357 exclude_expsyms \
17358 include_expsyms \
17359 file_list_spec \
17360 variables_saved_for_relink \
17361 libname_spec \
17362 library_names_spec \
17363 soname_spec \
17364 install_override_mode \
17365 finish_eval \
17366 old_striplib \
17367 striplib \
17368 compiler_lib_search_dirs \
17369 predep_objects \
17370 postdep_objects \
17371 predeps \
17372 postdeps \
17373 compiler_lib_search_path \
17374 LD_CXX \
17375 reload_flag_CXX \
17376 compiler_CXX \
17377 lt_prog_compiler_no_builtin_flag_CXX \
17378 lt_prog_compiler_wl_CXX \
17379 lt_prog_compiler_pic_CXX \
17380 lt_prog_compiler_static_CXX \
17381 lt_cv_prog_compiler_c_o_CXX \
17382 export_dynamic_flag_spec_CXX \
17383 whole_archive_flag_spec_CXX \
17384 compiler_needs_object_CXX \
17385 with_gnu_ld_CXX \
17386 allow_undefined_flag_CXX \
17387 no_undefined_flag_CXX \
17388 hardcode_libdir_flag_spec_CXX \
17389 hardcode_libdir_flag_spec_ld_CXX \
17390 hardcode_libdir_separator_CXX \
17391 fix_srcfile_path_CXX \
17392 exclude_expsyms_CXX \
17393 include_expsyms_CXX \
17394 file_list_spec_CXX \
17395 compiler_lib_search_dirs_CXX \
17396 predep_objects_CXX \
17397 postdep_objects_CXX \
17398 predeps_CXX \
17399 postdeps_CXX \
17400 compiler_lib_search_path_CXX; do
17401 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17402 *[\\\\\\\`\\"\\\$]*)
17403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17408 esac
17409 done
17411 # Double-quote double-evaled strings.
17412 for var in reload_cmds \
17413 old_postinstall_cmds \
17414 old_postuninstall_cmds \
17415 old_archive_cmds \
17416 extract_expsyms_cmds \
17417 old_archive_from_new_cmds \
17418 old_archive_from_expsyms_cmds \
17419 archive_cmds \
17420 archive_expsym_cmds \
17421 module_cmds \
17422 module_expsym_cmds \
17423 export_symbols_cmds \
17424 prelink_cmds \
17425 postinstall_cmds \
17426 postuninstall_cmds \
17427 finish_cmds \
17428 sys_lib_search_path_spec \
17429 sys_lib_dlsearch_path_spec \
17430 reload_cmds_CXX \
17431 old_archive_cmds_CXX \
17432 old_archive_from_new_cmds_CXX \
17433 old_archive_from_expsyms_cmds_CXX \
17434 archive_cmds_CXX \
17435 archive_expsym_cmds_CXX \
17436 module_cmds_CXX \
17437 module_expsym_cmds_CXX \
17438 export_symbols_cmds_CXX \
17439 prelink_cmds_CXX; do
17440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17441 *[\\\\\\\`\\"\\\$]*)
17442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17447 esac
17448 done
17450 ac_aux_dir='$ac_aux_dir'
17451 xsi_shell='$xsi_shell'
17452 lt_shell_append='$lt_shell_append'
17454 # See if we are running on zsh, and set the options which allow our
17455 # commands through without removal of \ escapes INIT.
17456 if test -n "\${ZSH_VERSION+set}" ; then
17457 setopt NO_GLOB_SUBST
17461 PACKAGE='$PACKAGE'
17462 VERSION='$VERSION'
17463 TIMESTAMP='$TIMESTAMP'
17464 RM='$RM'
17465 ofile='$ofile'
17472 GCC="$GCC"
17473 CC="$CC"
17474 acx_cv_header_stdint="$acx_cv_header_stdint"
17475 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17476 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17477 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17478 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17479 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17480 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17481 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17482 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17483 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17484 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17485 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17486 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17487 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17490 _ACEOF
17492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494 # Handling of arguments.
17495 for ac_config_target in $ac_config_targets
17497 case $ac_config_target in
17498 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17499 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17500 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17501 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17502 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17503 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17504 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17505 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17506 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17507 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17508 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17509 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17510 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17511 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17512 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17514 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17515 esac
17516 done
17519 # If the user did not use the arguments to specify the items to instantiate,
17520 # then the envvar interface is used. Set only those that are not.
17521 # We use the long form for the default assignment because of an extremely
17522 # bizarre bug on SunOS 4.1.3.
17523 if $ac_need_defaults; then
17524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17529 # Have a temporary directory for convenience. Make it in the build tree
17530 # simply because there is no reason against having it here, and in addition,
17531 # creating and moving files from /tmp can sometimes cause problems.
17532 # Hook for its removal unless debugging.
17533 # Note that there is a small window in which the directory will not be cleaned:
17534 # after its creation but before its name has been assigned to `$tmp'.
17535 $debug ||
17537 tmp=
17538 trap 'exit_status=$?
17539 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17541 trap 'as_fn_exit 1' 1 2 13 15
17543 # Create a (secure) tmp directory for tmp files.
17546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17547 test -n "$tmp" && test -d "$tmp"
17548 } ||
17550 tmp=./conf$$-$RANDOM
17551 (umask 077 && mkdir "$tmp")
17552 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17554 # Set up the scripts for CONFIG_FILES section.
17555 # No need to generate them if there are no CONFIG_FILES.
17556 # This happens for instance with `./config.status config.h'.
17557 if test -n "$CONFIG_FILES"; then
17560 ac_cr=`echo X | tr X '\015'`
17561 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17562 # But we know of no other shell where ac_cr would be empty at this
17563 # point, so we can use a bashism as a fallback.
17564 if test "x$ac_cr" = x; then
17565 eval ac_cr=\$\'\\r\'
17567 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17568 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17569 ac_cs_awk_cr='\r'
17570 else
17571 ac_cs_awk_cr=$ac_cr
17574 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17575 _ACEOF
17579 echo "cat >conf$$subs.awk <<_ACEOF" &&
17580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17581 echo "_ACEOF"
17582 } >conf$$subs.sh ||
17583 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17585 ac_delim='%!_!# '
17586 for ac_last_try in false false false false false :; do
17587 . ./conf$$subs.sh ||
17588 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17590 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17591 if test $ac_delim_n = $ac_delim_num; then
17592 break
17593 elif $ac_last_try; then
17594 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17595 else
17596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17598 done
17599 rm -f conf$$subs.sh
17601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17602 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17603 _ACEOF
17604 sed -n '
17606 s/^/S["/; s/!.*/"]=/
17609 s/^[^!]*!//
17610 :repl
17611 t repl
17612 s/'"$ac_delim"'$//
17613 t delim
17616 s/\(.\{148\}\).*/\1/
17617 t more1
17618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17621 b repl
17622 :more1
17623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17626 s/.\{148\}//
17627 t nl
17628 :delim
17630 s/\(.\{148\}\).*/\1/
17631 t more2
17632 s/["\\]/\\&/g; s/^/"/; s/$/"/
17635 :more2
17636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17639 s/.\{148\}//
17640 t delim
17641 ' <conf$$subs.awk | sed '
17642 /^[^""]/{
17644 s/\n//
17646 ' >>$CONFIG_STATUS || ac_write_fail=1
17647 rm -f conf$$subs.awk
17648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17649 _ACAWK
17650 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17651 for (key in S) S_is_set[key] = 1
17652 FS = "\a"
17656 line = $ 0
17657 nfields = split(line, field, "@")
17658 substed = 0
17659 len = length(field[1])
17660 for (i = 2; i < nfields; i++) {
17661 key = field[i]
17662 keylen = length(key)
17663 if (S_is_set[key]) {
17664 value = S[key]
17665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17666 len += length(value) + length(field[++i])
17667 substed = 1
17668 } else
17669 len += 1 + keylen
17672 print line
17675 _ACAWK
17676 _ACEOF
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17679 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17680 else
17682 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17683 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17684 _ACEOF
17686 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17687 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17688 # trailing colons and then remove the whole line if VPATH becomes empty
17689 # (actually we leave an empty line to preserve line numbers).
17690 if test "x$srcdir" = x.; then
17691 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17692 s/:*\$(srcdir):*/:/
17693 s/:*\${srcdir}:*/:/
17694 s/:*@srcdir@:*/:/
17695 s/^\([^=]*=[ ]*\):*/\1/
17696 s/:*$//
17697 s/^[^=]*=[ ]*$//
17701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 fi # test -n "$CONFIG_FILES"
17704 # Set up the scripts for CONFIG_HEADERS section.
17705 # No need to generate them if there are no CONFIG_HEADERS.
17706 # This happens for instance with `./config.status Makefile'.
17707 if test -n "$CONFIG_HEADERS"; then
17708 cat >"$tmp/defines.awk" <<\_ACAWK ||
17709 BEGIN {
17710 _ACEOF
17712 # Transform confdefs.h into an awk script `defines.awk', embedded as
17713 # here-document in config.status, that substitutes the proper values into
17714 # config.h.in to produce config.h.
17716 # Create a delimiter string that does not exist in confdefs.h, to ease
17717 # handling of long lines.
17718 ac_delim='%!_!# '
17719 for ac_last_try in false false :; do
17720 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17721 if test -z "$ac_t"; then
17722 break
17723 elif $ac_last_try; then
17724 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17725 else
17726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17728 done
17730 # For the awk script, D is an array of macro values keyed by name,
17731 # likewise P contains macro parameters if any. Preserve backslash
17732 # newline sequences.
17734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17735 sed -n '
17736 s/.\{148\}/&'"$ac_delim"'/g
17737 t rset
17738 :rset
17739 s/^[ ]*#[ ]*define[ ][ ]*/ /
17740 t def
17742 :def
17743 s/\\$//
17744 t bsnl
17745 s/["\\]/\\&/g
17746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17747 D["\1"]=" \3"/p
17748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17750 :bsnl
17751 s/["\\]/\\&/g
17752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17753 D["\1"]=" \3\\\\\\n"\\/p
17754 t cont
17755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17756 t cont
17758 :cont
17760 s/.\{148\}/&'"$ac_delim"'/g
17761 t clear
17762 :clear
17763 s/\\$//
17764 t bsnlc
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17767 :bsnlc
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17769 b cont
17770 ' <confdefs.h | sed '
17771 s/'"$ac_delim"'/"\\\
17772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775 for (key in D) D_is_set[key] = 1
17776 FS = "\a"
17778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17779 line = \$ 0
17780 split(line, arg, " ")
17781 if (arg[1] == "#") {
17782 defundef = arg[2]
17783 mac1 = arg[3]
17784 } else {
17785 defundef = substr(arg[1], 2)
17786 mac1 = arg[2]
17788 split(mac1, mac2, "(") #)
17789 macro = mac2[1]
17790 prefix = substr(line, 1, index(line, defundef) - 1)
17791 if (D_is_set[macro]) {
17792 # Preserve the white space surrounding the "#".
17793 print prefix "define", macro P[macro] D[macro]
17794 next
17795 } else {
17796 # Replace #undef with comments. This is necessary, for example,
17797 # in the case of _POSIX_SOURCE, which is predefined and required
17798 # on some systems where configure will not decide to define it.
17799 if (defundef == "undef") {
17800 print "/*", prefix defundef, macro, "*/"
17801 next
17805 { print }
17806 _ACAWK
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17810 fi # test -n "$CONFIG_HEADERS"
17813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17814 shift
17815 for ac_tag
17817 case $ac_tag in
17818 :[FHLC]) ac_mode=$ac_tag; continue;;
17819 esac
17820 case $ac_mode$ac_tag in
17821 :[FHL]*:*);;
17822 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17823 :[FH]-) ac_tag=-:-;;
17824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17825 esac
17826 ac_save_IFS=$IFS
17827 IFS=:
17828 set x $ac_tag
17829 IFS=$ac_save_IFS
17830 shift
17831 ac_file=$1
17832 shift
17834 case $ac_mode in
17835 :L) ac_source=$1;;
17836 :[FH])
17837 ac_file_inputs=
17838 for ac_f
17840 case $ac_f in
17841 -) ac_f="$tmp/stdin";;
17842 *) # Look for the file first in the build tree, then in the source tree
17843 # (if the path is not absolute). The absolute path cannot be DOS-style,
17844 # because $ac_f cannot contain `:'.
17845 test -f "$ac_f" ||
17846 case $ac_f in
17847 [\\/$]*) false;;
17848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17849 esac ||
17850 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17851 esac
17852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17853 as_fn_append ac_file_inputs " '$ac_f'"
17854 done
17856 # Let's still pretend it is `configure' which instantiates (i.e., don't
17857 # use $as_me), people would be surprised to read:
17858 # /* config.h. Generated by config.status. */
17859 configure_input='Generated from '`
17860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17861 `' by configure.'
17862 if test x"$ac_file" != x-; then
17863 configure_input="$ac_file. $configure_input"
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17865 $as_echo "$as_me: creating $ac_file" >&6;}
17867 # Neutralize special characters interpreted by sed in replacement strings.
17868 case $configure_input in #(
17869 *\&* | *\|* | *\\* )
17870 ac_sed_conf_input=`$as_echo "$configure_input" |
17871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17872 *) ac_sed_conf_input=$configure_input;;
17873 esac
17875 case $ac_tag in
17876 *:-:* | *:-) cat >"$tmp/stdin" \
17877 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17878 esac
17880 esac
17882 ac_dir=`$as_dirname -- "$ac_file" ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884 X"$ac_file" : 'X\(//\)[^/]' \| \
17885 X"$ac_file" : 'X\(//\)$' \| \
17886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17887 $as_echo X"$ac_file" |
17888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17889 s//\1/
17892 /^X\(\/\/\)[^/].*/{
17893 s//\1/
17896 /^X\(\/\/\)$/{
17897 s//\1/
17900 /^X\(\/\).*/{
17901 s//\1/
17904 s/.*/./; q'`
17905 as_dir="$ac_dir"; as_fn_mkdir_p
17906 ac_builddir=.
17908 case "$ac_dir" in
17909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17912 # A ".." for each directory in $ac_dir_suffix.
17913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17914 case $ac_top_builddir_sub in
17915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17917 esac ;;
17918 esac
17919 ac_abs_top_builddir=$ac_pwd
17920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17921 # for backward compatibility:
17922 ac_top_builddir=$ac_top_build_prefix
17924 case $srcdir in
17925 .) # We are building in place.
17926 ac_srcdir=.
17927 ac_top_srcdir=$ac_top_builddir_sub
17928 ac_abs_top_srcdir=$ac_pwd ;;
17929 [\\/]* | ?:[\\/]* ) # Absolute name.
17930 ac_srcdir=$srcdir$ac_dir_suffix;
17931 ac_top_srcdir=$srcdir
17932 ac_abs_top_srcdir=$srcdir ;;
17933 *) # Relative name.
17934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17935 ac_top_srcdir=$ac_top_build_prefix$srcdir
17936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17937 esac
17938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17941 case $ac_mode in
17944 # CONFIG_FILE
17947 case $INSTALL in
17948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17950 esac
17951 ac_MKDIR_P=$MKDIR_P
17952 case $MKDIR_P in
17953 [\\/$]* | ?:[\\/]* ) ;;
17954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17955 esac
17956 _ACEOF
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 # If the template does not know about datarootdir, expand it.
17960 # FIXME: This hack should be removed a few years after 2.60.
17961 ac_datarootdir_hack=; ac_datarootdir_seen=
17962 ac_sed_dataroot='
17963 /datarootdir/ {
17967 /@datadir@/p
17968 /@docdir@/p
17969 /@infodir@/p
17970 /@localedir@/p
17971 /@mandir@/p'
17972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17973 *datarootdir*) ac_datarootdir_seen=yes;;
17974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17977 _ACEOF
17978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17979 ac_datarootdir_hack='
17980 s&@datadir@&$datadir&g
17981 s&@docdir@&$docdir&g
17982 s&@infodir@&$infodir&g
17983 s&@localedir@&$localedir&g
17984 s&@mandir@&$mandir&g
17985 s&\\\${datarootdir}&$datarootdir&g' ;;
17986 esac
17987 _ACEOF
17989 # Neutralize VPATH when `$srcdir' = `.'.
17990 # Shell code in configure.ac might set extrasub.
17991 # FIXME: do we really want to maintain this feature?
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 ac_sed_extra="$ac_vpsub
17994 $extrasub
17995 _ACEOF
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17999 s|@configure_input@|$ac_sed_conf_input|;t t
18000 s&@top_builddir@&$ac_top_builddir_sub&;t t
18001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18002 s&@srcdir@&$ac_srcdir&;t t
18003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18004 s&@top_srcdir@&$ac_top_srcdir&;t t
18005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18006 s&@builddir@&$ac_builddir&;t t
18007 s&@abs_builddir@&$ac_abs_builddir&;t t
18008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18009 s&@INSTALL@&$ac_INSTALL&;t t
18010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18011 $ac_datarootdir_hack
18013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18014 || as_fn_error "could not create $ac_file" "$LINENO" 5
18016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18020 which seems to be undefined. Please make sure it is defined." >&5
18021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18022 which seems to be undefined. Please make sure it is defined." >&2;}
18024 rm -f "$tmp/stdin"
18025 case $ac_file in
18026 -) cat "$tmp/out" && rm -f "$tmp/out";;
18027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18028 esac \
18029 || as_fn_error "could not create $ac_file" "$LINENO" 5
18033 # CONFIG_HEADER
18035 if test x"$ac_file" != x-; then
18037 $as_echo "/* $configure_input */" \
18038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18039 } >"$tmp/config.h" \
18040 || as_fn_error "could not create $ac_file" "$LINENO" 5
18041 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18044 else
18045 rm -f "$ac_file"
18046 mv "$tmp/config.h" "$ac_file" \
18047 || as_fn_error "could not create $ac_file" "$LINENO" 5
18049 else
18050 $as_echo "/* $configure_input */" \
18051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18052 || as_fn_error "could not create -" "$LINENO" 5
18054 # Compute "$ac_file"'s index in $config_headers.
18055 _am_arg="$ac_file"
18056 _am_stamp_count=1
18057 for _am_header in $config_headers :; do
18058 case $_am_header in
18059 $_am_arg | $_am_arg:* )
18060 break ;;
18062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18063 esac
18064 done
18065 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18066 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18067 X"$_am_arg" : 'X\(//\)[^/]' \| \
18068 X"$_am_arg" : 'X\(//\)$' \| \
18069 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18070 $as_echo X"$_am_arg" |
18071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18072 s//\1/
18075 /^X\(\/\/\)[^/].*/{
18076 s//\1/
18079 /^X\(\/\/\)$/{
18080 s//\1/
18083 /^X\(\/\).*/{
18084 s//\1/
18087 s/.*/./; q'`/stamp-h$_am_stamp_count
18090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18091 $as_echo "$as_me: executing $ac_file commands" >&6;}
18093 esac
18096 case $ac_file$ac_mode in
18097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18098 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18099 # are listed without --file. Let's play safe and only enable the eval
18100 # if we detect the quoting.
18101 case $CONFIG_FILES in
18102 *\'*) eval set x "$CONFIG_FILES" ;;
18103 *) set x $CONFIG_FILES ;;
18104 esac
18105 shift
18106 for mf
18108 # Strip MF so we end up with the name of the file.
18109 mf=`echo "$mf" | sed -e 's/:.*$//'`
18110 # Check whether this is an Automake generated Makefile or not.
18111 # We used to match only the files named `Makefile.in', but
18112 # some people rename them; so instead we look at the file content.
18113 # Grep'ing the first line is not enough: some people post-process
18114 # each Makefile.in and add a new line on top of each file to say so.
18115 # Grep'ing the whole file is not good either: AIX grep has a line
18116 # limit of 2048, but all sed's we know have understand at least 4000.
18117 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18118 dirpart=`$as_dirname -- "$mf" ||
18119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18120 X"$mf" : 'X\(//\)[^/]' \| \
18121 X"$mf" : 'X\(//\)$' \| \
18122 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18123 $as_echo X"$mf" |
18124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18125 s//\1/
18128 /^X\(\/\/\)[^/].*/{
18129 s//\1/
18132 /^X\(\/\/\)$/{
18133 s//\1/
18136 /^X\(\/\).*/{
18137 s//\1/
18140 s/.*/./; q'`
18141 else
18142 continue
18144 # Extract the definition of DEPDIR, am__include, and am__quote
18145 # from the Makefile without running `make'.
18146 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18147 test -z "$DEPDIR" && continue
18148 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18149 test -z "am__include" && continue
18150 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18151 # When using ansi2knr, U may be empty or an underscore; expand it
18152 U=`sed -n 's/^U = //p' < "$mf"`
18153 # Find all dependency output files, they are included files with
18154 # $(DEPDIR) in their names. We invoke sed twice because it is the
18155 # simplest approach to changing $(DEPDIR) to its actual value in the
18156 # expansion.
18157 for file in `sed -n "
18158 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18159 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18160 # Make sure the directory exists.
18161 test -f "$dirpart/$file" && continue
18162 fdir=`$as_dirname -- "$file" ||
18163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164 X"$file" : 'X\(//\)[^/]' \| \
18165 X"$file" : 'X\(//\)$' \| \
18166 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18167 $as_echo X"$file" |
18168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18169 s//\1/
18172 /^X\(\/\/\)[^/].*/{
18173 s//\1/
18176 /^X\(\/\/\)$/{
18177 s//\1/
18180 /^X\(\/\).*/{
18181 s//\1/
18184 s/.*/./; q'`
18185 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18186 # echo "creating $dirpart/$file"
18187 echo '# dummy' > "$dirpart/$file"
18188 done
18189 done
18192 "default-1":C)
18193 # Only add multilib support code if we just rebuilt the top-level
18194 # Makefile.
18195 case " $CONFIG_FILES " in
18196 *" Makefile "*)
18197 ac_file=Makefile . ${multi_basedir}/config-ml.in
18199 esac ;;
18200 "libtool":C)
18202 # See if we are running on zsh, and set the options which allow our
18203 # commands through without removal of \ escapes.
18204 if test -n "${ZSH_VERSION+set}" ; then
18205 setopt NO_GLOB_SUBST
18208 cfgfile="${ofile}T"
18209 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18210 $RM "$cfgfile"
18212 cat <<_LT_EOF >> "$cfgfile"
18213 #! $SHELL
18215 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18216 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18218 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18220 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18221 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18222 # Written by Gordon Matzigkeit, 1996
18224 # This file is part of GNU Libtool.
18226 # GNU Libtool is free software; you can redistribute it and/or
18227 # modify it under the terms of the GNU General Public License as
18228 # published by the Free Software Foundation; either version 2 of
18229 # the License, or (at your option) any later version.
18231 # As a special exception to the GNU General Public License,
18232 # if you distribute this file as part of a program or library that
18233 # is built using GNU Libtool, you may include this file under the
18234 # same distribution terms that you use for the rest of that program.
18236 # GNU Libtool is distributed in the hope that it will be useful,
18237 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18239 # GNU General Public License for more details.
18241 # You should have received a copy of the GNU General Public License
18242 # along with GNU Libtool; see the file COPYING. If not, a copy
18243 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18244 # obtained by writing to the Free Software Foundation, Inc.,
18245 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18248 # The names of the tagged configurations supported by this script.
18249 available_tags="CXX "
18251 # ### BEGIN LIBTOOL CONFIG
18253 # Which release of libtool.m4 was used?
18254 macro_version=$macro_version
18255 macro_revision=$macro_revision
18257 # Whether or not to build shared libraries.
18258 build_libtool_libs=$enable_shared
18260 # Whether or not to build static libraries.
18261 build_old_libs=$enable_static
18263 # What type of objects to build.
18264 pic_mode=$pic_mode
18266 # Whether or not to optimize for fast installation.
18267 fast_install=$enable_fast_install
18269 # Shell to use when invoking shell scripts.
18270 SHELL=$lt_SHELL
18272 # An echo program that protects backslashes.
18273 ECHO=$lt_ECHO
18275 # The host system.
18276 host_alias=$host_alias
18277 host=$host
18278 host_os=$host_os
18280 # The build system.
18281 build_alias=$build_alias
18282 build=$build
18283 build_os=$build_os
18285 # A sed program that does not truncate output.
18286 SED=$lt_SED
18288 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18289 Xsed="\$SED -e 1s/^X//"
18291 # A grep program that handles long lines.
18292 GREP=$lt_GREP
18294 # An ERE matcher.
18295 EGREP=$lt_EGREP
18297 # A literal string matcher.
18298 FGREP=$lt_FGREP
18300 # A BSD- or MS-compatible name lister.
18301 NM=$lt_NM
18303 # Whether we need soft or hard links.
18304 LN_S=$lt_LN_S
18306 # What is the maximum length of a command?
18307 max_cmd_len=$max_cmd_len
18309 # Object file suffix (normally "o").
18310 objext=$ac_objext
18312 # Executable file suffix (normally "").
18313 exeext=$exeext
18315 # whether the shell understands "unset".
18316 lt_unset=$lt_unset
18318 # turn spaces into newlines.
18319 SP2NL=$lt_lt_SP2NL
18321 # turn newlines into spaces.
18322 NL2SP=$lt_lt_NL2SP
18324 # An object symbol dumper.
18325 OBJDUMP=$lt_OBJDUMP
18327 # Method to check whether dependent libraries are shared objects.
18328 deplibs_check_method=$lt_deplibs_check_method
18330 # Command to use when deplibs_check_method == "file_magic".
18331 file_magic_cmd=$lt_file_magic_cmd
18333 # The archiver.
18334 AR=$lt_AR
18335 AR_FLAGS=$lt_AR_FLAGS
18337 # A symbol stripping program.
18338 STRIP=$lt_STRIP
18340 # Commands used to install an old-style archive.
18341 RANLIB=$lt_RANLIB
18342 old_postinstall_cmds=$lt_old_postinstall_cmds
18343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18345 # Whether to use a lock for old archive extraction.
18346 lock_old_archive_extraction=$lock_old_archive_extraction
18348 # A C compiler.
18349 LTCC=$lt_CC
18351 # LTCC compiler flags.
18352 LTCFLAGS=$lt_CFLAGS
18354 # Take the output of nm and produce a listing of raw symbols and C names.
18355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18357 # Transform the output of nm in a proper C declaration.
18358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18360 # Transform the output of nm in a C name address pair.
18361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18363 # Transform the output of nm in a C name address pair when lib prefix is needed.
18364 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18366 # The name of the directory that contains temporary libtool files.
18367 objdir=$objdir
18369 # Used to examine libraries when file_magic_cmd begins with "file".
18370 MAGIC_CMD=$MAGIC_CMD
18372 # Must we lock files when doing compilation?
18373 need_locks=$lt_need_locks
18375 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18376 DSYMUTIL=$lt_DSYMUTIL
18378 # Tool to change global to local symbols on Mac OS X.
18379 NMEDIT=$lt_NMEDIT
18381 # Tool to manipulate fat objects and archives on Mac OS X.
18382 LIPO=$lt_LIPO
18384 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18385 OTOOL=$lt_OTOOL
18387 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18388 OTOOL64=$lt_OTOOL64
18390 # Old archive suffix (normally "a").
18391 libext=$libext
18393 # Shared library suffix (normally ".so").
18394 shrext_cmds=$lt_shrext_cmds
18396 # The commands to extract the exported symbol list from a shared archive.
18397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18399 # Variables whose values should be saved in libtool wrapper scripts and
18400 # restored at link time.
18401 variables_saved_for_relink=$lt_variables_saved_for_relink
18403 # Do we need the "lib" prefix for modules?
18404 need_lib_prefix=$need_lib_prefix
18406 # Do we need a version for libraries?
18407 need_version=$need_version
18409 # Library versioning type.
18410 version_type=$version_type
18412 # Shared library runtime path variable.
18413 runpath_var=$runpath_var
18415 # Shared library path variable.
18416 shlibpath_var=$shlibpath_var
18418 # Is shlibpath searched before the hard-coded library search path?
18419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18421 # Format of library name prefix.
18422 libname_spec=$lt_libname_spec
18424 # List of archive names. First name is the real one, the rest are links.
18425 # The last name is the one that the linker finds with -lNAME
18426 library_names_spec=$lt_library_names_spec
18428 # The coded name of the library, if different from the real name.
18429 soname_spec=$lt_soname_spec
18431 # Permission mode override for installation of shared libraries.
18432 install_override_mode=$lt_install_override_mode
18434 # Command to use after installation of a shared archive.
18435 postinstall_cmds=$lt_postinstall_cmds
18437 # Command to use after uninstallation of a shared archive.
18438 postuninstall_cmds=$lt_postuninstall_cmds
18440 # Commands used to finish a libtool library installation in a directory.
18441 finish_cmds=$lt_finish_cmds
18443 # As "finish_cmds", except a single script fragment to be evaled but
18444 # not shown.
18445 finish_eval=$lt_finish_eval
18447 # Whether we should hardcode library paths into libraries.
18448 hardcode_into_libs=$hardcode_into_libs
18450 # Compile-time system search path for libraries.
18451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18453 # Run-time system search path for libraries.
18454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18456 # Whether dlopen is supported.
18457 dlopen_support=$enable_dlopen
18459 # Whether dlopen of programs is supported.
18460 dlopen_self=$enable_dlopen_self
18462 # Whether dlopen of statically linked programs is supported.
18463 dlopen_self_static=$enable_dlopen_self_static
18465 # Commands to strip libraries.
18466 old_striplib=$lt_old_striplib
18467 striplib=$lt_striplib
18470 # The linker used to build libraries.
18471 LD=$lt_LD
18473 # How to create reloadable object files.
18474 reload_flag=$lt_reload_flag
18475 reload_cmds=$lt_reload_cmds
18477 # Commands used to build an old-style archive.
18478 old_archive_cmds=$lt_old_archive_cmds
18480 # A language specific compiler.
18481 CC=$lt_compiler
18483 # Is the compiler the GNU compiler?
18484 with_gcc=$GCC
18486 # Compiler flag to turn off builtin functions.
18487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18489 # How to pass a linker flag through the compiler.
18490 wl=$lt_lt_prog_compiler_wl
18492 # Additional compiler flags for building library objects.
18493 pic_flag=$lt_lt_prog_compiler_pic
18495 # Compiler flag to prevent dynamic linking.
18496 link_static_flag=$lt_lt_prog_compiler_static
18498 # Does compiler simultaneously support -c and -o options?
18499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18501 # Whether or not to add -lc for building shared libraries.
18502 build_libtool_need_lc=$archive_cmds_need_lc
18504 # Whether or not to disallow shared libs when runtime libs are static.
18505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18507 # Compiler flag to allow reflexive dlopens.
18508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18510 # Compiler flag to generate shared objects directly from archives.
18511 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18513 # Whether the compiler copes with passing no objects directly.
18514 compiler_needs_object=$lt_compiler_needs_object
18516 # Create an old-style archive from a shared archive.
18517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18519 # Create a temporary old-style archive to link instead of a shared archive.
18520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18522 # Commands used to build a shared archive.
18523 archive_cmds=$lt_archive_cmds
18524 archive_expsym_cmds=$lt_archive_expsym_cmds
18526 # Commands used to build a loadable module if different from building
18527 # a shared archive.
18528 module_cmds=$lt_module_cmds
18529 module_expsym_cmds=$lt_module_expsym_cmds
18531 # Whether we are building with GNU ld or not.
18532 with_gnu_ld=$lt_with_gnu_ld
18534 # Flag that allows shared libraries with undefined symbols to be built.
18535 allow_undefined_flag=$lt_allow_undefined_flag
18537 # Flag that enforces no undefined symbols.
18538 no_undefined_flag=$lt_no_undefined_flag
18540 # Flag to hardcode \$libdir into a binary during linking.
18541 # This must work even if \$libdir does not exist
18542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18544 # If ld is used when linking, flag to hardcode \$libdir into a binary
18545 # during linking. This must work even if \$libdir does not exist.
18546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18548 # Whether we need a single "-rpath" flag with a separated argument.
18549 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18552 # DIR into the resulting binary.
18553 hardcode_direct=$hardcode_direct
18555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18556 # DIR into the resulting binary and the resulting library dependency is
18557 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18558 # library is relocated.
18559 hardcode_direct_absolute=$hardcode_direct_absolute
18561 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18562 # into the resulting binary.
18563 hardcode_minus_L=$hardcode_minus_L
18565 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18566 # into the resulting binary.
18567 hardcode_shlibpath_var=$hardcode_shlibpath_var
18569 # Set to "yes" if building a shared library automatically hardcodes DIR
18570 # into the library and all subsequent libraries and executables linked
18571 # against it.
18572 hardcode_automatic=$hardcode_automatic
18574 # Set to yes if linker adds runtime paths of dependent libraries
18575 # to runtime path list.
18576 inherit_rpath=$inherit_rpath
18578 # Whether libtool must link a program against all its dependency libraries.
18579 link_all_deplibs=$link_all_deplibs
18581 # Fix the shell variable \$srcfile for the compiler.
18582 fix_srcfile_path=$lt_fix_srcfile_path
18584 # Set to "yes" if exported symbols are required.
18585 always_export_symbols=$always_export_symbols
18587 # The commands to list exported symbols.
18588 export_symbols_cmds=$lt_export_symbols_cmds
18590 # Symbols that should not be listed in the preloaded symbols.
18591 exclude_expsyms=$lt_exclude_expsyms
18593 # Symbols that must always be exported.
18594 include_expsyms=$lt_include_expsyms
18596 # Commands necessary for linking programs (against libraries) with templates.
18597 prelink_cmds=$lt_prelink_cmds
18599 # Specify filename containing input files.
18600 file_list_spec=$lt_file_list_spec
18602 # How to hardcode a shared library path into an executable.
18603 hardcode_action=$hardcode_action
18605 # The directories searched by this compiler when creating a shared library.
18606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18608 # Dependencies to place before and after the objects being linked to
18609 # create a shared library.
18610 predep_objects=$lt_predep_objects
18611 postdep_objects=$lt_postdep_objects
18612 predeps=$lt_predeps
18613 postdeps=$lt_postdeps
18615 # The library search path used internally by the compiler when linking
18616 # a shared library.
18617 compiler_lib_search_path=$lt_compiler_lib_search_path
18619 # ### END LIBTOOL CONFIG
18621 _LT_EOF
18623 case $host_os in
18624 aix3*)
18625 cat <<\_LT_EOF >> "$cfgfile"
18626 # AIX sometimes has problems with the GCC collect2 program. For some
18627 # reason, if we set the COLLECT_NAMES environment variable, the problems
18628 # vanish in a puff of smoke.
18629 if test "X${COLLECT_NAMES+set}" != Xset; then
18630 COLLECT_NAMES=
18631 export COLLECT_NAMES
18633 _LT_EOF
18635 esac
18638 ltmain="$ac_aux_dir/ltmain.sh"
18641 # We use sed instead of cat because bash on DJGPP gets confused if
18642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18643 # text mode, it properly converts lines to CR/LF. This bash problem
18644 # is reportedly fixed, but why not run on old versions too?
18645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18646 || (rm -f "$cfgfile"; exit 1)
18648 case $xsi_shell in
18649 yes)
18650 cat << \_LT_EOF >> "$cfgfile"
18652 # func_dirname file append nondir_replacement
18653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18654 # otherwise set result to NONDIR_REPLACEMENT.
18655 func_dirname ()
18657 case ${1} in
18658 */*) func_dirname_result="${1%/*}${2}" ;;
18659 * ) func_dirname_result="${3}" ;;
18660 esac
18663 # func_basename file
18664 func_basename ()
18666 func_basename_result="${1##*/}"
18669 # func_dirname_and_basename file append nondir_replacement
18670 # perform func_basename and func_dirname in a single function
18671 # call:
18672 # dirname: Compute the dirname of FILE. If nonempty,
18673 # add APPEND to the result, otherwise set result
18674 # to NONDIR_REPLACEMENT.
18675 # value returned in "$func_dirname_result"
18676 # basename: Compute filename of FILE.
18677 # value retuned in "$func_basename_result"
18678 # Implementation must be kept synchronized with func_dirname
18679 # and func_basename. For efficiency, we do not delegate to
18680 # those functions but instead duplicate the functionality here.
18681 func_dirname_and_basename ()
18683 case ${1} in
18684 */*) func_dirname_result="${1%/*}${2}" ;;
18685 * ) func_dirname_result="${3}" ;;
18686 esac
18687 func_basename_result="${1##*/}"
18690 # func_stripname prefix suffix name
18691 # strip PREFIX and SUFFIX off of NAME.
18692 # PREFIX and SUFFIX must not contain globbing or regex special
18693 # characters, hashes, percent signs, but SUFFIX may contain a leading
18694 # dot (in which case that matches only a dot).
18695 func_stripname ()
18697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18698 # positional parameters, so assign one to ordinary parameter first.
18699 func_stripname_result=${3}
18700 func_stripname_result=${func_stripname_result#"${1}"}
18701 func_stripname_result=${func_stripname_result%"${2}"}
18704 # func_opt_split
18705 func_opt_split ()
18707 func_opt_split_opt=${1%%=*}
18708 func_opt_split_arg=${1#*=}
18711 # func_lo2o object
18712 func_lo2o ()
18714 case ${1} in
18715 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18716 *) func_lo2o_result=${1} ;;
18717 esac
18720 # func_xform libobj-or-source
18721 func_xform ()
18723 func_xform_result=${1%.*}.lo
18726 # func_arith arithmetic-term...
18727 func_arith ()
18729 func_arith_result=$(( $* ))
18732 # func_len string
18733 # STRING may not start with a hyphen.
18734 func_len ()
18736 func_len_result=${#1}
18739 _LT_EOF
18741 *) # Bourne compatible functions.
18742 cat << \_LT_EOF >> "$cfgfile"
18744 # func_dirname file append nondir_replacement
18745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18746 # otherwise set result to NONDIR_REPLACEMENT.
18747 func_dirname ()
18749 # Extract subdirectory from the argument.
18750 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18751 if test "X$func_dirname_result" = "X${1}"; then
18752 func_dirname_result="${3}"
18753 else
18754 func_dirname_result="$func_dirname_result${2}"
18758 # func_basename file
18759 func_basename ()
18761 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18765 # func_stripname prefix suffix name
18766 # strip PREFIX and SUFFIX off of NAME.
18767 # PREFIX and SUFFIX must not contain globbing or regex special
18768 # characters, hashes, percent signs, but SUFFIX may contain a leading
18769 # dot (in which case that matches only a dot).
18770 # func_strip_suffix prefix name
18771 func_stripname ()
18773 case ${2} in
18774 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18775 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18776 esac
18779 # sed scripts:
18780 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18781 my_sed_long_arg='1s/^-[^=]*=//'
18783 # func_opt_split
18784 func_opt_split ()
18786 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18787 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18790 # func_lo2o object
18791 func_lo2o ()
18793 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18796 # func_xform libobj-or-source
18797 func_xform ()
18799 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18802 # func_arith arithmetic-term...
18803 func_arith ()
18805 func_arith_result=`expr "$@"`
18808 # func_len string
18809 # STRING may not start with a hyphen.
18810 func_len ()
18812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18815 _LT_EOF
18816 esac
18818 case $lt_shell_append in
18819 yes)
18820 cat << \_LT_EOF >> "$cfgfile"
18822 # func_append var value
18823 # Append VALUE to the end of shell variable VAR.
18824 func_append ()
18826 eval "$1+=\$2"
18828 _LT_EOF
18831 cat << \_LT_EOF >> "$cfgfile"
18833 # func_append var value
18834 # Append VALUE to the end of shell variable VAR.
18835 func_append ()
18837 eval "$1=\$$1\$2"
18840 _LT_EOF
18842 esac
18845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18846 || (rm -f "$cfgfile"; exit 1)
18848 mv -f "$cfgfile" "$ofile" ||
18849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18850 chmod +x "$ofile"
18853 cat <<_LT_EOF >> "$ofile"
18855 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18857 # The linker used to build libraries.
18858 LD=$lt_LD_CXX
18860 # How to create reloadable object files.
18861 reload_flag=$lt_reload_flag_CXX
18862 reload_cmds=$lt_reload_cmds_CXX
18864 # Commands used to build an old-style archive.
18865 old_archive_cmds=$lt_old_archive_cmds_CXX
18867 # A language specific compiler.
18868 CC=$lt_compiler_CXX
18870 # Is the compiler the GNU compiler?
18871 with_gcc=$GCC_CXX
18873 # Compiler flag to turn off builtin functions.
18874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18876 # How to pass a linker flag through the compiler.
18877 wl=$lt_lt_prog_compiler_wl_CXX
18879 # Additional compiler flags for building library objects.
18880 pic_flag=$lt_lt_prog_compiler_pic_CXX
18882 # Compiler flag to prevent dynamic linking.
18883 link_static_flag=$lt_lt_prog_compiler_static_CXX
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18888 # Whether or not to add -lc for building shared libraries.
18889 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18891 # Whether or not to disallow shared libs when runtime libs are static.
18892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18894 # Compiler flag to allow reflexive dlopens.
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18897 # Compiler flag to generate shared objects directly from archives.
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18900 # Whether the compiler copes with passing no objects directly.
18901 compiler_needs_object=$lt_compiler_needs_object_CXX
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18909 # Commands used to build a shared archive.
18910 archive_cmds=$lt_archive_cmds_CXX
18911 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18913 # Commands used to build a loadable module if different from building
18914 # a shared archive.
18915 module_cmds=$lt_module_cmds_CXX
18916 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18918 # Whether we are building with GNU ld or not.
18919 with_gnu_ld=$lt_with_gnu_ld_CXX
18921 # Flag that allows shared libraries with undefined symbols to be built.
18922 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18924 # Flag that enforces no undefined symbols.
18925 no_undefined_flag=$lt_no_undefined_flag_CXX
18927 # Flag to hardcode \$libdir into a binary during linking.
18928 # This must work even if \$libdir does not exist
18929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18931 # If ld is used when linking, flag to hardcode \$libdir into a binary
18932 # during linking. This must work even if \$libdir does not exist.
18933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18935 # Whether we need a single "-rpath" flag with a separated argument.
18936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18939 # DIR into the resulting binary.
18940 hardcode_direct=$hardcode_direct_CXX
18942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18943 # DIR into the resulting binary and the resulting library dependency is
18944 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18945 # library is relocated.
18946 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18948 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18949 # into the resulting binary.
18950 hardcode_minus_L=$hardcode_minus_L_CXX
18952 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18953 # into the resulting binary.
18954 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18956 # Set to "yes" if building a shared library automatically hardcodes DIR
18957 # into the library and all subsequent libraries and executables linked
18958 # against it.
18959 hardcode_automatic=$hardcode_automatic_CXX
18961 # Set to yes if linker adds runtime paths of dependent libraries
18962 # to runtime path list.
18963 inherit_rpath=$inherit_rpath_CXX
18965 # Whether libtool must link a program against all its dependency libraries.
18966 link_all_deplibs=$link_all_deplibs_CXX
18968 # Fix the shell variable \$srcfile for the compiler.
18969 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18971 # Set to "yes" if exported symbols are required.
18972 always_export_symbols=$always_export_symbols_CXX
18974 # The commands to list exported symbols.
18975 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18977 # Symbols that should not be listed in the preloaded symbols.
18978 exclude_expsyms=$lt_exclude_expsyms_CXX
18980 # Symbols that must always be exported.
18981 include_expsyms=$lt_include_expsyms_CXX
18983 # Commands necessary for linking programs (against libraries) with templates.
18984 prelink_cmds=$lt_prelink_cmds_CXX
18986 # Specify filename containing input files.
18987 file_list_spec=$lt_file_list_spec_CXX
18989 # How to hardcode a shared library path into an executable.
18990 hardcode_action=$hardcode_action_CXX
18992 # The directories searched by this compiler when creating a shared library.
18993 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18995 # Dependencies to place before and after the objects being linked to
18996 # create a shared library.
18997 predep_objects=$lt_predep_objects_CXX
18998 postdep_objects=$lt_postdep_objects_CXX
18999 predeps=$lt_predeps_CXX
19000 postdeps=$lt_postdeps_CXX
19002 # The library search path used internally by the compiler when linking
19003 # a shared library.
19004 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19006 # ### END LIBTOOL TAG CONFIG: CXX
19007 _LT_EOF
19010 "gstdint.h":C)
19011 if test "$GCC" = yes; then
19012 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19013 else
19014 echo "/* generated for $CC */" > tmp-stdint.h
19017 sed 's/^ *//' >> tmp-stdint.h <<EOF
19019 #ifndef GCC_GENERATED_STDINT_H
19020 #define GCC_GENERATED_STDINT_H 1
19022 #include <sys/types.h>
19025 if test "$acx_cv_header_stdint" != stdint.h; then
19026 echo "#include <stddef.h>" >> tmp-stdint.h
19028 if test "$acx_cv_header_stdint" != stddef.h; then
19029 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19032 sed 's/^ *//' >> tmp-stdint.h <<EOF
19033 /* glibc uses these symbols as guards to prevent redefinitions. */
19034 #ifdef __int8_t_defined
19035 #define _INT8_T
19036 #define _INT16_T
19037 #define _INT32_T
19038 #endif
19039 #ifdef __uint32_t_defined
19040 #define _UINT32_T
19041 #endif
19045 # ----------------- done header, emit basic int types -------------
19046 if test "$acx_cv_header_stdint" = stddef.h; then
19047 sed 's/^ *//' >> tmp-stdint.h <<EOF
19049 #ifndef _UINT8_T
19050 #define _UINT8_T
19051 #ifndef __uint8_t_defined
19052 #define __uint8_t_defined
19053 #ifndef uint8_t
19054 typedef unsigned $acx_cv_type_int8_t uint8_t;
19055 #endif
19056 #endif
19057 #endif
19059 #ifndef _UINT16_T
19060 #define _UINT16_T
19061 #ifndef __uint16_t_defined
19062 #define __uint16_t_defined
19063 #ifndef uint16_t
19064 typedef unsigned $acx_cv_type_int16_t uint16_t;
19065 #endif
19066 #endif
19067 #endif
19069 #ifndef _UINT32_T
19070 #define _UINT32_T
19071 #ifndef __uint32_t_defined
19072 #define __uint32_t_defined
19073 #ifndef uint32_t
19074 typedef unsigned $acx_cv_type_int32_t uint32_t;
19075 #endif
19076 #endif
19077 #endif
19079 #ifndef _INT8_T
19080 #define _INT8_T
19081 #ifndef __int8_t_defined
19082 #define __int8_t_defined
19083 #ifndef int8_t
19084 typedef $acx_cv_type_int8_t int8_t;
19085 #endif
19086 #endif
19087 #endif
19089 #ifndef _INT16_T
19090 #define _INT16_T
19091 #ifndef __int16_t_defined
19092 #define __int16_t_defined
19093 #ifndef int16_t
19094 typedef $acx_cv_type_int16_t int16_t;
19095 #endif
19096 #endif
19097 #endif
19099 #ifndef _INT32_T
19100 #define _INT32_T
19101 #ifndef __int32_t_defined
19102 #define __int32_t_defined
19103 #ifndef int32_t
19104 typedef $acx_cv_type_int32_t int32_t;
19105 #endif
19106 #endif
19107 #endif
19109 elif test "$ac_cv_type_u_int32_t" = yes; then
19110 sed 's/^ *//' >> tmp-stdint.h <<EOF
19112 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19113 #ifndef _INT8_T
19114 #define _INT8_T
19115 #endif
19116 #ifndef _INT16_T
19117 #define _INT16_T
19118 #endif
19119 #ifndef _INT32_T
19120 #define _INT32_T
19121 #endif
19123 #ifndef _UINT8_T
19124 #define _UINT8_T
19125 #ifndef __uint8_t_defined
19126 #define __uint8_t_defined
19127 #ifndef uint8_t
19128 typedef u_int8_t uint8_t;
19129 #endif
19130 #endif
19131 #endif
19133 #ifndef _UINT16_T
19134 #define _UINT16_T
19135 #ifndef __uint16_t_defined
19136 #define __uint16_t_defined
19137 #ifndef uint16_t
19138 typedef u_int16_t uint16_t;
19139 #endif
19140 #endif
19141 #endif
19143 #ifndef _UINT32_T
19144 #define _UINT32_T
19145 #ifndef __uint32_t_defined
19146 #define __uint32_t_defined
19147 #ifndef uint32_t
19148 typedef u_int32_t uint32_t;
19149 #endif
19150 #endif
19151 #endif
19153 else
19154 sed 's/^ *//' >> tmp-stdint.h <<EOF
19156 /* Some systems have guard macros to prevent redefinitions, define them. */
19157 #ifndef _INT8_T
19158 #define _INT8_T
19159 #endif
19160 #ifndef _INT16_T
19161 #define _INT16_T
19162 #endif
19163 #ifndef _INT32_T
19164 #define _INT32_T
19165 #endif
19166 #ifndef _UINT8_T
19167 #define _UINT8_T
19168 #endif
19169 #ifndef _UINT16_T
19170 #define _UINT16_T
19171 #endif
19172 #ifndef _UINT32_T
19173 #define _UINT32_T
19174 #endif
19178 # ------------- done basic int types, emit int64_t types ------------
19179 if test "$ac_cv_type_uint64_t" = yes; then
19180 sed 's/^ *//' >> tmp-stdint.h <<EOF
19182 /* system headers have good uint64_t and int64_t */
19183 #ifndef _INT64_T
19184 #define _INT64_T
19185 #endif
19186 #ifndef _UINT64_T
19187 #define _UINT64_T
19188 #endif
19190 elif test "$ac_cv_type_u_int64_t" = yes; then
19191 sed 's/^ *//' >> tmp-stdint.h <<EOF
19193 /* system headers have an u_int64_t (and int64_t) */
19194 #ifndef _INT64_T
19195 #define _INT64_T
19196 #endif
19197 #ifndef _UINT64_T
19198 #define _UINT64_T
19199 #ifndef __uint64_t_defined
19200 #define __uint64_t_defined
19201 #ifndef uint64_t
19202 typedef u_int64_t uint64_t;
19203 #endif
19204 #endif
19205 #endif
19207 elif test -n "$acx_cv_type_int64_t"; then
19208 sed 's/^ *//' >> tmp-stdint.h <<EOF
19210 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19211 #ifndef _INT64_T
19212 #define _INT64_T
19213 #ifndef int64_t
19214 typedef $acx_cv_type_int64_t int64_t;
19215 #endif
19216 #endif
19217 #ifndef _UINT64_T
19218 #define _UINT64_T
19219 #ifndef __uint64_t_defined
19220 #define __uint64_t_defined
19221 #ifndef uint64_t
19222 typedef unsigned $acx_cv_type_int64_t uint64_t;
19223 #endif
19224 #endif
19225 #endif
19227 else
19228 sed 's/^ *//' >> tmp-stdint.h <<EOF
19230 /* some common heuristics for int64_t, using compiler-specific tests */
19231 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19232 #ifndef _INT64_T
19233 #define _INT64_T
19234 #ifndef __int64_t_defined
19235 #ifndef int64_t
19236 typedef long long int64_t;
19237 #endif
19238 #endif
19239 #endif
19240 #ifndef _UINT64_T
19241 #define _UINT64_T
19242 #ifndef uint64_t
19243 typedef unsigned long long uint64_t;
19244 #endif
19245 #endif
19247 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19248 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19249 does not implement __extension__. But that compiler doesn't define
19250 __GNUC_MINOR__. */
19251 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19252 # define __extension__
19253 # endif
19255 # ifndef _INT64_T
19256 # define _INT64_T
19257 # ifndef int64_t
19258 __extension__ typedef long long int64_t;
19259 # endif
19260 # endif
19261 # ifndef _UINT64_T
19262 # define _UINT64_T
19263 # ifndef uint64_t
19264 __extension__ typedef unsigned long long uint64_t;
19265 # endif
19266 # endif
19268 #elif !defined __STRICT_ANSI__
19269 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19271 # ifndef _INT64_T
19272 # define _INT64_T
19273 # ifndef int64_t
19274 typedef __int64 int64_t;
19275 # endif
19276 # endif
19277 # ifndef _UINT64_T
19278 # define _UINT64_T
19279 # ifndef uint64_t
19280 typedef unsigned __int64 uint64_t;
19281 # endif
19282 # endif
19283 # endif /* compiler */
19285 #endif /* ANSI version */
19289 # ------------- done int64_t types, emit intptr types ------------
19290 if test "$ac_cv_type_uintptr_t" != yes; then
19291 sed 's/^ *//' >> tmp-stdint.h <<EOF
19293 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19294 #ifndef __uintptr_t_defined
19295 #ifndef uintptr_t
19296 typedef u$acx_cv_type_intptr_t uintptr_t;
19297 #endif
19298 #endif
19299 #ifndef __intptr_t_defined
19300 #ifndef intptr_t
19301 typedef $acx_cv_type_intptr_t intptr_t;
19302 #endif
19303 #endif
19307 # ------------- done intptr types, emit int_least types ------------
19308 if test "$ac_cv_type_int_least32_t" != yes; then
19309 sed 's/^ *//' >> tmp-stdint.h <<EOF
19311 /* Define int_least types */
19312 typedef int8_t int_least8_t;
19313 typedef int16_t int_least16_t;
19314 typedef int32_t int_least32_t;
19315 #ifdef _INT64_T
19316 typedef int64_t int_least64_t;
19317 #endif
19319 typedef uint8_t uint_least8_t;
19320 typedef uint16_t uint_least16_t;
19321 typedef uint32_t uint_least32_t;
19322 #ifdef _UINT64_T
19323 typedef uint64_t uint_least64_t;
19324 #endif
19328 # ------------- done intptr types, emit int_fast types ------------
19329 if test "$ac_cv_type_int_fast32_t" != yes; then
19330 sed 's/^ *//' >> tmp-stdint.h <<EOF
19332 /* Define int_fast types. short is often slow */
19333 typedef int8_t int_fast8_t;
19334 typedef int int_fast16_t;
19335 typedef int32_t int_fast32_t;
19336 #ifdef _INT64_T
19337 typedef int64_t int_fast64_t;
19338 #endif
19340 typedef uint8_t uint_fast8_t;
19341 typedef unsigned int uint_fast16_t;
19342 typedef uint32_t uint_fast32_t;
19343 #ifdef _UINT64_T
19344 typedef uint64_t uint_fast64_t;
19345 #endif
19349 if test "$ac_cv_type_uintmax_t" != yes; then
19350 sed 's/^ *//' >> tmp-stdint.h <<EOF
19352 /* Define intmax based on what we found */
19353 #ifndef intmax_t
19354 #ifdef _INT64_T
19355 typedef int64_t intmax_t;
19356 #else
19357 typedef long intmax_t;
19358 #endif
19359 #endif
19360 #ifndef uintmax_t
19361 #ifdef _UINT64_T
19362 typedef uint64_t uintmax_t;
19363 #else
19364 typedef unsigned long uintmax_t;
19365 #endif
19366 #endif
19370 sed 's/^ *//' >> tmp-stdint.h <<EOF
19372 #endif /* GCC_GENERATED_STDINT_H */
19375 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19376 rm -f tmp-stdint.h
19377 else
19378 mv -f tmp-stdint.h gstdint.h
19382 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19383 s!`test -f '$<' || echo '$(srcdir)/'`!!
19384 _EOF
19385 sed -f vpsed$$ $ac_file > tmp$$
19386 mv tmp$$ $ac_file
19387 rm vpsed$$
19388 echo 'MULTISUBDIR =' >> $ac_file
19389 ml_norecursion=yes
19390 . ${multi_basedir}/config-ml.in
19391 { ml_norecursion=; unset ml_norecursion;}
19393 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19394 s!`test -f '$<' || echo '$(srcdir)/'`!!
19395 _EOF
19396 sed -f vpsed$$ $ac_file > tmp$$
19397 mv tmp$$ $ac_file
19398 rm vpsed$$
19399 echo 'MULTISUBDIR =' >> $ac_file
19400 ml_norecursion=yes
19401 . ${multi_basedir}/config-ml.in
19402 { ml_norecursion=; unset ml_norecursion;}
19404 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19405 s!`test -f '$<' || echo '$(srcdir)/'`!!
19406 _EOF
19407 sed -f vpsed$$ $ac_file > tmp$$
19408 mv tmp$$ $ac_file
19409 rm vpsed$$
19410 echo 'MULTISUBDIR =' >> $ac_file
19411 ml_norecursion=yes
19412 . ${multi_basedir}/config-ml.in
19413 { ml_norecursion=; unset ml_norecursion;}
19415 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19416 s!`test -f '$<' || echo '$(srcdir)/'`!!
19417 _EOF
19418 sed -f vpsed$$ $ac_file > tmp$$
19419 mv tmp$$ $ac_file
19420 rm vpsed$$
19421 echo 'MULTISUBDIR =' >> $ac_file
19422 ml_norecursion=yes
19423 . ${multi_basedir}/config-ml.in
19424 { ml_norecursion=; unset ml_norecursion;}
19426 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19427 s!`test -f '$<' || echo '$(srcdir)/'`!!
19428 _EOF
19429 sed -f vpsed$$ $ac_file > tmp$$
19430 mv tmp$$ $ac_file
19431 rm vpsed$$
19432 echo 'MULTISUBDIR =' >> $ac_file
19433 ml_norecursion=yes
19434 . ${multi_basedir}/config-ml.in
19435 { ml_norecursion=; unset ml_norecursion;}
19437 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19438 s!`test -f '$<' || echo '$(srcdir)/'`!!
19439 _EOF
19440 sed -f vpsed$$ $ac_file > tmp$$
19441 mv tmp$$ $ac_file
19442 rm vpsed$$
19443 echo 'MULTISUBDIR =' >> $ac_file
19444 ml_norecursion=yes
19445 . ${multi_basedir}/config-ml.in
19446 { ml_norecursion=; unset ml_norecursion;}
19448 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19449 s!`test -f '$<' || echo '$(srcdir)/'`!!
19450 _EOF
19451 sed -f vpsed$$ $ac_file > tmp$$
19452 mv tmp$$ $ac_file
19453 rm vpsed$$
19454 echo 'MULTISUBDIR =' >> $ac_file
19455 ml_norecursion=yes
19456 . ${multi_basedir}/config-ml.in
19457 { ml_norecursion=; unset ml_norecursion;}
19460 esac
19461 done # for ac_tag
19464 as_fn_exit 0
19465 _ACEOF
19466 ac_clean_files=$ac_clean_files_save
19468 test $ac_write_fail = 0 ||
19469 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19472 # configure is writing to config.log, and then calls config.status.
19473 # config.status does its own redirection, appending to config.log.
19474 # Unfortunately, on DOS this fails, as config.log is still kept open
19475 # by configure, so config.status won't be able to write to it; its
19476 # output is simply discarded. So we exec the FD to /dev/null,
19477 # effectively closing config.log, so it can be properly (re)opened and
19478 # appended to by config.status. When coming back to configure, we
19479 # need to make the FD available again.
19480 if test "$no_create" != yes; then
19481 ac_cs_success=:
19482 ac_config_status_args=
19483 test "$silent" = yes &&
19484 ac_config_status_args="$ac_config_status_args --quiet"
19485 exec 5>/dev/null
19486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19487 exec 5>>config.log
19488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19489 # would make configure fail if this is the last instruction.
19490 $ac_cs_success || as_fn_exit $?
19492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19494 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}