Suppress -fstack-protector warning on hppa.
[official-gcc.git] / libsanitizer / configure
blobd3de3dbba5176ac708470b9a71b9600263866abb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
282 exit 1
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
300 { eval $1=; unset $1;}
302 as_unset=as_fn_unset
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
309 return $1
310 } # as_fn_set_status
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
386 eval $1+=\$2
388 else
389 as_fn_append ()
391 eval $1=\$$1\$2
393 fi # as_fn_append
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
403 as_val=$(( $* ))
405 else
406 as_fn_arith ()
408 as_val=`expr "$@" || test $? -eq 1`
410 fi # as_fn_arith
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
457 /^X\/\(\/\/\)$/{
458 s//\1/
461 /^X\/\(\/\).*/{
462 s//\1/
465 s/.*/./; q'`
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
488 :lineno
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
520 ECHO_N='-n';;
521 esac
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
544 else
545 as_ln_s='cp -pR'
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566 SHELL=${CONFIG_SHELL-/bin/sh}
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 # Initializations.
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
589 # Identity of this package.
590 PACKAGE_NAME='package-unused'
591 PACKAGE_TARNAME='package-unused'
592 PACKAGE_VERSION='version-unused'
593 PACKAGE_STRING='package-unused version-unused'
594 PACKAGE_BUGREPORT='libsanitizer'
595 PACKAGE_URL=''
597 ac_unique_file="include/sanitizer/common_interface_defs.h"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 EXTRA_CXXFLAGS
639 EXTRA_CFLAGS
640 EXTRA_ASFLAGS
641 get_gcc_base_ver
642 WARN_FLAGS
643 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
644 TSAN_TARGET_DEPENDENT_OBJECTS
645 LIBBACKTRACE_SUPPORTED_FALSE
646 LIBBACKTRACE_SUPPORTED_TRUE
647 RPC_DEFS
648 BACKTRACE_SUPPORTS_THREADS
649 BACKTRACE_USES_MALLOC
650 ALLOC_FILE
651 VIEW_FILE
652 BACKTRACE_SUPPORTED
653 FORMAT_FILE
654 SANITIZER_SUPPORTED_FALSE
655 SANITIZER_SUPPORTED_TRUE
656 USING_MAC_INTERPOSE_FALSE
657 USING_MAC_INTERPOSE_TRUE
658 link_liblsan
659 link_libubsan
660 link_libtsan
661 link_libhwasan
662 link_libasan
663 HWASAN_SUPPORTED_FALSE
664 HWASAN_SUPPORTED_TRUE
665 LSAN_SUPPORTED_FALSE
666 LSAN_SUPPORTED_TRUE
667 TSAN_SUPPORTED_FALSE
668 TSAN_SUPPORTED_TRUE
669 enable_static
670 enable_shared
671 CXXCPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
678 OBJDUMP
679 LN_S
681 ac_ct_DUMPBIN
682 DUMPBIN
684 FGREP
686 LIBTOOL
687 RANLIB
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 am__fastdepCXX_FALSE
694 am__fastdepCXX_TRUE
695 CXXDEPMODE
696 ac_ct_CXX
697 CXXFLAGS
699 toolexeclibdir
700 toolexecdir
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 LIBSTDCXX_RAW_CXX_LDFLAGS
742 LIBSTDCXX_RAW_CXX_CXXFLAGS
743 target_noncanonical
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 EGREP
757 GREP
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
766 multi_basedir
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_multilib
809 enable_version_specific_runtime_libs
810 enable_dependency_tracking
811 enable_silent_rules
812 enable_maintainer_mode
813 with_toolexeclibdir
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 enable_libtool_lock
820 enable_werror
821 with_gcc_major_version_only
822 enable_cet
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
834 CXXFLAGS
836 CCAS
837 CCASFLAGS
838 CXXCPP'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1434 cat <<\_ACEOF
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of package-unused version-unused:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-multilib build many library versions (default)
1459 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-werror disable building with -Werror
1475 --enable-cet enable Intel CET in target libraries [default=auto]
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CCAS assembler compiler command (defaults to CC)
1501 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1502 CXXCPP C++ preprocessor
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <libsanitizer>.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 package-unused configure version-unused
1571 generated by GNU Autoconf 2.69
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=1
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_c_try_cpp LINENO
1623 # ----------------------
1624 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_cpp ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } > conftest.i && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_cpp
1659 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662 # the include files in INCLUDES and setting the cache variable VAR
1663 # accordingly.
1664 ac_fn_c_check_header_mongrel ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if eval \${$3+:} false; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 else
1677 # Is the header compilable?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679 $as_echo_n "checking $2 usability... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1687 else
1688 ac_header_compiler=no
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692 $as_echo "$ac_header_compiler" >&6; }
1694 # Is the header present?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696 $as_echo_n "checking $2 presence... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1703 else
1704 ac_header_preproc=no
1706 rm -f conftest.err conftest.i conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708 $as_echo "$ac_header_preproc" >&6; }
1710 # So? What about this header?
1711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 yes:no: )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 no:yes:* )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 ( $as_echo "## --------------------------- ##
1730 ## Report this to libsanitizer ##
1731 ## --------------------------- ##"
1732 ) | sed "s/^/$as_me: WARNING: /" >&2
1734 esac
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 eval "$3=\$ac_header_compiler"
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 } # ac_fn_c_check_header_mongrel
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=$ac_status
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_run
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_header_compile
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=1
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_link
1907 # ac_fn_c_check_func LINENO FUNC VAR
1908 # ----------------------------------
1909 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1910 ac_fn_c_check_func ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922 #define $2 innocuous_$2
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1929 #ifdef __STDC__
1930 # include <limits.h>
1931 #else
1932 # include <assert.h>
1933 #endif
1935 #undef $2
1937 /* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940 #ifdef __cplusplus
1941 extern "C"
1942 #endif
1943 char $2 ();
1944 /* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947 #if defined __stub_$2 || defined __stub___$2
1948 choke me
1949 #endif
1952 main ()
1954 return $2 ();
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1964 rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_func
1974 # ac_fn_cxx_try_cpp LINENO
1975 # ------------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_cpp ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_cpp conftest.$ac_ext"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } > conftest.i && {
1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_cpp
2011 # ac_fn_cxx_try_link LINENO
2012 # -------------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_link ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext conftest$ac_exeext
2018 if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>conftest.err
2026 ac_status=$?
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_cxx_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest$ac_exeext && {
2037 test "$cross_compiling" = yes ||
2038 test -x conftest$ac_exeext
2039 }; then :
2040 ac_retval=0
2041 else
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=1
2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049 # interfere with the next link command; also delete a directory that is
2050 # left behind by Apple's compiler. We do this before executing the actions.
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_cxx_try_link
2057 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2058 # --------------------------------------------
2059 # Tries to find the compile-time value of EXPR in a program that includes
2060 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2061 # computed
2062 ac_fn_c_compute_int ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if test "$cross_compiling" = yes; then
2066 # Depending upon the size, compute the lo and hi bounds.
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 static int test_array [1 - 2 * !(($2) >= 0)];
2074 test_array [0] = 0;
2075 return test_array [0];
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=0 ac_mid=0
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 test_array [0] = 0;
2092 return test_array [0];
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_hi=$ac_mid; break
2100 else
2101 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2102 if test $ac_lo -le $ac_mid; then
2103 ac_lo= ac_hi=
2104 break
2106 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2115 main ()
2117 static int test_array [1 - 2 * !(($2) < 0)];
2118 test_array [0] = 0;
2119 return test_array [0];
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0;
2136 return test_array [0];
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=$ac_mid; break
2144 else
2145 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2146 if test $ac_mid -le $ac_hi; then
2147 ac_lo= ac_hi=
2148 break
2150 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 ac_lo= ac_hi=
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 # Binary search between lo and hi bounds.
2161 while test "x$ac_lo" != "x$ac_hi"; do
2162 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 test_array [0] = 0;
2171 return test_array [0];
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid
2179 else
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 static long int longval () { return $2; }
2193 static unsigned long int ulongval () { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2197 main ()
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2210 else
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"; then :
2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227 else
2228 ac_retval=1
2230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 rm -f conftest.val
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 as_fn_set_status $ac_retval
2238 } # ac_fn_c_compute_int
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 eval "$3=no"
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 if (sizeof ($2))
2260 return 0;
2262 return 0;
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof (($2)))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2280 else
2281 eval "$3=yes"
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 } # ac_fn_c_check_type
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2295 # ---------------------------------------------
2296 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_check_decl ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 as_decl_name=`echo $2|sed 's/ *(.*//'`
2302 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2304 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2305 if eval \${$3+:} false; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2312 main ()
2314 #ifndef $as_decl_name
2315 #ifdef __cplusplus
2316 (void) $as_decl_use;
2317 #else
2318 (void) $as_decl_name;
2319 #endif
2320 #endif
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328 else
2329 eval "$3=no"
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_c_check_decl
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2343 It was created by package-unused $as_me version-unused, which was
2344 generated by GNU Autoconf 2.69. Invocation command line was
2346 $ $0 $@
2348 _ACEOF
2349 exec 5>>config.log
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2373 _ASUNAME
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 $as_echo "PATH: $as_dir"
2381 done
2382 IFS=$as_save_IFS
2384 } >&5
2386 cat >&5 <<_ACEOF
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2393 _ACEOF
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2407 for ac_arg
2409 case $ac_arg in
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2413 continue ;;
2414 *\'*)
2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 esac
2417 case $ac_pass in
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 as_fn_append ac_configure_args1 " '$ac_arg'"
2421 if test $ac_must_keep_next = true; then
2422 ac_must_keep_next=false # Got value, back to normal.
2423 else
2424 case $ac_arg in
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431 esac
2433 -* ) ac_must_keep_next=true ;;
2434 esac
2436 as_fn_append ac_configure_args " '$ac_arg'"
2438 esac
2439 done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2452 echo
2454 $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457 echo
2458 # The following way of writing the cache mishandles newlines in values,
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in #(
2463 *${as_nl}*)
2464 case $ac_var in #(
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467 esac
2468 case $ac_var in #(
2469 _ | IFS | as_nl) ;; #(
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
2472 esac ;;
2473 esac
2474 done
2475 (set) 2>&1 |
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
2478 sed -n \
2479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481 ;; #(
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 esac |
2486 sort
2488 echo
2490 $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493 echo
2494 for ac_var in $ac_subst_vars
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2504 if test -n "$ac_subst_files"; then
2505 $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508 echo
2509 for ac_var in $ac_subst_files
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2520 if test -s confdefs.h; then
2521 $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524 echo
2525 cat confdefs.h
2526 echo
2528 test "$ac_signal" != 0 &&
2529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
2531 } >&5
2532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534 exit $exit_status
2536 for ac_signal in 1 2 13 15; do
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2544 $as_echo "/* confdefs.h */" > confdefs.h
2546 # Predefined preprocessor variables.
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1=./$CONFIG_SITE;;
2581 */*) ac_site_file1=$CONFIG_SITE;;
2582 *) ac_site_file1=./$CONFIG_SITE;;
2583 esac
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2587 else
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE && continue
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2598 . "$ac_site_file" \
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2604 done
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612 case $cache_file in
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
2615 esac
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620 >$cache_file
2623 # Check that the precious variables saved in the cache have kept the same
2624 # value.
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2632 set,)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,set)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2640 ,);;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x $ac_old_val`
2645 ac_new_val_w=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted=:
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2659 fi;;
2660 esac
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2663 case $ac_new_val in
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 *) ac_arg=$ac_var=$ac_new_val ;;
2666 esac
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670 esac
2672 done
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 # Default to --enable-multilib
2697 # Check whether --enable-multilib was given.
2698 if test "${enable_multilib+set}" = set; then :
2699 enableval=$enable_multilib; case "$enableval" in
2700 yes) multilib=yes ;;
2701 no) multilib=no ;;
2702 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2703 esac
2704 else
2705 multilib=yes
2709 # We may get other options which we leave undocumented:
2710 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2711 # See config-ml.in if you want the gory details.
2713 if test "$srcdir" = "."; then
2714 if test "$with_target_subdir" != "."; then
2715 multi_basedir="$srcdir/$with_multisrctop../.."
2716 else
2717 multi_basedir="$srcdir/$with_multisrctop.."
2719 else
2720 multi_basedir="$srcdir/.."
2724 # Even if the default multilib is not a cross compilation,
2725 # it may be that some of the other multilibs are.
2726 if test $cross_compiling = no && test $multilib = yes \
2727 && test "x${with_multisubdir}" != x ; then
2728 cross_compiling=maybe
2731 ac_config_commands="$ac_config_commands default-1"
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2735 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2736 # Check whether --enable-version-specific-runtime-libs was given.
2737 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2738 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2739 yes) version_specific_libs=yes ;;
2740 no) version_specific_libs=no ;;
2741 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2742 esac
2743 else
2744 version_specific_libs=no
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2748 $as_echo "$version_specific_libs" >&6; }
2750 ac_aux_dir=
2751 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2765 done
2766 if test -z "$ac_aux_dir"; then
2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2770 # These three variables are undocumented and unsupported,
2771 # and are intended to be withdrawn in a future Autoconf release.
2772 # They can cause serious problems if a builder's source tree is in a directory
2773 # whose full name contains unusual characters.
2774 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2775 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2776 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2779 # Expand $ac_aux_dir to an absolute path.
2780 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2827 ac_ct_CC=$CC
2828 # Extract the first word of "gcc", so it can be a program name with args.
2829 set dummy gcc; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_ac_ct_CC="gcc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2875 else
2876 CC="$ac_cv_prog_CC"
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="${ac_tool_prefix}cc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2920 if test -z "$CC"; then
2921 # Extract the first word of "cc", so it can be a program name with args.
2922 set dummy cc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 ac_prog_rejected=no
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2940 ac_prog_rejected=yes
2941 continue
2943 ac_cv_prog_CC="cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2951 if test $ac_prog_rejected = yes; then
2952 # We found a bogon in the path, so make sure we never use it.
2953 set dummy $ac_cv_prog_CC
2954 shift
2955 if test $# != 0; then
2956 # We chose a different compiler from the bogus one.
2957 # However, it has the same basename, so the bogon will be chosen
2958 # first if we set CC to just the basename; use the full file name.
2959 shift
2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3018 done
3020 if test -z "$CC"; then
3021 ac_ct_CC=$CC
3022 for ac_prog in cl.exe
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3062 done
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CC=$ac_ct_CC
3080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details" "$LINENO" 5; }
3085 # Provide some information about the compiler.
3086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3087 set X $ac_compile
3088 ac_compiler=$2
3089 for ac_option in --version -v -V -qversion; do
3090 { { ac_try="$ac_compiler $ac_option >&5"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3098 ac_status=$?
3099 if test -s conftest.err; then
3100 sed '10a\
3101 ... rest of stderr output deleted ...
3102 10q' conftest.err >conftest.er1
3103 cat conftest.er1 >&5
3105 rm -f conftest.er1 conftest.err
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 done
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3125 # of exeext.
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3127 $as_echo_n "checking whether the C compiler works... " >&6; }
3128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130 # The possible output files:
3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133 ac_rmfiles=
3134 for ac_file in $ac_files
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 esac
3140 done
3141 rm -f $ac_rmfiles
3143 if { { ac_try="$ac_link_default"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link_default") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3158 # Autoconf.
3159 for ac_file in $ac_files ''
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 [ab].out )
3166 # We found the default executable, but exeext='' is most
3167 # certainly right.
3168 break;;
3169 *.* )
3170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3171 then :; else
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3178 # actually working.
3179 break;;
3181 break;;
3182 esac
3183 done
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186 else
3187 ac_file=''
3189 if test -z "$ac_file"; then :
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error 77 "C compiler cannot create executables
3198 See \`config.log' for more details" "$LINENO" 5; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206 $as_echo "$ac_file" >&6; }
3207 ac_exeext=$ac_cv_exeext
3209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3212 $as_echo_n "checking for suffix of executables... " >&6; }
3213 if { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; then :
3224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 # `rm'.
3228 for ac_file in conftest.exe conftest conftest.*; do
3229 test -f "$ac_file" || continue
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 break;;
3234 * ) break;;
3235 esac
3236 done
3237 else
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details" "$LINENO" 5; }
3243 rm -f conftest conftest$ac_cv_exeext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3245 $as_echo "$ac_cv_exeext" >&6; }
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <stdio.h>
3254 main ()
3256 FILE *f = fopen ("conftest.out", "w");
3257 return ferror (f) || fclose (f) != 0;
3260 return 0;
3262 _ACEOF
3263 ac_clean_files="$ac_clean_files conftest.out"
3264 # Check that the compiler produces executables we can run. If not, either
3265 # the compiler is broken, or we cross compile.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3267 $as_echo_n "checking whether we are cross compiling... " >&6; }
3268 if test "$cross_compiling" != yes; then
3269 { { ac_try="$ac_link"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280 if { ac_try='./conftest$ac_cv_exeext'
3281 { { case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; }; then
3291 cross_compiling=no
3292 else
3293 if test "$cross_compiling" = maybe; then
3294 cross_compiling=yes
3295 else
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "cannot run C compiled programs.
3299 If you meant to cross compile, use \`--host'.
3300 See \`config.log' for more details" "$LINENO" 5; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3305 $as_echo "$cross_compiling" >&6; }
3307 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if ${ac_cv_objext+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 for ac_file in conftest.o conftest.obj conftest.*; do
3338 test -f "$ac_file" || continue;
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 break;;
3343 esac
3344 done
3345 else
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357 $as_echo "$ac_cv_objext" >&6; }
3358 OBJEXT=$ac_cv_objext
3359 ac_objext=$OBJEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3362 if ${ac_cv_c_compiler_gnu+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3371 #ifndef __GNUC__
3372 choke me
3373 #endif
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_compiler_gnu=yes
3381 else
3382 ac_compiler_gnu=no
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if ${ac_cv_prog_cc_g+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3419 else
3420 CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3434 else
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_g=yes
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3468 else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3477 if ${ac_cv_prog_cc_c89+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 ac_cv_prog_cc_c89=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 struct stat;
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3577 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3578 if ${am_cv_prog_cc_c_o+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 # Make sure it works both with $CC and with simple cc.
3593 # Following AC_PROG_CC_C_O, we do the test twice because some
3594 # compilers refuse to overwrite an existing .o file with -o,
3595 # though they will create one.
3596 am_cv_prog_cc_c_o=yes
3597 for am_i in 1 2; do
3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } \
3603 && test -f conftest2.$ac_objext; then
3604 : OK
3605 else
3606 am_cv_prog_cc_c_o=no
3607 break
3609 done
3610 rm -f core conftest*
3611 unset am_i
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3615 if test "$am_cv_prog_cc_c_o" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3642 if test -z "$CPP"; then
3643 if ${ac_cv_prog_CPP+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3649 ac_preproc_ok=false
3650 for ac_c_preproc_warn_flag in '' yes
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #ifdef __STDC__
3661 # include <limits.h>
3662 #else
3663 # include <assert.h>
3664 #endif
3665 Syntax error
3666 _ACEOF
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3669 else
3670 # Broken: fails on valid input.
3671 continue
3673 rm -f conftest.err conftest.i conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <ac_nonexistent.h>
3680 _ACEOF
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3682 # Broken: success on invalid input.
3683 continue
3684 else
3685 # Passes both tests.
3686 ac_preproc_ok=:
3687 break
3689 rm -f conftest.err conftest.i conftest.$ac_ext
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.i conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then :
3695 break
3698 done
3699 ac_cv_prog_CPP=$CPP
3702 CPP=$ac_cv_prog_CPP
3703 else
3704 ac_cv_prog_CPP=$CPP
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3707 $as_echo "$CPP" >&6; }
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3728 else
3729 # Broken: fails on valid input.
3730 continue
3732 rm -f conftest.err conftest.i conftest.$ac_ext
3734 # OK, works on sane cases. Now check whether nonexistent headers
3735 # can be detected and how.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.i conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3755 else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details" "$LINENO" 5; }
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3771 if ${ac_cv_path_GREP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$GREP"; then
3775 ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in grep ggrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785 as_fn_executable_p "$ac_path_GREP" || continue
3786 # Check for GNU ac_path_GREP and select it if it is found.
3787 # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3789 *GNU*)
3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 ac_count=0
3793 $as_echo_n 0123456789 >"conftest.in"
3794 while :
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 $as_echo 'GREP' >> "conftest.nl"
3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 as_fn_arith $ac_count + 1 && ac_count=$as_val
3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_GREP="$ac_path_GREP"
3806 ac_path_GREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3810 done
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3814 $ac_path_GREP_found && break 3
3815 done
3816 done
3817 done
3818 IFS=$as_save_IFS
3819 if test -z "$ac_cv_path_GREP"; then
3820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 else
3823 ac_cv_path_GREP=$GREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3828 $as_echo "$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3833 $as_echo_n "checking for egrep... " >&6; }
3834 if ${ac_cv_path_EGREP+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3839 else
3840 if test -z "$EGREP"; then
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 as_fn_executable_p "$ac_path_EGREP" || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858 ac_count=0
3859 $as_echo_n 0123456789 >"conftest.in"
3860 while :
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3880 $ac_path_EGREP_found && break 3
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_EGREP"; then
3886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3888 else
3889 ac_cv_path_EGREP=$EGREP
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3895 $as_echo "$ac_cv_path_EGREP" >&6; }
3896 EGREP="$ac_cv_path_EGREP"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3900 $as_echo_n "checking for ANSI C header files... " >&6; }
3901 if ${ac_cv_header_stdc+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3907 #include <stdarg.h>
3908 #include <string.h>
3909 #include <float.h>
3912 main ()
3916 return 0;
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_header_stdc=yes
3921 else
3922 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <string.h>
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then :
3936 else
3937 ac_cv_header_stdc=no
3939 rm -f conftest*
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdlib.h>
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "free" >/dev/null 2>&1; then :
3953 else
3954 ac_cv_header_stdc=no
3956 rm -f conftest*
3960 if test $ac_cv_header_stdc = yes; then
3961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3962 if test "$cross_compiling" = yes; then :
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <ctype.h>
3968 #include <stdlib.h>
3969 #if ((' ' & 0x0FF) == 0x020)
3970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3972 #else
3973 # define ISLOWER(c) \
3974 (('a' <= (c) && (c) <= 'i') \
3975 || ('j' <= (c) && (c) <= 'r') \
3976 || ('s' <= (c) && (c) <= 'z'))
3977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #endif
3980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 main ()
3984 int i;
3985 for (i = 0; i < 256; i++)
3986 if (XOR (islower (i), ISLOWER (i))
3987 || toupper (i) != TOUPPER (i))
3988 return 2;
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_run "$LINENO"; then :
3994 else
3995 ac_cv_header_stdc=no
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4004 $as_echo "$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4014 do :
4015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4019 cat >>confdefs.h <<_ACEOF
4020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4021 _ACEOF
4025 done
4029 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4030 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4031 MINIX=yes
4032 else
4033 MINIX=
4037 if test "$MINIX" = yes; then
4039 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4042 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4045 $as_echo "#define _MINIX 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4051 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4052 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4058 # define __EXTENSIONS__ 1
4059 $ac_includes_default
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_safe_to_define___extensions__=yes
4070 else
4071 ac_cv_safe_to_define___extensions__=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4076 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4077 test $ac_cv_safe_to_define___extensions__ = yes &&
4078 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4080 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4082 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4084 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4086 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4090 # Do not delete or change the following two lines. For why, see
4091 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4092 # Make sure we can run config.sub.
4093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4097 $as_echo_n "checking build system type... " >&6; }
4098 if ${ac_cv_build+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 ac_build_alias=$build_alias
4102 test "x$ac_build_alias" = x &&
4103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4104 test "x$ac_build_alias" = x &&
4105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4111 $as_echo "$ac_cv_build" >&6; }
4112 case $ac_cv_build in
4113 *-*-*) ;;
4114 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4115 esac
4116 build=$ac_cv_build
4117 ac_save_IFS=$IFS; IFS='-'
4118 set x $ac_cv_build
4119 shift
4120 build_cpu=$1
4121 build_vendor=$2
4122 shift; shift
4123 # Remember, the first character of IFS is used to create $*,
4124 # except with old shells:
4125 build_os=$*
4126 IFS=$ac_save_IFS
4127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4131 $as_echo_n "checking host system type... " >&6; }
4132 if ${ac_cv_host+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test "x$host_alias" = x; then
4136 ac_cv_host=$ac_cv_build
4137 else
4138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4144 $as_echo "$ac_cv_host" >&6; }
4145 case $ac_cv_host in
4146 *-*-*) ;;
4147 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4148 esac
4149 host=$ac_cv_host
4150 ac_save_IFS=$IFS; IFS='-'
4151 set x $ac_cv_host
4152 shift
4153 host_cpu=$1
4154 host_vendor=$2
4155 shift; shift
4156 # Remember, the first character of IFS is used to create $*,
4157 # except with old shells:
4158 host_os=$*
4159 IFS=$ac_save_IFS
4160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4164 $as_echo_n "checking target system type... " >&6; }
4165 if ${ac_cv_target+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test "x$target_alias" = x; then
4169 ac_cv_target=$ac_cv_host
4170 else
4171 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4177 $as_echo "$ac_cv_target" >&6; }
4178 case $ac_cv_target in
4179 *-*-*) ;;
4180 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4181 esac
4182 target=$ac_cv_target
4183 ac_save_IFS=$IFS; IFS='-'
4184 set x $ac_cv_target
4185 shift
4186 target_cpu=$1
4187 target_vendor=$2
4188 shift; shift
4189 # Remember, the first character of IFS is used to create $*,
4190 # except with old shells:
4191 target_os=$*
4192 IFS=$ac_save_IFS
4193 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4196 # The aliases save the names the user supplied, while $host etc.
4197 # will get canonicalized.
4198 test -n "$target_alias" &&
4199 test "$program_prefix$program_suffix$program_transform_name" = \
4200 NONENONEs,x,x, &&
4201 program_prefix=${target_alias}-
4203 target_alias=${target_alias-$host_alias}
4205 case ${build_alias} in
4206 "") build_noncanonical=${build} ;;
4207 *) build_noncanonical=${build_alias} ;;
4208 esac
4210 case ${host_alias} in
4211 "") host_noncanonical=${build_noncanonical} ;;
4212 *) host_noncanonical=${host_alias} ;;
4213 esac
4215 case ${target_alias} in
4216 "") target_noncanonical=${host_noncanonical} ;;
4217 *) target_noncanonical=${target_alias} ;;
4218 esac
4224 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4225 -I\$(top_builddir)/../libstdc++-v3/include \
4226 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4227 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4228 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4229 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4234 am__api_version='1.15'
4236 # Find a good install program. We prefer a C program (faster),
4237 # so one script is as good as another. But avoid the broken or
4238 # incompatible versions:
4239 # SysV /etc/install, /usr/sbin/install
4240 # SunOS /usr/etc/install
4241 # IRIX /sbin/install
4242 # AIX /bin/install
4243 # AmigaOS /C/install, which installs bootblocks on floppy discs
4244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4247 # OS/2's system install, which has a completely different semantic
4248 # ./install, which can be erroneously created by make from ./install.sh.
4249 # Reject install programs that cannot install multiple files.
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4252 if test -z "$INSTALL"; then
4253 if ${ac_cv_path_install+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262 case $as_dir/ in #((
4263 ./ | .// | /[cC]/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4266 /usr/ucb/* ) ;;
4268 # OSF1 and SCO ODT 3.0 have their own names for install.
4269 # Don't use installbsd from OSF since it installs stuff as root
4270 # by default.
4271 for ac_prog in ginstall scoinst install; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4274 if test $ac_prog = install &&
4275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4276 # AIX install. It has an incompatible calling convention.
4278 elif test $ac_prog = install &&
4279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280 # program-specific install script used by HP pwplus--don't use.
4282 else
4283 rm -rf conftest.one conftest.two conftest.dir
4284 echo one > conftest.one
4285 echo two > conftest.two
4286 mkdir conftest.dir
4287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4288 test -s conftest.one && test -s conftest.two &&
4289 test -s conftest.dir/conftest.one &&
4290 test -s conftest.dir/conftest.two
4291 then
4292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4293 break 3
4297 done
4298 done
4300 esac
4302 done
4303 IFS=$as_save_IFS
4305 rm -rf conftest.one conftest.two conftest.dir
4308 if test "${ac_cv_path_install+set}" = set; then
4309 INSTALL=$ac_cv_path_install
4310 else
4311 # As a last resort, use the slow shell script. Don't cache a
4312 # value for INSTALL within a source directory, because that will
4313 # break other packages using the cache if that directory is
4314 # removed, or if the value is a relative name.
4315 INSTALL=$ac_install_sh
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4319 $as_echo "$INSTALL" >&6; }
4321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4322 # It thinks the first close brace ends the variable substitution.
4323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4330 $as_echo_n "checking whether build environment is sane... " >&6; }
4331 # Reject unsafe characters in $srcdir or the absolute working directory
4332 # name. Accept space and tab only in the latter.
4333 am_lf='
4335 case `pwd` in
4336 *[\\\"\#\$\&\'\`$am_lf]*)
4337 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4338 esac
4339 case $srcdir in
4340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4341 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4342 esac
4344 # Do 'set' in a subshell so we don't clobber the current shell's
4345 # arguments. Must try -L first in case configure is actually a
4346 # symlink; some systems play weird games with the mod time of symlinks
4347 # (eg FreeBSD returns the mod time of the symlink's containing
4348 # directory).
4349 if (
4350 am_has_slept=no
4351 for am_try in 1 2; do
4352 echo "timestamp, slept: $am_has_slept" > conftest.file
4353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4354 if test "$*" = "X"; then
4355 # -L didn't work.
4356 set X `ls -t "$srcdir/configure" conftest.file`
4358 if test "$*" != "X $srcdir/configure conftest.file" \
4359 && test "$*" != "X conftest.file $srcdir/configure"; then
4361 # If neither matched, then we have a broken ls. This can happen
4362 # if, for instance, CONFIG_SHELL is bash and it inherits a
4363 # broken ls alias from the environment. This has actually
4364 # happened. Such a system could not be considered "sane".
4365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4366 alias in your environment" "$LINENO" 5
4368 if test "$2" = conftest.file || test $am_try -eq 2; then
4369 break
4371 # Just in case.
4372 sleep 1
4373 am_has_slept=yes
4374 done
4375 test "$2" = conftest.file
4377 then
4378 # Ok.
4380 else
4381 as_fn_error $? "newly created file is older than distributed files!
4382 Check your system clock" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4385 $as_echo "yes" >&6; }
4386 # If we didn't sleep, we still need to ensure time stamps of config.status and
4387 # generated files are strictly newer.
4388 am_sleep_pid=
4389 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4390 ( sleep 1 ) &
4391 am_sleep_pid=$!
4394 rm -f conftest.file
4396 test "$program_prefix" != NONE &&
4397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4398 # Use a double $ so make ignores it.
4399 test "$program_suffix" != NONE &&
4400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4401 # Double any \ or $.
4402 # By default was `s,x,x', remove it if useless.
4403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4406 if test x"${MISSING+set}" != xset; then
4407 case $am_aux_dir in
4408 *\ * | *\ *)
4409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4412 esac
4414 # Use eval to expand $SHELL
4415 if eval "$MISSING --is-lightweight"; then
4416 am_missing_run="$MISSING "
4417 else
4418 am_missing_run=
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4420 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4423 if test x"${install_sh+set}" != xset; then
4424 case $am_aux_dir in
4425 *\ * | *\ *)
4426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4428 install_sh="\${SHELL} $am_aux_dir/install-sh"
4429 esac
4432 # Installed binaries are usually stripped using 'strip' when the user
4433 # run "make install-strip". However 'strip' might not be the right
4434 # tool to use in cross-compilation environments, therefore Automake
4435 # will honor the 'STRIP' environment variable to overrule this program.
4436 if test "$cross_compiling" != no; then
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}strip; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_STRIP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$STRIP"; then
4446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 STRIP=$ac_cv_prog_STRIP
4466 if test -n "$STRIP"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4468 $as_echo "$STRIP" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4476 if test -z "$ac_cv_prog_STRIP"; then
4477 ac_ct_STRIP=$STRIP
4478 # Extract the first word of "strip", so it can be a program name with args.
4479 set dummy strip; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$ac_ct_STRIP"; then
4486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_STRIP="strip"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4506 if test -n "$ac_ct_STRIP"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4508 $as_echo "$ac_ct_STRIP" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4514 if test "x$ac_ct_STRIP" = x; then
4515 STRIP=":"
4516 else
4517 case $cross_compiling:$ac_tool_warned in
4518 yes:)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4521 ac_tool_warned=yes ;;
4522 esac
4523 STRIP=$ac_ct_STRIP
4525 else
4526 STRIP="$ac_cv_prog_STRIP"
4530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4534 if test -z "$MKDIR_P"; then
4535 if ${ac_cv_path_mkdir+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_prog in mkdir gmkdir; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4547 'mkdir (GNU coreutils) '* | \
4548 'mkdir (coreutils) '* | \
4549 'mkdir (fileutils) '4.1*)
4550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4551 break 3;;
4552 esac
4553 done
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 test -d ./--version && rmdir ./--version
4561 if test "${ac_cv_path_mkdir+set}" = set; then
4562 MKDIR_P="$ac_cv_path_mkdir -p"
4563 else
4564 # As a last resort, use the slow shell script. Don't cache a
4565 # value for MKDIR_P within a source directory, because that will
4566 # break other packages using the cache if that directory is
4567 # removed, or if the value is a relative name.
4568 MKDIR_P="$ac_install_sh -d"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4572 $as_echo "$MKDIR_P" >&6; }
4574 for ac_prog in gawk mawk nawk awk
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_AWK+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$AWK"; then
4584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_AWK="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 AWK=$ac_cv_prog_AWK
4604 if test -n "$AWK"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4606 $as_echo "$AWK" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$AWK" && break
4614 done
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4617 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4618 set x ${MAKE-make}
4619 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4620 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 cat >conftest.make <<\_ACEOF
4624 SHELL = /bin/sh
4625 all:
4626 @echo '@@@%%%=$(MAKE)=@@@%%%'
4627 _ACEOF
4628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4630 *@@@%%%=?*=@@@%%%*)
4631 eval ac_cv_prog_make_${ac_make}_set=yes;;
4633 eval ac_cv_prog_make_${ac_make}_set=no;;
4634 esac
4635 rm -f conftest.make
4637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639 $as_echo "yes" >&6; }
4640 SET_MAKE=
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644 SET_MAKE="MAKE=${MAKE-make}"
4647 rm -rf .tst 2>/dev/null
4648 mkdir .tst 2>/dev/null
4649 if test -d .tst; then
4650 am__leading_dot=.
4651 else
4652 am__leading_dot=_
4654 rmdir .tst 2>/dev/null
4656 DEPDIR="${am__leading_dot}deps"
4658 ac_config_commands="$ac_config_commands depfiles"
4661 am_make=${MAKE-make}
4662 cat > confinc << 'END'
4663 am__doit:
4664 @echo this is the am__doit target
4665 .PHONY: am__doit
4667 # If we don't find an include directive, just comment out the code.
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4669 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4670 am__include="#"
4671 am__quote=
4672 _am_result=none
4673 # First try GNU make style include.
4674 echo "include confinc" > confmf
4675 # Ignore all kinds of additional output from 'make'.
4676 case `$am_make -s -f confmf 2> /dev/null` in #(
4677 *the\ am__doit\ target*)
4678 am__include=include
4679 am__quote=
4680 _am_result=GNU
4682 esac
4683 # Now try BSD make style include.
4684 if test "$am__include" = "#"; then
4685 echo '.include "confinc"' > confmf
4686 case `$am_make -s -f confmf 2> /dev/null` in #(
4687 *the\ am__doit\ target*)
4688 am__include=.include
4689 am__quote="\""
4690 _am_result=BSD
4692 esac
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4697 $as_echo "$_am_result" >&6; }
4698 rm -f confinc confmf
4700 # Check whether --enable-dependency-tracking was given.
4701 if test "${enable_dependency_tracking+set}" = set; then :
4702 enableval=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno; then
4706 am_depcomp="$ac_aux_dir/depcomp"
4707 AMDEPBACKSLASH='\'
4708 am__nodep='_no'
4710 if test "x$enable_dependency_tracking" != xno; then
4711 AMDEP_TRUE=
4712 AMDEP_FALSE='#'
4713 else
4714 AMDEP_TRUE='#'
4715 AMDEP_FALSE=
4719 # Check whether --enable-silent-rules was given.
4720 if test "${enable_silent_rules+set}" = set; then :
4721 enableval=$enable_silent_rules;
4724 case $enable_silent_rules in # (((
4725 yes) AM_DEFAULT_VERBOSITY=0;;
4726 no) AM_DEFAULT_VERBOSITY=1;;
4727 *) AM_DEFAULT_VERBOSITY=1;;
4728 esac
4729 am_make=${MAKE-make}
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4731 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4732 if ${am_cv_make_support_nested_variables+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if $as_echo 'TRUE=$(BAR$(V))
4736 BAR0=false
4737 BAR1=true
4739 am__doit:
4740 @$(TRUE)
4741 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4742 am_cv_make_support_nested_variables=yes
4743 else
4744 am_cv_make_support_nested_variables=no
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4748 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4749 if test $am_cv_make_support_nested_variables = yes; then
4750 AM_V='$(V)'
4751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4752 else
4753 AM_V=$AM_DEFAULT_VERBOSITY
4754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4756 AM_BACKSLASH='\'
4758 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4759 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4760 # is not polluted with repeated "-I."
4761 am__isrc=' -I$(srcdir)'
4762 # test to see if srcdir already configured
4763 if test -f $srcdir/config.status; then
4764 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4768 # test whether we have cygpath
4769 if test -z "$CYGPATH_W"; then
4770 if (cygpath --version) >/dev/null 2>/dev/null; then
4771 CYGPATH_W='cygpath -w'
4772 else
4773 CYGPATH_W=echo
4778 # Define the identity of the package.
4779 PACKAGE='package-unused'
4780 VERSION='version-unused'
4783 cat >>confdefs.h <<_ACEOF
4784 #define PACKAGE "$PACKAGE"
4785 _ACEOF
4788 cat >>confdefs.h <<_ACEOF
4789 #define VERSION "$VERSION"
4790 _ACEOF
4792 # Some tools Automake needs.
4794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4808 # For better backward compatibility. To be removed once Automake 1.9.x
4809 # dies out for good. For more background, see:
4810 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4811 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4812 mkdir_p='$(MKDIR_P)'
4814 # We need awk for the "check" target (and possibly the TAP driver). The
4815 # system "awk" is bad on some platforms.
4816 # Always define AMTAR for backward compatibility. Yes, it's still used
4817 # in the wild :-( We should find a proper way to deprecate it ...
4818 AMTAR='$${TAR-tar}'
4821 # We'll loop over all known methods to create a tar archive until one works.
4822 _am_tools='gnutar pax cpio none'
4824 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4830 depcc="$CC" am_compiler_list=
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4833 $as_echo_n "checking dependency style of $depcc... " >&6; }
4834 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4838 # We make a subdir and do the tests there. Otherwise we can end up
4839 # making bogus files that we don't know about and never remove. For
4840 # instance it was reported that on HP-UX the gcc test will end up
4841 # making a dummy file named 'D' -- because '-MD' means "put the output
4842 # in D".
4843 rm -rf conftest.dir
4844 mkdir conftest.dir
4845 # Copy depcomp to subdir because otherwise we won't find it if we're
4846 # using a relative directory.
4847 cp "$am_depcomp" conftest.dir
4848 cd conftest.dir
4849 # We will build objects and dependencies in a subdirectory because
4850 # it helps to detect inapplicable dependency modes. For instance
4851 # both Tru64's cc and ICC support -MD to output dependencies as a
4852 # side effect of compilation, but ICC will put the dependencies in
4853 # the current directory while Tru64 will put them in the object
4854 # directory.
4855 mkdir sub
4857 am_cv_CC_dependencies_compiler_type=none
4858 if test "$am_compiler_list" = ""; then
4859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4861 am__universal=false
4862 case " $depcc " in #(
4863 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4864 esac
4866 for depmode in $am_compiler_list; do
4867 # Setup a source with many dependencies, because some compilers
4868 # like to wrap large dependency lists on column 80 (with \), and
4869 # we should not choose a depcomp mode which is confused by this.
4871 # We need to recreate these files for each test, as the compiler may
4872 # overwrite some of them when testing with obscure command lines.
4873 # This happens at least with the AIX C compiler.
4874 : > sub/conftest.c
4875 for i in 1 2 3 4 5 6; do
4876 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4878 # Solaris 10 /bin/sh.
4879 echo '/* dummy */' > sub/conftst$i.h
4880 done
4881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4883 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4884 # mode. It turns out that the SunPro C++ compiler does not properly
4885 # handle '-M -o', and we need to detect this. Also, some Intel
4886 # versions had trouble with output in subdirs.
4887 am__obj=sub/conftest.${OBJEXT-o}
4888 am__minus_obj="-o $am__obj"
4889 case $depmode in
4890 gcc)
4891 # This depmode causes a compiler race in universal mode.
4892 test "$am__universal" = false || continue
4894 nosideeffect)
4895 # After this tag, mechanisms are not by side-effect, so they'll
4896 # only be used when explicitly requested.
4897 if test "x$enable_dependency_tracking" = xyes; then
4898 continue
4899 else
4900 break
4903 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4904 # This compiler won't grok '-c -o', but also, the minuso test has
4905 # not run yet. These depmodes are late enough in the game, and
4906 # so weak that their functioning should not be impacted.
4907 am__obj=conftest.${OBJEXT-o}
4908 am__minus_obj=
4910 none) break ;;
4911 esac
4912 if depmode=$depmode \
4913 source=sub/conftest.c object=$am__obj \
4914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4915 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4916 >/dev/null 2>conftest.err &&
4917 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4919 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4921 # icc doesn't choke on unknown options, it will just issue warnings
4922 # or remarks (even with -Werror). So we grep stderr for any message
4923 # that says an option was ignored or not supported.
4924 # When given -MP, icc 7.0 and 7.1 complain thusly:
4925 # icc: Command line warning: ignoring option '-M'; no argument required
4926 # The diagnosis changed in icc 8.0:
4927 # icc: Command line remark: option '-MP' not supported
4928 if (grep 'ignoring option' conftest.err ||
4929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4930 am_cv_CC_dependencies_compiler_type=$depmode
4931 break
4934 done
4936 cd ..
4937 rm -rf conftest.dir
4938 else
4939 am_cv_CC_dependencies_compiler_type=none
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4944 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4948 test "x$enable_dependency_tracking" != xno \
4949 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4950 am__fastdepCC_TRUE=
4951 am__fastdepCC_FALSE='#'
4952 else
4953 am__fastdepCC_TRUE='#'
4954 am__fastdepCC_FALSE=
4959 # POSIX will say in a future version that running "rm -f" with no argument
4960 # is OK; and we want to be able to make that assumption in our Makefile
4961 # recipes. So use an aggressive probe to check that the usage we want is
4962 # actually supported "in the wild" to an acceptable degree.
4963 # See automake bug#10828.
4964 # To make any issue more visible, cause the running configure to be aborted
4965 # by default if the 'rm' program in use doesn't match our expectations; the
4966 # user can still override this though.
4967 if rm -f && rm -fr && rm -rf; then : OK; else
4968 cat >&2 <<'END'
4969 Oops!
4971 Your 'rm' program seems unable to run without file operands specified
4972 on the command line, even when the '-f' option is present. This is contrary
4973 to the behaviour of most rm programs out there, and not conforming with
4974 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4976 Please tell bug-automake@gnu.org about your system, including the value
4977 of your $PATH and any error possibly output before this message. This
4978 can help us improve future automake versions.
4981 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4982 echo 'Configuration will proceed anyway, since you have set the' >&2
4983 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4984 echo >&2
4985 else
4986 cat >&2 <<'END'
4987 Aborting the configuration process, to ensure you take notice of the issue.
4989 You can download and install GNU coreutils to get an 'rm' implementation
4990 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4992 If you want to complete the configuration process using your problematic
4993 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4994 to "yes", and re-run configure.
4997 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5003 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5004 # Check whether --enable-maintainer-mode was given.
5005 if test "${enable_maintainer_mode+set}" = set; then :
5006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5007 else
5008 USE_MAINTAINER_MODE=no
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5012 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5013 if test $USE_MAINTAINER_MODE = yes; then
5014 MAINTAINER_MODE_TRUE=
5015 MAINTAINER_MODE_FALSE='#'
5016 else
5017 MAINTAINER_MODE_TRUE='#'
5018 MAINTAINER_MODE_FALSE=
5021 MAINT=$MAINTAINER_MODE_TRUE
5026 # Check whether --with-toolexeclibdir was given.
5027 if test "${with_toolexeclibdir+set}" = set; then :
5028 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5032 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5034 esac
5035 else
5036 with_toolexeclibdir=no
5041 # Calculate toolexeclibdir
5042 # Also toolexecdir, though it's only used in toolexeclibdir
5043 case ${version_specific_libs} in
5044 yes)
5045 # Need the gcc compiler version to know where to install libraries
5046 # and header files if --enable-version-specific-runtime-libs option
5047 # is selected.
5048 toolexecdir='$(libdir)/gcc/$(target_alias)'
5049 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5052 if test -n "$with_cross_host" &&
5053 test x"$with_cross_host" != x"no"; then
5054 # Install a library built with a cross compiler in tooldir, not libdir.
5055 toolexecdir='$(exec_prefix)/$(target_alias)'
5056 case ${with_toolexeclibdir} in
5058 toolexeclibdir='$(toolexecdir)/lib'
5061 toolexeclibdir=${with_toolexeclibdir}
5063 esac
5064 else
5065 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5066 toolexeclibdir='$(libdir)'
5068 multi_os_directory=`$CC -print-multi-os-directory`
5069 case $multi_os_directory in
5070 .) ;; # Avoid trailing /.
5071 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5072 esac
5074 esac
5078 # Checks for programs.
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 if test -n "$ac_tool_prefix"; then
5085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CC+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$CC"; then
5093 ac_cv_prog_CC="$CC" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 CC=$ac_cv_prog_CC
5113 if test -n "$CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5115 $as_echo "$CC" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5123 if test -z "$ac_cv_prog_CC"; then
5124 ac_ct_CC=$CC
5125 # Extract the first word of "gcc", so it can be a program name with args.
5126 set dummy gcc; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$ac_ct_CC"; then
5133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_CC="gcc"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5153 if test -n "$ac_ct_CC"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5155 $as_echo "$ac_ct_CC" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5161 if test "x$ac_ct_CC" = x; then
5162 CC=""
5163 else
5164 case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned=yes ;;
5169 esac
5170 CC=$ac_ct_CC
5172 else
5173 CC="$ac_cv_prog_CC"
5176 if test -z "$CC"; then
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}cc; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_CC+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$CC"; then
5186 ac_cv_prog_CC="$CC" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_CC="${ac_tool_prefix}cc"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 CC=$ac_cv_prog_CC
5206 if test -n "$CC"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5208 $as_echo "$CC" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5217 if test -z "$CC"; then
5218 # Extract the first word of "cc", so it can be a program name with args.
5219 set dummy cc; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_CC+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$CC"; then
5226 ac_cv_prog_CC="$CC" # Let the user override the test.
5227 else
5228 ac_prog_rejected=no
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5237 ac_prog_rejected=yes
5238 continue
5240 ac_cv_prog_CC="cc"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5248 if test $ac_prog_rejected = yes; then
5249 # We found a bogon in the path, so make sure we never use it.
5250 set dummy $ac_cv_prog_CC
5251 shift
5252 if test $# != 0; then
5253 # We chose a different compiler from the bogus one.
5254 # However, it has the same basename, so the bogon will be chosen
5255 # first if we set CC to just the basename; use the full file name.
5256 shift
5257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5262 CC=$ac_cv_prog_CC
5263 if test -n "$CC"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5265 $as_echo "$CC" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5273 if test -z "$CC"; then
5274 if test -n "$ac_tool_prefix"; then
5275 for ac_prog in cl.exe
5277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_CC+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$CC"; then
5285 ac_cv_prog_CC="$CC" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 CC=$ac_cv_prog_CC
5305 if test -n "$CC"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5307 $as_echo "$CC" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 test -n "$CC" && break
5315 done
5317 if test -z "$CC"; then
5318 ac_ct_CC=$CC
5319 for ac_prog in cl.exe
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$ac_ct_CC"; then
5329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_CC="$ac_prog"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5349 if test -n "$ac_ct_CC"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5351 $as_echo "$ac_ct_CC" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 test -n "$ac_ct_CC" && break
5359 done
5361 if test "x$ac_ct_CC" = x; then
5362 CC=""
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370 CC=$ac_ct_CC
5377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379 as_fn_error $? "no acceptable C compiler found in \$PATH
5380 See \`config.log' for more details" "$LINENO" 5; }
5382 # Provide some information about the compiler.
5383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5384 set X $ac_compile
5385 ac_compiler=$2
5386 for ac_option in --version -v -V -qversion; do
5387 { { ac_try="$ac_compiler $ac_option >&5"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5393 $as_echo "$ac_try_echo"; } >&5
5394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5395 ac_status=$?
5396 if test -s conftest.err; then
5397 sed '10a\
5398 ... rest of stderr output deleted ...
5399 10q' conftest.err >conftest.er1
5400 cat conftest.er1 >&5
5402 rm -f conftest.er1 conftest.err
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5405 done
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5408 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5409 if ${ac_cv_c_compiler_gnu+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5416 main ()
5418 #ifndef __GNUC__
5419 choke me
5420 #endif
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_compiler_gnu=yes
5428 else
5429 ac_compiler_gnu=no
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5437 if test $ac_compiler_gnu = yes; then
5438 GCC=yes
5439 else
5440 GCC=
5442 ac_test_CFLAGS=${CFLAGS+set}
5443 ac_save_CFLAGS=$CFLAGS
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5445 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5446 if ${ac_cv_prog_cc_g+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 ac_save_c_werror_flag=$ac_c_werror_flag
5450 ac_c_werror_flag=yes
5451 ac_cv_prog_cc_g=no
5452 CFLAGS="-g"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5457 main ()
5461 return 0;
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 ac_cv_prog_cc_g=yes
5466 else
5467 CFLAGS=""
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5472 main ()
5476 return 0;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5481 else
5482 ac_c_werror_flag=$ac_save_c_werror_flag
5483 CFLAGS="-g"
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 main ()
5492 return 0;
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496 ac_cv_prog_cc_g=yes
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_c_werror_flag=$ac_save_c_werror_flag
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5506 $as_echo "$ac_cv_prog_cc_g" >&6; }
5507 if test "$ac_test_CFLAGS" = set; then
5508 CFLAGS=$ac_save_CFLAGS
5509 elif test $ac_cv_prog_cc_g = yes; then
5510 if test "$GCC" = yes; then
5511 CFLAGS="-g -O2"
5512 else
5513 CFLAGS="-g"
5515 else
5516 if test "$GCC" = yes; then
5517 CFLAGS="-O2"
5518 else
5519 CFLAGS=
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5523 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5524 if ${ac_cv_prog_cc_c89+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_cv_prog_cc_c89=no
5528 ac_save_CC=$CC
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <stdarg.h>
5532 #include <stdio.h>
5533 struct stat;
5534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5535 struct buf { int x; };
5536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5537 static char *e (p, i)
5538 char **p;
5539 int i;
5541 return p[i];
5543 static char *f (char * (*g) (char **, int), char **p, ...)
5545 char *s;
5546 va_list v;
5547 va_start (v,p);
5548 s = g (p, va_arg (v,int));
5549 va_end (v);
5550 return s;
5553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5554 function prototypes and stuff, but not '\xHH' hex character constants.
5555 These don't provoke an error unfortunately, instead are silently treated
5556 as 'x'. The following induces an error, until -std is added to get
5557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5558 array size at least. It's necessary to write '\x00'==0 to get something
5559 that's true only with -std. */
5560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5563 inside strings and character constants. */
5564 #define FOO(x) 'x'
5565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5567 int test (int i, double x);
5568 struct s1 {int (*f) (int a);};
5569 struct s2 {int (*f) (double a);};
5570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5571 int argc;
5572 char **argv;
5574 main ()
5576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5578 return 0;
5580 _ACEOF
5581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5584 CC="$ac_save_CC $ac_arg"
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 ac_cv_prog_cc_c89=$ac_arg
5588 rm -f core conftest.err conftest.$ac_objext
5589 test "x$ac_cv_prog_cc_c89" != "xno" && break
5590 done
5591 rm -f conftest.$ac_ext
5592 CC=$ac_save_CC
5595 # AC_CACHE_VAL
5596 case "x$ac_cv_prog_cc_c89" in
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5599 $as_echo "none needed" >&6; } ;;
5600 xno)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5602 $as_echo "unsupported" >&6; } ;;
5604 CC="$CC $ac_cv_prog_cc_c89"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5607 esac
5608 if test "x$ac_cv_prog_cc_c89" != xno; then :
5612 ac_ext=c
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 ac_ext=c
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5624 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5625 if ${am_cv_prog_cc_c_o+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5632 main ()
5636 return 0;
5638 _ACEOF
5639 # Make sure it works both with $CC and with simple cc.
5640 # Following AC_PROG_CC_C_O, we do the test twice because some
5641 # compilers refuse to overwrite an existing .o file with -o,
5642 # though they will create one.
5643 am_cv_prog_cc_c_o=yes
5644 for am_i in 1 2; do
5645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } \
5650 && test -f conftest2.$ac_objext; then
5651 : OK
5652 else
5653 am_cv_prog_cc_c_o=no
5654 break
5656 done
5657 rm -f core conftest*
5658 unset am_i
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5661 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5662 if test "$am_cv_prog_cc_c_o" != yes; then
5663 # Losing compiler, so override with the script.
5664 # FIXME: It is wrong to rewrite CC.
5665 # But if we don't then we get into trouble of one sort or another.
5666 # A longer-term fix would be to have automake use am__CC in this case,
5667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5668 CC="$am_aux_dir/compile $CC"
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 ac_ext=cpp
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683 if test -n "$CCC"; then
5684 CXX=$CCC
5685 else
5686 if test -n "$ac_tool_prefix"; then
5687 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_prog_CXX+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 if test -n "$CXX"; then
5697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5710 done
5711 done
5712 IFS=$as_save_IFS
5716 CXX=$ac_cv_prog_CXX
5717 if test -n "$CXX"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5719 $as_echo "$CXX" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5726 test -n "$CXX" && break
5727 done
5729 if test -z "$CXX"; then
5730 ac_ct_CXX=$CXX
5731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_CXX"; then
5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_ac_ct_CXX="$ac_prog"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5754 done
5755 done
5756 IFS=$as_save_IFS
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5763 $as_echo "$ac_ct_CXX" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5770 test -n "$ac_ct_CXX" && break
5771 done
5773 if test "x$ac_ct_CXX" = x; then
5774 CXX="g++"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 CXX=$ac_ct_CXX
5788 # Provide some information about the compiler.
5789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5790 set X $ac_compile
5791 ac_compiler=$2
5792 for ac_option in --version -v -V -qversion; do
5793 { { ac_try="$ac_compiler $ac_option >&5"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5799 $as_echo "$ac_try_echo"; } >&5
5800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5801 ac_status=$?
5802 if test -s conftest.err; then
5803 sed '10a\
5804 ... rest of stderr output deleted ...
5805 10q' conftest.err >conftest.er1
5806 cat conftest.er1 >&5
5808 rm -f conftest.er1 conftest.err
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }
5811 done
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5814 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5815 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5822 main ()
5824 #ifndef __GNUC__
5825 choke me
5826 #endif
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_compiler_gnu=yes
5834 else
5835 ac_compiler_gnu=no
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5842 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5843 if test $ac_compiler_gnu = yes; then
5844 GXX=yes
5845 else
5846 GXX=
5848 ac_test_CXXFLAGS=${CXXFLAGS+set}
5849 ac_save_CXXFLAGS=$CXXFLAGS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5851 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5852 if ${ac_cv_prog_cxx_g+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5856 ac_cxx_werror_flag=yes
5857 ac_cv_prog_cxx_g=no
5858 CXXFLAGS="-g"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_prog_cxx_g=yes
5872 else
5873 CXXFLAGS=""
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5878 main ()
5882 return 0;
5884 _ACEOF
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5887 else
5888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5889 CXXFLAGS="-g"
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_prog_cxx_g=yes
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5912 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5913 if test "$ac_test_CXXFLAGS" = set; then
5914 CXXFLAGS=$ac_save_CXXFLAGS
5915 elif test $ac_cv_prog_cxx_g = yes; then
5916 if test "$GXX" = yes; then
5917 CXXFLAGS="-g -O2"
5918 else
5919 CXXFLAGS="-g"
5921 else
5922 if test "$GXX" = yes; then
5923 CXXFLAGS="-O2"
5924 else
5925 CXXFLAGS=
5928 ac_ext=c
5929 ac_cpp='$CPP $CPPFLAGS'
5930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934 depcc="$CXX" am_compiler_list=
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5937 $as_echo_n "checking dependency style of $depcc... " >&6; }
5938 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5942 # We make a subdir and do the tests there. Otherwise we can end up
5943 # making bogus files that we don't know about and never remove. For
5944 # instance it was reported that on HP-UX the gcc test will end up
5945 # making a dummy file named 'D' -- because '-MD' means "put the output
5946 # in D".
5947 rm -rf conftest.dir
5948 mkdir conftest.dir
5949 # Copy depcomp to subdir because otherwise we won't find it if we're
5950 # using a relative directory.
5951 cp "$am_depcomp" conftest.dir
5952 cd conftest.dir
5953 # We will build objects and dependencies in a subdirectory because
5954 # it helps to detect inapplicable dependency modes. For instance
5955 # both Tru64's cc and ICC support -MD to output dependencies as a
5956 # side effect of compilation, but ICC will put the dependencies in
5957 # the current directory while Tru64 will put them in the object
5958 # directory.
5959 mkdir sub
5961 am_cv_CXX_dependencies_compiler_type=none
5962 if test "$am_compiler_list" = ""; then
5963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5965 am__universal=false
5966 case " $depcc " in #(
5967 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5968 esac
5970 for depmode in $am_compiler_list; do
5971 # Setup a source with many dependencies, because some compilers
5972 # like to wrap large dependency lists on column 80 (with \), and
5973 # we should not choose a depcomp mode which is confused by this.
5975 # We need to recreate these files for each test, as the compiler may
5976 # overwrite some of them when testing with obscure command lines.
5977 # This happens at least with the AIX C compiler.
5978 : > sub/conftest.c
5979 for i in 1 2 3 4 5 6; do
5980 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5982 # Solaris 10 /bin/sh.
5983 echo '/* dummy */' > sub/conftst$i.h
5984 done
5985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5987 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5988 # mode. It turns out that the SunPro C++ compiler does not properly
5989 # handle '-M -o', and we need to detect this. Also, some Intel
5990 # versions had trouble with output in subdirs.
5991 am__obj=sub/conftest.${OBJEXT-o}
5992 am__minus_obj="-o $am__obj"
5993 case $depmode in
5994 gcc)
5995 # This depmode causes a compiler race in universal mode.
5996 test "$am__universal" = false || continue
5998 nosideeffect)
5999 # After this tag, mechanisms are not by side-effect, so they'll
6000 # only be used when explicitly requested.
6001 if test "x$enable_dependency_tracking" = xyes; then
6002 continue
6003 else
6004 break
6007 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6008 # This compiler won't grok '-c -o', but also, the minuso test has
6009 # not run yet. These depmodes are late enough in the game, and
6010 # so weak that their functioning should not be impacted.
6011 am__obj=conftest.${OBJEXT-o}
6012 am__minus_obj=
6014 none) break ;;
6015 esac
6016 if depmode=$depmode \
6017 source=sub/conftest.c object=$am__obj \
6018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6020 >/dev/null 2>conftest.err &&
6021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6025 # icc doesn't choke on unknown options, it will just issue warnings
6026 # or remarks (even with -Werror). So we grep stderr for any message
6027 # that says an option was ignored or not supported.
6028 # When given -MP, icc 7.0 and 7.1 complain thusly:
6029 # icc: Command line warning: ignoring option '-M'; no argument required
6030 # The diagnosis changed in icc 8.0:
6031 # icc: Command line remark: option '-MP' not supported
6032 if (grep 'ignoring option' conftest.err ||
6033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6034 am_cv_CXX_dependencies_compiler_type=$depmode
6035 break
6038 done
6040 cd ..
6041 rm -rf conftest.dir
6042 else
6043 am_cv_CXX_dependencies_compiler_type=none
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6048 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6049 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6052 test "x$enable_dependency_tracking" != xno \
6053 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6054 am__fastdepCXX_TRUE=
6055 am__fastdepCXX_FALSE='#'
6056 else
6057 am__fastdepCXX_TRUE='#'
6058 am__fastdepCXX_FALSE=
6062 # By default we simply use the C compiler to build assembly code.
6064 test "${CCAS+set}" = set || CCAS=$CC
6065 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6069 depcc="$CCAS" am_compiler_list=
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6072 $as_echo_n "checking dependency style of $depcc... " >&6; }
6073 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6077 # We make a subdir and do the tests there. Otherwise we can end up
6078 # making bogus files that we don't know about and never remove. For
6079 # instance it was reported that on HP-UX the gcc test will end up
6080 # making a dummy file named 'D' -- because '-MD' means "put the output
6081 # in D".
6082 rm -rf conftest.dir
6083 mkdir conftest.dir
6084 # Copy depcomp to subdir because otherwise we won't find it if we're
6085 # using a relative directory.
6086 cp "$am_depcomp" conftest.dir
6087 cd conftest.dir
6088 # We will build objects and dependencies in a subdirectory because
6089 # it helps to detect inapplicable dependency modes. For instance
6090 # both Tru64's cc and ICC support -MD to output dependencies as a
6091 # side effect of compilation, but ICC will put the dependencies in
6092 # the current directory while Tru64 will put them in the object
6093 # directory.
6094 mkdir sub
6096 am_cv_CCAS_dependencies_compiler_type=none
6097 if test "$am_compiler_list" = ""; then
6098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6100 am__universal=false
6103 for depmode in $am_compiler_list; do
6104 # Setup a source with many dependencies, because some compilers
6105 # like to wrap large dependency lists on column 80 (with \), and
6106 # we should not choose a depcomp mode which is confused by this.
6108 # We need to recreate these files for each test, as the compiler may
6109 # overwrite some of them when testing with obscure command lines.
6110 # This happens at least with the AIX C compiler.
6111 : > sub/conftest.c
6112 for i in 1 2 3 4 5 6; do
6113 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6114 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6115 # Solaris 10 /bin/sh.
6116 echo '/* dummy */' > sub/conftst$i.h
6117 done
6118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6120 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6121 # mode. It turns out that the SunPro C++ compiler does not properly
6122 # handle '-M -o', and we need to detect this. Also, some Intel
6123 # versions had trouble with output in subdirs.
6124 am__obj=sub/conftest.${OBJEXT-o}
6125 am__minus_obj="-o $am__obj"
6126 case $depmode in
6127 gcc)
6128 # This depmode causes a compiler race in universal mode.
6129 test "$am__universal" = false || continue
6131 nosideeffect)
6132 # After this tag, mechanisms are not by side-effect, so they'll
6133 # only be used when explicitly requested.
6134 if test "x$enable_dependency_tracking" = xyes; then
6135 continue
6136 else
6137 break
6140 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6141 # This compiler won't grok '-c -o', but also, the minuso test has
6142 # not run yet. These depmodes are late enough in the game, and
6143 # so weak that their functioning should not be impacted.
6144 am__obj=conftest.${OBJEXT-o}
6145 am__minus_obj=
6147 none) break ;;
6148 esac
6149 if depmode=$depmode \
6150 source=sub/conftest.c object=$am__obj \
6151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6153 >/dev/null 2>conftest.err &&
6154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6158 # icc doesn't choke on unknown options, it will just issue warnings
6159 # or remarks (even with -Werror). So we grep stderr for any message
6160 # that says an option was ignored or not supported.
6161 # When given -MP, icc 7.0 and 7.1 complain thusly:
6162 # icc: Command line warning: ignoring option '-M'; no argument required
6163 # The diagnosis changed in icc 8.0:
6164 # icc: Command line remark: option '-MP' not supported
6165 if (grep 'ignoring option' conftest.err ||
6166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6167 am_cv_CCAS_dependencies_compiler_type=$depmode
6168 break
6171 done
6173 cd ..
6174 rm -rf conftest.dir
6175 else
6176 am_cv_CCAS_dependencies_compiler_type=none
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6181 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6182 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6185 test "x$enable_dependency_tracking" != xno \
6186 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6187 am__fastdepCCAS_TRUE=
6188 am__fastdepCCAS_FALSE='#'
6189 else
6190 am__fastdepCCAS_TRUE='#'
6191 am__fastdepCCAS_FALSE=
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_RANLIB+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$RANLIB"; then
6204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6217 done
6218 done
6219 IFS=$as_save_IFS
6223 RANLIB=$ac_cv_prog_RANLIB
6224 if test -n "$RANLIB"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6226 $as_echo "$RANLIB" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_prog_RANLIB"; then
6235 ac_ct_RANLIB=$RANLIB
6236 # Extract the first word of "ranlib", so it can be a program name with args.
6237 set dummy ranlib; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$ac_ct_RANLIB"; then
6244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_ac_ct_RANLIB="ranlib"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6257 done
6258 done
6259 IFS=$as_save_IFS
6263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6264 if test -n "$ac_ct_RANLIB"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6266 $as_echo "$ac_ct_RANLIB" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6272 if test "x$ac_ct_RANLIB" = x; then
6273 RANLIB=":"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281 RANLIB=$ac_ct_RANLIB
6283 else
6284 RANLIB="$ac_cv_prog_RANLIB"
6288 enable_dlopen=yes
6292 case `pwd` in
6293 *\ * | *\ *)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6295 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6296 esac
6300 macro_version='2.2.7a'
6301 macro_revision='1.3134'
6315 ltmain="$ac_aux_dir/ltmain.sh"
6317 # Backslashify metacharacters that are still active within
6318 # double-quoted strings.
6319 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6321 # Same as above, but do not quote variable references.
6322 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6324 # Sed substitution to delay expansion of an escaped shell variable in a
6325 # double_quote_subst'ed string.
6326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6328 # Sed substitution to delay expansion of an escaped single quote.
6329 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6331 # Sed substitution to avoid accidental globbing in evaled expressions
6332 no_glob_subst='s/\*/\\\*/g'
6334 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6335 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6336 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6339 $as_echo_n "checking how to print strings... " >&6; }
6340 # Test print first, because it will be a builtin if present.
6341 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6342 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6343 ECHO='print -r --'
6344 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6345 ECHO='printf %s\n'
6346 else
6347 # Use this function as a fallback that always works.
6348 func_fallback_echo ()
6350 eval 'cat <<_LTECHO_EOF
6352 _LTECHO_EOF'
6354 ECHO='func_fallback_echo'
6357 # func_echo_all arg...
6358 # Invoke $ECHO with all args, space-separated.
6359 func_echo_all ()
6361 $ECHO ""
6364 case "$ECHO" in
6365 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6366 $as_echo "printf" >&6; } ;;
6367 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6368 $as_echo "print -r" >&6; } ;;
6369 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6370 $as_echo "cat" >&6; } ;;
6371 esac
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6387 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6388 if ${ac_cv_path_SED+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6392 for ac_i in 1 2 3 4 5 6 7; do
6393 ac_script="$ac_script$as_nl$ac_script"
6394 done
6395 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6396 { ac_script=; unset ac_script;}
6397 if test -z "$SED"; then
6398 ac_path_SED_found=false
6399 # Loop through the user's path and test for each of PROGNAME-LIST
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_prog in sed gsed; do
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6408 as_fn_executable_p "$ac_path_SED" || continue
6409 # Check for GNU ac_path_SED and select it if it is found.
6410 # Check for GNU $ac_path_SED
6411 case `"$ac_path_SED" --version 2>&1` in
6412 *GNU*)
6413 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6415 ac_count=0
6416 $as_echo_n 0123456789 >"conftest.in"
6417 while :
6419 cat "conftest.in" "conftest.in" >"conftest.tmp"
6420 mv "conftest.tmp" "conftest.in"
6421 cp "conftest.in" "conftest.nl"
6422 $as_echo '' >> "conftest.nl"
6423 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6425 as_fn_arith $ac_count + 1 && ac_count=$as_val
6426 if test $ac_count -gt ${ac_path_SED_max-0}; then
6427 # Best one so far, save it but keep looking for a better one
6428 ac_cv_path_SED="$ac_path_SED"
6429 ac_path_SED_max=$ac_count
6431 # 10*(2^10) chars as input seems more than enough
6432 test $ac_count -gt 10 && break
6433 done
6434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6435 esac
6437 $ac_path_SED_found && break 3
6438 done
6439 done
6440 done
6441 IFS=$as_save_IFS
6442 if test -z "$ac_cv_path_SED"; then
6443 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6445 else
6446 ac_cv_path_SED=$SED
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6451 $as_echo "$ac_cv_path_SED" >&6; }
6452 SED="$ac_cv_path_SED"
6453 rm -f conftest.sed
6455 test -z "$SED" && SED=sed
6456 Xsed="$SED -e 1s/^X//"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6469 $as_echo_n "checking for fgrep... " >&6; }
6470 if ${ac_cv_path_FGREP+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6474 then ac_cv_path_FGREP="$GREP -F"
6475 else
6476 if test -z "$FGREP"; then
6477 ac_path_FGREP_found=false
6478 # Loop through the user's path and test for each of PROGNAME-LIST
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_prog in fgrep; do
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6487 as_fn_executable_p "$ac_path_FGREP" || continue
6488 # Check for GNU ac_path_FGREP and select it if it is found.
6489 # Check for GNU $ac_path_FGREP
6490 case `"$ac_path_FGREP" --version 2>&1` in
6491 *GNU*)
6492 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6494 ac_count=0
6495 $as_echo_n 0123456789 >"conftest.in"
6496 while :
6498 cat "conftest.in" "conftest.in" >"conftest.tmp"
6499 mv "conftest.tmp" "conftest.in"
6500 cp "conftest.in" "conftest.nl"
6501 $as_echo 'FGREP' >> "conftest.nl"
6502 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6504 as_fn_arith $ac_count + 1 && ac_count=$as_val
6505 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6506 # Best one so far, save it but keep looking for a better one
6507 ac_cv_path_FGREP="$ac_path_FGREP"
6508 ac_path_FGREP_max=$ac_count
6510 # 10*(2^10) chars as input seems more than enough
6511 test $ac_count -gt 10 && break
6512 done
6513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6514 esac
6516 $ac_path_FGREP_found && break 3
6517 done
6518 done
6519 done
6520 IFS=$as_save_IFS
6521 if test -z "$ac_cv_path_FGREP"; then
6522 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6524 else
6525 ac_cv_path_FGREP=$FGREP
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6531 $as_echo "$ac_cv_path_FGREP" >&6; }
6532 FGREP="$ac_cv_path_FGREP"
6535 test -z "$GREP" && GREP=grep
6555 # Check whether --with-gnu-ld was given.
6556 if test "${with_gnu_ld+set}" = set; then :
6557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6558 else
6559 with_gnu_ld=no
6562 ac_prog=ld
6563 if test "$GCC" = yes; then
6564 # Check if gcc -print-prog-name=ld gives a path.
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6566 $as_echo_n "checking for ld used by $CC... " >&6; }
6567 case $host in
6568 *-*-mingw*)
6569 # gcc leaves a trailing carriage return which upsets mingw
6570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6573 esac
6574 case $ac_prog in
6575 # Accept absolute paths.
6576 [\\/]* | ?:[\\/]*)
6577 re_direlt='/[^/][^/]*/\.\./'
6578 # Canonicalize the pathname of ld
6579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6582 done
6583 test -z "$LD" && LD="$ac_prog"
6586 # If it fails, then pretend we aren't using GCC.
6587 ac_prog=ld
6590 # If it is relative, then search for the first ld in PATH.
6591 with_gnu_ld=unknown
6593 esac
6594 elif test "$with_gnu_ld" = yes; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6596 $as_echo_n "checking for GNU ld... " >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6599 $as_echo_n "checking for non-GNU ld... " >&6; }
6601 if ${lt_cv_path_LD+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -z "$LD"; then
6605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6606 for ac_dir in $PATH; do
6607 IFS="$lt_save_ifs"
6608 test -z "$ac_dir" && ac_dir=.
6609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6610 lt_cv_path_LD="$ac_dir/$ac_prog"
6611 # Check to see if the program is GNU ld. I'd rather use --version,
6612 # but apparently some variants of GNU ld only accept -v.
6613 # Break only if it was the GNU/non-GNU ld that we prefer.
6614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6615 *GNU* | *'with BFD'*)
6616 test "$with_gnu_ld" != no && break
6619 test "$with_gnu_ld" != yes && break
6621 esac
6623 done
6624 IFS="$lt_save_ifs"
6625 else
6626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6630 LD="$lt_cv_path_LD"
6631 if test -n "$LD"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6633 $as_echo "$LD" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6641 if ${lt_cv_prog_gnu_ld+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6645 case `$LD -v 2>&1 </dev/null` in
6646 *GNU* | *'with BFD'*)
6647 lt_cv_prog_gnu_ld=yes
6650 lt_cv_prog_gnu_ld=no
6652 esac
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6656 with_gnu_ld=$lt_cv_prog_gnu_ld
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6667 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6668 if ${lt_cv_path_NM+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$NM"; then
6672 # Let the user override the test.
6673 lt_cv_path_NM="$NM"
6674 else
6675 lt_nm_to_check="${ac_tool_prefix}nm"
6676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6677 lt_nm_to_check="$lt_nm_to_check nm"
6679 for lt_tmp_nm in $lt_nm_to_check; do
6680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6682 IFS="$lt_save_ifs"
6683 test -z "$ac_dir" && ac_dir=.
6684 tmp_nm="$ac_dir/$lt_tmp_nm"
6685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6686 # Check to see if the nm accepts a BSD-compat flag.
6687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6688 # nm: unknown option "B" ignored
6689 # Tru64's nm complains that /dev/null is an invalid object file
6690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6691 */dev/null* | *'Invalid file or object type'*)
6692 lt_cv_path_NM="$tmp_nm -B"
6693 break
6696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6697 */dev/null*)
6698 lt_cv_path_NM="$tmp_nm -p"
6699 break
6702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6703 continue # so that we can try to find one that supports BSD flags
6705 esac
6707 esac
6709 done
6710 IFS="$lt_save_ifs"
6711 done
6712 : ${lt_cv_path_NM=no}
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6716 $as_echo "$lt_cv_path_NM" >&6; }
6717 if test "$lt_cv_path_NM" != "no"; then
6718 NM="$lt_cv_path_NM"
6719 else
6720 # Didn't find any BSD compatible name lister, look for dumpbin.
6721 if test -n "$DUMPBIN"; then :
6722 # Let the user override the test.
6723 else
6724 if test -n "$ac_tool_prefix"; then
6725 for ac_prog in dumpbin "link -dump"
6727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_DUMPBIN+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$DUMPBIN"; then
6735 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6754 DUMPBIN=$ac_cv_prog_DUMPBIN
6755 if test -n "$DUMPBIN"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6757 $as_echo "$DUMPBIN" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6764 test -n "$DUMPBIN" && break
6765 done
6767 if test -z "$DUMPBIN"; then
6768 ac_ct_DUMPBIN=$DUMPBIN
6769 for ac_prog in dumpbin "link -dump"
6771 # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$ac_ct_DUMPBIN"; then
6779 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6792 done
6793 done
6794 IFS=$as_save_IFS
6798 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6799 if test -n "$ac_ct_DUMPBIN"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6801 $as_echo "$ac_ct_DUMPBIN" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6808 test -n "$ac_ct_DUMPBIN" && break
6809 done
6811 if test "x$ac_ct_DUMPBIN" = x; then
6812 DUMPBIN=":"
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 DUMPBIN=$ac_ct_DUMPBIN
6824 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6825 *COFF*)
6826 DUMPBIN="$DUMPBIN -symbols"
6829 DUMPBIN=:
6831 esac
6834 if test "$DUMPBIN" != ":"; then
6835 NM="$DUMPBIN"
6838 test -z "$NM" && NM=nm
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6846 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6847 if ${lt_cv_nm_interface+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 lt_cv_nm_interface="BSD nm"
6851 echo "int some_variable = 0;" > conftest.$ac_ext
6852 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6853 (eval "$ac_compile" 2>conftest.err)
6854 cat conftest.err >&5
6855 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6856 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6857 cat conftest.err >&5
6858 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6859 cat conftest.out >&5
6860 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6861 lt_cv_nm_interface="MS dumpbin"
6863 rm -f conftest*
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6866 $as_echo "$lt_cv_nm_interface" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6869 $as_echo_n "checking whether ln -s works... " >&6; }
6870 LN_S=$as_ln_s
6871 if test "$LN_S" = "ln -s"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873 $as_echo "yes" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6876 $as_echo "no, using $LN_S" >&6; }
6879 # find the maximum length of command line arguments
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6881 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6882 if ${lt_cv_sys_max_cmd_len+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6886 teststring="ABCD"
6888 case $build_os in
6889 msdosdjgpp*)
6890 # On DJGPP, this test can blow up pretty badly due to problems in libc
6891 # (any single argument exceeding 2000 bytes causes a buffer overrun
6892 # during glob expansion). Even if it were fixed, the result of this
6893 # check would be larger than it should be.
6894 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6897 gnu*)
6898 # Under GNU Hurd, this test is not required because there is
6899 # no limit to the length of command line arguments.
6900 # Libtool will interpret -1 as no limit whatsoever
6901 lt_cv_sys_max_cmd_len=-1;
6904 cygwin* | mingw* | cegcc*)
6905 # On Win9x/ME, this test blows up -- it succeeds, but takes
6906 # about 5 minutes as the teststring grows exponentially.
6907 # Worse, since 9x/ME are not pre-emptively multitasking,
6908 # you end up with a "frozen" computer, even though with patience
6909 # the test eventually succeeds (with a max line length of 256k).
6910 # Instead, let's just punt: use the minimum linelength reported by
6911 # all of the supported platforms: 8192 (on NT/2K/XP).
6912 lt_cv_sys_max_cmd_len=8192;
6915 mint*)
6916 # On MiNT this can take a long time and run out of memory.
6917 lt_cv_sys_max_cmd_len=8192;
6920 amigaos*)
6921 # On AmigaOS with pdksh, this test takes hours, literally.
6922 # So we just punt and use a minimum line length of 8192.
6923 lt_cv_sys_max_cmd_len=8192;
6926 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6927 # This has been around since 386BSD, at least. Likely further.
6928 if test -x /sbin/sysctl; then
6929 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6930 elif test -x /usr/sbin/sysctl; then
6931 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6932 else
6933 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6935 # And add a safety zone
6936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6940 interix*)
6941 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6942 lt_cv_sys_max_cmd_len=196608
6945 osf*)
6946 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6947 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6948 # nice to cause kernel panics so lets avoid the loop below.
6949 # First set a reasonable default.
6950 lt_cv_sys_max_cmd_len=16384
6952 if test -x /sbin/sysconfig; then
6953 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6954 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6955 esac
6958 sco3.2v5*)
6959 lt_cv_sys_max_cmd_len=102400
6961 sysv5* | sco5v6* | sysv4.2uw2*)
6962 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6963 if test -n "$kargmax"; then
6964 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6965 else
6966 lt_cv_sys_max_cmd_len=32768
6970 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6971 if test -n "$lt_cv_sys_max_cmd_len"; then
6972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6974 else
6975 # Make teststring a little bigger before we do anything with it.
6976 # a 1K string should be a reasonable start.
6977 for i in 1 2 3 4 5 6 7 8 ; do
6978 teststring=$teststring$teststring
6979 done
6980 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6981 # If test is not a shell built-in, we'll probably end up computing a
6982 # maximum length that is only half of the actual maximum length, but
6983 # we can't tell.
6984 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6985 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6986 test $i != 17 # 1/2 MB should be enough
6988 i=`expr $i + 1`
6989 teststring=$teststring$teststring
6990 done
6991 # Only check the string length outside the loop.
6992 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6993 teststring=
6994 # Add a significant safety factor because C++ compilers can tack on
6995 # massive amounts of additional arguments before passing them to the
6996 # linker. It appears as though 1/2 is a usable value.
6997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7000 esac
7004 if test -n $lt_cv_sys_max_cmd_len ; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7006 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7009 $as_echo "none" >&6; }
7011 max_cmd_len=$lt_cv_sys_max_cmd_len
7018 : ${CP="cp -f"}
7019 : ${MV="mv -f"}
7020 : ${RM="rm -f"}
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7023 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7024 # Try some XSI features
7025 xsi_shell=no
7026 ( _lt_dummy="a/b/c"
7027 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7028 = c,a/b,, \
7029 && eval 'test $(( 1 + 1 )) -eq 2 \
7030 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7031 && xsi_shell=yes
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7033 $as_echo "$xsi_shell" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7037 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7038 lt_shell_append=no
7039 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7040 >/dev/null 2>&1 \
7041 && lt_shell_append=yes
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7043 $as_echo "$lt_shell_append" >&6; }
7046 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7047 lt_unset=unset
7048 else
7049 lt_unset=false
7056 # test EBCDIC or ASCII
7057 case `echo X|tr X '\101'` in
7058 A) # ASCII based system
7059 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7060 lt_SP2NL='tr \040 \012'
7061 lt_NL2SP='tr \015\012 \040\040'
7063 *) # EBCDIC based system
7064 lt_SP2NL='tr \100 \n'
7065 lt_NL2SP='tr \r\n \100\100'
7067 esac
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7078 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7079 if ${lt_cv_ld_reload_flag+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 lt_cv_ld_reload_flag='-r'
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7085 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7086 reload_flag=$lt_cv_ld_reload_flag
7087 case $reload_flag in
7088 "" | " "*) ;;
7089 *) reload_flag=" $reload_flag" ;;
7090 esac
7091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7092 case $host_os in
7093 darwin*)
7094 if test "$GCC" = yes; then
7095 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7096 else
7097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7100 esac
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_OBJDUMP+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test -n "$OBJDUMP"; then
7119 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7132 done
7133 done
7134 IFS=$as_save_IFS
7138 OBJDUMP=$ac_cv_prog_OBJDUMP
7139 if test -n "$OBJDUMP"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7141 $as_echo "$OBJDUMP" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7149 if test -z "$ac_cv_prog_OBJDUMP"; then
7150 ac_ct_OBJDUMP=$OBJDUMP
7151 # Extract the first word of "objdump", so it can be a program name with args.
7152 set dummy objdump; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$ac_ct_OBJDUMP"; then
7159 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7172 done
7173 done
7174 IFS=$as_save_IFS
7178 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7179 if test -n "$ac_ct_OBJDUMP"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7181 $as_echo "$ac_ct_OBJDUMP" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7187 if test "x$ac_ct_OBJDUMP" = x; then
7188 OBJDUMP="false"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191 yes:)
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194 ac_tool_warned=yes ;;
7195 esac
7196 OBJDUMP=$ac_ct_OBJDUMP
7198 else
7199 OBJDUMP="$ac_cv_prog_OBJDUMP"
7202 test -z "$OBJDUMP" && OBJDUMP=objdump
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7213 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7214 if ${lt_cv_deplibs_check_method+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 lt_cv_file_magic_cmd='$MAGIC_CMD'
7218 lt_cv_file_magic_test_file=
7219 lt_cv_deplibs_check_method='unknown'
7220 # Need to set the preceding variable on all platforms that support
7221 # interlibrary dependencies.
7222 # 'none' -- dependencies not supported.
7223 # `unknown' -- same as none, but documents that we really don't know.
7224 # 'pass_all' -- all dependencies passed with no checks.
7225 # 'test_compile' -- check by making test program.
7226 # 'file_magic [[regex]]' -- check by looking for files in library path
7227 # which responds to the $file_magic_cmd with a given extended regex.
7228 # If you have `file' or equivalent on your system and you're not sure
7229 # whether `pass_all' will *always* work, you probably want this one.
7231 case $host_os in
7232 aix[4-9]*)
7233 lt_cv_deplibs_check_method=pass_all
7236 beos*)
7237 lt_cv_deplibs_check_method=pass_all
7240 bsdi[45]*)
7241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7242 lt_cv_file_magic_cmd='/usr/bin/file -L'
7243 lt_cv_file_magic_test_file=/shlib/libc.so
7246 cygwin*)
7247 # func_win32_libid is a shell function defined in ltmain.sh
7248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7249 lt_cv_file_magic_cmd='func_win32_libid'
7252 mingw* | pw32*)
7253 # Base MSYS/MinGW do not provide the 'file' command needed by
7254 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7255 # unless we find 'file', for example because we are cross-compiling.
7256 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7257 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7259 lt_cv_file_magic_cmd='func_win32_libid'
7260 else
7261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7262 lt_cv_file_magic_cmd='$OBJDUMP -f'
7266 cegcc*)
7267 # use the weaker test based on 'objdump'. See mingw*.
7268 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7269 lt_cv_file_magic_cmd='$OBJDUMP -f'
7272 darwin* | rhapsody*)
7273 lt_cv_deplibs_check_method=pass_all
7276 freebsd* | dragonfly*)
7277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7278 case $host_cpu in
7279 i*86 )
7280 # Not sure whether the presence of OpenBSD here was a mistake.
7281 # Let's accept both of them until this is cleared up.
7282 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7283 lt_cv_file_magic_cmd=/usr/bin/file
7284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7286 esac
7287 else
7288 lt_cv_deplibs_check_method=pass_all
7292 gnu*)
7293 lt_cv_deplibs_check_method=pass_all
7296 haiku*)
7297 lt_cv_deplibs_check_method=pass_all
7300 hpux10.20* | hpux11*)
7301 lt_cv_file_magic_cmd=/usr/bin/file
7302 case $host_cpu in
7303 ia64*)
7304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7305 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7307 hppa*64*)
7308 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]'
7309 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7313 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7315 esac
7318 interix[3-9]*)
7319 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7323 irix5* | irix6* | nonstopux*)
7324 case $LD in
7325 *-32|*"-32 ") libmagic=32-bit;;
7326 *-n32|*"-n32 ") libmagic=N32;;
7327 *-64|*"-64 ") libmagic=64-bit;;
7328 *) libmagic=never-match;;
7329 esac
7330 lt_cv_deplibs_check_method=pass_all
7333 # This must be Linux ELF.
7334 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7335 lt_cv_deplibs_check_method=pass_all
7338 netbsd*)
7339 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7341 else
7342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7346 newos6*)
7347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7348 lt_cv_file_magic_cmd=/usr/bin/file
7349 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7352 *nto* | *qnx*)
7353 lt_cv_deplibs_check_method=pass_all
7356 openbsd*)
7357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7359 else
7360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7364 osf3* | osf4* | osf5*)
7365 lt_cv_deplibs_check_method=pass_all
7368 rdos*)
7369 lt_cv_deplibs_check_method=pass_all
7372 solaris*)
7373 lt_cv_deplibs_check_method=pass_all
7376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7377 lt_cv_deplibs_check_method=pass_all
7380 sysv4 | sysv4.3*)
7381 case $host_vendor in
7382 motorola)
7383 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]'
7384 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7386 ncr)
7387 lt_cv_deplibs_check_method=pass_all
7389 sequent)
7390 lt_cv_file_magic_cmd='/bin/file'
7391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7393 sni)
7394 lt_cv_file_magic_cmd='/bin/file'
7395 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7396 lt_cv_file_magic_test_file=/lib/libc.so
7398 siemens)
7399 lt_cv_deplibs_check_method=pass_all
7402 lt_cv_deplibs_check_method=pass_all
7404 esac
7407 tpf*)
7408 lt_cv_deplibs_check_method=pass_all
7410 vxworks*)
7411 # Assume VxWorks cross toolchains are built on Linux, possibly
7412 # as canadian for Windows hosts.
7413 lt_cv_deplibs_check_method=pass_all
7415 esac
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7419 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7420 file_magic_cmd=$lt_cv_file_magic_cmd
7421 deplibs_check_method=$lt_cv_deplibs_check_method
7422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7435 if test -n "$ac_tool_prefix"; then
7436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7437 set dummy ${ac_tool_prefix}ar; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_AR+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$AR"; then
7444 ac_cv_prog_AR="$AR" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_AR="${ac_tool_prefix}ar"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7457 done
7458 done
7459 IFS=$as_save_IFS
7463 AR=$ac_cv_prog_AR
7464 if test -n "$AR"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7466 $as_echo "$AR" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7474 if test -z "$ac_cv_prog_AR"; then
7475 ac_ct_AR=$AR
7476 # Extract the first word of "ar", so it can be a program name with args.
7477 set dummy ar; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$ac_ct_AR"; then
7484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_AR="ar"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7504 if test -n "$ac_ct_AR"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7506 $as_echo "$ac_ct_AR" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7512 if test "x$ac_ct_AR" = x; then
7513 AR="false"
7514 else
7515 case $cross_compiling:$ac_tool_warned in
7516 yes:)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519 ac_tool_warned=yes ;;
7520 esac
7521 AR=$ac_ct_AR
7523 else
7524 AR="$ac_cv_prog_AR"
7527 test -z "$AR" && AR=ar
7528 test -z "$AR_FLAGS" && AR_FLAGS=cru
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}strip; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_STRIP+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$STRIP"; then
7549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7564 IFS=$as_save_IFS
7568 STRIP=$ac_cv_prog_STRIP
7569 if test -n "$STRIP"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7571 $as_echo "$STRIP" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7579 if test -z "$ac_cv_prog_STRIP"; then
7580 ac_ct_STRIP=$STRIP
7581 # Extract the first word of "strip", so it can be a program name with args.
7582 set dummy strip; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_STRIP"; then
7589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_STRIP="strip"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7609 if test -n "$ac_ct_STRIP"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7611 $as_echo "$ac_ct_STRIP" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7617 if test "x$ac_ct_STRIP" = x; then
7618 STRIP=":"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 STRIP=$ac_ct_STRIP
7628 else
7629 STRIP="$ac_cv_prog_STRIP"
7632 test -z "$STRIP" && STRIP=:
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_RANLIB+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -n "$RANLIB"; then
7648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7661 done
7662 done
7663 IFS=$as_save_IFS
7667 RANLIB=$ac_cv_prog_RANLIB
7668 if test -n "$RANLIB"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7670 $as_echo "$RANLIB" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7678 if test -z "$ac_cv_prog_RANLIB"; then
7679 ac_ct_RANLIB=$RANLIB
7680 # Extract the first word of "ranlib", so it can be a program name with args.
7681 set dummy ranlib; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$ac_ct_RANLIB"; then
7688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_ac_ct_RANLIB="ranlib"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7708 if test -n "$ac_ct_RANLIB"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7710 $as_echo "$ac_ct_RANLIB" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7716 if test "x$ac_ct_RANLIB" = x; then
7717 RANLIB=":"
7718 else
7719 case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723 ac_tool_warned=yes ;;
7724 esac
7725 RANLIB=$ac_ct_RANLIB
7727 else
7728 RANLIB="$ac_cv_prog_RANLIB"
7731 test -z "$RANLIB" && RANLIB=:
7738 # Determine commands to create old-style static archives.
7739 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7740 old_postinstall_cmds='chmod 644 $oldlib'
7741 old_postuninstall_cmds=
7743 if test -n "$RANLIB"; then
7744 case $host_os in
7745 openbsd*)
7746 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7751 esac
7752 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7755 case $host_os in
7756 darwin*)
7757 lock_old_archive_extraction=yes ;;
7759 lock_old_archive_extraction=no ;;
7760 esac
7800 # If no C compiler was specified, use CC.
7801 LTCC=${LTCC-"$CC"}
7803 # If no C compiler flags were specified, use CFLAGS.
7804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7806 # Allow CC to be a program name with arguments.
7807 compiler=$CC
7810 # Check for command to grab the raw symbol name followed by C symbol from nm.
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7812 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7813 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7817 # These are sane defaults that work on at least a few old systems.
7818 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7820 # Character class describing NM global symbol codes.
7821 symcode='[BCDEGRST]'
7823 # Regexp to match symbols that can be accessed directly from C.
7824 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7826 # Define system-specific variables.
7827 case $host_os in
7828 aix*)
7829 symcode='[BCDT]'
7831 cygwin* | mingw* | pw32* | cegcc*)
7832 symcode='[ABCDGISTW]'
7834 hpux*)
7835 if test "$host_cpu" = ia64; then
7836 symcode='[ABCDEGRST]'
7839 irix* | nonstopux*)
7840 symcode='[BCDEGRST]'
7842 osf*)
7843 symcode='[BCDEGQRST]'
7845 solaris*)
7846 symcode='[BDRT]'
7848 sco3.2v5*)
7849 symcode='[DT]'
7851 sysv4.2uw2*)
7852 symcode='[DT]'
7854 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7855 symcode='[ABDT]'
7857 sysv4)
7858 symcode='[DFNSTU]'
7860 esac
7862 # If we're using GNU nm, then use its standard symbol codes.
7863 case `$NM -V 2>&1` in
7864 *GNU* | *'with BFD'*)
7865 symcode='[ABCDGIRSTW]' ;;
7866 esac
7868 # Transform an extracted symbol line into a proper C declaration.
7869 # Some systems (esp. on ia64) link data and code symbols differently,
7870 # so use this general approach.
7871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7873 # Transform an extracted symbol line into symbol name and symbol address
7874 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7875 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'"
7877 # Handle CRLF in mingw tool chain
7878 opt_cr=
7879 case $build_os in
7880 mingw*)
7881 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7883 esac
7885 # Try without a prefix underscore, then with it.
7886 for ac_symprfx in "" "_"; do
7888 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7889 symxfrm="\\1 $ac_symprfx\\2 \\2"
7891 # Write the raw and C identifiers.
7892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7893 # Fake it for dumpbin and say T for any non-static function
7894 # and D for any global variable.
7895 # Also find C++ and __fastcall symbols from MSVC++,
7896 # which start with @ or ?.
7897 lt_cv_sys_global_symbol_pipe="$AWK '"\
7898 " {last_section=section; section=\$ 3};"\
7899 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7900 " \$ 0!~/External *\|/{next};"\
7901 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7902 " {if(hide[section]) next};"\
7903 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7904 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7905 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7906 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7907 " ' prfx=^$ac_symprfx"
7908 else
7909 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7912 # Check to see that the pipe works correctly.
7913 pipe_works=no
7915 rm -f conftest*
7916 cat > conftest.$ac_ext <<_LT_EOF
7917 #ifdef __cplusplus
7918 extern "C" {
7919 #endif
7920 char nm_test_var;
7921 void nm_test_func(void);
7922 void nm_test_func(void){}
7923 #ifdef __cplusplus
7925 #endif
7926 int main(){nm_test_var='a';nm_test_func();return(0);}
7927 _LT_EOF
7929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7930 (eval $ac_compile) 2>&5
7931 ac_status=$?
7932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7933 test $ac_status = 0; }; then
7934 # Now try to grab the symbols.
7935 nlist=conftest.nm
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7937 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7938 ac_status=$?
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; } && test -s "$nlist"; then
7941 # Try sorting and uniquifying the output.
7942 if sort "$nlist" | uniq > "$nlist"T; then
7943 mv -f "$nlist"T "$nlist"
7944 else
7945 rm -f "$nlist"T
7948 # Make sure that we snagged all the symbols we need.
7949 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7950 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7951 cat <<_LT_EOF > conftest.$ac_ext
7952 #ifdef __cplusplus
7953 extern "C" {
7954 #endif
7956 _LT_EOF
7957 # Now generate the symbol file.
7958 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7960 cat <<_LT_EOF >> conftest.$ac_ext
7962 /* The mapping between symbol names and symbols. */
7963 const struct {
7964 const char *name;
7965 void *address;
7967 lt__PROGRAM__LTX_preloaded_symbols[] =
7969 { "@PROGRAM@", (void *) 0 },
7970 _LT_EOF
7971 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7972 cat <<\_LT_EOF >> conftest.$ac_ext
7973 {0, (void *) 0}
7976 /* This works around a problem in FreeBSD linker */
7977 #ifdef FREEBSD_WORKAROUND
7978 static const void *lt_preloaded_setup() {
7979 return lt__PROGRAM__LTX_preloaded_symbols;
7981 #endif
7983 #ifdef __cplusplus
7985 #endif
7986 _LT_EOF
7987 # Now try linking the two files.
7988 mv conftest.$ac_objext conftstm.$ac_objext
7989 lt_save_LIBS="$LIBS"
7990 lt_save_CFLAGS="$CFLAGS"
7991 LIBS="conftstm.$ac_objext"
7992 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7994 (eval $ac_link) 2>&5
7995 ac_status=$?
7996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7998 pipe_works=yes
8000 LIBS="$lt_save_LIBS"
8001 CFLAGS="$lt_save_CFLAGS"
8002 else
8003 echo "cannot find nm_test_func in $nlist" >&5
8005 else
8006 echo "cannot find nm_test_var in $nlist" >&5
8008 else
8009 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8011 else
8012 echo "$progname: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 rm -rf conftest* conftst*
8017 # Do not use the global_symbol_pipe unless it works.
8018 if test "$pipe_works" = yes; then
8019 break
8020 else
8021 lt_cv_sys_global_symbol_pipe=
8023 done
8027 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8028 lt_cv_sys_global_symbol_to_cdecl=
8030 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8032 $as_echo "failed" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8035 $as_echo "ok" >&6; }
8059 # Check whether --enable-libtool-lock was given.
8060 if test "${enable_libtool_lock+set}" = set; then :
8061 enableval=$enable_libtool_lock;
8064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8066 # Some flags need to be propagated to the compiler or linker for good
8067 # libtool support.
8068 case $host in
8069 ia64-*-hpux*)
8070 # Find out which ABI we are using.
8071 echo 'int i;' > conftest.$ac_ext
8072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8073 (eval $ac_compile) 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 case `/usr/bin/file conftest.$ac_objext` in
8078 *ELF-32*)
8079 HPUX_IA64_MODE="32"
8081 *ELF-64*)
8082 HPUX_IA64_MODE="64"
8084 esac
8086 rm -rf conftest*
8088 *-*-irix6*)
8089 # Find out which ABI we are using.
8090 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8092 (eval $ac_compile) 2>&5
8093 ac_status=$?
8094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8095 test $ac_status = 0; }; then
8096 if test "$lt_cv_prog_gnu_ld" = yes; then
8097 case `/usr/bin/file conftest.$ac_objext` in
8098 *32-bit*)
8099 LD="${LD-ld} -melf32bsmip"
8101 *N32*)
8102 LD="${LD-ld} -melf32bmipn32"
8104 *64-bit*)
8105 LD="${LD-ld} -melf64bmip"
8107 esac
8108 else
8109 case `/usr/bin/file conftest.$ac_objext` in
8110 *32-bit*)
8111 LD="${LD-ld} -32"
8113 *N32*)
8114 LD="${LD-ld} -n32"
8116 *64-bit*)
8117 LD="${LD-ld} -64"
8119 esac
8122 rm -rf conftest*
8125 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8126 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8127 # Find out which ABI we are using.
8128 echo 'int i;' > conftest.$ac_ext
8129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130 (eval $ac_compile) 2>&5
8131 ac_status=$?
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 case `/usr/bin/file conftest.o` in
8135 *32-bit*)
8136 case $host in
8137 x86_64-*kfreebsd*-gnu)
8138 LD="${LD-ld} -m elf_i386_fbsd"
8140 x86_64-*linux*)
8141 case `/usr/bin/file conftest.o` in
8142 *x86-64*)
8143 LD="${LD-ld} -m elf32_x86_64"
8146 LD="${LD-ld} -m elf_i386"
8148 esac
8150 powerpc64le-*linux*)
8151 LD="${LD-ld} -m elf32lppclinux"
8153 powerpc64-*linux*)
8154 LD="${LD-ld} -m elf32ppclinux"
8156 s390x-*linux*)
8157 LD="${LD-ld} -m elf_s390"
8159 sparc64-*linux*)
8160 LD="${LD-ld} -m elf32_sparc"
8162 esac
8164 *64-bit*)
8165 case $host in
8166 x86_64-*kfreebsd*-gnu)
8167 LD="${LD-ld} -m elf_x86_64_fbsd"
8169 x86_64-*linux*)
8170 LD="${LD-ld} -m elf_x86_64"
8172 powerpcle-*linux*)
8173 LD="${LD-ld} -m elf64lppc"
8175 powerpc-*linux*)
8176 LD="${LD-ld} -m elf64ppc"
8178 s390*-*linux*|s390*-*tpf*)
8179 LD="${LD-ld} -m elf64_s390"
8181 sparc*-*linux*)
8182 LD="${LD-ld} -m elf64_sparc"
8184 esac
8186 esac
8188 rm -rf conftest*
8191 *-*-sco3.2v5*)
8192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8193 SAVE_CFLAGS="$CFLAGS"
8194 CFLAGS="$CFLAGS -belf"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 ac_ext=c
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8210 main ()
8214 return 0;
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 lt_cv_cc_needs_belf=yes
8219 else
8220 lt_cv_cc_needs_belf=no
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8235 CFLAGS="$SAVE_CFLAGS"
8238 sparc*-*solaris*)
8239 # Find out which ABI we are using.
8240 echo 'int i;' > conftest.$ac_ext
8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8242 (eval $ac_compile) 2>&5
8243 ac_status=$?
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; }; then
8246 case `/usr/bin/file conftest.o` in
8247 *64-bit*)
8248 case $lt_cv_prog_gnu_ld in
8249 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8251 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8252 LD="${LD-ld} -64"
8255 esac
8257 esac
8259 rm -rf conftest*
8261 esac
8263 need_locks="$enable_libtool_lock"
8266 case $host_os in
8267 rhapsody* | darwin*)
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$DSYMUTIL"; then
8277 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8296 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8297 if test -n "$DSYMUTIL"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8299 $as_echo "$DSYMUTIL" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8307 if test -z "$ac_cv_prog_DSYMUTIL"; then
8308 ac_ct_DSYMUTIL=$DSYMUTIL
8309 # Extract the first word of "dsymutil", so it can be a program name with args.
8310 set dummy dsymutil; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$ac_ct_DSYMUTIL"; then
8317 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8330 done
8331 done
8332 IFS=$as_save_IFS
8336 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8337 if test -n "$ac_ct_DSYMUTIL"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8339 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8345 if test "x$ac_ct_DSYMUTIL" = x; then
8346 DSYMUTIL=":"
8347 else
8348 case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8353 esac
8354 DSYMUTIL=$ac_ct_DSYMUTIL
8356 else
8357 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8360 if test -n "$ac_tool_prefix"; then
8361 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_NMEDIT+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$NMEDIT"; then
8369 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8382 done
8383 done
8384 IFS=$as_save_IFS
8388 NMEDIT=$ac_cv_prog_NMEDIT
8389 if test -n "$NMEDIT"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8391 $as_echo "$NMEDIT" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 if test -z "$ac_cv_prog_NMEDIT"; then
8400 ac_ct_NMEDIT=$NMEDIT
8401 # Extract the first word of "nmedit", so it can be a program name with args.
8402 set dummy nmedit; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 if test -n "$ac_ct_NMEDIT"; then
8409 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8422 done
8423 done
8424 IFS=$as_save_IFS
8428 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8429 if test -n "$ac_ct_NMEDIT"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8431 $as_echo "$ac_ct_NMEDIT" >&6; }
8432 else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8437 if test "x$ac_ct_NMEDIT" = x; then
8438 NMEDIT=":"
8439 else
8440 case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446 NMEDIT=$ac_ct_NMEDIT
8448 else
8449 NMEDIT="$ac_cv_prog_NMEDIT"
8452 if test -n "$ac_tool_prefix"; then
8453 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8454 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_LIPO+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$LIPO"; then
8461 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8480 LIPO=$ac_cv_prog_LIPO
8481 if test -n "$LIPO"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8483 $as_echo "$LIPO" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_prog_LIPO"; then
8492 ac_ct_LIPO=$LIPO
8493 # Extract the first word of "lipo", so it can be a program name with args.
8494 set dummy lipo; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$ac_ct_LIPO"; then
8501 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_ac_ct_LIPO="lipo"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8521 if test -n "$ac_ct_LIPO"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8523 $as_echo "$ac_ct_LIPO" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8529 if test "x$ac_ct_LIPO" = x; then
8530 LIPO=":"
8531 else
8532 case $cross_compiling:$ac_tool_warned in
8533 yes:)
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536 ac_tool_warned=yes ;;
8537 esac
8538 LIPO=$ac_ct_LIPO
8540 else
8541 LIPO="$ac_cv_prog_LIPO"
8544 if test -n "$ac_tool_prefix"; then
8545 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8546 set dummy ${ac_tool_prefix}otool; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_OTOOL+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 if test -n "$OTOOL"; then
8553 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8562 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8566 done
8567 done
8568 IFS=$as_save_IFS
8572 OTOOL=$ac_cv_prog_OTOOL
8573 if test -n "$OTOOL"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8575 $as_echo "$OTOOL" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8583 if test -z "$ac_cv_prog_OTOOL"; then
8584 ac_ct_OTOOL=$OTOOL
8585 # Extract the first word of "otool", so it can be a program name with args.
8586 set dummy otool; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$ac_ct_OTOOL"; then
8593 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_ac_ct_OTOOL="otool"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8612 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8613 if test -n "$ac_ct_OTOOL"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8615 $as_echo "$ac_ct_OTOOL" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8621 if test "x$ac_ct_OTOOL" = x; then
8622 OTOOL=":"
8623 else
8624 case $cross_compiling:$ac_tool_warned in
8625 yes:)
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628 ac_tool_warned=yes ;;
8629 esac
8630 OTOOL=$ac_ct_OTOOL
8632 else
8633 OTOOL="$ac_cv_prog_OTOOL"
8636 if test -n "$ac_tool_prefix"; then
8637 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8638 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_OTOOL64+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$OTOOL64"; then
8645 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8664 OTOOL64=$ac_cv_prog_OTOOL64
8665 if test -n "$OTOOL64"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8667 $as_echo "$OTOOL64" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 if test -z "$ac_cv_prog_OTOOL64"; then
8676 ac_ct_OTOOL64=$OTOOL64
8677 # Extract the first word of "otool64", so it can be a program name with args.
8678 set dummy otool64; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$ac_ct_OTOOL64"; then
8685 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_ac_ct_OTOOL64="otool64"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8698 done
8699 done
8700 IFS=$as_save_IFS
8704 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8705 if test -n "$ac_ct_OTOOL64"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8707 $as_echo "$ac_ct_OTOOL64" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8713 if test "x$ac_ct_OTOOL64" = x; then
8714 OTOOL64=":"
8715 else
8716 case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8721 esac
8722 OTOOL64=$ac_ct_OTOOL64
8724 else
8725 OTOOL64="$ac_cv_prog_OTOOL64"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8755 $as_echo_n "checking for -single_module linker flag... " >&6; }
8756 if ${lt_cv_apple_cc_single_mod+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 lt_cv_apple_cc_single_mod=no
8760 if test -z "${LT_MULTI_MODULE}"; then
8761 # By default we will add the -single_module flag. You can override
8762 # by either setting the environment variable LT_MULTI_MODULE
8763 # non-empty at configure time, or by adding -multi_module to the
8764 # link flags.
8765 rm -rf libconftest.dylib*
8766 echo "int foo(void){return 1;}" > conftest.c
8767 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8768 -dynamiclib -Wl,-single_module conftest.c" >&5
8769 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8770 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8771 _lt_result=$?
8772 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8773 lt_cv_apple_cc_single_mod=yes
8774 else
8775 cat conftest.err >&5
8777 rm -rf libconftest.dylib*
8778 rm -f conftest.*
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8782 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8784 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8785 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_ld_exported_symbols_list=no
8789 save_LDFLAGS=$LDFLAGS
8790 echo "_main" > conftest.sym
8791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8796 main ()
8800 return 0;
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 lt_cv_ld_exported_symbols_list=yes
8805 else
8806 lt_cv_ld_exported_symbols_list=no
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LDFLAGS="$save_LDFLAGS"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8814 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8816 $as_echo_n "checking for -force_load linker flag... " >&6; }
8817 if ${lt_cv_ld_force_load+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 lt_cv_ld_force_load=no
8821 cat > conftest.c << _LT_EOF
8822 int forced_loaded() { return 2;}
8823 _LT_EOF
8824 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8825 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8826 echo "$AR cru libconftest.a conftest.o" >&5
8827 $AR cru libconftest.a conftest.o 2>&5
8828 cat > conftest.c << _LT_EOF
8829 int main() { return 0;}
8830 _LT_EOF
8831 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8832 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8833 _lt_result=$?
8834 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8835 lt_cv_ld_force_load=yes
8836 else
8837 cat conftest.err >&5
8839 rm -f conftest.err libconftest.a conftest conftest.c
8840 rm -rf conftest.dSYM
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8844 $as_echo "$lt_cv_ld_force_load" >&6; }
8845 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8846 # build without first building modern cctools / linker.
8847 case $host_cpu-$host_os in
8848 *-rhapsody* | *-darwin1.[012])
8849 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8850 *-darwin1.*)
8851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8852 *-darwin*)
8853 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8854 # deployment target is forced to an earlier version.
8855 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8856 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8858 10.[012][,.]*)
8859 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8863 esac
8865 esac
8866 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8867 _lt_dar_single_mod='$single_module'
8869 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8870 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8871 else
8872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8874 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8875 _lt_dsymutil='~$DSYMUTIL $lib || :'
8876 else
8877 _lt_dsymutil=
8880 esac
8882 for ac_header in dlfcn.h
8883 do :
8884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8886 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_DLFCN_H 1
8889 _ACEOF
8893 done
8900 # Set options
8905 enable_win32_dll=no
8908 # Check whether --enable-shared was given.
8909 if test "${enable_shared+set}" = set; then :
8910 enableval=$enable_shared; p=${PACKAGE-default}
8911 case $enableval in
8912 yes) enable_shared=yes ;;
8913 no) enable_shared=no ;;
8915 enable_shared=no
8916 # Look at the argument we got. We use all the common list separators.
8917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918 for pkg in $enableval; do
8919 IFS="$lt_save_ifs"
8920 if test "X$pkg" = "X$p"; then
8921 enable_shared=yes
8923 done
8924 IFS="$lt_save_ifs"
8926 esac
8927 else
8928 enable_shared=yes
8939 # Check whether --enable-static was given.
8940 if test "${enable_static+set}" = set; then :
8941 enableval=$enable_static; p=${PACKAGE-default}
8942 case $enableval in
8943 yes) enable_static=yes ;;
8944 no) enable_static=no ;;
8946 enable_static=no
8947 # Look at the argument we got. We use all the common list separators.
8948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949 for pkg in $enableval; do
8950 IFS="$lt_save_ifs"
8951 if test "X$pkg" = "X$p"; then
8952 enable_static=yes
8954 done
8955 IFS="$lt_save_ifs"
8957 esac
8958 else
8959 enable_static=yes
8971 # Check whether --with-pic was given.
8972 if test "${with_pic+set}" = set; then :
8973 withval=$with_pic; pic_mode="$withval"
8974 else
8975 pic_mode=default
8979 test -z "$pic_mode" && pic_mode=default
8987 # Check whether --enable-fast-install was given.
8988 if test "${enable_fast_install+set}" = set; then :
8989 enableval=$enable_fast_install; p=${PACKAGE-default}
8990 case $enableval in
8991 yes) enable_fast_install=yes ;;
8992 no) enable_fast_install=no ;;
8994 enable_fast_install=no
8995 # Look at the argument we got. We use all the common list separators.
8996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8997 for pkg in $enableval; do
8998 IFS="$lt_save_ifs"
8999 if test "X$pkg" = "X$p"; then
9000 enable_fast_install=yes
9002 done
9003 IFS="$lt_save_ifs"
9005 esac
9006 else
9007 enable_fast_install=yes
9020 # This can be used to rebuild libtool when needed
9021 LIBTOOL_DEPS="$ltmain"
9023 # Always use our own libtool.
9024 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9051 test -z "$LN_S" && LN_S="ln -s"
9066 if test -n "${ZSH_VERSION+set}" ; then
9067 setopt NO_GLOB_SUBST
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9071 $as_echo_n "checking for objdir... " >&6; }
9072 if ${lt_cv_objdir+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 rm -f .libs 2>/dev/null
9076 mkdir .libs 2>/dev/null
9077 if test -d .libs; then
9078 lt_cv_objdir=.libs
9079 else
9080 # MS-DOS does not allow filenames that begin with a dot.
9081 lt_cv_objdir=_libs
9083 rmdir .libs 2>/dev/null
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9086 $as_echo "$lt_cv_objdir" >&6; }
9087 objdir=$lt_cv_objdir
9093 cat >>confdefs.h <<_ACEOF
9094 #define LT_OBJDIR "$lt_cv_objdir/"
9095 _ACEOF
9100 case $host_os in
9101 aix3*)
9102 # AIX sometimes has problems with the GCC collect2 program. For some
9103 # reason, if we set the COLLECT_NAMES environment variable, the problems
9104 # vanish in a puff of smoke.
9105 if test "X${COLLECT_NAMES+set}" != Xset; then
9106 COLLECT_NAMES=
9107 export COLLECT_NAMES
9110 esac
9112 # Global variables:
9113 ofile=libtool
9114 can_build_shared=yes
9116 # All known linkers require a `.a' archive for static linking (except MSVC,
9117 # which needs '.lib').
9118 libext=a
9120 with_gnu_ld="$lt_cv_prog_gnu_ld"
9122 old_CC="$CC"
9123 old_CFLAGS="$CFLAGS"
9125 # Set sane defaults for various variables
9126 test -z "$CC" && CC=cc
9127 test -z "$LTCC" && LTCC=$CC
9128 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9129 test -z "$LD" && LD=ld
9130 test -z "$ac_objext" && ac_objext=o
9132 for cc_temp in $compiler""; do
9133 case $cc_temp in
9134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9136 \-*) ;;
9137 *) break;;
9138 esac
9139 done
9140 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9143 # Only perform the check for file, if the check method requires it
9144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9145 case $deplibs_check_method in
9146 file_magic*)
9147 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9149 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9150 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 case $MAGIC_CMD in
9154 [\\/*] | ?:[\\/]*)
9155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9158 lt_save_MAGIC_CMD="$MAGIC_CMD"
9159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9161 for ac_dir in $ac_dummy; do
9162 IFS="$lt_save_ifs"
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f $ac_dir/${ac_tool_prefix}file; then
9165 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9166 if test -n "$file_magic_test_file"; then
9167 case $deplibs_check_method in
9168 "file_magic "*)
9169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9172 $EGREP "$file_magic_regex" > /dev/null; then
9174 else
9175 cat <<_LT_EOF 1>&2
9177 *** Warning: the command libtool uses to detect shared libraries,
9178 *** $file_magic_cmd, produces output that libtool cannot recognize.
9179 *** The result is that libtool may fail to recognize shared libraries
9180 *** as such. This will affect the creation of libtool libraries that
9181 *** depend on shared libraries, but programs linked with such libtool
9182 *** libraries will work regardless of this problem. Nevertheless, you
9183 *** may want to report the problem to your system manager and/or to
9184 *** bug-libtool@gnu.org
9186 _LT_EOF
9187 fi ;;
9188 esac
9190 break
9192 done
9193 IFS="$lt_save_ifs"
9194 MAGIC_CMD="$lt_save_MAGIC_CMD"
9196 esac
9199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9200 if test -n "$MAGIC_CMD"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9202 $as_echo "$MAGIC_CMD" >&6; }
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9212 if test -z "$lt_cv_path_MAGIC_CMD"; then
9213 if test -n "$ac_tool_prefix"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9215 $as_echo_n "checking for file... " >&6; }
9216 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 case $MAGIC_CMD in
9220 [\\/*] | ?:[\\/]*)
9221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224 lt_save_MAGIC_CMD="$MAGIC_CMD"
9225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9227 for ac_dir in $ac_dummy; do
9228 IFS="$lt_save_ifs"
9229 test -z "$ac_dir" && ac_dir=.
9230 if test -f $ac_dir/file; then
9231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9232 if test -n "$file_magic_test_file"; then
9233 case $deplibs_check_method in
9234 "file_magic "*)
9235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9238 $EGREP "$file_magic_regex" > /dev/null; then
9240 else
9241 cat <<_LT_EOF 1>&2
9243 *** Warning: the command libtool uses to detect shared libraries,
9244 *** $file_magic_cmd, produces output that libtool cannot recognize.
9245 *** The result is that libtool may fail to recognize shared libraries
9246 *** as such. This will affect the creation of libtool libraries that
9247 *** depend on shared libraries, but programs linked with such libtool
9248 *** libraries will work regardless of this problem. Nevertheless, you
9249 *** may want to report the problem to your system manager and/or to
9250 *** bug-libtool@gnu.org
9252 _LT_EOF
9253 fi ;;
9254 esac
9256 break
9258 done
9259 IFS="$lt_save_ifs"
9260 MAGIC_CMD="$lt_save_MAGIC_CMD"
9262 esac
9265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9266 if test -n "$MAGIC_CMD"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 $as_echo "$MAGIC_CMD" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9275 else
9276 MAGIC_CMD=:
9282 esac
9284 # Use C for the default configuration in the libtool script
9286 lt_save_CC="$CC"
9287 ac_ext=c
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294 # Source file extension for C test sources.
9295 ac_ext=c
9297 # Object file extension for compiled C test sources.
9298 objext=o
9299 objext=$objext
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(){return(0);}'
9313 # If no C compiler was specified, use CC.
9314 LTCC=${LTCC-"$CC"}
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9319 # Allow CC to be a program name with arguments.
9320 compiler=$CC
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9331 $RM conftest*
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9337 $RM -r conftest*
9340 ## CAVEAT EMPTOR:
9341 ## There is no encapsulation within the following macros, do not change
9342 ## the running order or otherwise move them around unless you know exactly
9343 ## what you are doing...
9344 if test -n "$compiler"; then
9346 lt_prog_compiler_no_builtin_flag=
9348 if test "$GCC" = yes; then
9349 case $cc_basename in
9350 nvcc*)
9351 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9353 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9354 esac
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9357 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9358 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 lt_cv_prog_compiler_rtti_exceptions=no
9362 ac_outfile=conftest.$ac_objext
9363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9364 lt_compiler_flag="-fno-rtti -fno-exceptions"
9365 # Insert the option either (1) after the last *FLAGS variable, or
9366 # (2) before a word containing "conftest.", or (3) at the end.
9367 # Note that $ac_compile itself does not contain backslashes and begins
9368 # with a dollar sign (not a hyphen), so the echo should work correctly.
9369 # The option is referenced via a variable to avoid confusing sed.
9370 lt_compile=`echo "$ac_compile" | $SED \
9371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9373 -e 's:$: $lt_compiler_flag:'`
9374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9375 (eval "$lt_compile" 2>conftest.err)
9376 ac_status=$?
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 if (exit $ac_status) && test -s "$ac_outfile"; then
9380 # The compiler can only warn and ignore the option if not recognized
9381 # So say no if there are warnings other than the usual output.
9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_rtti_exceptions=yes
9388 $RM conftest*
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9392 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9395 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9396 else
9407 lt_prog_compiler_wl=
9408 lt_prog_compiler_pic=
9409 lt_prog_compiler_static=
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9412 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9414 if test "$GCC" = yes; then
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_static='-static'
9418 case $host_os in
9419 aix*)
9420 # All AIX code is PIC.
9421 if test "$host_cpu" = ia64; then
9422 # AIX 5 now supports IA64 processor
9423 lt_prog_compiler_static='-Bstatic'
9425 lt_prog_compiler_pic='-fPIC'
9428 amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 lt_prog_compiler_pic='-fPIC'
9434 m68k)
9435 # FIXME: we need at least 68020 code to build shared libraries, but
9436 # adding the `-m68020' flag to GCC prevents building anything better,
9437 # like `-m68040'.
9438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9440 esac
9443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9444 # PIC is the default for these OSes.
9447 mingw* | cygwin* | pw32* | os2* | cegcc*)
9448 # This hack is so that the source file can tell whether it is being
9449 # built for inclusion in a dll (and should export symbols for example).
9450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9451 # (--disable-auto-import) libraries
9452 lt_prog_compiler_pic='-DDLL_EXPORT'
9455 darwin* | rhapsody*)
9456 # PIC is the default on this platform
9457 # Common symbols not allowed in MH_DYLIB files
9458 lt_prog_compiler_pic='-fno-common'
9461 haiku*)
9462 # PIC is the default for Haiku.
9463 # The "-static" flag exists, but is broken.
9464 lt_prog_compiler_static=
9467 hpux*)
9468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9470 # sets the default TLS model and affects inlining.
9471 case $host_cpu in
9472 hppa*64*)
9473 # +Z the default
9476 lt_prog_compiler_pic='-fPIC'
9478 esac
9481 interix[3-9]*)
9482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9483 # Instead, we relocate shared libraries at runtime.
9486 msdosdjgpp*)
9487 # Just because we use GCC doesn't mean we suddenly get shared libraries
9488 # on systems that don't support them.
9489 lt_prog_compiler_can_build_shared=no
9490 enable_shared=no
9493 *nto* | *qnx*)
9494 # QNX uses GNU C++, but need to define -shared option too, otherwise
9495 # it will coredump.
9496 lt_prog_compiler_pic='-fPIC -shared'
9499 sysv4*MP*)
9500 if test -d /usr/nec; then
9501 lt_prog_compiler_pic=-Kconform_pic
9506 lt_prog_compiler_pic='-fPIC'
9508 esac
9510 case $cc_basename in
9511 nvcc*) # Cuda Compiler Driver 2.2
9512 lt_prog_compiler_wl='-Xlinker '
9513 lt_prog_compiler_pic='-Xcompiler -fPIC'
9515 esac
9516 else
9517 # PORTME Check for flag to pass linker flags through the system compiler.
9518 case $host_os in
9519 aix*)
9520 lt_prog_compiler_wl='-Wl,'
9521 if test "$host_cpu" = ia64; then
9522 # AIX 5 now supports IA64 processor
9523 lt_prog_compiler_static='-Bstatic'
9524 else
9525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9529 mingw* | cygwin* | pw32* | os2* | cegcc*)
9530 # This hack is so that the source file can tell whether it is being
9531 # built for inclusion in a dll (and should export symbols for example).
9532 lt_prog_compiler_pic='-DDLL_EXPORT'
9535 hpux9* | hpux10* | hpux11*)
9536 lt_prog_compiler_wl='-Wl,'
9537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9538 # not for PA HP-UX.
9539 case $host_cpu in
9540 hppa*64*|ia64*)
9541 # +Z the default
9544 lt_prog_compiler_pic='+Z'
9546 esac
9547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9548 lt_prog_compiler_static='${wl}-a ${wl}archive'
9551 irix5* | irix6* | nonstopux*)
9552 lt_prog_compiler_wl='-Wl,'
9553 # PIC (with -KPIC) is the default.
9554 lt_prog_compiler_static='-non_shared'
9557 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9558 case $cc_basename in
9559 # old Intel for x86_64 which still supported -KPIC.
9560 ecc*)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-static'
9565 # icc used to be incompatible with GCC.
9566 # ICC 10 doesn't accept -KPIC any more.
9567 icc* | ifort*)
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-fPIC'
9570 lt_prog_compiler_static='-static'
9572 # Lahey Fortran 8.1.
9573 lf95*)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='--shared'
9576 lt_prog_compiler_static='--static'
9578 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9579 # Portland Group compilers (*not* the Pentium gcc compiler,
9580 # which looks to be a dead project)
9581 lt_prog_compiler_wl='-Wl,'
9582 lt_prog_compiler_pic='-fpic'
9583 lt_prog_compiler_static='-Bstatic'
9585 ccc*)
9586 lt_prog_compiler_wl='-Wl,'
9587 # All Alpha code is PIC.
9588 lt_prog_compiler_static='-non_shared'
9590 xl* | bgxl* | bgf* | mpixl*)
9591 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-qpic'
9594 lt_prog_compiler_static='-qstaticlink'
9597 case `$CC -V 2>&1 | sed 5q` in
9598 *Sun\ F* | *Sun*Fortran*)
9599 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-Bstatic'
9602 lt_prog_compiler_wl=''
9604 *Sun\ C*)
9605 # Sun C 5.9
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 lt_prog_compiler_wl='-Wl,'
9610 esac
9612 esac
9615 newsos6)
9616 lt_prog_compiler_pic='-KPIC'
9617 lt_prog_compiler_static='-Bstatic'
9620 *nto* | *qnx*)
9621 # QNX uses GNU C++, but need to define -shared option too, otherwise
9622 # it will coredump.
9623 lt_prog_compiler_pic='-fPIC -shared'
9626 osf3* | osf4* | osf5*)
9627 lt_prog_compiler_wl='-Wl,'
9628 # All OSF/1 code is PIC.
9629 lt_prog_compiler_static='-non_shared'
9632 rdos*)
9633 lt_prog_compiler_static='-non_shared'
9636 solaris*)
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 case $cc_basename in
9640 f77* | f90* | f95*)
9641 lt_prog_compiler_wl='-Qoption ld ';;
9643 lt_prog_compiler_wl='-Wl,';;
9644 esac
9647 sunos4*)
9648 lt_prog_compiler_wl='-Qoption ld '
9649 lt_prog_compiler_pic='-PIC'
9650 lt_prog_compiler_static='-Bstatic'
9653 sysv4 | sysv4.2uw2* | sysv4.3*)
9654 lt_prog_compiler_wl='-Wl,'
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9659 sysv4*MP*)
9660 if test -d /usr/nec ;then
9661 lt_prog_compiler_pic='-Kconform_pic'
9662 lt_prog_compiler_static='-Bstatic'
9666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9667 lt_prog_compiler_wl='-Wl,'
9668 lt_prog_compiler_pic='-KPIC'
9669 lt_prog_compiler_static='-Bstatic'
9672 unicos*)
9673 lt_prog_compiler_wl='-Wl,'
9674 lt_prog_compiler_can_build_shared=no
9677 uts4*)
9678 lt_prog_compiler_pic='-pic'
9679 lt_prog_compiler_static='-Bstatic'
9683 lt_prog_compiler_can_build_shared=no
9685 esac
9688 case $host_os in
9689 # For platforms which do not support PIC, -DPIC is meaningless:
9690 *djgpp*)
9691 lt_prog_compiler_pic=
9694 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9696 esac
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9698 $as_echo "$lt_prog_compiler_pic" >&6; }
9706 # Check to make sure the PIC flag actually works.
9708 if test -n "$lt_prog_compiler_pic"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9710 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9711 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 lt_cv_prog_compiler_pic_works=no
9715 ac_outfile=conftest.$ac_objext
9716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9718 # Insert the option either (1) after the last *FLAGS variable, or
9719 # (2) before a word containing "conftest.", or (3) at the end.
9720 # Note that $ac_compile itself does not contain backslashes and begins
9721 # with a dollar sign (not a hyphen), so the echo should work correctly.
9722 # The option is referenced via a variable to avoid confusing sed.
9723 lt_compile=`echo "$ac_compile" | $SED \
9724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9726 -e 's:$: $lt_compiler_flag:'`
9727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9728 (eval "$lt_compile" 2>conftest.err)
9729 ac_status=$?
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 if (exit $ac_status) && test -s "$ac_outfile"; then
9733 # The compiler can only warn and ignore the option if not recognized
9734 # So say no if there are warnings other than the usual output.
9735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9738 lt_cv_prog_compiler_pic_works=yes
9741 $RM conftest*
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9745 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9747 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9748 case $lt_prog_compiler_pic in
9749 "" | " "*) ;;
9750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9751 esac
9752 else
9753 lt_prog_compiler_pic=
9754 lt_prog_compiler_can_build_shared=no
9765 # Check to make sure the static flag actually works.
9767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9769 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9770 if ${lt_cv_prog_compiler_static_works+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 lt_cv_prog_compiler_static_works=no
9774 save_LDFLAGS="$LDFLAGS"
9775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9778 # The linker can only warn and ignore the option if not recognized
9779 # So say no if there are warnings
9780 if test -s conftest.err; then
9781 # Append any errors to the config.log.
9782 cat conftest.err 1>&5
9783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785 if diff conftest.exp conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_static_works=yes
9788 else
9789 lt_cv_prog_compiler_static_works=yes
9792 $RM -r conftest*
9793 LDFLAGS="$save_LDFLAGS"
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9797 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9799 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9801 else
9802 lt_prog_compiler_static=
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9813 if ${lt_cv_prog_compiler_c_o+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 lt_cv_prog_compiler_c_o=no
9817 $RM -r conftest 2>/dev/null
9818 mkdir conftest
9819 cd conftest
9820 mkdir out
9821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9823 lt_compiler_flag="-o out/conftest2.$ac_objext"
9824 # Insert the option either (1) after the last *FLAGS variable, or
9825 # (2) before a word containing "conftest.", or (3) at the end.
9826 # Note that $ac_compile itself does not contain backslashes and begins
9827 # with a dollar sign (not a hyphen), so the echo should work correctly.
9828 lt_compile=`echo "$ac_compile" | $SED \
9829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9831 -e 's:$: $lt_compiler_flag:'`
9832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9833 (eval "$lt_compile" 2>out/conftest.err)
9834 ac_status=$?
9835 cat out/conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9838 then
9839 # The compiler can only warn and ignore the option if not recognized
9840 # So say no if there are warnings
9841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9844 lt_cv_prog_compiler_c_o=yes
9847 chmod u+w . 2>&5
9848 $RM conftest*
9849 # SGI C++ compiler will create directory out/ii_files/ for
9850 # template instantiation
9851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9852 $RM out/* && rmdir out
9853 cd ..
9854 $RM -r conftest
9855 $RM conftest*
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9868 if ${lt_cv_prog_compiler_c_o+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 lt_cv_prog_compiler_c_o=no
9872 $RM -r conftest 2>/dev/null
9873 mkdir conftest
9874 cd conftest
9875 mkdir out
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9878 lt_compiler_flag="-o out/conftest2.$ac_objext"
9879 # Insert the option either (1) after the last *FLAGS variable, or
9880 # (2) before a word containing "conftest.", or (3) at the end.
9881 # Note that $ac_compile itself does not contain backslashes and begins
9882 # with a dollar sign (not a hyphen), so the echo should work correctly.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>out/conftest.err)
9889 ac_status=$?
9890 cat out/conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893 then
9894 # The compiler can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_c_o=yes
9902 chmod u+w . 2>&5
9903 $RM conftest*
9904 # SGI C++ compiler will create directory out/ii_files/ for
9905 # template instantiation
9906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907 $RM out/* && rmdir out
9908 cd ..
9909 $RM -r conftest
9910 $RM conftest*
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9919 hard_links="nottested"
9920 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9921 # do not overwrite the value of need_locks provided by the user
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9923 $as_echo_n "checking if we can lock with hard links... " >&6; }
9924 hard_links=yes
9925 $RM conftest*
9926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9927 touch conftest.a
9928 ln conftest.a conftest.b 2>&5 || hard_links=no
9929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9931 $as_echo "$hard_links" >&6; }
9932 if test "$hard_links" = no; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9935 need_locks=warn
9937 else
9938 need_locks=no
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9949 runpath_var=
9950 allow_undefined_flag=
9951 always_export_symbols=no
9952 archive_cmds=
9953 archive_expsym_cmds=
9954 compiler_needs_object=no
9955 enable_shared_with_static_runtimes=no
9956 export_dynamic_flag_spec=
9957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9958 hardcode_automatic=no
9959 hardcode_direct=no
9960 hardcode_direct_absolute=no
9961 hardcode_libdir_flag_spec=
9962 hardcode_libdir_flag_spec_ld=
9963 hardcode_libdir_separator=
9964 hardcode_minus_L=no
9965 hardcode_shlibpath_var=unsupported
9966 inherit_rpath=no
9967 link_all_deplibs=unknown
9968 module_cmds=
9969 module_expsym_cmds=
9970 old_archive_from_new_cmds=
9971 old_archive_from_expsyms_cmds=
9972 thread_safe_flag_spec=
9973 whole_archive_flag_spec=
9974 # include_expsyms should be a list of space-separated symbols to be *always*
9975 # included in the symbol list
9976 include_expsyms=
9977 # exclude_expsyms can be an extended regexp of symbols to exclude
9978 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9979 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9980 # as well as any symbol that contains `d'.
9981 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9982 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9983 # platforms (ab)use it in PIC code, but their linkers get confused if
9984 # the symbol is explicitly referenced. Since portable code cannot
9985 # rely on this symbol name, it's probably fine to never include it in
9986 # preloaded symbol tables.
9987 # Exclude shared library initialization/finalization symbols.
9988 extract_expsyms_cmds=
9990 case $host_os in
9991 cygwin* | mingw* | pw32* | cegcc*)
9992 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9993 # When not using gcc, we currently assume that we are using
9994 # Microsoft Visual C++.
9995 if test "$GCC" != yes; then
9996 with_gnu_ld=no
9999 interix*)
10000 # we just hope/assume this is gcc and not c89 (= MSVC++)
10001 with_gnu_ld=yes
10003 openbsd*)
10004 with_gnu_ld=no
10006 esac
10008 ld_shlibs=yes
10010 # On some targets, GNU ld is compatible enough with the native linker
10011 # that we're better off using the native interface for both.
10012 lt_use_gnu_ld_interface=no
10013 if test "$with_gnu_ld" = yes; then
10014 case $host_os in
10015 aix*)
10016 # The AIX port of GNU ld has always aspired to compatibility
10017 # with the native linker. However, as the warning in the GNU ld
10018 # block says, versions before 2.19.5* couldn't really create working
10019 # shared libraries, regardless of the interface used.
10020 case `$LD -v 2>&1` in
10021 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10022 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10023 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10025 lt_use_gnu_ld_interface=yes
10027 esac
10030 lt_use_gnu_ld_interface=yes
10032 esac
10035 if test "$lt_use_gnu_ld_interface" = yes; then
10036 # If archive_cmds runs LD, not CC, wlarc should be empty
10037 wlarc='${wl}'
10039 # Set some defaults for GNU ld with shared library support. These
10040 # are reset later if shared libraries are not supported. Putting them
10041 # here allows them to be overridden if necessary.
10042 runpath_var=LD_RUN_PATH
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 export_dynamic_flag_spec='${wl}--export-dynamic'
10045 # ancient GNU ld didn't support --whole-archive et. al.
10046 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10047 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10048 else
10049 whole_archive_flag_spec=
10051 supports_anon_versioning=no
10052 case `$LD -v 2>&1` in
10053 *GNU\ gold*) supports_anon_versioning=yes ;;
10054 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10055 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10056 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10057 *\ 2.11.*) ;; # other 2.11 versions
10058 *) supports_anon_versioning=yes ;;
10059 esac
10061 # See if GNU ld supports shared libraries.
10062 case $host_os in
10063 aix[3-9]*)
10064 # On AIX/PPC, the GNU linker is very broken
10065 if test "$host_cpu" != ia64; then
10066 ld_shlibs=no
10067 cat <<_LT_EOF 1>&2
10069 *** Warning: the GNU linker, at least up to release 2.19, is reported
10070 *** to be unable to reliably create shared libraries on AIX.
10071 *** Therefore, libtool is disabling shared libraries support. If you
10072 *** really care for shared libraries, you may want to install binutils
10073 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10074 *** You will then need to restart the configuration process.
10076 _LT_EOF
10080 amigaos*)
10081 case $host_cpu in
10082 powerpc)
10083 # see comment about AmigaOS4 .so support
10084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085 archive_expsym_cmds=''
10087 m68k)
10088 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)'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_minus_L=yes
10092 esac
10095 beos*)
10096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10097 allow_undefined_flag=unsupported
10098 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10099 # support --undefined. This deserves some investigation. FIXME
10100 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 else
10102 ld_shlibs=no
10106 cygwin* | mingw* | pw32* | cegcc*)
10107 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10108 # as there is no search path for DLLs.
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 export_dynamic_flag_spec='${wl}--export-all-symbols'
10111 allow_undefined_flag=unsupported
10112 always_export_symbols=no
10113 enable_shared_with_static_runtimes=yes
10114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10116 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10118 # If the export-symbols file already is a .def file (1st line
10119 # is EXPORTS), use it as is; otherwise, prepend...
10120 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10121 cp $export_symbols $output_objdir/$soname.def;
10122 else
10123 echo EXPORTS > $output_objdir/$soname.def;
10124 cat $export_symbols >> $output_objdir/$soname.def;
10126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10127 else
10128 ld_shlibs=no
10132 haiku*)
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134 link_all_deplibs=yes
10137 interix[3-9]*)
10138 hardcode_direct=no
10139 hardcode_shlibpath_var=no
10140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141 export_dynamic_flag_spec='${wl}-E'
10142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10143 # Instead, shared libraries are loaded at an image base (0x10000000 by
10144 # default) and relocated if they conflict, which is a slow very memory
10145 # consuming and fragmenting process. To avoid this, we pick a random,
10146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10149 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'
10152 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10153 tmp_diet=no
10154 if test "$host_os" = linux-dietlibc; then
10155 case $cc_basename in
10156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10157 esac
10159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10160 && test "$tmp_diet" = no
10161 then
10162 tmp_addflag=' $pic_flag'
10163 tmp_sharedflag='-shared'
10164 case $cc_basename,$host_cpu in
10165 pgcc*) # Portland Group C compiler
10166 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'
10167 tmp_addflag=' $pic_flag'
10169 pgf77* | pgf90* | pgf95* | pgfortran*)
10170 # Portland Group f77 and f90 compilers
10171 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'
10172 tmp_addflag=' $pic_flag -Mnomain' ;;
10173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10174 tmp_addflag=' -i_dynamic' ;;
10175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10176 tmp_addflag=' -i_dynamic -nofor_main' ;;
10177 ifc* | ifort*) # Intel Fortran compiler
10178 tmp_addflag=' -nofor_main' ;;
10179 lf95*) # Lahey Fortran 8.1
10180 whole_archive_flag_spec=
10181 tmp_sharedflag='--shared' ;;
10182 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10183 tmp_sharedflag='-qmkshrobj'
10184 tmp_addflag= ;;
10185 nvcc*) # Cuda Compiler Driver 2.2
10186 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'
10187 compiler_needs_object=yes
10189 esac
10190 case `$CC -V 2>&1 | sed 5q` in
10191 *Sun\ C*) # Sun C 5.9
10192 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'
10193 compiler_needs_object=yes
10194 tmp_sharedflag='-G' ;;
10195 *Sun\ F*) # Sun Fortran 8.3
10196 tmp_sharedflag='-G' ;;
10197 esac
10198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200 if test "x$supports_anon_versioning" = xyes; then
10201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10203 echo "local: *; };" >> $output_objdir/$libname.ver~
10204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10207 case $cc_basename in
10208 xlf* | bgf* | bgxlf* | mpixlf*)
10209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10211 hardcode_libdir_flag_spec=
10212 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10213 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10214 if test "x$supports_anon_versioning" = xyes; then
10215 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10217 echo "local: *; };" >> $output_objdir/$libname.ver~
10218 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10221 esac
10222 else
10223 ld_shlibs=no
10227 netbsd*)
10228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10230 wlarc=
10231 else
10232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10237 solaris*)
10238 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10239 ld_shlibs=no
10240 cat <<_LT_EOF 1>&2
10242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10243 *** create shared libraries on Solaris systems. Therefore, libtool
10244 *** is disabling shared libraries support. We urge you to upgrade GNU
10245 *** binutils to release 2.9.1 or newer. Another option is to modify
10246 *** your PATH or compiler configuration so that the native linker is
10247 *** used, and then restart.
10249 _LT_EOF
10250 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253 else
10254 ld_shlibs=no
10258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10259 case `$LD -v 2>&1` in
10260 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10261 ld_shlibs=no
10262 cat <<_LT_EOF 1>&2
10264 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10265 *** reliably create shared libraries on SCO systems. Therefore, libtool
10266 *** is disabling shared libraries support. We urge you to upgrade GNU
10267 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10268 *** your PATH or compiler configuration so that the native linker is
10269 *** used, and then restart.
10271 _LT_EOF
10274 # For security reasons, it is highly recommended that you always
10275 # use absolute paths for naming shared libraries, and exclude the
10276 # DT_RUNPATH tag from executables and libraries. But doing so
10277 # requires that you compile everything twice, which is a pain.
10278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10282 else
10283 ld_shlibs=no
10286 esac
10289 sunos4*)
10290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291 wlarc=
10292 hardcode_direct=yes
10293 hardcode_shlibpath_var=no
10297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10300 else
10301 ld_shlibs=no
10304 esac
10306 if test "$ld_shlibs" = no; then
10307 runpath_var=
10308 hardcode_libdir_flag_spec=
10309 export_dynamic_flag_spec=
10310 whole_archive_flag_spec=
10312 else
10313 # PORTME fill in a description of your system's linker (not GNU ld)
10314 case $host_os in
10315 aix3*)
10316 allow_undefined_flag=unsupported
10317 always_export_symbols=yes
10318 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'
10319 # Note: this linker hardcodes the directories in LIBPATH if there
10320 # are no directories specified by -L.
10321 hardcode_minus_L=yes
10322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10323 # Neither direct hardcoding nor static linking is supported with a
10324 # broken collect2.
10325 hardcode_direct=unsupported
10329 aix[4-9]*)
10330 if test "$host_cpu" = ia64; then
10331 # On IA64, the linker does run time linking by default, so we don't
10332 # have to do anything special.
10333 aix_use_runtimelinking=no
10334 exp_sym_flag='-Bexport'
10335 no_entry_flag=""
10336 else
10337 # If we're using GNU nm, then we don't want the "-C" option.
10338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10339 # Also, AIX nm treats weak defined symbols like other global
10340 # defined symbols, whereas GNU nm marks them as "W".
10341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10342 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'
10343 else
10344 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10346 aix_use_runtimelinking=no
10348 # Test if we are trying to use run time linking or normal
10349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350 # need to do runtime linking.
10351 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10352 for ld_flag in $LDFLAGS; do
10353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10354 aix_use_runtimelinking=yes
10355 break
10357 done
10359 esac
10361 exp_sym_flag='-bexport'
10362 no_entry_flag='-bnoentry'
10365 # When large executables or shared objects are built, AIX ld can
10366 # have problems creating the table of contents. If linking a library
10367 # or program results in "error TOC overflow" add -mminimal-toc to
10368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10371 archive_cmds=''
10372 hardcode_direct=yes
10373 hardcode_direct_absolute=yes
10374 hardcode_libdir_separator=':'
10375 link_all_deplibs=yes
10376 file_list_spec='${wl}-f,'
10378 if test "$GCC" = yes; then
10379 case $host_os in aix4.[012]|aix4.[012].*)
10380 # We only want to do this on AIX 4.2 and lower, the check
10381 # below for broken collect2 doesn't work under 4.3+
10382 collect2name=`${CC} -print-prog-name=collect2`
10383 if test -f "$collect2name" &&
10384 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10385 then
10386 # We have reworked collect2
10388 else
10389 # We have old collect2
10390 hardcode_direct=unsupported
10391 # It fails to find uninstalled libraries when the uninstalled
10392 # path is not listed in the libpath. Setting hardcode_minus_L
10393 # to unsupported forces relinking
10394 hardcode_minus_L=yes
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 hardcode_libdir_separator=
10399 esac
10400 shared_flag='-shared'
10401 if test "$aix_use_runtimelinking" = yes; then
10402 shared_flag="$shared_flag "'${wl}-G'
10404 else
10405 # not using gcc
10406 if test "$host_cpu" = ia64; then
10407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408 # chokes on -Wl,-G. The following line is correct:
10409 shared_flag='-G'
10410 else
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag='${wl}-G'
10413 else
10414 shared_flag='${wl}-bM:SRE'
10419 export_dynamic_flag_spec='${wl}-bexpall'
10420 # It seems that -bexpall does not export symbols beginning with
10421 # underscore (_), so it is better to generate a list of symbols to export.
10422 always_export_symbols=yes
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # Warning - without using the other runtime loading flags (-brtl),
10425 # -berok will link without error, but may produce a broken library.
10426 allow_undefined_flag='-berok'
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10433 main ()
10437 return 0;
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10442 lt_aix_libpath_sed='
10443 /Import File Strings/,/^$/ {
10444 /^0/ {
10445 s/^0 *\(.*\)$/\1/
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450 # Check for a 64-bit object if we didn't find anything.
10451 if test -z "$aix_libpath"; then
10452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 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"
10461 else
10462 if test "$host_cpu" = ia64; then
10463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10464 allow_undefined_flag="-z nodefs"
10465 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"
10466 else
10467 # Determine the default libpath from the value encoded in an
10468 # empty executable.
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10473 main ()
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10484 /^0/ {
10485 s/^0 *\(.*\)$/\1/
10489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$aix_libpath"; then
10492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10500 # Warning - without using the other run time loading flags,
10501 # -berok will link without error, but may produce a broken library.
10502 no_undefined_flag=' ${wl}-bernotok'
10503 allow_undefined_flag=' ${wl}-berok'
10504 if test "$with_gnu_ld" = yes; then
10505 # We only use this code for GNU lds that support --whole-archive.
10506 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10507 else
10508 # Exported symbols can be pulled into shared objects from archives
10509 whole_archive_flag_spec='$convenience'
10511 archive_cmds_need_lc=yes
10512 # This is similar to how AIX traditionally builds its shared libraries.
10513 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'
10518 amigaos*)
10519 case $host_cpu in
10520 powerpc)
10521 # see comment about AmigaOS4 .so support
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523 archive_expsym_cmds=''
10525 m68k)
10526 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)'
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 hardcode_minus_L=yes
10530 esac
10533 bsdi[45]*)
10534 export_dynamic_flag_spec=-rdynamic
10537 cygwin* | mingw* | pw32* | cegcc*)
10538 # When not using gcc, we currently assume that we are using
10539 # Microsoft Visual C++.
10540 # hardcode_libdir_flag_spec is actually meaningless, as there is
10541 # no search path for DLLs.
10542 hardcode_libdir_flag_spec=' '
10543 allow_undefined_flag=unsupported
10544 # Tell ltmain to make .lib files, not .a files.
10545 libext=lib
10546 # Tell ltmain to make .dll files, not .so files.
10547 shrext_cmds=".dll"
10548 # FIXME: Setting linknames here is a bad hack.
10549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10550 # The linker will automatically build a .lib file if we build a DLL.
10551 old_archive_from_new_cmds='true'
10552 # FIXME: Should let the user specify the lib program.
10553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554 fix_srcfile_path='`cygpath -w "$srcfile"`'
10555 enable_shared_with_static_runtimes=yes
10558 darwin* | rhapsody*)
10561 archive_cmds_need_lc=no
10562 hardcode_direct=no
10563 hardcode_automatic=yes
10564 hardcode_shlibpath_var=unsupported
10565 if test "$lt_cv_ld_force_load" = "yes"; then
10566 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\"`'
10567 else
10568 whole_archive_flag_spec=''
10570 link_all_deplibs=yes
10571 allow_undefined_flag="$_lt_dar_allow_undefined"
10572 case $cc_basename in
10573 ifort*) _lt_dar_can_shared=yes ;;
10574 *) _lt_dar_can_shared=$GCC ;;
10575 esac
10576 if test "$_lt_dar_can_shared" = "yes"; then
10577 output_verbose_link_cmd=func_echo_all
10578 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10579 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10580 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}"
10581 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}"
10583 else
10584 ld_shlibs=no
10589 dgux*)
10590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_shlibpath_var=no
10595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596 # support. Future versions do this automatically, but an explicit c++rt0.o
10597 # does not break anything, and helps significantly (at the cost of a little
10598 # extra space).
10599 freebsd2.2*)
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601 hardcode_libdir_flag_spec='-R$libdir'
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
10606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607 freebsd2.*)
10608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_direct=yes
10610 hardcode_minus_L=yes
10611 hardcode_shlibpath_var=no
10614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615 freebsd* | dragonfly*)
10616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617 hardcode_libdir_flag_spec='-R$libdir'
10618 hardcode_direct=yes
10619 hardcode_shlibpath_var=no
10622 hpux9*)
10623 if test "$GCC" = yes; then
10624 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'
10625 else
10626 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'
10628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_direct=yes
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10635 export_dynamic_flag_spec='${wl}-E'
10638 hpux10*)
10639 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641 else
10642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644 if test "$with_gnu_ld" = no; then
10645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646 hardcode_libdir_flag_spec_ld='+b $libdir'
10647 hardcode_libdir_separator=:
10648 hardcode_direct=yes
10649 hardcode_direct_absolute=yes
10650 export_dynamic_flag_spec='${wl}-E'
10651 # hardcode_minus_L: Not really in the search PATH,
10652 # but as the default location of the library.
10653 hardcode_minus_L=yes
10657 hpux11*)
10658 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10659 case $host_cpu in
10660 hppa*64*)
10661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10663 ia64*)
10664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 esac
10670 else
10671 case $host_cpu in
10672 hppa*64*)
10673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10675 ia64*)
10676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10680 # Older versions of the 11.00 compiler do not understand -b yet
10681 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10683 $as_echo_n "checking if $CC understands -b... " >&6; }
10684 if ${lt_cv_prog_compiler__b+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 lt_cv_prog_compiler__b=no
10688 save_LDFLAGS="$LDFLAGS"
10689 LDFLAGS="$LDFLAGS -b"
10690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10692 # The linker can only warn and ignore the option if not recognized
10693 # So say no if there are warnings
10694 if test -s conftest.err; then
10695 # Append any errors to the config.log.
10696 cat conftest.err 1>&5
10697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10699 if diff conftest.exp conftest.er2 >/dev/null; then
10700 lt_cv_prog_compiler__b=yes
10702 else
10703 lt_cv_prog_compiler__b=yes
10706 $RM -r conftest*
10707 LDFLAGS="$save_LDFLAGS"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10711 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10713 if test x"$lt_cv_prog_compiler__b" = xyes; then
10714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10715 else
10716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10720 esac
10722 if test "$with_gnu_ld" = no; then
10723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724 hardcode_libdir_separator=:
10726 case $host_cpu in
10727 hppa*64*|ia64*)
10728 hardcode_direct=no
10729 hardcode_shlibpath_var=no
10732 hardcode_direct=yes
10733 hardcode_direct_absolute=yes
10734 export_dynamic_flag_spec='${wl}-E'
10736 # hardcode_minus_L: Not really in the search PATH,
10737 # but as the default location of the library.
10738 hardcode_minus_L=yes
10740 esac
10744 irix5* | irix6* | nonstopux*)
10745 if test "$GCC" = yes; then
10746 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'
10747 # Try to use the -exported_symbol ld option, if it does not
10748 # work, assume that -exports_file does not work either and
10749 # implicitly export all symbols.
10750 save_LDFLAGS="$LDFLAGS"
10751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754 int foo(void) {}
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 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'
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LDFLAGS="$save_LDFLAGS"
10763 else
10764 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'
10765 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'
10767 archive_cmds_need_lc='no'
10768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10769 hardcode_libdir_separator=:
10770 inherit_rpath=yes
10771 link_all_deplibs=yes
10774 netbsd*)
10775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10777 else
10778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10780 hardcode_libdir_flag_spec='-R$libdir'
10781 hardcode_direct=yes
10782 hardcode_shlibpath_var=no
10785 newsos6)
10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_direct=yes
10788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10789 hardcode_libdir_separator=:
10790 hardcode_shlibpath_var=no
10793 *nto* | *qnx*)
10796 openbsd*)
10797 if test -f /usr/libexec/ld.so; then
10798 hardcode_direct=yes
10799 hardcode_shlibpath_var=no
10800 hardcode_direct_absolute=yes
10801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10805 export_dynamic_flag_spec='${wl}-E'
10806 else
10807 case $host_os in
10808 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_libdir_flag_spec='-R$libdir'
10813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10816 esac
10818 else
10819 ld_shlibs=no
10823 os2*)
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_minus_L=yes
10826 allow_undefined_flag=unsupported
10827 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'
10828 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10831 osf3*)
10832 if test "$GCC" = yes; then
10833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10834 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'
10835 else
10836 allow_undefined_flag=' -expect_unresolved \*'
10837 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'
10839 archive_cmds_need_lc='no'
10840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10841 hardcode_libdir_separator=:
10844 osf4* | osf5*) # as osf3* with the addition of -msym flag
10845 if test "$GCC" = yes; then
10846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10847 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'
10848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10849 else
10850 allow_undefined_flag=' -expect_unresolved \*'
10851 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'
10852 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~
10853 $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'
10855 # Both c and cxx compiler support -rpath directly
10856 hardcode_libdir_flag_spec='-rpath $libdir'
10858 archive_cmds_need_lc='no'
10859 hardcode_libdir_separator=:
10862 solaris*)
10863 no_undefined_flag=' -z defs'
10864 if test "$GCC" = yes; then
10865 wlarc='${wl}'
10866 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10868 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10869 else
10870 case `$CC -V 2>&1` in
10871 *"Compilers 5.0"*)
10872 wlarc=''
10873 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10878 wlarc='${wl}'
10879 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10881 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10883 esac
10885 hardcode_libdir_flag_spec='-R$libdir'
10886 hardcode_shlibpath_var=no
10887 case $host_os in
10888 solaris2.[0-5] | solaris2.[0-5].*) ;;
10890 # The compiler driver will combine and reorder linker options,
10891 # but understands `-z linker_flag'. GCC discards it without `$wl',
10892 # but is careful enough not to reorder.
10893 # Supported since Solaris 2.6 (maybe 2.5.1?)
10894 if test "$GCC" = yes; then
10895 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10896 else
10897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10900 esac
10901 link_all_deplibs=yes
10904 sunos4*)
10905 if test "x$host_vendor" = xsequent; then
10906 # Use $CC to link under sequent, because it throws in some extra .o
10907 # files that make .init and .fini sections work.
10908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_libdir_flag_spec='-L$libdir'
10913 hardcode_direct=yes
10914 hardcode_minus_L=yes
10915 hardcode_shlibpath_var=no
10918 sysv4)
10919 case $host_vendor in
10920 sni)
10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 hardcode_direct=yes # is this really true???
10924 siemens)
10925 ## LD is ld it makes a PLAMLIB
10926 ## CC just makes a GrossModule.
10927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10928 reload_cmds='$CC -r -o $output$reload_objs'
10929 hardcode_direct=no
10931 motorola)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10935 esac
10936 runpath_var='LD_RUN_PATH'
10937 hardcode_shlibpath_var=no
10940 sysv4.3*)
10941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_shlibpath_var=no
10943 export_dynamic_flag_spec='-Bexport'
10946 sysv4*MP*)
10947 if test -d /usr/nec; then
10948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949 hardcode_shlibpath_var=no
10950 runpath_var=LD_RUN_PATH
10951 hardcode_runpath_var=yes
10952 ld_shlibs=yes
10956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10957 no_undefined_flag='${wl}-z,text'
10958 archive_cmds_need_lc=no
10959 hardcode_shlibpath_var=no
10960 runpath_var='LD_RUN_PATH'
10962 if test "$GCC" = yes; then
10963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 else
10966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 sysv5* | sco3.2v5* | sco5v6*)
10972 # Note: We can NOT use -z defs as we might desire, because we do not
10973 # link with -lc, and that would cause any symbols used from libc to
10974 # always be unresolved, which means just about no library would
10975 # ever link correctly. If we're not using GNU ld we use -z text
10976 # though, which does catch some bad symbols but isn't as heavy-handed
10977 # as -z defs.
10978 no_undefined_flag='${wl}-z,text'
10979 allow_undefined_flag='${wl}-z,nodefs'
10980 archive_cmds_need_lc=no
10981 hardcode_shlibpath_var=no
10982 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10983 hardcode_libdir_separator=':'
10984 link_all_deplibs=yes
10985 export_dynamic_flag_spec='${wl}-Bexport'
10986 runpath_var='LD_RUN_PATH'
10988 if test "$GCC" = yes; then
10989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991 else
10992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 uts4*)
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_libdir_flag_spec='-L$libdir'
11000 hardcode_shlibpath_var=no
11004 ld_shlibs=no
11006 esac
11008 if test x$host_vendor = xsni; then
11009 case $host in
11010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11011 export_dynamic_flag_spec='${wl}-Blargedynsym'
11013 esac
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11018 $as_echo "$ld_shlibs" >&6; }
11019 test "$ld_shlibs" = no && can_build_shared=no
11021 with_gnu_ld=$with_gnu_ld
11038 # Do we need to explicitly link libc?
11040 case "x$archive_cmds_need_lc" in
11041 x|xyes)
11042 # Assume -lc should be added
11043 archive_cmds_need_lc=yes
11045 if test "$enable_shared" = yes && test "$GCC" = yes; then
11046 case $archive_cmds in
11047 *'~'*)
11048 # FIXME: we may have to deal with multi-command sequences.
11050 '$CC '*)
11051 # Test whether the compiler implicitly links with -lc since on some
11052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053 # to ld, don't add -lc before -lgcc.
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11055 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11056 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 $RM conftest*
11060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063 (eval $ac_compile) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } 2>conftest.err; then
11067 soname=conftest
11068 lib=conftest
11069 libobjs=conftest.$ac_objext
11070 deplibs=
11071 wl=$lt_prog_compiler_wl
11072 pic_flag=$lt_prog_compiler_pic
11073 compiler_flags=-v
11074 linker_flags=-v
11075 verstring=
11076 output_objdir=.
11077 libname=conftest
11078 lt_save_allow_undefined_flag=$allow_undefined_flag
11079 allow_undefined_flag=
11080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11081 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11082 ac_status=$?
11083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11084 test $ac_status = 0; }
11085 then
11086 lt_cv_archive_cmds_need_lc=no
11087 else
11088 lt_cv_archive_cmds_need_lc=yes
11090 allow_undefined_flag=$lt_save_allow_undefined_flag
11091 else
11092 cat conftest.err 1>&5
11094 $RM conftest*
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11098 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11099 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11101 esac
11104 esac
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11263 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11265 if test "$GCC" = yes; then
11266 case $host_os in
11267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11268 *) lt_awk_arg="/^libraries:/" ;;
11269 esac
11270 case $host_os in
11271 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11272 *) lt_sed_strip_eq="s,=/,/,g" ;;
11273 esac
11274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11275 case $lt_search_path_spec in
11276 *\;*)
11277 # if the path contains ";" then we assume it to be the separator
11278 # otherwise default to the standard path separator (i.e. ":") - it is
11279 # assumed that no part of a normal pathname contains ";" but that should
11280 # okay in the real world where ";" in dirpaths is itself problematic.
11281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11286 esac
11287 # Ok, now we have the path, separated by spaces, we can step through it
11288 # and add multilib dir if necessary.
11289 lt_tmp_lt_search_path_spec=
11290 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11291 for lt_sys_path in $lt_search_path_spec; do
11292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11294 else
11295 test -d "$lt_sys_path" && \
11296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11298 done
11299 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11300 BEGIN {RS=" "; FS="/|\n";} {
11301 lt_foo="";
11302 lt_count=0;
11303 for (lt_i = NF; lt_i > 0; lt_i--) {
11304 if ($lt_i != "" && $lt_i != ".") {
11305 if ($lt_i == "..") {
11306 lt_count++;
11307 } else {
11308 if (lt_count == 0) {
11309 lt_foo="/" $lt_i lt_foo;
11310 } else {
11311 lt_count--;
11316 if (lt_foo != "") { lt_freq[lt_foo]++; }
11317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11319 # AWK program above erroneously prepends '/' to C:/dos/paths
11320 # for these hosts.
11321 case $host_os in
11322 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11323 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11324 esac
11325 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11326 else
11327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11329 library_names_spec=
11330 libname_spec='lib$name'
11331 soname_spec=
11332 shrext_cmds=".so"
11333 postinstall_cmds=
11334 postuninstall_cmds=
11335 finish_cmds=
11336 finish_eval=
11337 shlibpath_var=
11338 shlibpath_overrides_runpath=unknown
11339 version_type=none
11340 dynamic_linker="$host_os ld.so"
11341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11342 need_lib_prefix=unknown
11343 hardcode_into_libs=no
11345 # when you set need_version to no, make sure it does not cause -set_version
11346 # flags to be left without arguments
11347 need_version=unknown
11349 case $host_os in
11350 aix3*)
11351 version_type=linux
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11353 shlibpath_var=LIBPATH
11355 # AIX 3 has no versioning support, so we append a major version to the name.
11356 soname_spec='${libname}${release}${shared_ext}$major'
11359 aix[4-9]*)
11360 version_type=linux
11361 need_lib_prefix=no
11362 need_version=no
11363 hardcode_into_libs=yes
11364 if test "$host_cpu" = ia64; then
11365 # AIX 5 supports IA64
11366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 else
11369 # With GCC up to 2.95.x, collect2 would create an import file
11370 # for dependence libraries. The import file would start with
11371 # the line `#! .'. This would cause the generated library to
11372 # depend on `.', always an invalid library. This was fixed in
11373 # development snapshots of GCC prior to 3.0.
11374 case $host_os in
11375 aix4 | aix4.[01] | aix4.[01].*)
11376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11377 echo ' yes '
11378 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11380 else
11381 can_build_shared=no
11384 esac
11385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11386 # soname into executable. Probably we can add versioning support to
11387 # collect2, so additional links can be useful in future.
11388 if test "$aix_use_runtimelinking" = yes; then
11389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11390 # instead of lib<name>.a to let people know that these are not
11391 # typical AIX shared libraries.
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 else
11394 # We preserve .a as extension for shared libraries through AIX4.2
11395 # and later when we are not doing run time linking.
11396 library_names_spec='${libname}${release}.a $libname.a'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11399 shlibpath_var=LIBPATH
11403 amigaos*)
11404 case $host_cpu in
11405 powerpc)
11406 # Since July 2007 AmigaOS4 officially supports .so libraries.
11407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410 m68k)
11411 library_names_spec='$libname.ixlibrary $libname.a'
11412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11413 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'
11415 esac
11418 beos*)
11419 library_names_spec='${libname}${shared_ext}'
11420 dynamic_linker="$host_os ld.so"
11421 shlibpath_var=LIBRARY_PATH
11424 bsdi[45]*)
11425 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11433 # the default ld.so.conf also contains /usr/contrib/lib and
11434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11435 # libtool to hard-code these into programs
11438 cygwin* | mingw* | pw32* | cegcc*)
11439 version_type=windows
11440 shrext_cmds=".dll"
11441 need_version=no
11442 need_lib_prefix=no
11444 case $GCC,$host_os in
11445 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11446 library_names_spec='$libname.dll.a'
11447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11448 postinstall_cmds='base_file=`basename \${file}`~
11449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11450 dldir=$destdir/`dirname \$dlpath`~
11451 test -d \$dldir || mkdir -p \$dldir~
11452 $install_prog $dir/$dlname \$dldir/$dlname~
11453 chmod a+x \$dldir/$dlname~
11454 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11455 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458 dlpath=$dir/\$dldll~
11459 $RM \$dlpath'
11460 shlibpath_overrides_runpath=yes
11462 case $host_os in
11463 cygwin*)
11464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11469 mingw* | cegcc*)
11470 # MinGW DLLs use traditional 'lib' prefix
11471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11473 pw32*)
11474 # pw32 DLLs use 'pw' prefix rather than 'lib'
11475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11477 esac
11481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11483 esac
11484 dynamic_linker='Win32 ld.exe'
11485 # FIXME: first we should search . and the directory the executable is in
11486 shlibpath_var=PATH
11489 darwin* | rhapsody*)
11490 dynamic_linker="$host_os dyld"
11491 version_type=darwin
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11495 soname_spec='${libname}${release}${major}$shared_ext'
11496 shlibpath_overrides_runpath=yes
11497 shlibpath_var=DYLD_LIBRARY_PATH
11498 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11504 dgux*)
11505 version_type=linux
11506 need_lib_prefix=no
11507 need_version=no
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11513 freebsd* | dragonfly*)
11514 # DragonFly does not have aout. When/if they implement a new
11515 # versioning mechanism, adjust this.
11516 if test -x /usr/bin/objformat; then
11517 objformat=`/usr/bin/objformat`
11518 else
11519 case $host_os in
11520 freebsd[23].*) objformat=aout ;;
11521 *) objformat=elf ;;
11522 esac
11524 version_type=freebsd-$objformat
11525 case $version_type in
11526 freebsd-elf*)
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11528 need_version=no
11529 need_lib_prefix=no
11531 freebsd-*)
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11533 need_version=yes
11535 esac
11536 shlibpath_var=LD_LIBRARY_PATH
11537 case $host_os in
11538 freebsd2.*)
11539 shlibpath_overrides_runpath=yes
11541 freebsd3.[01]* | freebsdelf3.[01]*)
11542 shlibpath_overrides_runpath=yes
11543 hardcode_into_libs=yes
11545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11547 shlibpath_overrides_runpath=no
11548 hardcode_into_libs=yes
11550 *) # from 4.6 on, and DragonFly
11551 shlibpath_overrides_runpath=yes
11552 hardcode_into_libs=yes
11554 esac
11557 haiku*)
11558 version_type=linux
11559 need_lib_prefix=no
11560 need_version=no
11561 dynamic_linker="$host_os runtime_loader"
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11567 hardcode_into_libs=yes
11570 hpux9* | hpux10* | hpux11*)
11571 # Give a soname corresponding to the major version so that dld.sl refuses to
11572 # link against other versions.
11573 version_type=sunos
11574 need_lib_prefix=no
11575 need_version=no
11576 case $host_cpu in
11577 ia64*)
11578 shrext_cmds='.so'
11579 hardcode_into_libs=yes
11580 dynamic_linker="$host_os dld.so"
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 if test "X$HPUX_IA64_MODE" = X32; then
11586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11587 else
11588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11592 hppa*64*)
11593 shrext_cmds='.sl'
11594 hardcode_into_libs=yes
11595 dynamic_linker="$host_os dld.sl"
11596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11604 shrext_cmds='.sl'
11605 dynamic_linker="$host_os dld.sl"
11606 shlibpath_var=SHLIB_PATH
11607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11611 esac
11612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11613 postinstall_cmds='chmod 555 $lib'
11614 # or fails outright, so override atomically:
11615 install_override_mode=555
11618 interix[3-9]*)
11619 version_type=linux
11620 need_lib_prefix=no
11621 need_version=no
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 shlibpath_overrides_runpath=no
11627 hardcode_into_libs=yes
11630 irix5* | irix6* | nonstopux*)
11631 case $host_os in
11632 nonstopux*) version_type=nonstopux ;;
11634 if test "$lt_cv_prog_gnu_ld" = yes; then
11635 version_type=linux
11636 else
11637 version_type=irix
11638 fi ;;
11639 esac
11640 need_lib_prefix=no
11641 need_version=no
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11644 case $host_os in
11645 irix5* | nonstopux*)
11646 libsuff= shlibsuff=
11649 case $LD in # libtool.m4 will add one of these switches to LD
11650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11651 libsuff= shlibsuff= libmagic=32-bit;;
11652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11653 libsuff=32 shlibsuff=N32 libmagic=N32;;
11654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11656 *) libsuff= shlibsuff= libmagic=never-match;;
11657 esac
11659 esac
11660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11661 shlibpath_overrides_runpath=no
11662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11664 hardcode_into_libs=yes
11667 # No shared lib support for Linux oldld, aout, or coff.
11668 linux*oldld* | linux*aout* | linux*coff*)
11669 dynamic_linker=no
11672 # This must be Linux ELF.
11674 # uclinux* changes (here and below) have been submitted to the libtool
11675 # project, but have not yet been accepted: they are GCC-local changes
11676 # for the time being. (See
11677 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11679 version_type=linux
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11688 # Some binutils ld are patched to set DT_RUNPATH
11689 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 lt_cv_shlibpath_overrides_runpath=no
11693 save_LDFLAGS=$LDFLAGS
11694 save_libdir=$libdir
11695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11701 main ()
11705 return 0;
11707 _ACEOF
11708 if ac_fn_c_try_link "$LINENO"; then :
11709 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11710 lt_cv_shlibpath_overrides_runpath=yes
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LDFLAGS=$save_LDFLAGS
11716 libdir=$save_libdir
11720 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11722 # This implies no fast_install, which is unacceptable.
11723 # Some rework will be needed to allow for fast_install
11724 # before this can be enabled.
11725 hardcode_into_libs=yes
11727 # Append ld.so.conf contents to the search path
11728 if test -f /etc/ld.so.conf; then
11729 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' ' '`
11730 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11733 # We used to test for /lib/ld.so.1 and disable shared libraries on
11734 # powerpc, because MkLinux only supported shared libraries with the
11735 # GNU dynamic linker. Since this was broken with cross compilers,
11736 # most powerpc-linux boxes support dynamic linking these days and
11737 # people can always --disable-shared, the test was removed, and we
11738 # assume the GNU/Linux dynamic linker is in use.
11739 dynamic_linker='GNU/Linux ld.so'
11742 netbsd*)
11743 version_type=sunos
11744 need_lib_prefix=no
11745 need_version=no
11746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11749 dynamic_linker='NetBSD (a.out) ld.so'
11750 else
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11752 soname_spec='${libname}${release}${shared_ext}$major'
11753 dynamic_linker='NetBSD ld.elf_so'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=yes
11757 hardcode_into_libs=yes
11760 newsos6)
11761 version_type=linux
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11767 *nto* | *qnx*)
11768 version_type=qnx
11769 need_lib_prefix=no
11770 need_version=no
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=no
11775 hardcode_into_libs=yes
11776 dynamic_linker='ldqnx.so'
11779 openbsd*)
11780 version_type=sunos
11781 sys_lib_dlsearch_path_spec="/usr/lib"
11782 need_lib_prefix=no
11783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11784 case $host_os in
11785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11786 *) need_version=no ;;
11787 esac
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792 case $host_os in
11793 openbsd2.[89] | openbsd2.[89].*)
11794 shlibpath_overrides_runpath=no
11797 shlibpath_overrides_runpath=yes
11799 esac
11800 else
11801 shlibpath_overrides_runpath=yes
11805 os2*)
11806 libname_spec='$name'
11807 shrext_cmds=".dll"
11808 need_lib_prefix=no
11809 library_names_spec='$libname${shared_ext} $libname.a'
11810 dynamic_linker='OS/2 ld.exe'
11811 shlibpath_var=LIBPATH
11814 osf3* | osf4* | osf5*)
11815 version_type=osf
11816 need_lib_prefix=no
11817 need_version=no
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11825 rdos*)
11826 dynamic_linker=no
11829 solaris*)
11830 version_type=linux
11831 need_lib_prefix=no
11832 need_version=no
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes
11837 hardcode_into_libs=yes
11838 # ldd complains unless libraries are executable
11839 postinstall_cmds='chmod +x $lib'
11842 sunos4*)
11843 version_type=sunos
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 if test "$with_gnu_ld" = yes; then
11849 need_lib_prefix=no
11851 need_version=yes
11854 sysv4 | sysv4.3*)
11855 version_type=linux
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 case $host_vendor in
11860 sni)
11861 shlibpath_overrides_runpath=no
11862 need_lib_prefix=no
11863 runpath_var=LD_RUN_PATH
11865 siemens)
11866 need_lib_prefix=no
11868 motorola)
11869 need_lib_prefix=no
11870 need_version=no
11871 shlibpath_overrides_runpath=no
11872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11874 esac
11877 sysv4*MP*)
11878 if test -d /usr/nec ;then
11879 version_type=linux
11880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11881 soname_spec='$libname${shared_ext}.$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11887 version_type=freebsd-elf
11888 need_lib_prefix=no
11889 need_version=no
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11895 if test "$with_gnu_ld" = yes; then
11896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11897 else
11898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11899 case $host_os in
11900 sco3.2v5*)
11901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11903 esac
11905 sys_lib_dlsearch_path_spec='/usr/lib'
11908 tpf*)
11909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11910 version_type=linux
11911 need_lib_prefix=no
11912 need_version=no
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 shlibpath_overrides_runpath=no
11916 hardcode_into_libs=yes
11919 uts4*)
11920 version_type=linux
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922 soname_spec='${libname}${release}${shared_ext}$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11926 # Shared libraries for VwWorks, >= 7 only at this stage
11927 # and (fpic) still incompatible with "large" code models
11928 # in a few configurations. Only for RTP mode in any case,
11929 # and upon explicit request at configure time.
11930 vxworks7*)
11931 dynamic_linker=no
11932 case ${with_multisubdir}-${enable_shared} in
11933 *large*)
11935 *mrtp*-yes)
11936 version_type=linux
11937 need_lib_prefix=no
11938 need_version=no
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 dynamic_linker="$host_os module_loader"
11943 esac
11946 dynamic_linker=no
11948 esac
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11950 $as_echo "$dynamic_linker" >&6; }
11951 test "$dynamic_linker" = no && can_build_shared=no
11953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11954 if test "$GCC" = yes; then
11955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12057 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12058 hardcode_action=
12059 if test -n "$hardcode_libdir_flag_spec" ||
12060 test -n "$runpath_var" ||
12061 test "X$hardcode_automatic" = "Xyes" ; then
12063 # We can hardcode non-existent directories.
12064 if test "$hardcode_direct" != no &&
12065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12066 # have to relink, otherwise we might link with an installed library
12067 # when we should be linking with a yet-to-be-installed one
12068 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12069 test "$hardcode_minus_L" != no; then
12070 # Linking always hardcodes the temporary library directory.
12071 hardcode_action=relink
12072 else
12073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12074 hardcode_action=immediate
12076 else
12077 # We cannot hardcode anything, or else we can only hardcode existing
12078 # directories.
12079 hardcode_action=unsupported
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12082 $as_echo "$hardcode_action" >&6; }
12084 if test "$hardcode_action" = relink ||
12085 test "$inherit_rpath" = yes; then
12086 # Fast installation is not supported
12087 enable_fast_install=no
12088 elif test "$shlibpath_overrides_runpath" = yes ||
12089 test "$enable_shared" = no; then
12090 # Fast installation is not necessary
12091 enable_fast_install=needless
12099 if test "x$enable_dlopen" != xyes; then
12100 enable_dlopen=unknown
12101 enable_dlopen_self=unknown
12102 enable_dlopen_self_static=unknown
12103 else
12104 lt_cv_dlopen=no
12105 lt_cv_dlopen_libs=
12107 case $host_os in
12108 beos*)
12109 lt_cv_dlopen="load_add_on"
12110 lt_cv_dlopen_libs=
12111 lt_cv_dlopen_self=yes
12114 mingw* | pw32* | cegcc*)
12115 lt_cv_dlopen="LoadLibrary"
12116 lt_cv_dlopen_libs=
12119 cygwin*)
12120 lt_cv_dlopen="dlopen"
12121 lt_cv_dlopen_libs=
12124 darwin*)
12125 # if libdl is installed we need to link against it
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12127 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12128 if ${ac_cv_lib_dl_dlopen+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-ldl $LIBS"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char dlopen ();
12144 main ()
12146 return dlopen ();
12148 return 0;
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_dl_dlopen=yes
12153 else
12154 ac_cv_lib_dl_dlopen=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12161 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12162 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12164 else
12166 lt_cv_dlopen="dyld"
12167 lt_cv_dlopen_libs=
12168 lt_cv_dlopen_self=yes
12175 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12176 if test "x$ac_cv_func_shl_load" = xyes; then :
12177 lt_cv_dlopen="shl_load"
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12180 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12181 if ${ac_cv_lib_dld_shl_load+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldld $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char shl_load ();
12197 main ()
12199 return shl_load ();
12201 return 0;
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_dld_shl_load=yes
12206 else
12207 ac_cv_lib_dld_shl_load=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12214 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12215 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12216 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12217 else
12218 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12219 if test "x$ac_cv_func_dlopen" = xyes; then :
12220 lt_cv_dlopen="dlopen"
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12224 if ${ac_cv_lib_dl_dlopen+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-ldl $LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 char dlopen ();
12240 main ()
12242 return dlopen ();
12244 return 0;
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_lib_dl_dlopen=yes
12249 else
12250 ac_cv_lib_dl_dlopen=no
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12262 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12263 if ${ac_cv_lib_svld_dlopen+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lsvld $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char dlopen ();
12279 main ()
12281 return dlopen ();
12283 return 0;
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_svld_dlopen=yes
12288 else
12289 ac_cv_lib_svld_dlopen=no
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12296 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12297 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12301 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12302 if ${ac_cv_lib_dld_dld_link+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-ldld $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char dld_link ();
12318 main ()
12320 return dld_link ();
12322 return 0;
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_dld_dld_link=yes
12327 else
12328 ac_cv_lib_dld_dld_link=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12335 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12336 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12337 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12356 esac
12358 if test "x$lt_cv_dlopen" != xno; then
12359 enable_dlopen=yes
12360 else
12361 enable_dlopen=no
12364 case $lt_cv_dlopen in
12365 dlopen)
12366 save_CPPFLAGS="$CPPFLAGS"
12367 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12369 save_LDFLAGS="$LDFLAGS"
12370 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12372 save_LIBS="$LIBS"
12373 LIBS="$lt_cv_dlopen_libs $LIBS"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12376 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12377 if ${lt_cv_dlopen_self+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 if test "$cross_compiling" = yes; then :
12381 lt_cv_dlopen_self=cross
12382 else
12383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12384 lt_status=$lt_dlunknown
12385 cat > conftest.$ac_ext <<_LT_EOF
12386 #line 12386 "configure"
12387 #include "confdefs.h"
12389 #if HAVE_DLFCN_H
12390 #include <dlfcn.h>
12391 #endif
12393 #include <stdio.h>
12395 #ifdef RTLD_GLOBAL
12396 # define LT_DLGLOBAL RTLD_GLOBAL
12397 #else
12398 # ifdef DL_GLOBAL
12399 # define LT_DLGLOBAL DL_GLOBAL
12400 # else
12401 # define LT_DLGLOBAL 0
12402 # endif
12403 #endif
12405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12406 find out it does not work in some platform. */
12407 #ifndef LT_DLLAZY_OR_NOW
12408 # ifdef RTLD_LAZY
12409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12410 # else
12411 # ifdef DL_LAZY
12412 # define LT_DLLAZY_OR_NOW DL_LAZY
12413 # else
12414 # ifdef RTLD_NOW
12415 # define LT_DLLAZY_OR_NOW RTLD_NOW
12416 # else
12417 # ifdef DL_NOW
12418 # define LT_DLLAZY_OR_NOW DL_NOW
12419 # else
12420 # define LT_DLLAZY_OR_NOW 0
12421 # endif
12422 # endif
12423 # endif
12424 # endif
12425 #endif
12427 /* When -fvisbility=hidden is used, assume the code has been annotated
12428 correspondingly for the symbols needed. */
12429 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12430 void fnord () __attribute__((visibility("default")));
12431 #endif
12433 void fnord () { int i=42; }
12434 int main ()
12436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12437 int status = $lt_dlunknown;
12439 if (self)
12441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12442 else
12444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12445 else puts (dlerror ());
12447 /* dlclose (self); */
12449 else
12450 puts (dlerror ());
12452 return status;
12454 _LT_EOF
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12457 ac_status=$?
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12461 lt_status=$?
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12466 esac
12467 else :
12468 # compilation failed
12469 lt_cv_dlopen_self=no
12472 rm -fr conftest*
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12479 if test "x$lt_cv_dlopen_self" = xyes; then
12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if ${lt_cv_dlopen_self_static+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self_static=cross
12488 else
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line 12492 "configure"
12493 #include "confdefs.h"
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12499 #include <stdio.h>
12501 #ifdef RTLD_GLOBAL
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12503 #else
12504 # ifdef DL_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12506 # else
12507 # define LT_DLGLOBAL 0
12508 # endif
12509 #endif
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 # ifdef RTLD_LAZY
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12516 # else
12517 # ifdef DL_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12519 # else
12520 # ifdef RTLD_NOW
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12522 # else
12523 # ifdef DL_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12525 # else
12526 # define LT_DLLAZY_OR_NOW 0
12527 # endif
12528 # endif
12529 # endif
12530 # endif
12531 #endif
12533 /* When -fvisbility=hidden is used, assume the code has been annotated
12534 correspondingly for the symbols needed. */
12535 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12536 void fnord () __attribute__((visibility("default")));
12537 #endif
12539 void fnord () { int i=42; }
12540 int main ()
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
12545 if (self)
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else
12550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12551 else puts (dlerror ());
12553 /* dlclose (self); */
12555 else
12556 puts (dlerror ());
12558 return status;
12560 _LT_EOF
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12566 (./conftest; exit; ) >&5 2>/dev/null
12567 lt_status=$?
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12572 esac
12573 else :
12574 # compilation failed
12575 lt_cv_dlopen_self_static=no
12578 rm -fr conftest*
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12583 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12586 CPPFLAGS="$save_CPPFLAGS"
12587 LDFLAGS="$save_LDFLAGS"
12588 LIBS="$save_LIBS"
12590 esac
12592 case $lt_cv_dlopen_self in
12593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12594 *) enable_dlopen_self=unknown ;;
12595 esac
12597 case $lt_cv_dlopen_self_static in
12598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12599 *) enable_dlopen_self_static=unknown ;;
12600 esac
12619 striplib=
12620 old_striplib=
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12622 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12623 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627 $as_echo "yes" >&6; }
12628 else
12629 # FIXME - insert some real tests, host_os isn't really good enough
12630 case $host_os in
12631 darwin*)
12632 if test -n "$STRIP" ; then
12633 striplib="$STRIP -x"
12634 old_striplib="$STRIP -S"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636 $as_echo "yes" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12646 esac
12660 # Report which library types will actually be built
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12662 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12664 $as_echo "$can_build_shared" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12667 $as_echo_n "checking whether to build shared libraries... " >&6; }
12668 test "$can_build_shared" = "no" && enable_shared=no
12670 # On AIX, shared libraries and static libraries use the same namespace, and
12671 # are all built from PIC.
12672 case $host_os in
12673 aix3*)
12674 test "$enable_shared" = yes && enable_static=no
12675 if test -n "$RANLIB"; then
12676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12677 postinstall_cmds='$RANLIB $lib'
12681 aix[4-9]*)
12682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12683 test "$enable_shared" = yes && enable_static=no
12686 esac
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12688 $as_echo "$enable_shared" >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12691 $as_echo_n "checking whether to build static libraries... " >&6; }
12692 # Make sure either enable_shared or enable_static is yes.
12693 test "$enable_shared" = yes || enable_static=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12695 $as_echo "$enable_static" >&6; }
12701 ac_ext=c
12702 ac_cpp='$CPP $CPPFLAGS'
12703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707 CC="$lt_save_CC"
12709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12710 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12711 (test "X$CXX" != "Xg++"))) ; then
12712 ac_ext=cpp
12713 ac_cpp='$CXXCPP $CPPFLAGS'
12714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12718 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12719 if test -z "$CXXCPP"; then
12720 if ${ac_cv_prog_CXXCPP+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 # Double quotes because CXXCPP needs to be expanded
12724 for CXXCPP in "$CXX -E" "/lib/cpp"
12726 ac_preproc_ok=false
12727 for ac_cxx_preproc_warn_flag in '' yes
12729 # Use a header file that comes with gcc, so configuring glibc
12730 # with a fresh cross-compiler works.
12731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 # <limits.h> exists even on freestanding compilers.
12733 # On the NeXT, cc -E runs the code through the compiler's parser,
12734 # not just through cpp. "Syntax error" is here to catch this case.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 #ifdef __STDC__
12738 # include <limits.h>
12739 #else
12740 # include <assert.h>
12741 #endif
12742 Syntax error
12743 _ACEOF
12744 if ac_fn_cxx_try_cpp "$LINENO"; then :
12746 else
12747 # Broken: fails on valid input.
12748 continue
12750 rm -f conftest.err conftest.i conftest.$ac_ext
12752 # OK, works on sane cases. Now check whether nonexistent headers
12753 # can be detected and how.
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <ac_nonexistent.h>
12757 _ACEOF
12758 if ac_fn_cxx_try_cpp "$LINENO"; then :
12759 # Broken: success on invalid input.
12760 continue
12761 else
12762 # Passes both tests.
12763 ac_preproc_ok=:
12764 break
12766 rm -f conftest.err conftest.i conftest.$ac_ext
12768 done
12769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12770 rm -f conftest.i conftest.err conftest.$ac_ext
12771 if $ac_preproc_ok; then :
12772 break
12775 done
12776 ac_cv_prog_CXXCPP=$CXXCPP
12779 CXXCPP=$ac_cv_prog_CXXCPP
12780 else
12781 ac_cv_prog_CXXCPP=$CXXCPP
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12784 $as_echo "$CXXCPP" >&6; }
12785 ac_preproc_ok=false
12786 for ac_cxx_preproc_warn_flag in '' yes
12788 # Use a header file that comes with gcc, so configuring glibc
12789 # with a fresh cross-compiler works.
12790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 # <limits.h> exists even on freestanding compilers.
12792 # On the NeXT, cc -E runs the code through the compiler's parser,
12793 # not just through cpp. "Syntax error" is here to catch this case.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #ifdef __STDC__
12797 # include <limits.h>
12798 #else
12799 # include <assert.h>
12800 #endif
12801 Syntax error
12802 _ACEOF
12803 if ac_fn_cxx_try_cpp "$LINENO"; then :
12805 else
12806 # Broken: fails on valid input.
12807 continue
12809 rm -f conftest.err conftest.i conftest.$ac_ext
12811 # OK, works on sane cases. Now check whether nonexistent headers
12812 # can be detected and how.
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815 #include <ac_nonexistent.h>
12816 _ACEOF
12817 if ac_fn_cxx_try_cpp "$LINENO"; then :
12818 # Broken: success on invalid input.
12819 continue
12820 else
12821 # Passes both tests.
12822 ac_preproc_ok=:
12823 break
12825 rm -f conftest.err conftest.i conftest.$ac_ext
12827 done
12828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12829 rm -f conftest.i conftest.err conftest.$ac_ext
12830 if $ac_preproc_ok; then :
12832 else
12833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12835 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12836 See \`config.log' for more details" "$LINENO" 5; }
12839 ac_ext=c
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12845 else
12846 _lt_caught_CXX_error=yes
12849 ac_ext=cpp
12850 ac_cpp='$CXXCPP $CPPFLAGS'
12851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12855 archive_cmds_need_lc_CXX=no
12856 allow_undefined_flag_CXX=
12857 always_export_symbols_CXX=no
12858 archive_expsym_cmds_CXX=
12859 compiler_needs_object_CXX=no
12860 export_dynamic_flag_spec_CXX=
12861 hardcode_direct_CXX=no
12862 hardcode_direct_absolute_CXX=no
12863 hardcode_libdir_flag_spec_CXX=
12864 hardcode_libdir_flag_spec_ld_CXX=
12865 hardcode_libdir_separator_CXX=
12866 hardcode_minus_L_CXX=no
12867 hardcode_shlibpath_var_CXX=unsupported
12868 hardcode_automatic_CXX=no
12869 inherit_rpath_CXX=no
12870 module_cmds_CXX=
12871 module_expsym_cmds_CXX=
12872 link_all_deplibs_CXX=unknown
12873 old_archive_cmds_CXX=$old_archive_cmds
12874 reload_flag_CXX=$reload_flag
12875 reload_cmds_CXX=$reload_cmds
12876 no_undefined_flag_CXX=
12877 whole_archive_flag_spec_CXX=
12878 enable_shared_with_static_runtimes_CXX=no
12880 # Source file extension for C++ test sources.
12881 ac_ext=cpp
12883 # Object file extension for compiled C++ test sources.
12884 objext=o
12885 objext_CXX=$objext
12887 # No sense in running all these tests if we already determined that
12888 # the CXX compiler isn't working. Some variables (like enable_shared)
12889 # are currently assumed to apply to all compilers on this platform,
12890 # and will be corrupted by setting them based on a non-working compiler.
12891 if test "$_lt_caught_CXX_error" != yes; then
12892 # Code to be used in simple compile tests
12893 lt_simple_compile_test_code="int some_variable = 0;"
12895 # Code to be used in simple link tests
12896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12905 # If no C compiler was specified, use CC.
12906 LTCC=${LTCC-"$CC"}
12908 # If no C compiler flags were specified, use CFLAGS.
12909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12911 # Allow CC to be a program name with arguments.
12912 compiler=$CC
12915 # save warnings/boilerplate of simple test code
12916 ac_outfile=conftest.$ac_objext
12917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12919 _lt_compiler_boilerplate=`cat conftest.err`
12920 $RM conftest*
12922 ac_outfile=conftest.$ac_objext
12923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12925 _lt_linker_boilerplate=`cat conftest.err`
12926 $RM -r conftest*
12929 # Allow CC to be a program name with arguments.
12930 lt_save_CC=$CC
12931 lt_save_LD=$LD
12932 lt_save_GCC=$GCC
12933 GCC=$GXX
12934 lt_save_with_gnu_ld=$with_gnu_ld
12935 lt_save_path_LD=$lt_cv_path_LD
12936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12938 else
12939 $as_unset lt_cv_prog_gnu_ld
12941 if test -n "${lt_cv_path_LDCXX+set}"; then
12942 lt_cv_path_LD=$lt_cv_path_LDCXX
12943 else
12944 $as_unset lt_cv_path_LD
12946 test -z "${LDCXX+set}" || LD=$LDCXX
12947 CC=${CXX-"c++"}
12948 compiler=$CC
12949 compiler_CXX=$CC
12950 for cc_temp in $compiler""; do
12951 case $cc_temp in
12952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12954 \-*) ;;
12955 *) break;;
12956 esac
12957 done
12958 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12961 if test -n "$compiler"; then
12962 # We don't want -fno-exception when compiling C++ code, so set the
12963 # no_builtin_flag separately
12964 if test "$GXX" = yes; then
12965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12966 else
12967 lt_prog_compiler_no_builtin_flag_CXX=
12970 if test "$GXX" = yes; then
12971 # Set up default GNU C++ configuration
12975 # Check whether --with-gnu-ld was given.
12976 if test "${with_gnu_ld+set}" = set; then :
12977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12978 else
12979 with_gnu_ld=no
12982 ac_prog=ld
12983 if test "$GCC" = yes; then
12984 # Check if gcc -print-prog-name=ld gives a path.
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12986 $as_echo_n "checking for ld used by $CC... " >&6; }
12987 case $host in
12988 *-*-mingw*)
12989 # gcc leaves a trailing carriage return which upsets mingw
12990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12993 esac
12994 case $ac_prog in
12995 # Accept absolute paths.
12996 [\\/]* | ?:[\\/]*)
12997 re_direlt='/[^/][^/]*/\.\./'
12998 # Canonicalize the pathname of ld
12999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13002 done
13003 test -z "$LD" && LD="$ac_prog"
13006 # If it fails, then pretend we aren't using GCC.
13007 ac_prog=ld
13010 # If it is relative, then search for the first ld in PATH.
13011 with_gnu_ld=unknown
13013 esac
13014 elif test "$with_gnu_ld" = yes; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13016 $as_echo_n "checking for GNU ld... " >&6; }
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13019 $as_echo_n "checking for non-GNU ld... " >&6; }
13021 if ${lt_cv_path_LD+:} false; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 if test -z "$LD"; then
13025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13026 for ac_dir in $PATH; do
13027 IFS="$lt_save_ifs"
13028 test -z "$ac_dir" && ac_dir=.
13029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13030 lt_cv_path_LD="$ac_dir/$ac_prog"
13031 # Check to see if the program is GNU ld. I'd rather use --version,
13032 # but apparently some variants of GNU ld only accept -v.
13033 # Break only if it was the GNU/non-GNU ld that we prefer.
13034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13035 *GNU* | *'with BFD'*)
13036 test "$with_gnu_ld" != no && break
13039 test "$with_gnu_ld" != yes && break
13041 esac
13043 done
13044 IFS="$lt_save_ifs"
13045 else
13046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13050 LD="$lt_cv_path_LD"
13051 if test -n "$LD"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13053 $as_echo "$LD" >&6; }
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13058 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13061 if ${lt_cv_prog_gnu_ld+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13065 case `$LD -v 2>&1 </dev/null` in
13066 *GNU* | *'with BFD'*)
13067 lt_cv_prog_gnu_ld=yes
13070 lt_cv_prog_gnu_ld=no
13072 esac
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13076 with_gnu_ld=$lt_cv_prog_gnu_ld
13084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13085 # archiving commands below assume that GNU ld is being used.
13086 if test "$with_gnu_ld" = yes; then
13087 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 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'
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093 # If archive_cmds runs LD, not CC, wlarc should be empty
13094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13095 # investigate it a little bit more. (MM)
13096 wlarc='${wl}'
13098 # ancient GNU ld didn't support --whole-archive et. al.
13099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13100 $GREP 'no-whole-archive' > /dev/null; then
13101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102 else
13103 whole_archive_flag_spec_CXX=
13105 else
13106 with_gnu_ld=no
13107 wlarc=
13109 # A generic and very simple default shared library creation
13110 # command for GNU C++ for the case where it uses the native
13111 # linker, instead of GNU ld. If possible, this setting should
13112 # overridden to take advantage of the native linker features on
13113 # the platform it is being used on.
13114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
13120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13122 else
13123 GXX=no
13124 with_gnu_ld=no
13125 wlarc=
13128 # PORTME: fill in a description of your system's C++ link characteristics
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13131 ld_shlibs_CXX=yes
13132 case $host_os in
13133 aix3*)
13134 # FIXME: insert proper C++ library support
13135 ld_shlibs_CXX=no
13137 aix[4-9]*)
13138 if test "$host_cpu" = ia64; then
13139 # On IA64, the linker does run time linking by default, so we don't
13140 # have to do anything special.
13141 aix_use_runtimelinking=no
13142 exp_sym_flag='-Bexport'
13143 no_entry_flag=""
13144 else
13145 aix_use_runtimelinking=no
13147 # Test if we are trying to use run time linking or normal
13148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13149 # need to do runtime linking.
13150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13151 for ld_flag in $LDFLAGS; do
13152 case $ld_flag in
13153 *-brtl*)
13154 aix_use_runtimelinking=yes
13155 break
13157 esac
13158 done
13160 esac
13162 exp_sym_flag='-bexport'
13163 no_entry_flag='-bnoentry'
13166 # When large executables or shared objects are built, AIX ld can
13167 # have problems creating the table of contents. If linking a library
13168 # or program results in "error TOC overflow" add -mminimal-toc to
13169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13172 archive_cmds_CXX=''
13173 hardcode_direct_CXX=yes
13174 hardcode_direct_absolute_CXX=yes
13175 hardcode_libdir_separator_CXX=':'
13176 link_all_deplibs_CXX=yes
13177 file_list_spec_CXX='${wl}-f,'
13179 if test "$GXX" = yes; then
13180 case $host_os in aix4.[012]|aix4.[012].*)
13181 # We only want to do this on AIX 4.2 and lower, the check
13182 # below for broken collect2 doesn't work under 4.3+
13183 collect2name=`${CC} -print-prog-name=collect2`
13184 if test -f "$collect2name" &&
13185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13186 then
13187 # We have reworked collect2
13189 else
13190 # We have old collect2
13191 hardcode_direct_CXX=unsupported
13192 # It fails to find uninstalled libraries when the uninstalled
13193 # path is not listed in the libpath. Setting hardcode_minus_L
13194 # to unsupported forces relinking
13195 hardcode_minus_L_CXX=yes
13196 hardcode_libdir_flag_spec_CXX='-L$libdir'
13197 hardcode_libdir_separator_CXX=
13199 esac
13200 shared_flag='-shared'
13201 if test "$aix_use_runtimelinking" = yes; then
13202 shared_flag="$shared_flag "'${wl}-G'
13204 else
13205 # not using gcc
13206 if test "$host_cpu" = ia64; then
13207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13208 # chokes on -Wl,-G. The following line is correct:
13209 shared_flag='-G'
13210 else
13211 if test "$aix_use_runtimelinking" = yes; then
13212 shared_flag='${wl}-G'
13213 else
13214 shared_flag='${wl}-bM:SRE'
13219 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13220 # It seems that -bexpall does not export symbols beginning with
13221 # underscore (_), so it is better to generate a list of symbols to
13222 # export.
13223 always_export_symbols_CXX=yes
13224 if test "$aix_use_runtimelinking" = yes; then
13225 # Warning - without using the other runtime loading flags (-brtl),
13226 # -berok will link without error, but may produce a broken library.
13227 allow_undefined_flag_CXX='-berok'
13228 # Determine the default libpath from the value encoded in an empty
13229 # executable.
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13234 main ()
13238 return 0;
13240 _ACEOF
13241 if ac_fn_cxx_try_link "$LINENO"; then :
13243 lt_aix_libpath_sed='
13244 /Import File Strings/,/^$/ {
13245 /^0/ {
13246 s/^0 *\(.*\)$/\1/
13250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13251 # Check for a 64-bit object if we didn't find anything.
13252 if test -z "$aix_libpath"; then
13253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13262 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"
13263 else
13264 if test "$host_cpu" = ia64; then
13265 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13266 allow_undefined_flag_CXX="-z nodefs"
13267 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"
13268 else
13269 # Determine the default libpath from the value encoded in an
13270 # empty executable.
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13275 main ()
13279 return 0;
13281 _ACEOF
13282 if ac_fn_cxx_try_link "$LINENO"; then :
13284 lt_aix_libpath_sed='
13285 /Import File Strings/,/^$/ {
13286 /^0/ {
13287 s/^0 *\(.*\)$/\1/
13291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13292 # Check for a 64-bit object if we didn't find anything.
13293 if test -z "$aix_libpath"; then
13294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13301 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13302 # Warning - without using the other run time loading flags,
13303 # -berok will link without error, but may produce a broken library.
13304 no_undefined_flag_CXX=' ${wl}-bernotok'
13305 allow_undefined_flag_CXX=' ${wl}-berok'
13306 if test "$with_gnu_ld" = yes; then
13307 # We only use this code for GNU lds that support --whole-archive.
13308 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13309 else
13310 # Exported symbols can be pulled into shared objects from archives
13311 whole_archive_flag_spec_CXX='$convenience'
13313 archive_cmds_need_lc_CXX=yes
13314 # This is similar to how AIX traditionally builds its shared
13315 # libraries.
13316 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'
13321 beos*)
13322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13323 allow_undefined_flag_CXX=unsupported
13324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13325 # support --undefined. This deserves some investigation. FIXME
13326 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13327 else
13328 ld_shlibs_CXX=no
13332 chorus*)
13333 case $cc_basename in
13335 # FIXME: insert proper C++ library support
13336 ld_shlibs_CXX=no
13338 esac
13341 cygwin* | mingw* | pw32* | cegcc*)
13342 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13343 # as there is no search path for DLLs.
13344 hardcode_libdir_flag_spec_CXX='-L$libdir'
13345 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13346 allow_undefined_flag_CXX=unsupported
13347 always_export_symbols_CXX=no
13348 enable_shared_with_static_runtimes_CXX=yes
13350 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13351 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'
13352 # If the export-symbols file already is a .def file (1st line
13353 # is EXPORTS), use it as is; otherwise, prepend...
13354 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13355 cp $export_symbols $output_objdir/$soname.def;
13356 else
13357 echo EXPORTS > $output_objdir/$soname.def;
13358 cat $export_symbols >> $output_objdir/$soname.def;
13360 $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'
13361 else
13362 ld_shlibs_CXX=no
13365 darwin* | rhapsody*)
13368 archive_cmds_need_lc_CXX=no
13369 hardcode_direct_CXX=no
13370 hardcode_automatic_CXX=yes
13371 hardcode_shlibpath_var_CXX=unsupported
13372 if test "$lt_cv_ld_force_load" = "yes"; then
13373 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\"`'
13374 else
13375 whole_archive_flag_spec_CXX=''
13377 link_all_deplibs_CXX=yes
13378 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13379 case $cc_basename in
13380 ifort*) _lt_dar_can_shared=yes ;;
13381 *) _lt_dar_can_shared=$GCC ;;
13382 esac
13383 if test "$_lt_dar_can_shared" = "yes"; then
13384 output_verbose_link_cmd=func_echo_all
13385 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}"
13386 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13387 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}"
13388 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}"
13389 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13390 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}"
13391 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}"
13394 else
13395 ld_shlibs_CXX=no
13400 dgux*)
13401 case $cc_basename in
13402 ec++*)
13403 # FIXME: insert proper C++ library support
13404 ld_shlibs_CXX=no
13406 ghcx*)
13407 # Green Hills C++ Compiler
13408 # FIXME: insert proper C++ library support
13409 ld_shlibs_CXX=no
13412 # FIXME: insert proper C++ library support
13413 ld_shlibs_CXX=no
13415 esac
13418 freebsd2.*)
13419 # C++ shared libraries reported to be fairly broken before
13420 # switch to ELF
13421 ld_shlibs_CXX=no
13424 freebsd-elf*)
13425 archive_cmds_need_lc_CXX=no
13428 freebsd* | dragonfly*)
13429 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13430 # conventions
13431 ld_shlibs_CXX=yes
13434 gnu*)
13437 haiku*)
13438 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439 link_all_deplibs_CXX=yes
13442 hpux9*)
13443 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13444 hardcode_libdir_separator_CXX=:
13445 export_dynamic_flag_spec_CXX='${wl}-E'
13446 hardcode_direct_CXX=yes
13447 hardcode_minus_L_CXX=yes # Not in the search PATH,
13448 # but as the default
13449 # location of the library.
13451 case $cc_basename in
13452 CC*)
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13456 aCC*)
13457 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'
13458 # Commands to make compiler produce verbose output that lists
13459 # what "hidden" libraries, object files and flags are used when
13460 # linking a shared library.
13462 # There doesn't appear to be a way to prevent this compiler from
13463 # explicitly linking system object files so we need to strip them
13464 # from the output so that they don't get included in the library
13465 # dependencies.
13466 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"'
13469 if test "$GXX" = yes; then
13470 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'
13471 else
13472 # FIXME: insert proper C++ library support
13473 ld_shlibs_CXX=no
13476 esac
13479 hpux10*|hpux11*)
13480 if test $with_gnu_ld = no; then
13481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13482 hardcode_libdir_separator_CXX=:
13484 case $host_cpu in
13485 hppa*64*|ia64*)
13488 export_dynamic_flag_spec_CXX='${wl}-E'
13490 esac
13492 case $host_cpu in
13493 hppa*64*|ia64*)
13494 hardcode_direct_CXX=no
13495 hardcode_shlibpath_var_CXX=no
13498 hardcode_direct_CXX=yes
13499 hardcode_direct_absolute_CXX=yes
13500 hardcode_minus_L_CXX=yes # Not in the search PATH,
13501 # but as the default
13502 # location of the library.
13504 esac
13506 case $cc_basename in
13507 CC*)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13511 aCC*)
13512 case $host_cpu in
13513 hppa*64*)
13514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13516 ia64*)
13517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13522 esac
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13527 # There doesn't appear to be a way to prevent this compiler from
13528 # explicitly linking system object files so we need to strip them
13529 # from the output so that they don't get included in the library
13530 # dependencies.
13531 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"'
13534 if test "$GXX" = yes; then
13535 if test $with_gnu_ld = no; then
13536 case $host_cpu in
13537 hppa*64*)
13538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13540 ia64*)
13541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13544 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'
13546 esac
13548 else
13549 # FIXME: insert proper C++ library support
13550 ld_shlibs_CXX=no
13553 esac
13556 interix[3-9]*)
13557 hardcode_direct_CXX=no
13558 hardcode_shlibpath_var_CXX=no
13559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560 export_dynamic_flag_spec_CXX='${wl}-E'
13561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13562 # Instead, shared libraries are loaded at an image base (0x10000000 by
13563 # default) and relocated if they conflict, which is a slow very memory
13564 # consuming and fragmenting process. To avoid this, we pick a random,
13565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13567 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'
13568 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'
13570 irix5* | irix6*)
13571 case $cc_basename in
13572 CC*)
13573 # SGI C++
13574 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'
13576 # Archives containing C++ object files must be created using
13577 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13578 # necessary to make sure instantiated templates are included
13579 # in the archive.
13580 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13583 if test "$GXX" = yes; then
13584 if test "$with_gnu_ld" = no; then
13585 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'
13586 else
13587 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'
13590 link_all_deplibs_CXX=yes
13592 esac
13593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13594 hardcode_libdir_separator_CXX=:
13595 inherit_rpath_CXX=yes
13598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13599 case $cc_basename in
13600 KCC*)
13601 # Kuck and Associates, Inc. (KAI) C++ Compiler
13603 # KCC will only create a shared library if the output file
13604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13605 # to its proper name (with version) after linking.
13606 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'
13607 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'
13608 # Commands to make compiler produce verbose output that lists
13609 # what "hidden" libraries, object files and flags are used when
13610 # linking a shared library.
13612 # There doesn't appear to be a way to prevent this compiler from
13613 # explicitly linking system object files so we need to strip them
13614 # from the output so that they don't get included in the library
13615 # dependencies.
13616 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"'
13618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13621 # Archives containing C++ object files must be created using
13622 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13623 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13625 icpc* | ecpc* )
13626 # Intel C++
13627 with_gnu_ld=yes
13628 # version 8.0 and above of icpc choke on multiply defined symbols
13629 # if we add $predep_objects and $postdep_objects, however 7.1 and
13630 # earlier do not add the objects themselves.
13631 case `$CC -V 2>&1` in
13632 *"Version 7."*)
13633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13634 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'
13636 *) # Version 8.0 or newer
13637 tmp_idyn=
13638 case $host_cpu in
13639 ia64*) tmp_idyn=' -i_dynamic';;
13640 esac
13641 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13642 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'
13644 esac
13645 archive_cmds_need_lc_CXX=no
13646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13650 pgCC* | pgcpp*)
13651 # Portland Group C++ compiler
13652 case `$CC -V` in
13653 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13654 prelink_cmds_CXX='tpldir=Template.dir~
13655 rm -rf $tpldir~
13656 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13657 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13658 old_archive_cmds_CXX='tpldir=Template.dir~
13659 rm -rf $tpldir~
13660 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13661 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13662 $RANLIB $oldlib'
13663 archive_cmds_CXX='tpldir=Template.dir~
13664 rm -rf $tpldir~
13665 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13666 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13667 archive_expsym_cmds_CXX='tpldir=Template.dir~
13668 rm -rf $tpldir~
13669 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13670 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13672 *) # Version 6 and above use weak symbols
13673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13674 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'
13676 esac
13678 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13680 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'
13682 cxx*)
13683 # Compaq C++
13684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685 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'
13687 runpath_var=LD_RUN_PATH
13688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13689 hardcode_libdir_separator_CXX=:
13691 # Commands to make compiler produce verbose output that lists
13692 # what "hidden" libraries, object files and flags are used when
13693 # linking a shared library.
13695 # There doesn't appear to be a way to prevent this compiler from
13696 # explicitly linking system object files so we need to strip them
13697 # from the output so that they don't get included in the library
13698 # dependencies.
13699 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'
13701 xl* | mpixl* | bgxl*)
13702 # IBM XL 8.0 on PPC, with GNU ld
13703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13705 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 if test "x$supports_anon_versioning" = xyes; then
13707 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13709 echo "local: *; };" >> $output_objdir/$libname.ver~
13710 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13714 case `$CC -V 2>&1 | sed 5q` in
13715 *Sun\ C*)
13716 # Sun C++ 5.9
13717 no_undefined_flag_CXX=' -zdefs'
13718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719 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'
13720 hardcode_libdir_flag_spec_CXX='-R$libdir'
13721 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'
13722 compiler_needs_object_CXX=yes
13724 # Not sure whether something based on
13725 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13726 # would be better.
13727 output_verbose_link_cmd='func_echo_all'
13729 # Archives containing C++ object files must be created using
13730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13731 # necessary to make sure instantiated templates are included
13732 # in the archive.
13733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13735 esac
13737 esac
13740 lynxos*)
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13745 m88k*)
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13750 mvs*)
13751 case $cc_basename in
13752 cxx*)
13753 # FIXME: insert proper C++ library support
13754 ld_shlibs_CXX=no
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13760 esac
13763 netbsd*)
13764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13765 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13766 wlarc=
13767 hardcode_libdir_flag_spec_CXX='-R$libdir'
13768 hardcode_direct_CXX=yes
13769 hardcode_shlibpath_var_CXX=no
13771 # Workaround some broken pre-1.5 toolchains
13772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13775 *nto* | *qnx*)
13776 ld_shlibs_CXX=yes
13779 openbsd2*)
13780 # C++ shared libraries are fairly broken
13781 ld_shlibs_CXX=no
13784 openbsd*)
13785 if test -f /usr/libexec/ld.so; then
13786 hardcode_direct_CXX=yes
13787 hardcode_shlibpath_var_CXX=no
13788 hardcode_direct_absolute_CXX=yes
13789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13792 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13793 export_dynamic_flag_spec_CXX='${wl}-E'
13794 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13796 output_verbose_link_cmd=func_echo_all
13797 else
13798 ld_shlibs_CXX=no
13802 osf3* | osf4* | osf5*)
13803 case $cc_basename in
13804 KCC*)
13805 # Kuck and Associates, Inc. (KAI) C++ Compiler
13807 # KCC will only create a shared library if the output file
13808 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13809 # to its proper name (with version) after linking.
13810 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'
13812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13813 hardcode_libdir_separator_CXX=:
13815 # Archives containing C++ object files must be created using
13816 # the KAI C++ compiler.
13817 case $host in
13818 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13819 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13820 esac
13822 RCC*)
13823 # Rational C++ 2.4.1
13824 # FIXME: insert proper C++ library support
13825 ld_shlibs_CXX=no
13827 cxx*)
13828 case $host in
13829 osf3*)
13830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13831 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'
13832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13835 allow_undefined_flag_CXX=' -expect_unresolved \*'
13836 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'
13837 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13838 echo "-hidden">> $lib.exp~
13839 $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~
13840 $RM $lib.exp'
13841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13843 esac
13845 hardcode_libdir_separator_CXX=:
13847 # Commands to make compiler produce verbose output that lists
13848 # what "hidden" libraries, object files and flags are used when
13849 # linking a shared library.
13851 # There doesn't appear to be a way to prevent this compiler from
13852 # explicitly linking system object files so we need to strip them
13853 # from the output so that they don't get included in the library
13854 # dependencies.
13855 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"'
13858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13859 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13860 case $host in
13861 osf3*)
13862 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'
13865 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'
13867 esac
13869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13870 hardcode_libdir_separator_CXX=:
13872 # Commands to make compiler produce verbose output that lists
13873 # what "hidden" libraries, object files and flags are used when
13874 # linking a shared library.
13875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13877 else
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13882 esac
13885 psos*)
13886 # FIXME: insert proper C++ library support
13887 ld_shlibs_CXX=no
13890 sunos4*)
13891 case $cc_basename in
13892 CC*)
13893 # Sun C++ 4.x
13894 # FIXME: insert proper C++ library support
13895 ld_shlibs_CXX=no
13897 lcc*)
13898 # Lucid
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13903 # FIXME: insert proper C++ library support
13904 ld_shlibs_CXX=no
13906 esac
13909 solaris*)
13910 case $cc_basename in
13911 CC*)
13912 # Sun C++ 4.2, 5.x and Centerline C++
13913 archive_cmds_need_lc_CXX=yes
13914 no_undefined_flag_CXX=' -zdefs'
13915 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13916 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13917 $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'
13919 hardcode_libdir_flag_spec_CXX='-R$libdir'
13920 hardcode_shlibpath_var_CXX=no
13921 case $host_os in
13922 solaris2.[0-5] | solaris2.[0-5].*) ;;
13924 # The compiler driver will combine and reorder linker options,
13925 # but understands `-z linker_flag'.
13926 # Supported since Solaris 2.6 (maybe 2.5.1?)
13927 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13929 esac
13930 link_all_deplibs_CXX=yes
13932 output_verbose_link_cmd='func_echo_all'
13934 # Archives containing C++ object files must be created using
13935 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13936 # necessary to make sure instantiated templates are included
13937 # in the archive.
13938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13940 gcx*)
13941 # Green Hills C++ Compiler
13942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13944 # The C++ compiler must be used to create the archive.
13945 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13948 # GNU C++ compiler with Solaris linker
13949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13950 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13951 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13952 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13953 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13954 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13956 # Commands to make compiler produce verbose output that lists
13957 # what "hidden" libraries, object files and flags are used when
13958 # linking a shared library.
13959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13960 else
13961 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13962 # platform.
13963 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13964 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13967 # Commands to make compiler produce verbose output that lists
13968 # what "hidden" libraries, object files and flags are used when
13969 # linking a shared library.
13970 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13973 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13974 case $host_os in
13975 solaris2.[0-5] | solaris2.[0-5].*) ;;
13977 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13979 esac
13982 esac
13985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13986 no_undefined_flag_CXX='${wl}-z,text'
13987 archive_cmds_need_lc_CXX=no
13988 hardcode_shlibpath_var_CXX=no
13989 runpath_var='LD_RUN_PATH'
13991 case $cc_basename in
13992 CC*)
13993 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13998 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14000 esac
14003 sysv5* | sco3.2v5* | sco5v6*)
14004 # Note: We can NOT use -z defs as we might desire, because we do not
14005 # link with -lc, and that would cause any symbols used from libc to
14006 # always be unresolved, which means just about no library would
14007 # ever link correctly. If we're not using GNU ld we use -z text
14008 # though, which does catch some bad symbols but isn't as heavy-handed
14009 # as -z defs.
14010 no_undefined_flag_CXX='${wl}-z,text'
14011 allow_undefined_flag_CXX='${wl}-z,nodefs'
14012 archive_cmds_need_lc_CXX=no
14013 hardcode_shlibpath_var_CXX=no
14014 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14015 hardcode_libdir_separator_CXX=':'
14016 link_all_deplibs_CXX=yes
14017 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14018 runpath_var='LD_RUN_PATH'
14020 case $cc_basename in
14021 CC*)
14022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14024 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14025 '"$old_archive_cmds_CXX"
14026 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14027 '"$reload_cmds_CXX"
14030 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 esac
14036 tandem*)
14037 case $cc_basename in
14038 NCC*)
14039 # NonStop-UX NCC 3.20
14040 # FIXME: insert proper C++ library support
14041 ld_shlibs_CXX=no
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14047 esac
14050 vxworks*)
14051 # For VxWorks ports, we assume the use of a GNU linker with
14052 # standard elf conventions.
14053 ld_shlibs_CXX=yes
14057 # FIXME: insert proper C++ library support
14058 ld_shlibs_CXX=no
14060 esac
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14063 $as_echo "$ld_shlibs_CXX" >&6; }
14064 test "$ld_shlibs_CXX" = no && can_build_shared=no
14066 GCC_CXX="$GXX"
14067 LD_CXX="$LD"
14069 ## CAVEAT EMPTOR:
14070 ## There is no encapsulation within the following macros, do not change
14071 ## the running order or otherwise move them around unless you know exactly
14072 ## what you are doing...
14073 # Dependencies to place before and after the object being linked:
14074 predep_objects_CXX=
14075 postdep_objects_CXX=
14076 predeps_CXX=
14077 postdeps_CXX=
14078 compiler_lib_search_path_CXX=
14080 cat > conftest.$ac_ext <<_LT_EOF
14081 class Foo
14083 public:
14084 Foo (void) { a = 0; }
14085 private:
14086 int a;
14088 _LT_EOF
14090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14091 (eval $ac_compile) 2>&5
14092 ac_status=$?
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094 test $ac_status = 0; }; then
14095 # Parse the compiler output and extract the necessary
14096 # objects, libraries and library flags.
14098 # Sentinel used to keep track of whether or not we are before
14099 # the conftest object file.
14100 pre_test_object_deps_done=no
14102 for p in `eval "$output_verbose_link_cmd"`; do
14103 case $p in
14105 -L* | -R* | -l*)
14106 # Some compilers place space between "-{L,R}" and the path.
14107 # Remove the space.
14108 if test $p = "-L" ||
14109 test $p = "-R"; then
14110 prev=$p
14111 continue
14112 else
14113 prev=
14116 if test "$pre_test_object_deps_done" = no; then
14117 case $p in
14118 -L* | -R*)
14119 # Internal compiler library paths should come after those
14120 # provided the user. The postdeps already come after the
14121 # user supplied libs so there is no need to process them.
14122 if test -z "$compiler_lib_search_path_CXX"; then
14123 compiler_lib_search_path_CXX="${prev}${p}"
14124 else
14125 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14128 # The "-l" case would never come before the object being
14129 # linked, so don't bother handling this case.
14130 esac
14131 else
14132 if test -z "$postdeps_CXX"; then
14133 postdeps_CXX="${prev}${p}"
14134 else
14135 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14140 *.$objext)
14141 # This assumes that the test object file only shows up
14142 # once in the compiler output.
14143 if test "$p" = "conftest.$objext"; then
14144 pre_test_object_deps_done=yes
14145 continue
14148 if test "$pre_test_object_deps_done" = no; then
14149 if test -z "$predep_objects_CXX"; then
14150 predep_objects_CXX="$p"
14151 else
14152 predep_objects_CXX="$predep_objects_CXX $p"
14154 else
14155 if test -z "$postdep_objects_CXX"; then
14156 postdep_objects_CXX="$p"
14157 else
14158 postdep_objects_CXX="$postdep_objects_CXX $p"
14163 *) ;; # Ignore the rest.
14165 esac
14166 done
14168 # Clean up.
14169 rm -f a.out a.exe
14170 else
14171 echo "libtool.m4: error: problem compiling CXX test program"
14174 $RM -f confest.$objext
14176 # PORTME: override above test on systems where it is broken
14177 case $host_os in
14178 interix[3-9]*)
14179 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14180 # hack all around it, let's just trust "g++" to DTRT.
14181 predep_objects_CXX=
14182 postdep_objects_CXX=
14183 postdeps_CXX=
14186 linux*)
14187 case `$CC -V 2>&1 | sed 5q` in
14188 *Sun\ C*)
14189 # Sun C++ 5.9
14191 # The more standards-conforming stlport4 library is
14192 # incompatible with the Cstd library. Avoid specifying
14193 # it if it's in CXXFLAGS. Ignore libCrun as
14194 # -library=stlport4 depends on it.
14195 case " $CXX $CXXFLAGS " in
14196 *" -library=stlport4 "*)
14197 solaris_use_stlport4=yes
14199 esac
14201 if test "$solaris_use_stlport4" != yes; then
14202 postdeps_CXX='-library=Cstd -library=Crun'
14205 esac
14208 solaris*)
14209 case $cc_basename in
14210 CC*)
14211 # The more standards-conforming stlport4 library is
14212 # incompatible with the Cstd library. Avoid specifying
14213 # it if it's in CXXFLAGS. Ignore libCrun as
14214 # -library=stlport4 depends on it.
14215 case " $CXX $CXXFLAGS " in
14216 *" -library=stlport4 "*)
14217 solaris_use_stlport4=yes
14219 esac
14221 # Adding this requires a known-good setup of shared libraries for
14222 # Sun compiler versions before 5.6, else PIC objects from an old
14223 # archive will be linked into the output, leading to subtle bugs.
14224 if test "$solaris_use_stlport4" != yes; then
14225 postdeps_CXX='-library=Cstd -library=Crun'
14228 esac
14230 esac
14233 case " $postdeps_CXX " in
14234 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14235 esac
14236 compiler_lib_search_dirs_CXX=
14237 if test -n "${compiler_lib_search_path_CXX}"; then
14238 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14271 lt_prog_compiler_wl_CXX=
14272 lt_prog_compiler_pic_CXX=
14273 lt_prog_compiler_static_CXX=
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14276 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14278 # C++ specific cases for pic, static, wl, etc.
14279 if test "$GXX" = yes; then
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 lt_prog_compiler_static_CXX='-static'
14283 case $host_os in
14284 aix*)
14285 # All AIX code is PIC.
14286 if test "$host_cpu" = ia64; then
14287 # AIX 5 now supports IA64 processor
14288 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_pic_CXX='-fPIC'
14293 amigaos*)
14294 case $host_cpu in
14295 powerpc)
14296 # see comment about AmigaOS4 .so support
14297 lt_prog_compiler_pic_CXX='-fPIC'
14299 m68k)
14300 # FIXME: we need at least 68020 code to build shared libraries, but
14301 # adding the `-m68020' flag to GCC prevents building anything better,
14302 # like `-m68040'.
14303 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14305 esac
14308 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14309 # PIC is the default for these OSes.
14311 mingw* | cygwin* | os2* | pw32* | cegcc*)
14312 # This hack is so that the source file can tell whether it is being
14313 # built for inclusion in a dll (and should export symbols for example).
14314 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14315 # (--disable-auto-import) libraries
14316 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14318 darwin* | rhapsody*)
14319 # PIC is the default on this platform
14320 # Common symbols not allowed in MH_DYLIB files
14321 lt_prog_compiler_pic_CXX='-fno-common'
14323 *djgpp*)
14324 # DJGPP does not support shared libraries at all
14325 lt_prog_compiler_pic_CXX=
14327 haiku*)
14328 # PIC is the default for Haiku.
14329 # The "-static" flag exists, but is broken.
14330 lt_prog_compiler_static_CXX=
14332 interix[3-9]*)
14333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14334 # Instead, we relocate shared libraries at runtime.
14336 sysv4*MP*)
14337 if test -d /usr/nec; then
14338 lt_prog_compiler_pic_CXX=-Kconform_pic
14341 hpux*)
14342 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14343 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14344 # sets the default TLS model and affects inlining.
14345 case $host_cpu in
14346 hppa*64*)
14349 lt_prog_compiler_pic_CXX='-fPIC'
14351 esac
14353 *qnx* | *nto*)
14354 # QNX uses GNU C++, but need to define -shared option too, otherwise
14355 # it will coredump.
14356 lt_prog_compiler_pic_CXX='-fPIC -shared'
14359 lt_prog_compiler_pic_CXX='-fPIC'
14361 esac
14362 else
14363 case $host_os in
14364 aix[4-9]*)
14365 # All AIX code is PIC.
14366 if test "$host_cpu" = ia64; then
14367 # AIX 5 now supports IA64 processor
14368 lt_prog_compiler_static_CXX='-Bstatic'
14369 else
14370 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14373 chorus*)
14374 case $cc_basename in
14375 cxch68*)
14376 # Green Hills C++ Compiler
14377 # _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"
14379 esac
14381 dgux*)
14382 case $cc_basename in
14383 ec++*)
14384 lt_prog_compiler_pic_CXX='-KPIC'
14386 ghcx*)
14387 # Green Hills C++ Compiler
14388 lt_prog_compiler_pic_CXX='-pic'
14392 esac
14394 freebsd* | dragonfly*)
14395 # FreeBSD uses GNU C++
14397 hpux9* | hpux10* | hpux11*)
14398 case $cc_basename in
14399 CC*)
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14402 if test "$host_cpu" != ia64; then
14403 lt_prog_compiler_pic_CXX='+Z'
14406 aCC*)
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14409 case $host_cpu in
14410 hppa*64*|ia64*)
14411 # +Z the default
14414 lt_prog_compiler_pic_CXX='+Z'
14416 esac
14420 esac
14422 interix*)
14423 # This is c89, which is MS Visual C++ (no shared libs)
14424 # Anyone wants to do a port?
14426 irix5* | irix6* | nonstopux*)
14427 case $cc_basename in
14428 CC*)
14429 lt_prog_compiler_wl_CXX='-Wl,'
14430 lt_prog_compiler_static_CXX='-non_shared'
14431 # CC pic flag -KPIC is the default.
14435 esac
14437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14438 case $cc_basename in
14439 KCC*)
14440 # KAI C++ Compiler
14441 lt_prog_compiler_wl_CXX='--backend -Wl,'
14442 lt_prog_compiler_pic_CXX='-fPIC'
14444 ecpc* )
14445 # old Intel C++ for x86_64 which still supported -KPIC.
14446 lt_prog_compiler_wl_CXX='-Wl,'
14447 lt_prog_compiler_pic_CXX='-KPIC'
14448 lt_prog_compiler_static_CXX='-static'
14450 icpc* )
14451 # Intel C++, used to be incompatible with GCC.
14452 # ICC 10 doesn't accept -KPIC any more.
14453 lt_prog_compiler_wl_CXX='-Wl,'
14454 lt_prog_compiler_pic_CXX='-fPIC'
14455 lt_prog_compiler_static_CXX='-static'
14457 pgCC* | pgcpp*)
14458 # Portland Group C++ compiler
14459 lt_prog_compiler_wl_CXX='-Wl,'
14460 lt_prog_compiler_pic_CXX='-fpic'
14461 lt_prog_compiler_static_CXX='-Bstatic'
14463 cxx*)
14464 # Compaq C++
14465 # Make sure the PIC flag is empty. It appears that all Alpha
14466 # Linux and Compaq Tru64 Unix objects are PIC.
14467 lt_prog_compiler_pic_CXX=
14468 lt_prog_compiler_static_CXX='-non_shared'
14470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14471 # IBM XL 8.0, 9.0 on PPC and BlueGene
14472 lt_prog_compiler_wl_CXX='-Wl,'
14473 lt_prog_compiler_pic_CXX='-qpic'
14474 lt_prog_compiler_static_CXX='-qstaticlink'
14477 case `$CC -V 2>&1 | sed 5q` in
14478 *Sun\ C*)
14479 # Sun C++ 5.9
14480 lt_prog_compiler_pic_CXX='-KPIC'
14481 lt_prog_compiler_static_CXX='-Bstatic'
14482 lt_prog_compiler_wl_CXX='-Qoption ld '
14484 esac
14486 esac
14488 lynxos*)
14490 m88k*)
14492 mvs*)
14493 case $cc_basename in
14494 cxx*)
14495 lt_prog_compiler_pic_CXX='-W c,exportall'
14499 esac
14501 netbsd*)
14503 *qnx* | *nto*)
14504 # QNX uses GNU C++, but need to define -shared option too, otherwise
14505 # it will coredump.
14506 lt_prog_compiler_pic_CXX='-fPIC -shared'
14508 osf3* | osf4* | osf5*)
14509 case $cc_basename in
14510 KCC*)
14511 lt_prog_compiler_wl_CXX='--backend -Wl,'
14513 RCC*)
14514 # Rational C++ 2.4.1
14515 lt_prog_compiler_pic_CXX='-pic'
14517 cxx*)
14518 # Digital/Compaq C++
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 # Make sure the PIC flag is empty. It appears that all Alpha
14521 # Linux and Compaq Tru64 Unix objects are PIC.
14522 lt_prog_compiler_pic_CXX=
14523 lt_prog_compiler_static_CXX='-non_shared'
14527 esac
14529 psos*)
14531 solaris*)
14532 case $cc_basename in
14533 CC*)
14534 # Sun C++ 4.2, 5.x and Centerline C++
14535 lt_prog_compiler_pic_CXX='-KPIC'
14536 lt_prog_compiler_static_CXX='-Bstatic'
14537 lt_prog_compiler_wl_CXX='-Qoption ld '
14539 gcx*)
14540 # Green Hills C++ Compiler
14541 lt_prog_compiler_pic_CXX='-PIC'
14545 esac
14547 sunos4*)
14548 case $cc_basename in
14549 CC*)
14550 # Sun C++ 4.x
14551 lt_prog_compiler_pic_CXX='-pic'
14552 lt_prog_compiler_static_CXX='-Bstatic'
14554 lcc*)
14555 # Lucid
14556 lt_prog_compiler_pic_CXX='-pic'
14560 esac
14562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14563 case $cc_basename in
14564 CC*)
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-KPIC'
14567 lt_prog_compiler_static_CXX='-Bstatic'
14569 esac
14571 tandem*)
14572 case $cc_basename in
14573 NCC*)
14574 # NonStop-UX NCC 3.20
14575 lt_prog_compiler_pic_CXX='-KPIC'
14579 esac
14581 vxworks*)
14584 lt_prog_compiler_can_build_shared_CXX=no
14586 esac
14589 case $host_os in
14590 # For platforms which do not support PIC, -DPIC is meaningless:
14591 *djgpp*)
14592 lt_prog_compiler_pic_CXX=
14595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14597 esac
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14599 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14604 # Check to make sure the PIC flag actually works.
14606 if test -n "$lt_prog_compiler_pic_CXX"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14608 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14609 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 lt_cv_prog_compiler_pic_works_CXX=no
14613 ac_outfile=conftest.$ac_objext
14614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14615 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14616 # Insert the option either (1) after the last *FLAGS variable, or
14617 # (2) before a word containing "conftest.", or (3) at the end.
14618 # Note that $ac_compile itself does not contain backslashes and begins
14619 # with a dollar sign (not a hyphen), so the echo should work correctly.
14620 # The option is referenced via a variable to avoid confusing sed.
14621 lt_compile=`echo "$ac_compile" | $SED \
14622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14624 -e 's:$: $lt_compiler_flag:'`
14625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14626 (eval "$lt_compile" 2>conftest.err)
14627 ac_status=$?
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 if (exit $ac_status) && test -s "$ac_outfile"; then
14631 # The compiler can only warn and ignore the option if not recognized
14632 # So say no if there are warnings other than the usual output.
14633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14636 lt_cv_prog_compiler_pic_works_CXX=yes
14639 $RM conftest*
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14643 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14645 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14646 case $lt_prog_compiler_pic_CXX in
14647 "" | " "*) ;;
14648 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14649 esac
14650 else
14651 lt_prog_compiler_pic_CXX=
14652 lt_prog_compiler_can_build_shared_CXX=no
14660 # Check to make sure the static flag actually works.
14662 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14664 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14665 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 lt_cv_prog_compiler_static_works_CXX=no
14669 save_LDFLAGS="$LDFLAGS"
14670 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14671 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14673 # The linker can only warn and ignore the option if not recognized
14674 # So say no if there are warnings
14675 if test -s conftest.err; then
14676 # Append any errors to the config.log.
14677 cat conftest.err 1>&5
14678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14680 if diff conftest.exp conftest.er2 >/dev/null; then
14681 lt_cv_prog_compiler_static_works_CXX=yes
14683 else
14684 lt_cv_prog_compiler_static_works_CXX=yes
14687 $RM -r conftest*
14688 LDFLAGS="$save_LDFLAGS"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14692 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14694 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14696 else
14697 lt_prog_compiler_static_CXX=
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 lt_cv_prog_compiler_c_o_CXX=no
14709 $RM -r conftest 2>/dev/null
14710 mkdir conftest
14711 cd conftest
14712 mkdir out
14713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715 lt_compiler_flag="-o out/conftest2.$ac_objext"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 lt_compile=`echo "$ac_compile" | $SED \
14721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723 -e 's:$: $lt_compiler_flag:'`
14724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725 (eval "$lt_compile" 2>out/conftest.err)
14726 ac_status=$?
14727 cat out/conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14730 then
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_c_o_CXX=yes
14739 chmod u+w . 2>&5
14740 $RM conftest*
14741 # SGI C++ compiler will create directory out/ii_files/ for
14742 # template instantiation
14743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744 $RM out/* && rmdir out
14745 cd ..
14746 $RM -r conftest
14747 $RM conftest*
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14751 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14757 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760 lt_cv_prog_compiler_c_o_CXX=no
14761 $RM -r conftest 2>/dev/null
14762 mkdir conftest
14763 cd conftest
14764 mkdir out
14765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14767 lt_compiler_flag="-o out/conftest2.$ac_objext"
14768 # Insert the option either (1) after the last *FLAGS variable, or
14769 # (2) before a word containing "conftest.", or (3) at the end.
14770 # Note that $ac_compile itself does not contain backslashes and begins
14771 # with a dollar sign (not a hyphen), so the echo should work correctly.
14772 lt_compile=`echo "$ac_compile" | $SED \
14773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14775 -e 's:$: $lt_compiler_flag:'`
14776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14777 (eval "$lt_compile" 2>out/conftest.err)
14778 ac_status=$?
14779 cat out/conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14782 then
14783 # The compiler can only warn and ignore the option if not recognized
14784 # So say no if there are warnings
14785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14788 lt_cv_prog_compiler_c_o_CXX=yes
14791 chmod u+w . 2>&5
14792 $RM conftest*
14793 # SGI C++ compiler will create directory out/ii_files/ for
14794 # template instantiation
14795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14796 $RM out/* && rmdir out
14797 cd ..
14798 $RM -r conftest
14799 $RM conftest*
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14803 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14808 hard_links="nottested"
14809 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14810 # do not overwrite the value of need_locks provided by the user
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14812 $as_echo_n "checking if we can lock with hard links... " >&6; }
14813 hard_links=yes
14814 $RM conftest*
14815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14816 touch conftest.a
14817 ln conftest.a conftest.b 2>&5 || hard_links=no
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14820 $as_echo "$hard_links" >&6; }
14821 if test "$hard_links" = no; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14823 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14824 need_locks=warn
14826 else
14827 need_locks=no
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14835 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14836 case $host_os in
14837 aix[4-9]*)
14838 # If we're using GNU nm, then we don't want the "-C" option.
14839 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14840 # Also, AIX nm treats weak defined symbols like other global defined
14841 # symbols, whereas GNU nm marks them as "W".
14842 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14843 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'
14844 else
14845 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14848 pw32*)
14849 export_symbols_cmds_CXX="$ltdll_cmds"
14851 cygwin* | mingw* | cegcc*)
14852 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'
14855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857 esac
14858 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14861 $as_echo "$ld_shlibs_CXX" >&6; }
14862 test "$ld_shlibs_CXX" = no && can_build_shared=no
14864 with_gnu_ld_CXX=$with_gnu_ld
14872 # Do we need to explicitly link libc?
14874 case "x$archive_cmds_need_lc_CXX" in
14875 x|xyes)
14876 # Assume -lc should be added
14877 archive_cmds_need_lc_CXX=yes
14879 if test "$enable_shared" = yes && test "$GCC" = yes; then
14880 case $archive_cmds_CXX in
14881 *'~'*)
14882 # FIXME: we may have to deal with multi-command sequences.
14884 '$CC '*)
14885 # Test whether the compiler implicitly links with -lc since on some
14886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14887 # to ld, don't add -lc before -lgcc.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14889 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14890 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 $RM conftest*
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14897 (eval $ac_compile) 2>&5
14898 ac_status=$?
14899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14900 test $ac_status = 0; } 2>conftest.err; then
14901 soname=conftest
14902 lib=conftest
14903 libobjs=conftest.$ac_objext
14904 deplibs=
14905 wl=$lt_prog_compiler_wl_CXX
14906 pic_flag=$lt_prog_compiler_pic_CXX
14907 compiler_flags=-v
14908 linker_flags=-v
14909 verstring=
14910 output_objdir=.
14911 libname=conftest
14912 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14913 allow_undefined_flag_CXX=
14914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14915 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14916 ac_status=$?
14917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14918 test $ac_status = 0; }
14919 then
14920 lt_cv_archive_cmds_need_lc_CXX=no
14921 else
14922 lt_cv_archive_cmds_need_lc_CXX=yes
14924 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14925 else
14926 cat conftest.err 1>&5
14928 $RM conftest*
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14932 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14933 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14935 esac
14938 esac
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15004 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15006 library_names_spec=
15007 libname_spec='lib$name'
15008 soname_spec=
15009 shrext_cmds=".so"
15010 postinstall_cmds=
15011 postuninstall_cmds=
15012 finish_cmds=
15013 finish_eval=
15014 shlibpath_var=
15015 shlibpath_overrides_runpath=unknown
15016 version_type=none
15017 dynamic_linker="$host_os ld.so"
15018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15019 need_lib_prefix=unknown
15020 hardcode_into_libs=no
15022 # when you set need_version to no, make sure it does not cause -set_version
15023 # flags to be left without arguments
15024 need_version=unknown
15026 case $host_os in
15027 aix3*)
15028 version_type=linux
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15030 shlibpath_var=LIBPATH
15032 # AIX 3 has no versioning support, so we append a major version to the name.
15033 soname_spec='${libname}${release}${shared_ext}$major'
15036 aix[4-9]*)
15037 version_type=linux
15038 need_lib_prefix=no
15039 need_version=no
15040 hardcode_into_libs=yes
15041 if test "$host_cpu" = ia64; then
15042 # AIX 5 supports IA64
15043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 else
15046 # With GCC up to 2.95.x, collect2 would create an import file
15047 # for dependence libraries. The import file would start with
15048 # the line `#! .'. This would cause the generated library to
15049 # depend on `.', always an invalid library. This was fixed in
15050 # development snapshots of GCC prior to 3.0.
15051 case $host_os in
15052 aix4 | aix4.[01] | aix4.[01].*)
15053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15054 echo ' yes '
15055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15057 else
15058 can_build_shared=no
15061 esac
15062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15063 # soname into executable. Probably we can add versioning support to
15064 # collect2, so additional links can be useful in future.
15065 if test "$aix_use_runtimelinking" = yes; then
15066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15067 # instead of lib<name>.a to let people know that these are not
15068 # typical AIX shared libraries.
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 else
15071 # We preserve .a as extension for shared libraries through AIX4.2
15072 # and later when we are not doing run time linking.
15073 library_names_spec='${libname}${release}.a $libname.a'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15076 shlibpath_var=LIBPATH
15080 amigaos*)
15081 case $host_cpu in
15082 powerpc)
15083 # Since July 2007 AmigaOS4 officially supports .so libraries.
15084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 m68k)
15088 library_names_spec='$libname.ixlibrary $libname.a'
15089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15090 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'
15092 esac
15095 beos*)
15096 library_names_spec='${libname}${shared_ext}'
15097 dynamic_linker="$host_os ld.so"
15098 shlibpath_var=LIBRARY_PATH
15101 bsdi[45]*)
15102 version_type=linux
15103 need_version=no
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15110 # the default ld.so.conf also contains /usr/contrib/lib and
15111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15112 # libtool to hard-code these into programs
15115 cygwin* | mingw* | pw32* | cegcc*)
15116 version_type=windows
15117 shrext_cmds=".dll"
15118 need_version=no
15119 need_lib_prefix=no
15121 case $GCC,$host_os in
15122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15123 library_names_spec='$libname.dll.a'
15124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15125 postinstall_cmds='base_file=`basename \${file}`~
15126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15127 dldir=$destdir/`dirname \$dlpath`~
15128 test -d \$dldir || mkdir -p \$dldir~
15129 $install_prog $dir/$dlname \$dldir/$dlname~
15130 chmod a+x \$dldir/$dlname~
15131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15135 dlpath=$dir/\$dldll~
15136 $RM \$dlpath'
15137 shlibpath_overrides_runpath=yes
15139 case $host_os in
15140 cygwin*)
15141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15145 mingw* | cegcc*)
15146 # MinGW DLLs use traditional 'lib' prefix
15147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15149 pw32*)
15150 # pw32 DLLs use 'pw' prefix rather than 'lib'
15151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15153 esac
15157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15159 esac
15160 dynamic_linker='Win32 ld.exe'
15161 # FIXME: first we should search . and the directory the executable is in
15162 shlibpath_var=PATH
15165 darwin* | rhapsody*)
15166 dynamic_linker="$host_os dyld"
15167 version_type=darwin
15168 need_lib_prefix=no
15169 need_version=no
15170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15171 soname_spec='${libname}${release}${major}$shared_ext'
15172 shlibpath_overrides_runpath=yes
15173 shlibpath_var=DYLD_LIBRARY_PATH
15174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15179 dgux*)
15180 version_type=linux
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15188 freebsd* | dragonfly*)
15189 # DragonFly does not have aout. When/if they implement a new
15190 # versioning mechanism, adjust this.
15191 if test -x /usr/bin/objformat; then
15192 objformat=`/usr/bin/objformat`
15193 else
15194 case $host_os in
15195 freebsd[23].*) objformat=aout ;;
15196 *) objformat=elf ;;
15197 esac
15199 version_type=freebsd-$objformat
15200 case $version_type in
15201 freebsd-elf*)
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15203 need_version=no
15204 need_lib_prefix=no
15206 freebsd-*)
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15208 need_version=yes
15210 esac
15211 shlibpath_var=LD_LIBRARY_PATH
15212 case $host_os in
15213 freebsd2.*)
15214 shlibpath_overrides_runpath=yes
15216 freebsd3.[01]* | freebsdelf3.[01]*)
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15225 *) # from 4.6 on, and DragonFly
15226 shlibpath_overrides_runpath=yes
15227 hardcode_into_libs=yes
15229 esac
15232 haiku*)
15233 version_type=linux
15234 need_lib_prefix=no
15235 need_version=no
15236 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
15240 shlibpath_overrides_runpath=yes
15241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15242 hardcode_into_libs=yes
15245 hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 case $host_cpu in
15252 ia64*)
15253 shrext_cmds='.so'
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262 else
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15267 hppa*64*)
15268 shrext_cmds='.sl'
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15279 shrext_cmds='.sl'
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15286 esac
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15288 postinstall_cmds='chmod 555 $lib'
15289 # or fails outright, so override atomically:
15290 install_override_mode=555
15293 interix[3-9]*)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15305 irix5* | irix6* | nonstopux*)
15306 case $host_os in
15307 nonstopux*) version_type=nonstopux ;;
15309 if test "$lt_cv_prog_gnu_ld" = yes; then
15310 version_type=linux
15311 else
15312 version_type=irix
15313 fi ;;
15314 esac
15315 need_lib_prefix=no
15316 need_version=no
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 case $host_os in
15320 irix5* | nonstopux*)
15321 libsuff= shlibsuff=
15324 case $LD in # libtool.m4 will add one of these switches to LD
15325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15326 libsuff= shlibsuff= libmagic=32-bit;;
15327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15328 libsuff=32 shlibsuff=N32 libmagic=N32;;
15329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15331 *) libsuff= shlibsuff= libmagic=never-match;;
15332 esac
15334 esac
15335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15336 shlibpath_overrides_runpath=no
15337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15339 hardcode_into_libs=yes
15342 # No shared lib support for Linux oldld, aout, or coff.
15343 linux*oldld* | linux*aout* | linux*coff*)
15344 dynamic_linker=no
15347 # This must be Linux ELF.
15349 # uclinux* changes (here and below) have been submitted to the libtool
15350 # project, but have not yet been accepted: they are GCC-local changes
15351 # for the time being. (See
15352 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15353 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15354 version_type=linux
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15363 # Some binutils ld are patched to set DT_RUNPATH
15364 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 lt_cv_shlibpath_overrides_runpath=no
15368 save_LDFLAGS=$LDFLAGS
15369 save_libdir=$libdir
15370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15376 main ()
15380 return 0;
15382 _ACEOF
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15385 lt_cv_shlibpath_overrides_runpath=yes
15388 rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 LDFLAGS=$save_LDFLAGS
15391 libdir=$save_libdir
15395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15397 # This implies no fast_install, which is unacceptable.
15398 # Some rework will be needed to allow for fast_install
15399 # before this can be enabled.
15400 hardcode_into_libs=yes
15402 # Append ld.so.conf contents to the search path
15403 if test -f /etc/ld.so.conf; then
15404 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' ' '`
15405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15408 # We used to test for /lib/ld.so.1 and disable shared libraries on
15409 # powerpc, because MkLinux only supported shared libraries with the
15410 # GNU dynamic linker. Since this was broken with cross compilers,
15411 # most powerpc-linux boxes support dynamic linking these days and
15412 # people can always --disable-shared, the test was removed, and we
15413 # assume the GNU/Linux dynamic linker is in use.
15414 dynamic_linker='GNU/Linux ld.so'
15417 netbsd*)
15418 version_type=sunos
15419 need_lib_prefix=no
15420 need_version=no
15421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15424 dynamic_linker='NetBSD (a.out) ld.so'
15425 else
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 dynamic_linker='NetBSD ld.elf_so'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=yes
15432 hardcode_into_libs=yes
15435 newsos6)
15436 version_type=linux
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes
15442 *nto* | *qnx*)
15443 version_type=qnx
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=no
15450 hardcode_into_libs=yes
15451 dynamic_linker='ldqnx.so'
15454 openbsd*)
15455 version_type=sunos
15456 sys_lib_dlsearch_path_spec="/usr/lib"
15457 need_lib_prefix=no
15458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15459 case $host_os in
15460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15461 *) need_version=no ;;
15462 esac
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15467 case $host_os in
15468 openbsd2.[89] | openbsd2.[89].*)
15469 shlibpath_overrides_runpath=no
15472 shlibpath_overrides_runpath=yes
15474 esac
15475 else
15476 shlibpath_overrides_runpath=yes
15480 os2*)
15481 libname_spec='$name'
15482 shrext_cmds=".dll"
15483 need_lib_prefix=no
15484 library_names_spec='$libname${shared_ext} $libname.a'
15485 dynamic_linker='OS/2 ld.exe'
15486 shlibpath_var=LIBPATH
15489 osf3* | osf4* | osf5*)
15490 version_type=osf
15491 need_lib_prefix=no
15492 need_version=no
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15500 rdos*)
15501 dynamic_linker=no
15504 solaris*)
15505 version_type=linux
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=yes
15512 hardcode_into_libs=yes
15513 # ldd complains unless libraries are executable
15514 postinstall_cmds='chmod +x $lib'
15517 sunos4*)
15518 version_type=sunos
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15523 if test "$with_gnu_ld" = yes; then
15524 need_lib_prefix=no
15526 need_version=yes
15529 sysv4 | sysv4.3*)
15530 version_type=linux
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 case $host_vendor in
15535 sni)
15536 shlibpath_overrides_runpath=no
15537 need_lib_prefix=no
15538 runpath_var=LD_RUN_PATH
15540 siemens)
15541 need_lib_prefix=no
15543 motorola)
15544 need_lib_prefix=no
15545 need_version=no
15546 shlibpath_overrides_runpath=no
15547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15549 esac
15552 sysv4*MP*)
15553 if test -d /usr/nec ;then
15554 version_type=linux
15555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15556 soname_spec='$libname${shared_ext}.$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15562 version_type=freebsd-elf
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=yes
15569 hardcode_into_libs=yes
15570 if test "$with_gnu_ld" = yes; then
15571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15572 else
15573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15574 case $host_os in
15575 sco3.2v5*)
15576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15578 esac
15580 sys_lib_dlsearch_path_spec='/usr/lib'
15583 tpf*)
15584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15585 version_type=linux
15586 need_lib_prefix=no
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=no
15591 hardcode_into_libs=yes
15594 uts4*)
15595 version_type=linux
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 shlibpath_var=LD_LIBRARY_PATH
15601 # Shared libraries for VwWorks, >= 7 only at this stage
15602 # and (fpic) still incompatible with "large" code models
15603 # in a few configurations. Only for RTP mode in any case,
15604 # and upon explicit request at configure time.
15605 vxworks7*)
15606 dynamic_linker=no
15607 case ${with_multisubdir}-${enable_shared} in
15608 *large*)
15610 *mrtp*-yes)
15611 version_type=linux
15612 need_lib_prefix=no
15613 need_version=no
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 dynamic_linker="$host_os module_loader"
15618 esac
15621 dynamic_linker=no
15623 esac
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15625 $as_echo "$dynamic_linker" >&6; }
15626 test "$dynamic_linker" = no && can_build_shared=no
15628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15629 if test "$GCC" = yes; then
15630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15678 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15679 hardcode_action_CXX=
15680 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15681 test -n "$runpath_var_CXX" ||
15682 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15684 # We can hardcode non-existent directories.
15685 if test "$hardcode_direct_CXX" != no &&
15686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15687 # have to relink, otherwise we might link with an installed library
15688 # when we should be linking with a yet-to-be-installed one
15689 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15690 test "$hardcode_minus_L_CXX" != no; then
15691 # Linking always hardcodes the temporary library directory.
15692 hardcode_action_CXX=relink
15693 else
15694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15695 hardcode_action_CXX=immediate
15697 else
15698 # We cannot hardcode anything, or else we can only hardcode existing
15699 # directories.
15700 hardcode_action_CXX=unsupported
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15703 $as_echo "$hardcode_action_CXX" >&6; }
15705 if test "$hardcode_action_CXX" = relink ||
15706 test "$inherit_rpath_CXX" = yes; then
15707 # Fast installation is not supported
15708 enable_fast_install=no
15709 elif test "$shlibpath_overrides_runpath" = yes ||
15710 test "$enable_shared" = no; then
15711 # Fast installation is not necessary
15712 enable_fast_install=needless
15721 fi # test -n "$compiler"
15723 CC=$lt_save_CC
15724 LDCXX=$LD
15725 LD=$lt_save_LD
15726 GCC=$lt_save_GCC
15727 with_gnu_ld=$lt_save_with_gnu_ld
15728 lt_cv_path_LDCXX=$lt_cv_path_LD
15729 lt_cv_path_LD=$lt_save_path_LD
15730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15732 fi # test "$_lt_caught_CXX_error" != yes
15734 ac_ext=c
15735 ac_cpp='$CPP $CPPFLAGS'
15736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15752 ac_config_commands="$ac_config_commands libtool"
15757 # Only expand once:
15761 for ac_prog in gawk mawk nawk awk
15763 # Extract the first word of "$ac_prog", so it can be a program name with args.
15764 set dummy $ac_prog; ac_word=$2
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766 $as_echo_n "checking for $ac_word... " >&6; }
15767 if ${ac_cv_prog_AWK+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15770 if test -n "$AWK"; then
15771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15772 else
15773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15774 for as_dir in $PATH
15776 IFS=$as_save_IFS
15777 test -z "$as_dir" && as_dir=.
15778 for ac_exec_ext in '' $ac_executable_extensions; do
15779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15780 ac_cv_prog_AWK="$ac_prog"
15781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15782 break 2
15784 done
15785 done
15786 IFS=$as_save_IFS
15790 AWK=$ac_cv_prog_AWK
15791 if test -n "$AWK"; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15793 $as_echo "$AWK" >&6; }
15794 else
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 $as_echo "no" >&6; }
15800 test -n "$AWK" && break
15801 done
15803 case "$AWK" in
15804 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
15805 esac
15810 # The cast to long int works around a bug in the HP C Compiler
15811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15813 # This bug is HP SR number 8606223364.
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15815 $as_echo_n "checking size of void *... " >&6; }
15816 if ${ac_cv_sizeof_void_p+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15821 else
15822 if test "$ac_cv_type_void_p" = yes; then
15823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15825 as_fn_error 77 "cannot compute sizeof (void *)
15826 See \`config.log' for more details" "$LINENO" 5; }
15827 else
15828 ac_cv_sizeof_void_p=0
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15838 cat >>confdefs.h <<_ACEOF
15839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15840 _ACEOF
15844 if test "${multilib}" = "yes"; then
15845 multilib_arg="--enable-multilib"
15846 else
15847 multilib_arg=
15850 # Get target configury.
15851 unset TSAN_SUPPORTED
15852 unset LSAN_SUPPORTED
15853 unset HWASAN_SUPPORTED
15854 . ${srcdir}/configure.tgt
15855 if test "x$TSAN_SUPPORTED" = "xyes"; then
15856 TSAN_SUPPORTED_TRUE=
15857 TSAN_SUPPORTED_FALSE='#'
15858 else
15859 TSAN_SUPPORTED_TRUE='#'
15860 TSAN_SUPPORTED_FALSE=
15863 if test "x$LSAN_SUPPORTED" = "xyes"; then
15864 LSAN_SUPPORTED_TRUE=
15865 LSAN_SUPPORTED_FALSE='#'
15866 else
15867 LSAN_SUPPORTED_TRUE='#'
15868 LSAN_SUPPORTED_FALSE=
15871 if test "x$HWASAN_SUPPORTED" = "xyes"; then
15872 HWASAN_SUPPORTED_TRUE=
15873 HWASAN_SUPPORTED_FALSE='#'
15874 else
15875 HWASAN_SUPPORTED_TRUE='#'
15876 HWASAN_SUPPORTED_FALSE=
15880 # Check for functions needed.
15881 for ac_func in clock_getres clock_gettime clock_settime lstat readlink
15882 do :
15883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15886 cat >>confdefs.h <<_ACEOF
15887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15888 _ACEOF
15891 done
15894 # Common libraries that we need to link against for all sanitizer libs.
15895 link_sanitizer_common='-lpthread -lm'
15897 # At least for glibc, shm_open is in librt. But don't pull that
15898 # in if it still doesn't give us the function we want. This
15899 # test is copied from libgomp.
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15901 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15902 if ${ac_cv_lib_rt_shm_open+:} false; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-lrt $LIBS"
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15910 /* Override any GCC internal prototype to avoid an error.
15911 Use char because int might match the return type of a GCC
15912 builtin and then its argument prototype would still apply. */
15913 #ifdef __cplusplus
15914 extern "C"
15915 #endif
15916 char shm_open ();
15918 main ()
15920 return shm_open ();
15922 return 0;
15924 _ACEOF
15925 if ac_fn_c_try_link "$LINENO"; then :
15926 ac_cv_lib_rt_shm_open=yes
15927 else
15928 ac_cv_lib_rt_shm_open=no
15930 rm -f core conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15932 LIBS=$ac_check_lib_save_LIBS
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15935 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15936 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
15937 link_sanitizer_common="-lrt $link_sanitizer_common"
15941 # Do a configure time check for -ldl
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15943 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15944 if ${ac_cv_lib_dl_dlsym+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 ac_check_lib_save_LIBS=$LIBS
15948 LIBS="-ldl $LIBS"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15952 /* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char dlsym ();
15960 main ()
15962 return dlsym ();
15964 return 0;
15966 _ACEOF
15967 if ac_fn_c_try_link "$LINENO"; then :
15968 ac_cv_lib_dl_dlsym=yes
15969 else
15970 ac_cv_lib_dl_dlsym=no
15972 rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_check_lib_save_LIBS
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15977 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15978 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15979 link_sanitizer_common="-ldl $link_sanitizer_common"
15983 # Set up the set of additional libraries that we need to link against for libasan.
15984 link_libasan=$link_sanitizer_common
15987 # Set up the set of additional libraries that we need to link against for libhwasan.
15988 link_libhwasan=$link_sanitizer_common
15991 # Set up the set of additional libraries that we need to link against for libtsan.
15992 link_libtsan=$link_sanitizer_common
15995 # Set up the set of additional libraries that we need to link against for libubsan.
15996 link_libubsan=$link_sanitizer_common
15999 # Set up the set of additional libraries that we need to link against for liblsan.
16000 link_liblsan=$link_sanitizer_common
16004 # At least for glibc, clock_gettime is in librt. But don't pull that
16005 # in if it still doesn't give us the function we want. This
16006 # test is copied from libgomp.
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16008 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16009 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 ac_check_lib_save_LIBS=$LIBS
16013 LIBS="-lrt $LIBS"
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 char clock_gettime ();
16025 main ()
16027 return clock_gettime ();
16029 return 0;
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033 ac_cv_lib_rt_clock_gettime=yes
16034 else
16035 ac_cv_lib_rt_clock_gettime=no
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16042 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16043 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16044 link_libasan="-lrt $link_libasan"
16045 link_libtsan="-lrt $link_libtsan"
16046 # Other sanitizers do not override clock_* API
16051 case "$host" in
16052 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16053 *) MAC_INTERPOSE=false ;;
16054 esac
16055 if $MAC_INTERPOSE; then
16056 USING_MAC_INTERPOSE_TRUE=
16057 USING_MAC_INTERPOSE_FALSE='#'
16058 else
16059 USING_MAC_INTERPOSE_TRUE='#'
16060 USING_MAC_INTERPOSE_FALSE=
16064 backtrace_supported=yes
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16067 $as_echo_n "checking for necessary platform features... " >&6; }
16068 case "$target" in
16069 *-*-linux*)
16070 # Some old Linux distributions miss required syscalls.
16071 sanitizer_supported=no
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 #include <sys/syscall.h>
16075 #include <unistd.h>
16077 main ()
16080 syscall (__NR_gettid);
16081 syscall (__NR_futex);
16082 syscall (__NR_exit_group);
16085 return 0;
16087 _ACEOF
16088 if ac_fn_c_try_compile "$LINENO"; then :
16089 sanitizer_supported=yes
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094 sanitizer_supported=yes
16096 esac
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16098 $as_echo "$sanitizer_supported" >&6; }
16099 if test "$sanitizer_supported" = yes; then
16100 SANITIZER_SUPPORTED_TRUE=
16101 SANITIZER_SUPPORTED_FALSE='#'
16102 else
16103 SANITIZER_SUPPORTED_TRUE='#'
16104 SANITIZER_SUPPORTED_FALSE=
16108 # Test for __sync support.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16110 $as_echo_n "checking __sync extensions... " >&6; }
16111 if ${libsanitizer_cv_sys_sync+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 if test -n "${with_target_subdir}"; then
16115 libsanitizer_cv_sys_sync=yes
16116 else
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 int i;
16121 main ()
16123 __sync_bool_compare_and_swap (&i, i, i);
16124 __sync_lock_test_and_set (&i, 1);
16125 __sync_lock_release (&i);
16127 return 0;
16129 _ACEOF
16130 if ac_fn_c_try_link "$LINENO"; then :
16131 libsanitizer_cv_sys_sync=yes
16132 else
16133 libsanitizer_cv_sys_sync=no
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16140 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
16141 if test "$libsanitizer_cv_sys_sync" = "yes"; then
16143 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
16147 # Test for __atomic support.
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16149 $as_echo_n "checking __atomic extensions... " >&6; }
16150 if ${libsanitizer_cv_sys_atomic+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 if test -n "${with_target_subdir}"; then
16154 libsanitizer_cv_sys_atomic=yes
16155 else
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16160 main ()
16162 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
16163 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16165 return 0;
16167 _ACEOF
16168 if ac_fn_c_try_link "$LINENO"; then :
16169 libsanitizer_cv_sys_atomic=yes
16170 else
16171 libsanitizer_cv_sys_atomic=no
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16178 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16179 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
16181 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
16185 # The library needs to be able to read the executable itself. Compile
16186 # a file to determine the executable format. The awk script
16187 # filetype.awk prints out the file type.
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16189 $as_echo_n "checking output filetype... " >&6; }
16190 if ${libsanitizer_cv_sys_filetype+:} false; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 filetype=
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 int i;
16198 main ()
16200 int j;
16202 return 0;
16204 _ACEOF
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16207 else
16208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16210 as_fn_error $? "compiler failed
16211 See \`config.log' for more details" "$LINENO" 5; }
16213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214 libsanitizer_cv_sys_filetype=$filetype
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16217 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16219 # Match the file type to decide what files to compile.
16220 FORMAT_FILE=
16221 case "$libsanitizer_cv_sys_filetype" in
16222 elf*) FORMAT_FILE="elf.lo" ;;
16223 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16224 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16225 FORMAT_FILE="unknown.lo"
16226 backtrace_supported=no
16228 esac
16231 # ELF defines.
16232 elfsize=
16233 case "$libsanitizer_cv_sys_filetype" in
16234 elf32) elfsize=32 ;;
16235 elf64) elfsize=64 ;;
16236 esac
16238 cat >>confdefs.h <<_ACEOF
16239 #define BACKTRACE_ELF_SIZE $elfsize
16240 _ACEOF
16243 BACKTRACE_SUPPORTED=0
16244 if test "$backtrace_supported" = "yes"; then
16245 BACKTRACE_SUPPORTED=1
16251 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16253 acx_cv_header_stdint=stddef.h
16254 acx_cv_header_stdint_kind="(already complete)"
16255 for i in stdint.h $inttype_headers; do
16256 unset ac_cv_type_uintptr_t
16257 unset ac_cv_type_uintmax_t
16258 unset ac_cv_type_int_least32_t
16259 unset ac_cv_type_int_fast32_t
16260 unset ac_cv_type_uint64_t
16261 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16262 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16263 #include <$i>
16265 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16266 acx_cv_header_stdint=$i
16267 else
16268 continue
16271 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16272 #include <$i>
16274 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16276 else
16277 acx_cv_header_stdint_kind="(mostly complete)"
16280 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16281 #include <$i>
16283 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16285 else
16286 acx_cv_header_stdint_kind="(mostly complete)"
16289 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16290 #include <$i>
16292 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16294 else
16295 acx_cv_header_stdint_kind="(mostly complete)"
16298 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16299 #include <$i>
16301 if test "x$ac_cv_type_uint64_t" = xyes; then :
16303 else
16304 acx_cv_header_stdint_kind="(lacks uint64_t)"
16307 break
16308 done
16309 if test "$acx_cv_header_stdint" = stddef.h; then
16310 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16311 for i in stdint.h $inttype_headers; do
16312 unset ac_cv_type_uintptr_t
16313 unset ac_cv_type_uint32_t
16314 unset ac_cv_type_uint64_t
16315 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16316 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16317 #include <$i>
16319 if test "x$ac_cv_type_uint32_t" = xyes; then :
16320 acx_cv_header_stdint=$i
16321 else
16322 continue
16325 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16326 #include <$i>
16328 if test "x$ac_cv_type_uint64_t" = xyes; then :
16332 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16333 #include <$i>
16335 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16339 break
16340 done
16342 if test "$acx_cv_header_stdint" = stddef.h; then
16343 acx_cv_header_stdint_kind="(u_intXX_t style)"
16344 for i in sys/types.h $inttype_headers; do
16345 unset ac_cv_type_u_int32_t
16346 unset ac_cv_type_u_int64_t
16347 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16348 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16349 #include <$i>
16351 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16352 acx_cv_header_stdint=$i
16353 else
16354 continue
16357 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16358 #include <$i>
16360 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16364 break
16365 done
16367 if test "$acx_cv_header_stdint" = stddef.h; then
16368 acx_cv_header_stdint_kind="(using manual detection)"
16371 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16372 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16373 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16374 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16375 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16377 # ----------------- Summarize what we found so far
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16380 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16382 case `$as_basename -- gstdint.h ||
16383 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16384 Xgstdint.h : 'X\(//\)$' \| \
16385 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16386 $as_echo X/gstdint.h |
16387 sed '/^.*\/\([^/][^/]*\)\/*$/{
16388 s//\1/
16391 /^X\/\(\/\/\)$/{
16392 s//\1/
16395 /^X\/\(\/\).*/{
16396 s//\1/
16399 s/.*/./; q'` in
16400 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16401 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16402 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16403 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16404 *) ;;
16405 esac
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16408 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16410 # ----------------- done included file, check C basic types --------
16412 # Lacking an uintptr_t? Test size of void *
16413 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16414 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16417 # This bug is HP SR number 8606223364.
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16419 $as_echo_n "checking size of void *... " >&6; }
16420 if ${ac_cv_sizeof_void_p+:} false; then :
16421 $as_echo_n "(cached) " >&6
16422 else
16423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16425 else
16426 if test "$ac_cv_type_void_p" = yes; then
16427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16429 as_fn_error 77 "cannot compute sizeof (void *)
16430 See \`config.log' for more details" "$LINENO" 5; }
16431 else
16432 ac_cv_sizeof_void_p=0
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16438 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16442 cat >>confdefs.h <<_ACEOF
16443 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16444 _ACEOF
16447 esac
16449 # Lacking an uint64_t? Test size of long
16450 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16451 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16454 # This bug is HP SR number 8606223364.
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16456 $as_echo_n "checking size of long... " >&6; }
16457 if ${ac_cv_sizeof_long+:} false; then :
16458 $as_echo_n "(cached) " >&6
16459 else
16460 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16462 else
16463 if test "$ac_cv_type_long" = yes; then
16464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16466 as_fn_error 77 "cannot compute sizeof (long)
16467 See \`config.log' for more details" "$LINENO" 5; }
16468 else
16469 ac_cv_sizeof_long=0
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16475 $as_echo "$ac_cv_sizeof_long" >&6; }
16479 cat >>confdefs.h <<_ACEOF
16480 #define SIZEOF_LONG $ac_cv_sizeof_long
16481 _ACEOF
16484 esac
16486 if test $acx_cv_header_stdint = stddef.h; then
16487 # Lacking a good header? Test size of everything and deduce all types.
16488 # The cast to long int works around a bug in the HP C Compiler
16489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16491 # This bug is HP SR number 8606223364.
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16493 $as_echo_n "checking size of int... " >&6; }
16494 if ${ac_cv_sizeof_int+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16499 else
16500 if test "$ac_cv_type_int" = yes; then
16501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16503 as_fn_error 77 "cannot compute sizeof (int)
16504 See \`config.log' for more details" "$LINENO" 5; }
16505 else
16506 ac_cv_sizeof_int=0
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16512 $as_echo "$ac_cv_sizeof_int" >&6; }
16516 cat >>confdefs.h <<_ACEOF
16517 #define SIZEOF_INT $ac_cv_sizeof_int
16518 _ACEOF
16521 # The cast to long int works around a bug in the HP C Compiler
16522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16524 # This bug is HP SR number 8606223364.
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16526 $as_echo_n "checking size of short... " >&6; }
16527 if ${ac_cv_sizeof_short+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16532 else
16533 if test "$ac_cv_type_short" = yes; then
16534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16536 as_fn_error 77 "cannot compute sizeof (short)
16537 See \`config.log' for more details" "$LINENO" 5; }
16538 else
16539 ac_cv_sizeof_short=0
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16545 $as_echo "$ac_cv_sizeof_short" >&6; }
16549 cat >>confdefs.h <<_ACEOF
16550 #define SIZEOF_SHORT $ac_cv_sizeof_short
16551 _ACEOF
16554 # The cast to long int works around a bug in the HP C Compiler
16555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16557 # This bug is HP SR number 8606223364.
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16559 $as_echo_n "checking size of char... " >&6; }
16560 if ${ac_cv_sizeof_char+:} false; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16565 else
16566 if test "$ac_cv_type_char" = yes; then
16567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16569 as_fn_error 77 "cannot compute sizeof (char)
16570 See \`config.log' for more details" "$LINENO" 5; }
16571 else
16572 ac_cv_sizeof_char=0
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16578 $as_echo "$ac_cv_sizeof_char" >&6; }
16582 cat >>confdefs.h <<_ACEOF
16583 #define SIZEOF_CHAR $ac_cv_sizeof_char
16584 _ACEOF
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16589 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16590 case "$ac_cv_sizeof_char" in
16591 1) acx_cv_type_int8_t=char ;;
16592 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16593 esac
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16595 $as_echo "$acx_cv_type_int8_t" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16598 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16599 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16600 2:*) acx_cv_type_int16_t=int ;;
16601 *:2) acx_cv_type_int16_t=short ;;
16602 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16603 esac
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16605 $as_echo "$acx_cv_type_int16_t" >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16608 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16609 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16610 4:*) acx_cv_type_int32_t=int ;;
16611 *:4) acx_cv_type_int32_t=long ;;
16612 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16613 esac
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16615 $as_echo "$acx_cv_type_int32_t" >&6; }
16618 # These tests are here to make the output prettier
16620 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16621 case "$ac_cv_sizeof_long" in
16622 8) acx_cv_type_int64_t=long ;;
16623 esac
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16625 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16627 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16630 # Now we can use the above types
16632 if test "$ac_cv_type_uintptr_t" != yes; then
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16634 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16635 case $ac_cv_sizeof_void_p in
16636 2) acx_cv_type_intptr_t=int16_t ;;
16637 4) acx_cv_type_intptr_t=int32_t ;;
16638 8) acx_cv_type_intptr_t=int64_t ;;
16639 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16640 esac
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16642 $as_echo "$acx_cv_type_intptr_t" >&6; }
16645 # ----------------- done all checks, emit header -------------
16646 ac_config_commands="$ac_config_commands gstdint.h"
16651 for ac_header in sys/mman.h alloca.h
16652 do :
16653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16656 cat >>confdefs.h <<_ACEOF
16657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16662 done
16664 if test "$ac_cv_header_sys_mman_h" = "no"; then
16665 have_mmap=no
16666 else
16667 if test -n "${with_target_subdir}"; then
16668 # When built as a GCC target library, we can't do a link test. We
16669 # simply assume that if we have mman.h, we have mmap.
16670 have_mmap=yes
16671 else
16672 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16673 if test "x$ac_cv_func_mmap" = xyes; then :
16674 have_mmap=yes
16675 else
16676 have_mmap=no
16681 if test "$have_mmap" = "no"; then
16682 VIEW_FILE=read.lo
16683 ALLOC_FILE=alloc.lo
16684 else
16685 VIEW_FILE=mmapio.lo
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16689 #include <sys/mman.h>
16690 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16691 #error no MAP_ANONYMOUS
16692 #endif
16694 _ACEOF
16695 if ac_fn_c_try_cpp "$LINENO"; then :
16696 ALLOC_FILE=mmap.lo
16697 else
16698 ALLOC_FILE=alloc.lo
16700 rm -f conftest.err conftest.i conftest.$ac_ext
16705 BACKTRACE_USES_MALLOC=0
16706 if test "$ALLOC_FILE" = "alloc.lo"; then
16707 BACKTRACE_USES_MALLOC=1
16711 # Don't care about thread support
16712 BACKTRACE_SUPPORTS_THREADS=0
16715 # Check for dl_iterate_phdr.
16716 for ac_header in link.h
16717 do :
16718 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16719 if test "x$ac_cv_header_link_h" = xyes; then :
16720 cat >>confdefs.h <<_ACEOF
16721 #define HAVE_LINK_H 1
16722 _ACEOF
16726 done
16728 if test "$ac_cv_header_link_h" = "no"; then
16729 have_dl_iterate_phdr=no
16730 else
16731 # When built as a GCC target library, we can't do a link test.
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16734 #include <link.h>
16736 _ACEOF
16737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16738 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16739 have_dl_iterate_phdr=yes
16740 else
16741 have_dl_iterate_phdr=no
16743 rm -f conftest*
16746 if test "$have_dl_iterate_phdr" = "yes"; then
16748 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16752 # Check for the fcntl function.
16753 if test -n "${with_target_subdir}"; then
16754 case "${host}" in
16755 *-*-mingw*) have_fcntl=no ;;
16756 *) have_fcntl=yes ;;
16757 esac
16758 else
16759 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16760 if test "x$ac_cv_func_fcntl" = xyes; then :
16761 have_fcntl=yes
16762 else
16763 have_fcntl=no
16767 if test "$have_fcntl" = "yes"; then
16769 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16773 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16774 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16775 ac_have_decl=1
16776 else
16777 ac_have_decl=0
16780 cat >>confdefs.h <<_ACEOF
16781 #define HAVE_DECL_STRNLEN $ac_have_decl
16782 _ACEOF
16785 # Check for getexecname function.
16786 if test -n "${with_target_subdir}"; then
16787 case "${host}" in
16788 *-*-solaris2*) have_getexecname=yes ;;
16789 *) have_getexecname=no ;;
16790 esac
16791 else
16792 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16793 if test "x$ac_cv_func_getexecname" = xyes; then :
16794 have_getexecname=yes
16795 else
16796 have_getexecname=no
16800 if test "$have_getexecname" = "yes"; then
16802 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16806 # Check for rpc/xdr.h
16807 for ac_header in rpc/xdr.h
16808 do :
16809 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16810 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_RPC_XDR_H 1
16813 _ACEOF
16817 done
16819 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16820 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16821 else
16822 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16825 # Check for tirpc/rpc/xdr.h
16826 for ac_header in tirpc/rpc/xdr.h
16827 do :
16828 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16829 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
16830 cat >>confdefs.h <<_ACEOF
16831 #define HAVE_TIRPC_RPC_XDR_H 1
16832 _ACEOF
16836 done
16838 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16839 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16840 else
16841 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16844 RPC_DEFS=$rpc_defs
16847 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16848 LIBBACKTRACE_SUPPORTED_TRUE=
16849 LIBBACKTRACE_SUPPORTED_FALSE='#'
16850 else
16851 LIBBACKTRACE_SUPPORTED_TRUE='#'
16852 LIBBACKTRACE_SUPPORTED_FALSE=
16857 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16859 ac_config_headers="$ac_config_headers config.h"
16862 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16865 if test "x$TSAN_SUPPORTED" = "xyes"; then
16866 ac_config_files="$ac_config_files tsan/Makefile"
16870 if test "x$HWASAN_SUPPORTED" = "xyes"; then
16871 ac_config_files="$ac_config_files hwasan/Makefile"
16878 # Check whether --enable-werror was given.
16879 if test "${enable_werror+set}" = set; then :
16880 enableval=$enable_werror;
16884 ac_ext=c
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16890 WARN_FLAGS=
16891 save_CFLAGS="$CFLAGS"
16892 for real_option in -Wextra -Wall -Wwrite-strings \
16893 -Wmissing-format-attribute -Wcast-qual; do
16894 # Do the check with the no- prefix removed since gcc silently
16895 # accepts any -Wno-* option on purpose
16896 case $real_option in
16897 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
16898 *) option=$real_option ;;
16899 esac
16900 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
16903 $as_echo_n "checking whether $CC supports $option... " >&6; }
16904 if eval \${$as_acx_Woption+:} false; then :
16905 $as_echo_n "(cached) " >&6
16906 else
16907 CFLAGS="$option"
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16912 main ()
16916 return 0;
16918 _ACEOF
16919 if ac_fn_c_try_compile "$LINENO"; then :
16920 eval "$as_acx_Woption=yes"
16921 else
16922 eval "$as_acx_Woption=no"
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 eval ac_res=\$$as_acx_Woption
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16929 $as_echo "$ac_res" >&6; }
16930 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
16931 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
16933 done
16934 CFLAGS="$save_CFLAGS"
16935 ac_ext=c
16936 ac_cpp='$CPP $CPPFLAGS'
16937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16942 if test "x$enable_werror" != "xno"; then :
16943 WARN_FLAGS="$WARN_FLAGS -Werror"
16947 # Determine what GCC version number to use in filesystem paths.
16949 get_gcc_base_ver="cat"
16951 # Check whether --with-gcc-major-version-only was given.
16952 if test "${with_gcc_major_version_only+set}" = set; then :
16953 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16954 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16962 # Add CET specific flags if Intel CET is enabled.
16963 # Check whether --enable-cet was given.
16964 if test "${enable_cet+set}" = set; then :
16965 enableval=$enable_cet;
16966 case "$enableval" in
16967 yes|no|auto) ;;
16968 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16969 esac
16971 else
16972 enable_cet=auto
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16977 $as_echo_n "checking for CET support... " >&6; }
16979 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16980 case "$host" in
16981 i[34567]86-*-linux* | x86_64-*-linux*)
16982 case "$enable_cet" in
16983 auto)
16984 # Check if target supports multi-byte NOPs
16985 # and if compiler and assembler support CET insn.
16986 cet_save_CFLAGS="$CFLAGS"
16987 CFLAGS="$CFLAGS -fcf-protection"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16992 main ()
16995 #if !defined(__SSE2__)
16996 #error target does not support multi-byte NOPs
16997 #else
16998 asm ("setssbsy");
16999 #endif
17002 return 0;
17004 _ACEOF
17005 if ac_fn_c_try_compile "$LINENO"; then :
17006 enable_cet=yes
17007 else
17008 enable_cet=no
17010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011 CFLAGS="$cet_save_CFLAGS"
17013 yes)
17014 # Check if assembler supports CET.
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17019 main ()
17021 asm ("setssbsy");
17023 return 0;
17025 _ACEOF
17026 if ac_fn_c_try_compile "$LINENO"; then :
17028 else
17029 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 esac
17036 enable_cet=no
17038 esac
17039 if test x$enable_cet = xyes; then
17040 CET_FLAGS="-fcf-protection -mshstk"
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042 $as_echo "yes" >&6; }
17043 else
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17048 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
17049 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
17050 EXTRA_ASFLAGS=$CET_FLAGS
17055 cat >confcache <<\_ACEOF
17056 # This file is a shell script that caches the results of configure
17057 # tests run on this system so they can be shared between configure
17058 # scripts and configure runs, see configure's option --config-cache.
17059 # It is not useful on other systems. If it contains results you don't
17060 # want to keep, you may remove or edit it.
17062 # config.status only pays attention to the cache file if you give it
17063 # the --recheck option to rerun configure.
17065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17067 # following values.
17069 _ACEOF
17071 # The following way of writing the cache mishandles newlines in values,
17072 # but we know of no workaround that is simple, portable, and efficient.
17073 # So, we kill variables containing newlines.
17074 # Ultrix sh set writes to stderr and can't be redirected directly,
17075 # and sets the high bit in the cache file unless we assign to the vars.
17077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17078 eval ac_val=\$$ac_var
17079 case $ac_val in #(
17080 *${as_nl}*)
17081 case $ac_var in #(
17082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17084 esac
17085 case $ac_var in #(
17086 _ | IFS | as_nl) ;; #(
17087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17088 *) { eval $ac_var=; unset $ac_var;} ;;
17089 esac ;;
17090 esac
17091 done
17093 (set) 2>&1 |
17094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17095 *${as_nl}ac_space=\ *)
17096 # `set' does not quote correctly, so add quotes: double-quote
17097 # substitution turns \\\\ into \\, and sed turns \\ into \.
17098 sed -n \
17099 "s/'/'\\\\''/g;
17100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17101 ;; #(
17103 # `set' quotes correctly as required by POSIX, so do not add quotes.
17104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17106 esac |
17107 sort
17109 sed '
17110 /^ac_cv_env_/b end
17111 t clear
17112 :clear
17113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17114 t end
17115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17116 :end' >>confcache
17117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17118 if test -w "$cache_file"; then
17119 if test "x$cache_file" != "x/dev/null"; then
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17121 $as_echo "$as_me: updating cache $cache_file" >&6;}
17122 if test ! -f "$cache_file" || test -h "$cache_file"; then
17123 cat confcache >"$cache_file"
17124 else
17125 case $cache_file in #(
17126 */* | ?:*)
17127 mv -f confcache "$cache_file"$$ &&
17128 mv -f "$cache_file"$$ "$cache_file" ;; #(
17130 mv -f confcache "$cache_file" ;;
17131 esac
17134 else
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17136 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17139 rm -f confcache
17141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17142 # Let make expand exec_prefix.
17143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17145 DEFS=-DHAVE_CONFIG_H
17147 ac_libobjs=
17148 ac_ltlibobjs=
17150 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17151 # 1. Remove the extension, and $U if already installed.
17152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17153 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17155 # will be set to the directory where LIBOBJS objects are built.
17156 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17157 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17158 done
17159 LIBOBJS=$ac_libobjs
17161 LTLIBOBJS=$ac_ltlibobjs
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17165 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17166 if test -n "$am_sleep_pid"; then
17167 # Hide warnings about reused PIDs.
17168 wait $am_sleep_pid 2>/dev/null
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17171 $as_echo "done" >&6; }
17172 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17173 as_fn_error $? "conditional \"AMDEP\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17177 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17180 if test -n "$EXEEXT"; then
17181 am__EXEEXT_TRUE=
17182 am__EXEEXT_FALSE='#'
17183 else
17184 am__EXEEXT_TRUE='#'
17185 am__EXEEXT_FALSE=
17188 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17189 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17192 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17193 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17196 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17197 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17200 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
17201 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
17202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17204 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
17205 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
17206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17208 if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
17209 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
17210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17212 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
17213 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
17214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17216 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
17217 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
17218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17220 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
17221 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
17222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17225 : "${CONFIG_STATUS=./config.status}"
17226 ac_write_fail=0
17227 ac_clean_files_save=$ac_clean_files
17228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17230 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17231 as_write_fail=0
17232 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17233 #! $SHELL
17234 # Generated by $as_me.
17235 # Run this file to recreate the current configuration.
17236 # Compiler output produced by configure, useful for debugging
17237 # configure, is in config.log if it exists.
17239 debug=false
17240 ac_cs_recheck=false
17241 ac_cs_silent=false
17243 SHELL=\${CONFIG_SHELL-$SHELL}
17244 export SHELL
17245 _ASEOF
17246 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17247 ## -------------------- ##
17248 ## M4sh Initialization. ##
17249 ## -------------------- ##
17251 # Be more Bourne compatible
17252 DUALCASE=1; export DUALCASE # for MKS sh
17253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17254 emulate sh
17255 NULLCMD=:
17256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17257 # is contrary to our usage. Disable this feature.
17258 alias -g '${1+"$@"}'='"$@"'
17259 setopt NO_GLOB_SUBST
17260 else
17261 case `(set -o) 2>/dev/null` in #(
17262 *posix*) :
17263 set -o posix ;; #(
17264 *) :
17266 esac
17270 as_nl='
17272 export as_nl
17273 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17274 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17277 # Prefer a ksh shell builtin over an external printf program on Solaris,
17278 # but without wasting forks for bash or zsh.
17279 if test -z "$BASH_VERSION$ZSH_VERSION" \
17280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17281 as_echo='print -r --'
17282 as_echo_n='print -rn --'
17283 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17284 as_echo='printf %s\n'
17285 as_echo_n='printf %s'
17286 else
17287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17289 as_echo_n='/usr/ucb/echo -n'
17290 else
17291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17292 as_echo_n_body='eval
17293 arg=$1;
17294 case $arg in #(
17295 *"$as_nl"*)
17296 expr "X$arg" : "X\\(.*\\)$as_nl";
17297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17298 esac;
17299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17301 export as_echo_n_body
17302 as_echo_n='sh -c $as_echo_n_body as_echo'
17304 export as_echo_body
17305 as_echo='sh -c $as_echo_body as_echo'
17308 # The user is always right.
17309 if test "${PATH_SEPARATOR+set}" != set; then
17310 PATH_SEPARATOR=:
17311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17313 PATH_SEPARATOR=';'
17318 # IFS
17319 # We need space, tab and new line, in precisely that order. Quoting is
17320 # there to prevent editors from complaining about space-tab.
17321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17322 # splitting by setting IFS to empty value.)
17323 IFS=" "" $as_nl"
17325 # Find who we are. Look in the path if we contain no directory separator.
17326 as_myself=
17327 case $0 in #((
17328 *[\\/]* ) as_myself=$0 ;;
17329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17330 for as_dir in $PATH
17332 IFS=$as_save_IFS
17333 test -z "$as_dir" && as_dir=.
17334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17335 done
17336 IFS=$as_save_IFS
17339 esac
17340 # We did not find ourselves, most probably we were run as `sh COMMAND'
17341 # in which case we are not to be found in the path.
17342 if test "x$as_myself" = x; then
17343 as_myself=$0
17345 if test ! -f "$as_myself"; then
17346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17347 exit 1
17350 # Unset variables that we do not need and which cause bugs (e.g. in
17351 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17352 # suppresses any "Segmentation fault" message there. '((' could
17353 # trigger a bug in pdksh 5.2.14.
17354 for as_var in BASH_ENV ENV MAIL MAILPATH
17355 do eval test x\${$as_var+set} = xset \
17356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17357 done
17358 PS1='$ '
17359 PS2='> '
17360 PS4='+ '
17362 # NLS nuisances.
17363 LC_ALL=C
17364 export LC_ALL
17365 LANGUAGE=C
17366 export LANGUAGE
17368 # CDPATH.
17369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17372 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17373 # ----------------------------------------
17374 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17375 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17376 # script with STATUS, using 1 if that was 0.
17377 as_fn_error ()
17379 as_status=$1; test $as_status -eq 0 && as_status=1
17380 if test "$4"; then
17381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17384 $as_echo "$as_me: error: $2" >&2
17385 as_fn_exit $as_status
17386 } # as_fn_error
17389 # as_fn_set_status STATUS
17390 # -----------------------
17391 # Set $? to STATUS, without forking.
17392 as_fn_set_status ()
17394 return $1
17395 } # as_fn_set_status
17397 # as_fn_exit STATUS
17398 # -----------------
17399 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17400 as_fn_exit ()
17402 set +e
17403 as_fn_set_status $1
17404 exit $1
17405 } # as_fn_exit
17407 # as_fn_unset VAR
17408 # ---------------
17409 # Portably unset VAR.
17410 as_fn_unset ()
17412 { eval $1=; unset $1;}
17414 as_unset=as_fn_unset
17415 # as_fn_append VAR VALUE
17416 # ----------------------
17417 # Append the text in VALUE to the end of the definition contained in VAR. Take
17418 # advantage of any shell optimizations that allow amortized linear growth over
17419 # repeated appends, instead of the typical quadratic growth present in naive
17420 # implementations.
17421 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17422 eval 'as_fn_append ()
17424 eval $1+=\$2
17426 else
17427 as_fn_append ()
17429 eval $1=\$$1\$2
17431 fi # as_fn_append
17433 # as_fn_arith ARG...
17434 # ------------------
17435 # Perform arithmetic evaluation on the ARGs, and store the result in the
17436 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17437 # must be portable across $(()) and expr.
17438 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17439 eval 'as_fn_arith ()
17441 as_val=$(( $* ))
17443 else
17444 as_fn_arith ()
17446 as_val=`expr "$@" || test $? -eq 1`
17448 fi # as_fn_arith
17451 if expr a : '\(a\)' >/dev/null 2>&1 &&
17452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17453 as_expr=expr
17454 else
17455 as_expr=false
17458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17459 as_basename=basename
17460 else
17461 as_basename=false
17464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17465 as_dirname=dirname
17466 else
17467 as_dirname=false
17470 as_me=`$as_basename -- "$0" ||
17471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17472 X"$0" : 'X\(//\)$' \| \
17473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17474 $as_echo X/"$0" |
17475 sed '/^.*\/\([^/][^/]*\)\/*$/{
17476 s//\1/
17479 /^X\/\(\/\/\)$/{
17480 s//\1/
17483 /^X\/\(\/\).*/{
17484 s//\1/
17487 s/.*/./; q'`
17489 # Avoid depending upon Character Ranges.
17490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17493 as_cr_digits='0123456789'
17494 as_cr_alnum=$as_cr_Letters$as_cr_digits
17496 ECHO_C= ECHO_N= ECHO_T=
17497 case `echo -n x` in #(((((
17498 -n*)
17499 case `echo 'xy\c'` in
17500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17501 xy) ECHO_C='\c';;
17502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17503 ECHO_T=' ';;
17504 esac;;
17506 ECHO_N='-n';;
17507 esac
17509 rm -f conf$$ conf$$.exe conf$$.file
17510 if test -d conf$$.dir; then
17511 rm -f conf$$.dir/conf$$.file
17512 else
17513 rm -f conf$$.dir
17514 mkdir conf$$.dir 2>/dev/null
17516 if (echo >conf$$.file) 2>/dev/null; then
17517 if ln -s conf$$.file conf$$ 2>/dev/null; then
17518 as_ln_s='ln -s'
17519 # ... but there are two gotchas:
17520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17522 # In both cases, we have to default to `cp -pR'.
17523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17524 as_ln_s='cp -pR'
17525 elif ln conf$$.file conf$$ 2>/dev/null; then
17526 as_ln_s=ln
17527 else
17528 as_ln_s='cp -pR'
17530 else
17531 as_ln_s='cp -pR'
17533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17534 rmdir conf$$.dir 2>/dev/null
17537 # as_fn_mkdir_p
17538 # -------------
17539 # Create "$as_dir" as a directory, including parents if necessary.
17540 as_fn_mkdir_p ()
17543 case $as_dir in #(
17544 -*) as_dir=./$as_dir;;
17545 esac
17546 test -d "$as_dir" || eval $as_mkdir_p || {
17547 as_dirs=
17548 while :; do
17549 case $as_dir in #(
17550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17551 *) as_qdir=$as_dir;;
17552 esac
17553 as_dirs="'$as_qdir' $as_dirs"
17554 as_dir=`$as_dirname -- "$as_dir" ||
17555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17556 X"$as_dir" : 'X\(//\)[^/]' \| \
17557 X"$as_dir" : 'X\(//\)$' \| \
17558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17559 $as_echo X"$as_dir" |
17560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17561 s//\1/
17564 /^X\(\/\/\)[^/].*/{
17565 s//\1/
17568 /^X\(\/\/\)$/{
17569 s//\1/
17572 /^X\(\/\).*/{
17573 s//\1/
17576 s/.*/./; q'`
17577 test -d "$as_dir" && break
17578 done
17579 test -z "$as_dirs" || eval "mkdir $as_dirs"
17580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17583 } # as_fn_mkdir_p
17584 if mkdir -p . 2>/dev/null; then
17585 as_mkdir_p='mkdir -p "$as_dir"'
17586 else
17587 test -d ./-p && rmdir ./-p
17588 as_mkdir_p=false
17592 # as_fn_executable_p FILE
17593 # -----------------------
17594 # Test if FILE is an executable regular file.
17595 as_fn_executable_p ()
17597 test -f "$1" && test -x "$1"
17598 } # as_fn_executable_p
17599 as_test_x='test -x'
17600 as_executable_p=as_fn_executable_p
17602 # Sed expression to map a string onto a valid CPP name.
17603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17605 # Sed expression to map a string onto a valid variable name.
17606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17609 exec 6>&1
17610 ## ----------------------------------- ##
17611 ## Main body of $CONFIG_STATUS script. ##
17612 ## ----------------------------------- ##
17613 _ASEOF
17614 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17617 # Save the log message, to keep $0 and so on meaningful, and to
17618 # report actual input values of CONFIG_FILES etc. instead of their
17619 # values after options handling.
17620 ac_log="
17621 This file was extended by package-unused $as_me version-unused, which was
17622 generated by GNU Autoconf 2.69. Invocation command line was
17624 CONFIG_FILES = $CONFIG_FILES
17625 CONFIG_HEADERS = $CONFIG_HEADERS
17626 CONFIG_LINKS = $CONFIG_LINKS
17627 CONFIG_COMMANDS = $CONFIG_COMMANDS
17628 $ $0 $@
17630 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17633 _ACEOF
17635 case $ac_config_files in *"
17636 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17637 esac
17639 case $ac_config_headers in *"
17640 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17641 esac
17644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17645 # Files that config.status was made for.
17646 config_files="$ac_config_files"
17647 config_headers="$ac_config_headers"
17648 config_commands="$ac_config_commands"
17650 _ACEOF
17652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653 ac_cs_usage="\
17654 \`$as_me' instantiates files and other configuration actions
17655 from templates according to the current configuration. Unless the files
17656 and actions are specified as TAGs, all are instantiated by default.
17658 Usage: $0 [OPTION]... [TAG]...
17660 -h, --help print this help, then exit
17661 -V, --version print version number and configuration settings, then exit
17662 --config print configuration, then exit
17663 -q, --quiet, --silent
17664 do not print progress messages
17665 -d, --debug don't remove temporary files
17666 --recheck update $as_me by reconfiguring in the same conditions
17667 --file=FILE[:TEMPLATE]
17668 instantiate the configuration file FILE
17669 --header=FILE[:TEMPLATE]
17670 instantiate the configuration header FILE
17672 Configuration files:
17673 $config_files
17675 Configuration headers:
17676 $config_headers
17678 Configuration commands:
17679 $config_commands
17681 Report bugs to <libsanitizer>."
17683 _ACEOF
17684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17685 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17686 ac_cs_version="\\
17687 package-unused config.status version-unused
17688 configured by $0, generated by GNU Autoconf 2.69,
17689 with options \\"\$ac_cs_config\\"
17691 Copyright (C) 2012 Free Software Foundation, Inc.
17692 This config.status script is free software; the Free Software Foundation
17693 gives unlimited permission to copy, distribute and modify it."
17695 ac_pwd='$ac_pwd'
17696 srcdir='$srcdir'
17697 INSTALL='$INSTALL'
17698 MKDIR_P='$MKDIR_P'
17699 AWK='$AWK'
17700 test -n "\$AWK" || AWK=awk
17701 _ACEOF
17703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17704 # The default lists apply if the user does not specify any file.
17705 ac_need_defaults=:
17706 while test $# != 0
17708 case $1 in
17709 --*=?*)
17710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17712 ac_shift=:
17714 --*=)
17715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17716 ac_optarg=
17717 ac_shift=:
17720 ac_option=$1
17721 ac_optarg=$2
17722 ac_shift=shift
17724 esac
17726 case $ac_option in
17727 # Handling of the options.
17728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17729 ac_cs_recheck=: ;;
17730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17731 $as_echo "$ac_cs_version"; exit ;;
17732 --config | --confi | --conf | --con | --co | --c )
17733 $as_echo "$ac_cs_config"; exit ;;
17734 --debug | --debu | --deb | --de | --d | -d )
17735 debug=: ;;
17736 --file | --fil | --fi | --f )
17737 $ac_shift
17738 case $ac_optarg in
17739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17740 '') as_fn_error $? "missing file argument" ;;
17741 esac
17742 as_fn_append CONFIG_FILES " '$ac_optarg'"
17743 ac_need_defaults=false;;
17744 --header | --heade | --head | --hea )
17745 $ac_shift
17746 case $ac_optarg in
17747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17748 esac
17749 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17750 ac_need_defaults=false;;
17751 --he | --h)
17752 # Conflict between --help and --header
17753 as_fn_error $? "ambiguous option: \`$1'
17754 Try \`$0 --help' for more information.";;
17755 --help | --hel | -h )
17756 $as_echo "$ac_cs_usage"; exit ;;
17757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17759 ac_cs_silent=: ;;
17761 # This is an error.
17762 -*) as_fn_error $? "unrecognized option: \`$1'
17763 Try \`$0 --help' for more information." ;;
17765 *) as_fn_append ac_config_targets " $1"
17766 ac_need_defaults=false ;;
17768 esac
17769 shift
17770 done
17772 ac_configure_extra_args=
17774 if $ac_cs_silent; then
17775 exec 6>/dev/null
17776 ac_configure_extra_args="$ac_configure_extra_args --silent"
17779 _ACEOF
17780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17781 if \$ac_cs_recheck; then
17782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17783 shift
17784 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17785 CONFIG_SHELL='$SHELL'
17786 export CONFIG_SHELL
17787 exec "\$@"
17790 _ACEOF
17791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17792 exec 5>>config.log
17794 echo
17795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17796 ## Running $as_me. ##
17797 _ASBOX
17798 $as_echo "$ac_log"
17799 } >&5
17801 _ACEOF
17802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17804 # INIT-COMMANDS
17807 srcdir="$srcdir"
17808 host="$host"
17809 target="$target"
17810 with_multisubdir="$with_multisubdir"
17811 with_multisrctop="$with_multisrctop"
17812 with_target_subdir="$with_target_subdir"
17813 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17814 multi_basedir="$multi_basedir"
17815 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17816 CC="$CC"
17817 CXX="$CXX"
17818 GFORTRAN="$GFORTRAN"
17819 GDC="$GDC"
17820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17823 # The HP-UX ksh and POSIX shell print the target directory to stdout
17824 # if CDPATH is set.
17825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17827 sed_quote_subst='$sed_quote_subst'
17828 double_quote_subst='$double_quote_subst'
17829 delay_variable_subst='$delay_variable_subst'
17830 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17831 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17832 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17833 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17834 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17835 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17836 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17837 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17838 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17839 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17840 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17841 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17842 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17843 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17844 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17845 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17846 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17847 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17848 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17849 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17850 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17851 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17852 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17853 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17854 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17855 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17856 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17857 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17858 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17859 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17860 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17861 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17862 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17863 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17864 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17865 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17866 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17867 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17868 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17869 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17870 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17871 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17872 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17873 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17874 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17875 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17876 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17878 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"`'
17879 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17880 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17881 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17882 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17883 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17884 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17885 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17886 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17887 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17888 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17889 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17890 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17891 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17892 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17893 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17894 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17895 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17896 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17897 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17898 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17899 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17900 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17901 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17902 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17903 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17904 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17905 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17906 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17907 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17908 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17909 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17910 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17911 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17912 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17913 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17914 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17915 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17916 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17917 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17918 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17919 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17920 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17921 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17922 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17923 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17924 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17925 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17926 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17927 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17928 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17929 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17930 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17931 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17932 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17933 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17934 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17935 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17936 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17937 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17938 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17939 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17940 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17941 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17942 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17943 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17944 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17945 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17946 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17947 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17948 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17949 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17950 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17951 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17952 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17953 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17954 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17955 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17956 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17957 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17958 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17959 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17960 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17961 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17962 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17963 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17964 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17965 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17966 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17967 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17968 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17969 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17970 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17971 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17972 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17973 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17974 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17975 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17976 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17977 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17978 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17979 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17980 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17981 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17982 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17983 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17984 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17985 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17986 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17987 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17988 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17989 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17990 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17991 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17992 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17993 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17994 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17995 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17996 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17997 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17998 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17999 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18000 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18001 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18002 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18003 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18004 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18006 LTCC='$LTCC'
18007 LTCFLAGS='$LTCFLAGS'
18008 compiler='$compiler_DEFAULT'
18010 # A function that is used when there is no print builtin or printf.
18011 func_fallback_echo ()
18013 eval 'cat <<_LTECHO_EOF
18015 _LTECHO_EOF'
18018 # Quote evaled strings.
18019 for var in SHELL \
18020 ECHO \
18021 SED \
18022 GREP \
18023 EGREP \
18024 FGREP \
18025 LD \
18026 NM \
18027 LN_S \
18028 lt_SP2NL \
18029 lt_NL2SP \
18030 reload_flag \
18031 OBJDUMP \
18032 deplibs_check_method \
18033 file_magic_cmd \
18034 AR \
18035 AR_FLAGS \
18036 STRIP \
18037 RANLIB \
18038 CC \
18039 CFLAGS \
18040 compiler \
18041 lt_cv_sys_global_symbol_pipe \
18042 lt_cv_sys_global_symbol_to_cdecl \
18043 lt_cv_sys_global_symbol_to_c_name_address \
18044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18045 lt_prog_compiler_no_builtin_flag \
18046 lt_prog_compiler_wl \
18047 lt_prog_compiler_pic \
18048 lt_prog_compiler_static \
18049 lt_cv_prog_compiler_c_o \
18050 need_locks \
18051 DSYMUTIL \
18052 NMEDIT \
18053 LIPO \
18054 OTOOL \
18055 OTOOL64 \
18056 shrext_cmds \
18057 export_dynamic_flag_spec \
18058 whole_archive_flag_spec \
18059 compiler_needs_object \
18060 with_gnu_ld \
18061 allow_undefined_flag \
18062 no_undefined_flag \
18063 hardcode_libdir_flag_spec \
18064 hardcode_libdir_flag_spec_ld \
18065 hardcode_libdir_separator \
18066 fix_srcfile_path \
18067 exclude_expsyms \
18068 include_expsyms \
18069 file_list_spec \
18070 variables_saved_for_relink \
18071 libname_spec \
18072 library_names_spec \
18073 soname_spec \
18074 install_override_mode \
18075 finish_eval \
18076 old_striplib \
18077 striplib \
18078 compiler_lib_search_dirs \
18079 predep_objects \
18080 postdep_objects \
18081 predeps \
18082 postdeps \
18083 compiler_lib_search_path \
18084 LD_CXX \
18085 reload_flag_CXX \
18086 compiler_CXX \
18087 lt_prog_compiler_no_builtin_flag_CXX \
18088 lt_prog_compiler_wl_CXX \
18089 lt_prog_compiler_pic_CXX \
18090 lt_prog_compiler_static_CXX \
18091 lt_cv_prog_compiler_c_o_CXX \
18092 export_dynamic_flag_spec_CXX \
18093 whole_archive_flag_spec_CXX \
18094 compiler_needs_object_CXX \
18095 with_gnu_ld_CXX \
18096 allow_undefined_flag_CXX \
18097 no_undefined_flag_CXX \
18098 hardcode_libdir_flag_spec_CXX \
18099 hardcode_libdir_flag_spec_ld_CXX \
18100 hardcode_libdir_separator_CXX \
18101 fix_srcfile_path_CXX \
18102 exclude_expsyms_CXX \
18103 include_expsyms_CXX \
18104 file_list_spec_CXX \
18105 compiler_lib_search_dirs_CXX \
18106 predep_objects_CXX \
18107 postdep_objects_CXX \
18108 predeps_CXX \
18109 postdeps_CXX \
18110 compiler_lib_search_path_CXX; do
18111 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18112 *[\\\\\\\`\\"\\\$]*)
18113 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18116 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18118 esac
18119 done
18121 # Double-quote double-evaled strings.
18122 for var in reload_cmds \
18123 old_postinstall_cmds \
18124 old_postuninstall_cmds \
18125 old_archive_cmds \
18126 extract_expsyms_cmds \
18127 old_archive_from_new_cmds \
18128 old_archive_from_expsyms_cmds \
18129 archive_cmds \
18130 archive_expsym_cmds \
18131 module_cmds \
18132 module_expsym_cmds \
18133 export_symbols_cmds \
18134 prelink_cmds \
18135 postinstall_cmds \
18136 postuninstall_cmds \
18137 finish_cmds \
18138 sys_lib_search_path_spec \
18139 sys_lib_dlsearch_path_spec \
18140 reload_cmds_CXX \
18141 old_archive_cmds_CXX \
18142 old_archive_from_new_cmds_CXX \
18143 old_archive_from_expsyms_cmds_CXX \
18144 archive_cmds_CXX \
18145 archive_expsym_cmds_CXX \
18146 module_cmds_CXX \
18147 module_expsym_cmds_CXX \
18148 export_symbols_cmds_CXX \
18149 prelink_cmds_CXX; do
18150 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18151 *[\\\\\\\`\\"\\\$]*)
18152 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18155 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18157 esac
18158 done
18160 ac_aux_dir='$ac_aux_dir'
18161 xsi_shell='$xsi_shell'
18162 lt_shell_append='$lt_shell_append'
18164 # See if we are running on zsh, and set the options which allow our
18165 # commands through without removal of \ escapes INIT.
18166 if test -n "\${ZSH_VERSION+set}" ; then
18167 setopt NO_GLOB_SUBST
18171 PACKAGE='$PACKAGE'
18172 VERSION='$VERSION'
18173 TIMESTAMP='$TIMESTAMP'
18174 RM='$RM'
18175 ofile='$ofile'
18182 GCC="$GCC"
18183 CC="$CC"
18184 acx_cv_header_stdint="$acx_cv_header_stdint"
18185 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18186 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18187 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18188 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18189 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18190 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18191 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18192 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18193 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18194 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18195 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18196 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18197 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18200 _ACEOF
18202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 # Handling of arguments.
18205 for ac_config_target in $ac_config_targets
18207 case $ac_config_target in
18208 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18211 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18213 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
18214 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18216 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18217 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
18218 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
18219 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
18220 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
18221 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
18222 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
18223 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
18225 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18226 esac
18227 done
18230 # If the user did not use the arguments to specify the items to instantiate,
18231 # then the envvar interface is used. Set only those that are not.
18232 # We use the long form for the default assignment because of an extremely
18233 # bizarre bug on SunOS 4.1.3.
18234 if $ac_need_defaults; then
18235 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18236 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18237 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18240 # Have a temporary directory for convenience. Make it in the build tree
18241 # simply because there is no reason against having it here, and in addition,
18242 # creating and moving files from /tmp can sometimes cause problems.
18243 # Hook for its removal unless debugging.
18244 # Note that there is a small window in which the directory will not be cleaned:
18245 # after its creation but before its name has been assigned to `$tmp'.
18246 $debug ||
18248 tmp= ac_tmp=
18249 trap 'exit_status=$?
18250 : "${ac_tmp:=$tmp}"
18251 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18253 trap 'as_fn_exit 1' 1 2 13 15
18255 # Create a (secure) tmp directory for tmp files.
18258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18259 test -d "$tmp"
18260 } ||
18262 tmp=./conf$$-$RANDOM
18263 (umask 077 && mkdir "$tmp")
18264 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18265 ac_tmp=$tmp
18267 # Set up the scripts for CONFIG_FILES section.
18268 # No need to generate them if there are no CONFIG_FILES.
18269 # This happens for instance with `./config.status config.h'.
18270 if test -n "$CONFIG_FILES"; then
18273 ac_cr=`echo X | tr X '\015'`
18274 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18275 # But we know of no other shell where ac_cr would be empty at this
18276 # point, so we can use a bashism as a fallback.
18277 if test "x$ac_cr" = x; then
18278 eval ac_cr=\$\'\\r\'
18280 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18281 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18282 ac_cs_awk_cr='\\r'
18283 else
18284 ac_cs_awk_cr=$ac_cr
18287 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18288 _ACEOF
18292 echo "cat >conf$$subs.awk <<_ACEOF" &&
18293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18294 echo "_ACEOF"
18295 } >conf$$subs.sh ||
18296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18298 ac_delim='%!_!# '
18299 for ac_last_try in false false false false false :; do
18300 . ./conf$$subs.sh ||
18301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18304 if test $ac_delim_n = $ac_delim_num; then
18305 break
18306 elif $ac_last_try; then
18307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18308 else
18309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18311 done
18312 rm -f conf$$subs.sh
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18316 _ACEOF
18317 sed -n '
18319 s/^/S["/; s/!.*/"]=/
18322 s/^[^!]*!//
18323 :repl
18324 t repl
18325 s/'"$ac_delim"'$//
18326 t delim
18329 s/\(.\{148\}\)..*/\1/
18330 t more1
18331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18334 b repl
18335 :more1
18336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18339 s/.\{148\}//
18340 t nl
18341 :delim
18343 s/\(.\{148\}\)..*/\1/
18344 t more2
18345 s/["\\]/\\&/g; s/^/"/; s/$/"/
18348 :more2
18349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18352 s/.\{148\}//
18353 t delim
18354 ' <conf$$subs.awk | sed '
18355 /^[^""]/{
18357 s/\n//
18359 ' >>$CONFIG_STATUS || ac_write_fail=1
18360 rm -f conf$$subs.awk
18361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18362 _ACAWK
18363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18364 for (key in S) S_is_set[key] = 1
18365 FS = "\a"
18369 line = $ 0
18370 nfields = split(line, field, "@")
18371 substed = 0
18372 len = length(field[1])
18373 for (i = 2; i < nfields; i++) {
18374 key = field[i]
18375 keylen = length(key)
18376 if (S_is_set[key]) {
18377 value = S[key]
18378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18379 len += length(value) + length(field[++i])
18380 substed = 1
18381 } else
18382 len += 1 + keylen
18385 print line
18388 _ACAWK
18389 _ACEOF
18390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18391 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18392 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18393 else
18395 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18396 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18397 _ACEOF
18399 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18400 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18401 # trailing colons and then remove the whole line if VPATH becomes empty
18402 # (actually we leave an empty line to preserve line numbers).
18403 if test "x$srcdir" = x.; then
18404 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18406 s///
18407 s/^/:/
18408 s/[ ]*$/:/
18409 s/:\$(srcdir):/:/g
18410 s/:\${srcdir}:/:/g
18411 s/:@srcdir@:/:/g
18412 s/^:*//
18413 s/:*$//
18415 s/\(=[ ]*\).*/\1/
18417 s/\n//
18418 s/^[^=]*=[ ]*$//
18422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18423 fi # test -n "$CONFIG_FILES"
18425 # Set up the scripts for CONFIG_HEADERS section.
18426 # No need to generate them if there are no CONFIG_HEADERS.
18427 # This happens for instance with `./config.status Makefile'.
18428 if test -n "$CONFIG_HEADERS"; then
18429 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18430 BEGIN {
18431 _ACEOF
18433 # Transform confdefs.h into an awk script `defines.awk', embedded as
18434 # here-document in config.status, that substitutes the proper values into
18435 # config.h.in to produce config.h.
18437 # Create a delimiter string that does not exist in confdefs.h, to ease
18438 # handling of long lines.
18439 ac_delim='%!_!# '
18440 for ac_last_try in false false :; do
18441 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18442 if test -z "$ac_tt"; then
18443 break
18444 elif $ac_last_try; then
18445 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18446 else
18447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18449 done
18451 # For the awk script, D is an array of macro values keyed by name,
18452 # likewise P contains macro parameters if any. Preserve backslash
18453 # newline sequences.
18455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18456 sed -n '
18457 s/.\{148\}/&'"$ac_delim"'/g
18458 t rset
18459 :rset
18460 s/^[ ]*#[ ]*define[ ][ ]*/ /
18461 t def
18463 :def
18464 s/\\$//
18465 t bsnl
18466 s/["\\]/\\&/g
18467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18468 D["\1"]=" \3"/p
18469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18471 :bsnl
18472 s/["\\]/\\&/g
18473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18474 D["\1"]=" \3\\\\\\n"\\/p
18475 t cont
18476 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18477 t cont
18479 :cont
18481 s/.\{148\}/&'"$ac_delim"'/g
18482 t clear
18483 :clear
18484 s/\\$//
18485 t bsnlc
18486 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18488 :bsnlc
18489 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18490 b cont
18491 ' <confdefs.h | sed '
18492 s/'"$ac_delim"'/"\\\
18493 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18496 for (key in D) D_is_set[key] = 1
18497 FS = "\a"
18499 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18500 line = \$ 0
18501 split(line, arg, " ")
18502 if (arg[1] == "#") {
18503 defundef = arg[2]
18504 mac1 = arg[3]
18505 } else {
18506 defundef = substr(arg[1], 2)
18507 mac1 = arg[2]
18509 split(mac1, mac2, "(") #)
18510 macro = mac2[1]
18511 prefix = substr(line, 1, index(line, defundef) - 1)
18512 if (D_is_set[macro]) {
18513 # Preserve the white space surrounding the "#".
18514 print prefix "define", macro P[macro] D[macro]
18515 next
18516 } else {
18517 # Replace #undef with comments. This is necessary, for example,
18518 # in the case of _POSIX_SOURCE, which is predefined and required
18519 # on some systems where configure will not decide to define it.
18520 if (defundef == "undef") {
18521 print "/*", prefix defundef, macro, "*/"
18522 next
18526 { print }
18527 _ACAWK
18528 _ACEOF
18529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18530 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18531 fi # test -n "$CONFIG_HEADERS"
18534 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18535 shift
18536 for ac_tag
18538 case $ac_tag in
18539 :[FHLC]) ac_mode=$ac_tag; continue;;
18540 esac
18541 case $ac_mode$ac_tag in
18542 :[FHL]*:*);;
18543 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18544 :[FH]-) ac_tag=-:-;;
18545 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18546 esac
18547 ac_save_IFS=$IFS
18548 IFS=:
18549 set x $ac_tag
18550 IFS=$ac_save_IFS
18551 shift
18552 ac_file=$1
18553 shift
18555 case $ac_mode in
18556 :L) ac_source=$1;;
18557 :[FH])
18558 ac_file_inputs=
18559 for ac_f
18561 case $ac_f in
18562 -) ac_f="$ac_tmp/stdin";;
18563 *) # Look for the file first in the build tree, then in the source tree
18564 # (if the path is not absolute). The absolute path cannot be DOS-style,
18565 # because $ac_f cannot contain `:'.
18566 test -f "$ac_f" ||
18567 case $ac_f in
18568 [\\/$]*) false;;
18569 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18570 esac ||
18571 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18572 esac
18573 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18574 as_fn_append ac_file_inputs " '$ac_f'"
18575 done
18577 # Let's still pretend it is `configure' which instantiates (i.e., don't
18578 # use $as_me), people would be surprised to read:
18579 # /* config.h. Generated by config.status. */
18580 configure_input='Generated from '`
18581 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18582 `' by configure.'
18583 if test x"$ac_file" != x-; then
18584 configure_input="$ac_file. $configure_input"
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18586 $as_echo "$as_me: creating $ac_file" >&6;}
18588 # Neutralize special characters interpreted by sed in replacement strings.
18589 case $configure_input in #(
18590 *\&* | *\|* | *\\* )
18591 ac_sed_conf_input=`$as_echo "$configure_input" |
18592 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18593 *) ac_sed_conf_input=$configure_input;;
18594 esac
18596 case $ac_tag in
18597 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18599 esac
18601 esac
18603 ac_dir=`$as_dirname -- "$ac_file" ||
18604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605 X"$ac_file" : 'X\(//\)[^/]' \| \
18606 X"$ac_file" : 'X\(//\)$' \| \
18607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18608 $as_echo X"$ac_file" |
18609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18610 s//\1/
18613 /^X\(\/\/\)[^/].*/{
18614 s//\1/
18617 /^X\(\/\/\)$/{
18618 s//\1/
18621 /^X\(\/\).*/{
18622 s//\1/
18625 s/.*/./; q'`
18626 as_dir="$ac_dir"; as_fn_mkdir_p
18627 ac_builddir=.
18629 case "$ac_dir" in
18630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18633 # A ".." for each directory in $ac_dir_suffix.
18634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18635 case $ac_top_builddir_sub in
18636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18638 esac ;;
18639 esac
18640 ac_abs_top_builddir=$ac_pwd
18641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18642 # for backward compatibility:
18643 ac_top_builddir=$ac_top_build_prefix
18645 case $srcdir in
18646 .) # We are building in place.
18647 ac_srcdir=.
18648 ac_top_srcdir=$ac_top_builddir_sub
18649 ac_abs_top_srcdir=$ac_pwd ;;
18650 [\\/]* | ?:[\\/]* ) # Absolute name.
18651 ac_srcdir=$srcdir$ac_dir_suffix;
18652 ac_top_srcdir=$srcdir
18653 ac_abs_top_srcdir=$srcdir ;;
18654 *) # Relative name.
18655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18656 ac_top_srcdir=$ac_top_build_prefix$srcdir
18657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18658 esac
18659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18662 case $ac_mode in
18665 # CONFIG_FILE
18668 case $INSTALL in
18669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18670 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18671 esac
18672 ac_MKDIR_P=$MKDIR_P
18673 case $MKDIR_P in
18674 [\\/$]* | ?:[\\/]* ) ;;
18675 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18676 esac
18677 _ACEOF
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 # If the template does not know about datarootdir, expand it.
18681 # FIXME: This hack should be removed a few years after 2.60.
18682 ac_datarootdir_hack=; ac_datarootdir_seen=
18683 ac_sed_dataroot='
18684 /datarootdir/ {
18688 /@datadir@/p
18689 /@docdir@/p
18690 /@infodir@/p
18691 /@localedir@/p
18692 /@mandir@/p'
18693 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18694 *datarootdir*) ac_datarootdir_seen=yes;;
18695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18697 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18698 _ACEOF
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700 ac_datarootdir_hack='
18701 s&@datadir@&$datadir&g
18702 s&@docdir@&$docdir&g
18703 s&@infodir@&$infodir&g
18704 s&@localedir@&$localedir&g
18705 s&@mandir@&$mandir&g
18706 s&\\\${datarootdir}&$datarootdir&g' ;;
18707 esac
18708 _ACEOF
18710 # Neutralize VPATH when `$srcdir' = `.'.
18711 # Shell code in configure.ac might set extrasub.
18712 # FIXME: do we really want to maintain this feature?
18713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18714 ac_sed_extra="$ac_vpsub
18715 $extrasub
18716 _ACEOF
18717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18720 s|@configure_input@|$ac_sed_conf_input|;t t
18721 s&@top_builddir@&$ac_top_builddir_sub&;t t
18722 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18723 s&@srcdir@&$ac_srcdir&;t t
18724 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18725 s&@top_srcdir@&$ac_top_srcdir&;t t
18726 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18727 s&@builddir@&$ac_builddir&;t t
18728 s&@abs_builddir@&$ac_abs_builddir&;t t
18729 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18730 s&@INSTALL@&$ac_INSTALL&;t t
18731 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18732 $ac_datarootdir_hack
18734 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18735 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18738 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18740 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18742 which seems to be undefined. Please make sure it is defined" >&5
18743 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18744 which seems to be undefined. Please make sure it is defined" >&2;}
18746 rm -f "$ac_tmp/stdin"
18747 case $ac_file in
18748 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18749 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18750 esac \
18751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18755 # CONFIG_HEADER
18757 if test x"$ac_file" != x-; then
18759 $as_echo "/* $configure_input */" \
18760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18761 } >"$ac_tmp/config.h" \
18762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18763 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18765 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18766 else
18767 rm -f "$ac_file"
18768 mv "$ac_tmp/config.h" "$ac_file" \
18769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18771 else
18772 $as_echo "/* $configure_input */" \
18773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18774 || as_fn_error $? "could not create -" "$LINENO" 5
18776 # Compute "$ac_file"'s index in $config_headers.
18777 _am_arg="$ac_file"
18778 _am_stamp_count=1
18779 for _am_header in $config_headers :; do
18780 case $_am_header in
18781 $_am_arg | $_am_arg:* )
18782 break ;;
18784 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18785 esac
18786 done
18787 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18788 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18789 X"$_am_arg" : 'X\(//\)[^/]' \| \
18790 X"$_am_arg" : 'X\(//\)$' \| \
18791 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18792 $as_echo X"$_am_arg" |
18793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18794 s//\1/
18797 /^X\(\/\/\)[^/].*/{
18798 s//\1/
18801 /^X\(\/\/\)$/{
18802 s//\1/
18805 /^X\(\/\).*/{
18806 s//\1/
18809 s/.*/./; q'`/stamp-h$_am_stamp_count
18812 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18813 $as_echo "$as_me: executing $ac_file commands" >&6;}
18815 esac
18818 case $ac_file$ac_mode in
18819 "default-1":C)
18820 # Only add multilib support code if we just rebuilt the top-level
18821 # Makefile.
18822 case " $CONFIG_FILES " in
18823 *" Makefile "*)
18824 ac_file=Makefile . ${multi_basedir}/config-ml.in
18826 esac ;;
18827 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18828 # Older Autoconf quotes --file arguments for eval, but not when files
18829 # are listed without --file. Let's play safe and only enable the eval
18830 # if we detect the quoting.
18831 case $CONFIG_FILES in
18832 *\'*) eval set x "$CONFIG_FILES" ;;
18833 *) set x $CONFIG_FILES ;;
18834 esac
18835 shift
18836 for mf
18838 # Strip MF so we end up with the name of the file.
18839 mf=`echo "$mf" | sed -e 's/:.*$//'`
18840 # Check whether this is an Automake generated Makefile or not.
18841 # We used to match only the files named 'Makefile.in', but
18842 # some people rename them; so instead we look at the file content.
18843 # Grep'ing the first line is not enough: some people post-process
18844 # each Makefile.in and add a new line on top of each file to say so.
18845 # Grep'ing the whole file is not good either: AIX grep has a line
18846 # limit of 2048, but all sed's we know have understand at least 4000.
18847 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18848 dirpart=`$as_dirname -- "$mf" ||
18849 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18850 X"$mf" : 'X\(//\)[^/]' \| \
18851 X"$mf" : 'X\(//\)$' \| \
18852 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18853 $as_echo X"$mf" |
18854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18855 s//\1/
18858 /^X\(\/\/\)[^/].*/{
18859 s//\1/
18862 /^X\(\/\/\)$/{
18863 s//\1/
18866 /^X\(\/\).*/{
18867 s//\1/
18870 s/.*/./; q'`
18871 else
18872 continue
18874 # Extract the definition of DEPDIR, am__include, and am__quote
18875 # from the Makefile without running 'make'.
18876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18877 test -z "$DEPDIR" && continue
18878 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18879 test -z "$am__include" && continue
18880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18881 # Find all dependency output files, they are included files with
18882 # $(DEPDIR) in their names. We invoke sed twice because it is the
18883 # simplest approach to changing $(DEPDIR) to its actual value in the
18884 # expansion.
18885 for file in `sed -n "
18886 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18887 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18888 # Make sure the directory exists.
18889 test -f "$dirpart/$file" && continue
18890 fdir=`$as_dirname -- "$file" ||
18891 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18892 X"$file" : 'X\(//\)[^/]' \| \
18893 X"$file" : 'X\(//\)$' \| \
18894 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18895 $as_echo X"$file" |
18896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18897 s//\1/
18900 /^X\(\/\/\)[^/].*/{
18901 s//\1/
18904 /^X\(\/\/\)$/{
18905 s//\1/
18908 /^X\(\/\).*/{
18909 s//\1/
18912 s/.*/./; q'`
18913 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18914 # echo "creating $dirpart/$file"
18915 echo '# dummy' > "$dirpart/$file"
18916 done
18917 done
18920 "libtool":C)
18922 # See if we are running on zsh, and set the options which allow our
18923 # commands through without removal of \ escapes.
18924 if test -n "${ZSH_VERSION+set}" ; then
18925 setopt NO_GLOB_SUBST
18928 cfgfile="${ofile}T"
18929 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18930 $RM "$cfgfile"
18932 cat <<_LT_EOF >> "$cfgfile"
18933 #! $SHELL
18935 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18936 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18941 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18942 # Written by Gordon Matzigkeit, 1996
18944 # This file is part of GNU Libtool.
18946 # GNU Libtool is free software; you can redistribute it and/or
18947 # modify it under the terms of the GNU General Public License as
18948 # published by the Free Software Foundation; either version 2 of
18949 # the License, or (at your option) any later version.
18951 # As a special exception to the GNU General Public License,
18952 # if you distribute this file as part of a program or library that
18953 # is built using GNU Libtool, you may include this file under the
18954 # same distribution terms that you use for the rest of that program.
18956 # GNU Libtool is distributed in the hope that it will be useful,
18957 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18959 # GNU General Public License for more details.
18961 # You should have received a copy of the GNU General Public License
18962 # along with GNU Libtool; see the file COPYING. If not, a copy
18963 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18964 # obtained by writing to the Free Software Foundation, Inc.,
18965 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18968 # The names of the tagged configurations supported by this script.
18969 available_tags="CXX "
18971 # ### BEGIN LIBTOOL CONFIG
18973 # Which release of libtool.m4 was used?
18974 macro_version=$macro_version
18975 macro_revision=$macro_revision
18977 # Whether or not to build shared libraries.
18978 build_libtool_libs=$enable_shared
18980 # Whether or not to build static libraries.
18981 build_old_libs=$enable_static
18983 # What type of objects to build.
18984 pic_mode=$pic_mode
18986 # Whether or not to optimize for fast installation.
18987 fast_install=$enable_fast_install
18989 # Shell to use when invoking shell scripts.
18990 SHELL=$lt_SHELL
18992 # An echo program that protects backslashes.
18993 ECHO=$lt_ECHO
18995 # The host system.
18996 host_alias=$host_alias
18997 host=$host
18998 host_os=$host_os
19000 # The build system.
19001 build_alias=$build_alias
19002 build=$build
19003 build_os=$build_os
19005 # A sed program that does not truncate output.
19006 SED=$lt_SED
19008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19009 Xsed="\$SED -e 1s/^X//"
19011 # A grep program that handles long lines.
19012 GREP=$lt_GREP
19014 # An ERE matcher.
19015 EGREP=$lt_EGREP
19017 # A literal string matcher.
19018 FGREP=$lt_FGREP
19020 # A BSD- or MS-compatible name lister.
19021 NM=$lt_NM
19023 # Whether we need soft or hard links.
19024 LN_S=$lt_LN_S
19026 # What is the maximum length of a command?
19027 max_cmd_len=$max_cmd_len
19029 # Object file suffix (normally "o").
19030 objext=$ac_objext
19032 # Executable file suffix (normally "").
19033 exeext=$exeext
19035 # whether the shell understands "unset".
19036 lt_unset=$lt_unset
19038 # turn spaces into newlines.
19039 SP2NL=$lt_lt_SP2NL
19041 # turn newlines into spaces.
19042 NL2SP=$lt_lt_NL2SP
19044 # An object symbol dumper.
19045 OBJDUMP=$lt_OBJDUMP
19047 # Method to check whether dependent libraries are shared objects.
19048 deplibs_check_method=$lt_deplibs_check_method
19050 # Command to use when deplibs_check_method == "file_magic".
19051 file_magic_cmd=$lt_file_magic_cmd
19053 # The archiver.
19054 AR=$lt_AR
19055 AR_FLAGS=$lt_AR_FLAGS
19057 # A symbol stripping program.
19058 STRIP=$lt_STRIP
19060 # Commands used to install an old-style archive.
19061 RANLIB=$lt_RANLIB
19062 old_postinstall_cmds=$lt_old_postinstall_cmds
19063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19065 # Whether to use a lock for old archive extraction.
19066 lock_old_archive_extraction=$lock_old_archive_extraction
19068 # A C compiler.
19069 LTCC=$lt_CC
19071 # LTCC compiler flags.
19072 LTCFLAGS=$lt_CFLAGS
19074 # Take the output of nm and produce a listing of raw symbols and C names.
19075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19077 # Transform the output of nm in a proper C declaration.
19078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19080 # Transform the output of nm in a C name address pair.
19081 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19083 # Transform the output of nm in a C name address pair when lib prefix is needed.
19084 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19086 # The name of the directory that contains temporary libtool files.
19087 objdir=$objdir
19089 # Used to examine libraries when file_magic_cmd begins with "file".
19090 MAGIC_CMD=$MAGIC_CMD
19092 # Must we lock files when doing compilation?
19093 need_locks=$lt_need_locks
19095 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19096 DSYMUTIL=$lt_DSYMUTIL
19098 # Tool to change global to local symbols on Mac OS X.
19099 NMEDIT=$lt_NMEDIT
19101 # Tool to manipulate fat objects and archives on Mac OS X.
19102 LIPO=$lt_LIPO
19104 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19105 OTOOL=$lt_OTOOL
19107 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19108 OTOOL64=$lt_OTOOL64
19110 # Old archive suffix (normally "a").
19111 libext=$libext
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds=$lt_shrext_cmds
19116 # The commands to extract the exported symbol list from a shared archive.
19117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19119 # Variables whose values should be saved in libtool wrapper scripts and
19120 # restored at link time.
19121 variables_saved_for_relink=$lt_variables_saved_for_relink
19123 # Do we need the "lib" prefix for modules?
19124 need_lib_prefix=$need_lib_prefix
19126 # Do we need a version for libraries?
19127 need_version=$need_version
19129 # Library versioning type.
19130 version_type=$version_type
19132 # Shared library runtime path variable.
19133 runpath_var=$runpath_var
19135 # Shared library path variable.
19136 shlibpath_var=$shlibpath_var
19138 # Is shlibpath searched before the hard-coded library search path?
19139 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19141 # Format of library name prefix.
19142 libname_spec=$lt_libname_spec
19144 # List of archive names. First name is the real one, the rest are links.
19145 # The last name is the one that the linker finds with -lNAME
19146 library_names_spec=$lt_library_names_spec
19148 # The coded name of the library, if different from the real name.
19149 soname_spec=$lt_soname_spec
19151 # Permission mode override for installation of shared libraries.
19152 install_override_mode=$lt_install_override_mode
19154 # Command to use after installation of a shared archive.
19155 postinstall_cmds=$lt_postinstall_cmds
19157 # Command to use after uninstallation of a shared archive.
19158 postuninstall_cmds=$lt_postuninstall_cmds
19160 # Commands used to finish a libtool library installation in a directory.
19161 finish_cmds=$lt_finish_cmds
19163 # As "finish_cmds", except a single script fragment to be evaled but
19164 # not shown.
19165 finish_eval=$lt_finish_eval
19167 # Whether we should hardcode library paths into libraries.
19168 hardcode_into_libs=$hardcode_into_libs
19170 # Compile-time system search path for libraries.
19171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19173 # Run-time system search path for libraries.
19174 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19176 # Whether dlopen is supported.
19177 dlopen_support=$enable_dlopen
19179 # Whether dlopen of programs is supported.
19180 dlopen_self=$enable_dlopen_self
19182 # Whether dlopen of statically linked programs is supported.
19183 dlopen_self_static=$enable_dlopen_self_static
19185 # Commands to strip libraries.
19186 old_striplib=$lt_old_striplib
19187 striplib=$lt_striplib
19190 # The linker used to build libraries.
19191 LD=$lt_LD
19193 # How to create reloadable object files.
19194 reload_flag=$lt_reload_flag
19195 reload_cmds=$lt_reload_cmds
19197 # Commands used to build an old-style archive.
19198 old_archive_cmds=$lt_old_archive_cmds
19200 # A language specific compiler.
19201 CC=$lt_compiler
19203 # Is the compiler the GNU compiler?
19204 with_gcc=$GCC
19206 # Compiler flag to turn off builtin functions.
19207 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl
19212 # Additional compiler flags for building library objects.
19213 pic_flag=$lt_lt_prog_compiler_pic
19215 # Compiler flag to prevent dynamic linking.
19216 link_static_flag=$lt_lt_prog_compiler_static
19218 # Does compiler simultaneously support -c and -o options?
19219 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19221 # Whether or not to add -lc for building shared libraries.
19222 build_libtool_need_lc=$archive_cmds_need_lc
19224 # Whether or not to disallow shared libs when runtime libs are static.
19225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19227 # Compiler flag to allow reflexive dlopens.
19228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19230 # Compiler flag to generate shared objects directly from archives.
19231 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19233 # Whether the compiler copes with passing no objects directly.
19234 compiler_needs_object=$lt_compiler_needs_object
19236 # Create an old-style archive from a shared archive.
19237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19239 # Create a temporary old-style archive to link instead of a shared archive.
19240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19242 # Commands used to build a shared archive.
19243 archive_cmds=$lt_archive_cmds
19244 archive_expsym_cmds=$lt_archive_expsym_cmds
19246 # Commands used to build a loadable module if different from building
19247 # a shared archive.
19248 module_cmds=$lt_module_cmds
19249 module_expsym_cmds=$lt_module_expsym_cmds
19251 # Whether we are building with GNU ld or not.
19252 with_gnu_ld=$lt_with_gnu_ld
19254 # Flag that allows shared libraries with undefined symbols to be built.
19255 allow_undefined_flag=$lt_allow_undefined_flag
19257 # Flag that enforces no undefined symbols.
19258 no_undefined_flag=$lt_no_undefined_flag
19260 # Flag to hardcode \$libdir into a binary during linking.
19261 # This must work even if \$libdir does not exist
19262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19264 # If ld is used when linking, flag to hardcode \$libdir into a binary
19265 # during linking. This must work even if \$libdir does not exist.
19266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19268 # Whether we need a single "-rpath" flag with a separated argument.
19269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19271 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19272 # DIR into the resulting binary.
19273 hardcode_direct=$hardcode_direct
19275 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19276 # DIR into the resulting binary and the resulting library dependency is
19277 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19278 # library is relocated.
19279 hardcode_direct_absolute=$hardcode_direct_absolute
19281 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19282 # into the resulting binary.
19283 hardcode_minus_L=$hardcode_minus_L
19285 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19286 # into the resulting binary.
19287 hardcode_shlibpath_var=$hardcode_shlibpath_var
19289 # Set to "yes" if building a shared library automatically hardcodes DIR
19290 # into the library and all subsequent libraries and executables linked
19291 # against it.
19292 hardcode_automatic=$hardcode_automatic
19294 # Set to yes if linker adds runtime paths of dependent libraries
19295 # to runtime path list.
19296 inherit_rpath=$inherit_rpath
19298 # Whether libtool must link a program against all its dependency libraries.
19299 link_all_deplibs=$link_all_deplibs
19301 # Fix the shell variable \$srcfile for the compiler.
19302 fix_srcfile_path=$lt_fix_srcfile_path
19304 # Set to "yes" if exported symbols are required.
19305 always_export_symbols=$always_export_symbols
19307 # The commands to list exported symbols.
19308 export_symbols_cmds=$lt_export_symbols_cmds
19310 # Symbols that should not be listed in the preloaded symbols.
19311 exclude_expsyms=$lt_exclude_expsyms
19313 # Symbols that must always be exported.
19314 include_expsyms=$lt_include_expsyms
19316 # Commands necessary for linking programs (against libraries) with templates.
19317 prelink_cmds=$lt_prelink_cmds
19319 # Specify filename containing input files.
19320 file_list_spec=$lt_file_list_spec
19322 # How to hardcode a shared library path into an executable.
19323 hardcode_action=$hardcode_action
19325 # The directories searched by this compiler when creating a shared library.
19326 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19328 # Dependencies to place before and after the objects being linked to
19329 # create a shared library.
19330 predep_objects=$lt_predep_objects
19331 postdep_objects=$lt_postdep_objects
19332 predeps=$lt_predeps
19333 postdeps=$lt_postdeps
19335 # The library search path used internally by the compiler when linking
19336 # a shared library.
19337 compiler_lib_search_path=$lt_compiler_lib_search_path
19339 # ### END LIBTOOL CONFIG
19341 _LT_EOF
19343 case $host_os in
19344 aix3*)
19345 cat <<\_LT_EOF >> "$cfgfile"
19346 # AIX sometimes has problems with the GCC collect2 program. For some
19347 # reason, if we set the COLLECT_NAMES environment variable, the problems
19348 # vanish in a puff of smoke.
19349 if test "X${COLLECT_NAMES+set}" != Xset; then
19350 COLLECT_NAMES=
19351 export COLLECT_NAMES
19353 _LT_EOF
19355 esac
19358 ltmain="$ac_aux_dir/ltmain.sh"
19361 # We use sed instead of cat because bash on DJGPP gets confused if
19362 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19363 # text mode, it properly converts lines to CR/LF. This bash problem
19364 # is reportedly fixed, but why not run on old versions too?
19365 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19366 || (rm -f "$cfgfile"; exit 1)
19368 case $xsi_shell in
19369 yes)
19370 cat << \_LT_EOF >> "$cfgfile"
19372 # func_dirname file append nondir_replacement
19373 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19374 # otherwise set result to NONDIR_REPLACEMENT.
19375 func_dirname ()
19377 case ${1} in
19378 */*) func_dirname_result="${1%/*}${2}" ;;
19379 * ) func_dirname_result="${3}" ;;
19380 esac
19383 # func_basename file
19384 func_basename ()
19386 func_basename_result="${1##*/}"
19389 # func_dirname_and_basename file append nondir_replacement
19390 # perform func_basename and func_dirname in a single function
19391 # call:
19392 # dirname: Compute the dirname of FILE. If nonempty,
19393 # add APPEND to the result, otherwise set result
19394 # to NONDIR_REPLACEMENT.
19395 # value returned in "$func_dirname_result"
19396 # basename: Compute filename of FILE.
19397 # value retuned in "$func_basename_result"
19398 # Implementation must be kept synchronized with func_dirname
19399 # and func_basename. For efficiency, we do not delegate to
19400 # those functions but instead duplicate the functionality here.
19401 func_dirname_and_basename ()
19403 case ${1} in
19404 */*) func_dirname_result="${1%/*}${2}" ;;
19405 * ) func_dirname_result="${3}" ;;
19406 esac
19407 func_basename_result="${1##*/}"
19410 # func_stripname prefix suffix name
19411 # strip PREFIX and SUFFIX off of NAME.
19412 # PREFIX and SUFFIX must not contain globbing or regex special
19413 # characters, hashes, percent signs, but SUFFIX may contain a leading
19414 # dot (in which case that matches only a dot).
19415 func_stripname ()
19417 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19418 # positional parameters, so assign one to ordinary parameter first.
19419 func_stripname_result=${3}
19420 func_stripname_result=${func_stripname_result#"${1}"}
19421 func_stripname_result=${func_stripname_result%"${2}"}
19424 # func_opt_split
19425 func_opt_split ()
19427 func_opt_split_opt=${1%%=*}
19428 func_opt_split_arg=${1#*=}
19431 # func_lo2o object
19432 func_lo2o ()
19434 case ${1} in
19435 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19436 *) func_lo2o_result=${1} ;;
19437 esac
19440 # func_xform libobj-or-source
19441 func_xform ()
19443 func_xform_result=${1%.*}.lo
19446 # func_arith arithmetic-term...
19447 func_arith ()
19449 func_arith_result=$(( $* ))
19452 # func_len string
19453 # STRING may not start with a hyphen.
19454 func_len ()
19456 func_len_result=${#1}
19459 _LT_EOF
19461 *) # Bourne compatible functions.
19462 cat << \_LT_EOF >> "$cfgfile"
19464 # func_dirname file append nondir_replacement
19465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19466 # otherwise set result to NONDIR_REPLACEMENT.
19467 func_dirname ()
19469 # Extract subdirectory from the argument.
19470 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19471 if test "X$func_dirname_result" = "X${1}"; then
19472 func_dirname_result="${3}"
19473 else
19474 func_dirname_result="$func_dirname_result${2}"
19478 # func_basename file
19479 func_basename ()
19481 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19485 # func_stripname prefix suffix name
19486 # strip PREFIX and SUFFIX off of NAME.
19487 # PREFIX and SUFFIX must not contain globbing or regex special
19488 # characters, hashes, percent signs, but SUFFIX may contain a leading
19489 # dot (in which case that matches only a dot).
19490 # func_strip_suffix prefix name
19491 func_stripname ()
19493 case ${2} in
19494 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19495 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19496 esac
19499 # sed scripts:
19500 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19501 my_sed_long_arg='1s/^-[^=]*=//'
19503 # func_opt_split
19504 func_opt_split ()
19506 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19507 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19510 # func_lo2o object
19511 func_lo2o ()
19513 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19516 # func_xform libobj-or-source
19517 func_xform ()
19519 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19522 # func_arith arithmetic-term...
19523 func_arith ()
19525 func_arith_result=`expr "$@"`
19528 # func_len string
19529 # STRING may not start with a hyphen.
19530 func_len ()
19532 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19535 _LT_EOF
19536 esac
19538 case $lt_shell_append in
19539 yes)
19540 cat << \_LT_EOF >> "$cfgfile"
19542 # func_append var value
19543 # Append VALUE to the end of shell variable VAR.
19544 func_append ()
19546 eval "$1+=\$2"
19548 _LT_EOF
19551 cat << \_LT_EOF >> "$cfgfile"
19553 # func_append var value
19554 # Append VALUE to the end of shell variable VAR.
19555 func_append ()
19557 eval "$1=\$$1\$2"
19560 _LT_EOF
19562 esac
19565 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19566 || (rm -f "$cfgfile"; exit 1)
19568 mv -f "$cfgfile" "$ofile" ||
19569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19570 chmod +x "$ofile"
19573 cat <<_LT_EOF >> "$ofile"
19575 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19577 # The linker used to build libraries.
19578 LD=$lt_LD_CXX
19580 # How to create reloadable object files.
19581 reload_flag=$lt_reload_flag_CXX
19582 reload_cmds=$lt_reload_cmds_CXX
19584 # Commands used to build an old-style archive.
19585 old_archive_cmds=$lt_old_archive_cmds_CXX
19587 # A language specific compiler.
19588 CC=$lt_compiler_CXX
19590 # Is the compiler the GNU compiler?
19591 with_gcc=$GCC_CXX
19593 # Compiler flag to turn off builtin functions.
19594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19596 # How to pass a linker flag through the compiler.
19597 wl=$lt_lt_prog_compiler_wl_CXX
19599 # Additional compiler flags for building library objects.
19600 pic_flag=$lt_lt_prog_compiler_pic_CXX
19602 # Compiler flag to prevent dynamic linking.
19603 link_static_flag=$lt_lt_prog_compiler_static_CXX
19605 # Does compiler simultaneously support -c and -o options?
19606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19608 # Whether or not to add -lc for building shared libraries.
19609 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19611 # Whether or not to disallow shared libs when runtime libs are static.
19612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19614 # Compiler flag to allow reflexive dlopens.
19615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19617 # Compiler flag to generate shared objects directly from archives.
19618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19620 # Whether the compiler copes with passing no objects directly.
19621 compiler_needs_object=$lt_compiler_needs_object_CXX
19623 # Create an old-style archive from a shared archive.
19624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19626 # Create a temporary old-style archive to link instead of a shared archive.
19627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19629 # Commands used to build a shared archive.
19630 archive_cmds=$lt_archive_cmds_CXX
19631 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19633 # Commands used to build a loadable module if different from building
19634 # a shared archive.
19635 module_cmds=$lt_module_cmds_CXX
19636 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19638 # Whether we are building with GNU ld or not.
19639 with_gnu_ld=$lt_with_gnu_ld_CXX
19641 # Flag that allows shared libraries with undefined symbols to be built.
19642 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19644 # Flag that enforces no undefined symbols.
19645 no_undefined_flag=$lt_no_undefined_flag_CXX
19647 # Flag to hardcode \$libdir into a binary during linking.
19648 # This must work even if \$libdir does not exist
19649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19651 # If ld is used when linking, flag to hardcode \$libdir into a binary
19652 # during linking. This must work even if \$libdir does not exist.
19653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19655 # Whether we need a single "-rpath" flag with a separated argument.
19656 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19659 # DIR into the resulting binary.
19660 hardcode_direct=$hardcode_direct_CXX
19662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19663 # DIR into the resulting binary and the resulting library dependency is
19664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19665 # library is relocated.
19666 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19669 # into the resulting binary.
19670 hardcode_minus_L=$hardcode_minus_L_CXX
19672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19673 # into the resulting binary.
19674 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19676 # Set to "yes" if building a shared library automatically hardcodes DIR
19677 # into the library and all subsequent libraries and executables linked
19678 # against it.
19679 hardcode_automatic=$hardcode_automatic_CXX
19681 # Set to yes if linker adds runtime paths of dependent libraries
19682 # to runtime path list.
19683 inherit_rpath=$inherit_rpath_CXX
19685 # Whether libtool must link a program against all its dependency libraries.
19686 link_all_deplibs=$link_all_deplibs_CXX
19688 # Fix the shell variable \$srcfile for the compiler.
19689 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19691 # Set to "yes" if exported symbols are required.
19692 always_export_symbols=$always_export_symbols_CXX
19694 # The commands to list exported symbols.
19695 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19697 # Symbols that should not be listed in the preloaded symbols.
19698 exclude_expsyms=$lt_exclude_expsyms_CXX
19700 # Symbols that must always be exported.
19701 include_expsyms=$lt_include_expsyms_CXX
19703 # Commands necessary for linking programs (against libraries) with templates.
19704 prelink_cmds=$lt_prelink_cmds_CXX
19706 # Specify filename containing input files.
19707 file_list_spec=$lt_file_list_spec_CXX
19709 # How to hardcode a shared library path into an executable.
19710 hardcode_action=$hardcode_action_CXX
19712 # The directories searched by this compiler when creating a shared library.
19713 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19715 # Dependencies to place before and after the objects being linked to
19716 # create a shared library.
19717 predep_objects=$lt_predep_objects_CXX
19718 postdep_objects=$lt_postdep_objects_CXX
19719 predeps=$lt_predeps_CXX
19720 postdeps=$lt_postdeps_CXX
19722 # The library search path used internally by the compiler when linking
19723 # a shared library.
19724 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19726 # ### END LIBTOOL TAG CONFIG: CXX
19727 _LT_EOF
19730 "gstdint.h":C)
19731 if test "$GCC" = yes; then
19732 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19733 else
19734 echo "/* generated for $CC */" > tmp-stdint.h
19737 sed 's/^ *//' >> tmp-stdint.h <<EOF
19739 #ifndef GCC_GENERATED_STDINT_H
19740 #define GCC_GENERATED_STDINT_H 1
19742 #include <sys/types.h>
19745 if test "$acx_cv_header_stdint" != stdint.h; then
19746 echo "#include <stddef.h>" >> tmp-stdint.h
19748 if test "$acx_cv_header_stdint" != stddef.h; then
19749 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19752 sed 's/^ *//' >> tmp-stdint.h <<EOF
19753 /* glibc uses these symbols as guards to prevent redefinitions. */
19754 #ifdef __int8_t_defined
19755 #define _INT8_T
19756 #define _INT16_T
19757 #define _INT32_T
19758 #endif
19759 #ifdef __uint32_t_defined
19760 #define _UINT32_T
19761 #endif
19765 # ----------------- done header, emit basic int types -------------
19766 if test "$acx_cv_header_stdint" = stddef.h; then
19767 sed 's/^ *//' >> tmp-stdint.h <<EOF
19769 #ifndef _UINT8_T
19770 #define _UINT8_T
19771 #ifndef __uint8_t_defined
19772 #define __uint8_t_defined
19773 #ifndef uint8_t
19774 typedef unsigned $acx_cv_type_int8_t uint8_t;
19775 #endif
19776 #endif
19777 #endif
19779 #ifndef _UINT16_T
19780 #define _UINT16_T
19781 #ifndef __uint16_t_defined
19782 #define __uint16_t_defined
19783 #ifndef uint16_t
19784 typedef unsigned $acx_cv_type_int16_t uint16_t;
19785 #endif
19786 #endif
19787 #endif
19789 #ifndef _UINT32_T
19790 #define _UINT32_T
19791 #ifndef __uint32_t_defined
19792 #define __uint32_t_defined
19793 #ifndef uint32_t
19794 typedef unsigned $acx_cv_type_int32_t uint32_t;
19795 #endif
19796 #endif
19797 #endif
19799 #ifndef _INT8_T
19800 #define _INT8_T
19801 #ifndef __int8_t_defined
19802 #define __int8_t_defined
19803 #ifndef int8_t
19804 typedef $acx_cv_type_int8_t int8_t;
19805 #endif
19806 #endif
19807 #endif
19809 #ifndef _INT16_T
19810 #define _INT16_T
19811 #ifndef __int16_t_defined
19812 #define __int16_t_defined
19813 #ifndef int16_t
19814 typedef $acx_cv_type_int16_t int16_t;
19815 #endif
19816 #endif
19817 #endif
19819 #ifndef _INT32_T
19820 #define _INT32_T
19821 #ifndef __int32_t_defined
19822 #define __int32_t_defined
19823 #ifndef int32_t
19824 typedef $acx_cv_type_int32_t int32_t;
19825 #endif
19826 #endif
19827 #endif
19829 elif test "$ac_cv_type_u_int32_t" = yes; then
19830 sed 's/^ *//' >> tmp-stdint.h <<EOF
19832 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19833 #ifndef _INT8_T
19834 #define _INT8_T
19835 #endif
19836 #ifndef _INT16_T
19837 #define _INT16_T
19838 #endif
19839 #ifndef _INT32_T
19840 #define _INT32_T
19841 #endif
19843 #ifndef _UINT8_T
19844 #define _UINT8_T
19845 #ifndef __uint8_t_defined
19846 #define __uint8_t_defined
19847 #ifndef uint8_t
19848 typedef u_int8_t uint8_t;
19849 #endif
19850 #endif
19851 #endif
19853 #ifndef _UINT16_T
19854 #define _UINT16_T
19855 #ifndef __uint16_t_defined
19856 #define __uint16_t_defined
19857 #ifndef uint16_t
19858 typedef u_int16_t uint16_t;
19859 #endif
19860 #endif
19861 #endif
19863 #ifndef _UINT32_T
19864 #define _UINT32_T
19865 #ifndef __uint32_t_defined
19866 #define __uint32_t_defined
19867 #ifndef uint32_t
19868 typedef u_int32_t uint32_t;
19869 #endif
19870 #endif
19871 #endif
19873 else
19874 sed 's/^ *//' >> tmp-stdint.h <<EOF
19876 /* Some systems have guard macros to prevent redefinitions, define them. */
19877 #ifndef _INT8_T
19878 #define _INT8_T
19879 #endif
19880 #ifndef _INT16_T
19881 #define _INT16_T
19882 #endif
19883 #ifndef _INT32_T
19884 #define _INT32_T
19885 #endif
19886 #ifndef _UINT8_T
19887 #define _UINT8_T
19888 #endif
19889 #ifndef _UINT16_T
19890 #define _UINT16_T
19891 #endif
19892 #ifndef _UINT32_T
19893 #define _UINT32_T
19894 #endif
19898 # ------------- done basic int types, emit int64_t types ------------
19899 if test "$ac_cv_type_uint64_t" = yes; then
19900 sed 's/^ *//' >> tmp-stdint.h <<EOF
19902 /* system headers have good uint64_t and int64_t */
19903 #ifndef _INT64_T
19904 #define _INT64_T
19905 #endif
19906 #ifndef _UINT64_T
19907 #define _UINT64_T
19908 #endif
19910 elif test "$ac_cv_type_u_int64_t" = yes; then
19911 sed 's/^ *//' >> tmp-stdint.h <<EOF
19913 /* system headers have an u_int64_t (and int64_t) */
19914 #ifndef _INT64_T
19915 #define _INT64_T
19916 #endif
19917 #ifndef _UINT64_T
19918 #define _UINT64_T
19919 #ifndef __uint64_t_defined
19920 #define __uint64_t_defined
19921 #ifndef uint64_t
19922 typedef u_int64_t uint64_t;
19923 #endif
19924 #endif
19925 #endif
19927 elif test -n "$acx_cv_type_int64_t"; then
19928 sed 's/^ *//' >> tmp-stdint.h <<EOF
19930 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19931 #ifndef _INT64_T
19932 #define _INT64_T
19933 #ifndef int64_t
19934 typedef $acx_cv_type_int64_t int64_t;
19935 #endif
19936 #endif
19937 #ifndef _UINT64_T
19938 #define _UINT64_T
19939 #ifndef __uint64_t_defined
19940 #define __uint64_t_defined
19941 #ifndef uint64_t
19942 typedef unsigned $acx_cv_type_int64_t uint64_t;
19943 #endif
19944 #endif
19945 #endif
19947 else
19948 sed 's/^ *//' >> tmp-stdint.h <<EOF
19950 /* some common heuristics for int64_t, using compiler-specific tests */
19951 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19952 #ifndef _INT64_T
19953 #define _INT64_T
19954 #ifndef __int64_t_defined
19955 #ifndef int64_t
19956 typedef long long int64_t;
19957 #endif
19958 #endif
19959 #endif
19960 #ifndef _UINT64_T
19961 #define _UINT64_T
19962 #ifndef uint64_t
19963 typedef unsigned long long uint64_t;
19964 #endif
19965 #endif
19967 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19968 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19969 does not implement __extension__. But that compiler doesn't define
19970 __GNUC_MINOR__. */
19971 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19972 # define __extension__
19973 # endif
19975 # ifndef _INT64_T
19976 # define _INT64_T
19977 # ifndef int64_t
19978 __extension__ typedef long long int64_t;
19979 # endif
19980 # endif
19981 # ifndef _UINT64_T
19982 # define _UINT64_T
19983 # ifndef uint64_t
19984 __extension__ typedef unsigned long long uint64_t;
19985 # endif
19986 # endif
19988 #elif !defined __STRICT_ANSI__
19989 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19991 # ifndef _INT64_T
19992 # define _INT64_T
19993 # ifndef int64_t
19994 typedef __int64 int64_t;
19995 # endif
19996 # endif
19997 # ifndef _UINT64_T
19998 # define _UINT64_T
19999 # ifndef uint64_t
20000 typedef unsigned __int64 uint64_t;
20001 # endif
20002 # endif
20003 # endif /* compiler */
20005 #endif /* ANSI version */
20009 # ------------- done int64_t types, emit intptr types ------------
20010 if test "$ac_cv_type_uintptr_t" != yes; then
20011 sed 's/^ *//' >> tmp-stdint.h <<EOF
20013 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20014 #ifndef __uintptr_t_defined
20015 #ifndef uintptr_t
20016 typedef u$acx_cv_type_intptr_t uintptr_t;
20017 #endif
20018 #endif
20019 #ifndef __intptr_t_defined
20020 #ifndef intptr_t
20021 typedef $acx_cv_type_intptr_t intptr_t;
20022 #endif
20023 #endif
20027 # ------------- done intptr types, emit int_least types ------------
20028 if test "$ac_cv_type_int_least32_t" != yes; then
20029 sed 's/^ *//' >> tmp-stdint.h <<EOF
20031 /* Define int_least types */
20032 typedef int8_t int_least8_t;
20033 typedef int16_t int_least16_t;
20034 typedef int32_t int_least32_t;
20035 #ifdef _INT64_T
20036 typedef int64_t int_least64_t;
20037 #endif
20039 typedef uint8_t uint_least8_t;
20040 typedef uint16_t uint_least16_t;
20041 typedef uint32_t uint_least32_t;
20042 #ifdef _UINT64_T
20043 typedef uint64_t uint_least64_t;
20044 #endif
20048 # ------------- done intptr types, emit int_fast types ------------
20049 if test "$ac_cv_type_int_fast32_t" != yes; then
20050 sed 's/^ *//' >> tmp-stdint.h <<EOF
20052 /* Define int_fast types. short is often slow */
20053 typedef int8_t int_fast8_t;
20054 typedef int int_fast16_t;
20055 typedef int32_t int_fast32_t;
20056 #ifdef _INT64_T
20057 typedef int64_t int_fast64_t;
20058 #endif
20060 typedef uint8_t uint_fast8_t;
20061 typedef unsigned int uint_fast16_t;
20062 typedef uint32_t uint_fast32_t;
20063 #ifdef _UINT64_T
20064 typedef uint64_t uint_fast64_t;
20065 #endif
20069 if test "$ac_cv_type_uintmax_t" != yes; then
20070 sed 's/^ *//' >> tmp-stdint.h <<EOF
20072 /* Define intmax based on what we found */
20073 #ifndef intmax_t
20074 #ifdef _INT64_T
20075 typedef int64_t intmax_t;
20076 #else
20077 typedef long intmax_t;
20078 #endif
20079 #endif
20080 #ifndef uintmax_t
20081 #ifdef _UINT64_T
20082 typedef uint64_t uintmax_t;
20083 #else
20084 typedef unsigned long uintmax_t;
20085 #endif
20086 #endif
20090 sed 's/^ *//' >> tmp-stdint.h <<EOF
20092 #endif /* GCC_GENERATED_STDINT_H */
20095 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20096 rm -f tmp-stdint.h
20097 else
20098 mv -f tmp-stdint.h gstdint.h
20102 "interception/Makefile":F) cat > vpsed$$ << \_EOF
20103 s!`test -f '$<' || echo '$(srcdir)/'`!!
20104 _EOF
20105 sed -f vpsed$$ $ac_file > tmp$$
20106 mv tmp$$ $ac_file
20107 rm vpsed$$
20108 echo 'MULTISUBDIR =' >> $ac_file
20109 ml_norecursion=yes
20110 . ${multi_basedir}/config-ml.in
20111 { ml_norecursion=; unset ml_norecursion;}
20113 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
20114 s!`test -f '$<' || echo '$(srcdir)/'`!!
20115 _EOF
20116 sed -f vpsed$$ $ac_file > tmp$$
20117 mv tmp$$ $ac_file
20118 rm vpsed$$
20119 echo 'MULTISUBDIR =' >> $ac_file
20120 ml_norecursion=yes
20121 . ${multi_basedir}/config-ml.in
20122 { ml_norecursion=; unset ml_norecursion;}
20124 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20125 s!`test -f '$<' || echo '$(srcdir)/'`!!
20126 _EOF
20127 sed -f vpsed$$ $ac_file > tmp$$
20128 mv tmp$$ $ac_file
20129 rm vpsed$$
20130 echo 'MULTISUBDIR =' >> $ac_file
20131 ml_norecursion=yes
20132 . ${multi_basedir}/config-ml.in
20133 { ml_norecursion=; unset ml_norecursion;}
20135 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20136 s!`test -f '$<' || echo '$(srcdir)/'`!!
20137 _EOF
20138 sed -f vpsed$$ $ac_file > tmp$$
20139 mv tmp$$ $ac_file
20140 rm vpsed$$
20141 echo 'MULTISUBDIR =' >> $ac_file
20142 ml_norecursion=yes
20143 . ${multi_basedir}/config-ml.in
20144 { ml_norecursion=; unset ml_norecursion;}
20146 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20147 s!`test -f '$<' || echo '$(srcdir)/'`!!
20148 _EOF
20149 sed -f vpsed$$ $ac_file > tmp$$
20150 mv tmp$$ $ac_file
20151 rm vpsed$$
20152 echo 'MULTISUBDIR =' >> $ac_file
20153 ml_norecursion=yes
20154 . ${multi_basedir}/config-ml.in
20155 { ml_norecursion=; unset ml_norecursion;}
20157 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20158 s!`test -f '$<' || echo '$(srcdir)/'`!!
20159 _EOF
20160 sed -f vpsed$$ $ac_file > tmp$$
20161 mv tmp$$ $ac_file
20162 rm vpsed$$
20163 echo 'MULTISUBDIR =' >> $ac_file
20164 ml_norecursion=yes
20165 . ${multi_basedir}/config-ml.in
20166 { ml_norecursion=; unset ml_norecursion;}
20168 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20169 s!`test -f '$<' || echo '$(srcdir)/'`!!
20170 _EOF
20171 sed -f vpsed$$ $ac_file > tmp$$
20172 mv tmp$$ $ac_file
20173 rm vpsed$$
20174 echo 'MULTISUBDIR =' >> $ac_file
20175 ml_norecursion=yes
20176 . ${multi_basedir}/config-ml.in
20177 { ml_norecursion=; unset ml_norecursion;}
20179 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
20180 s!`test -f '$<' || echo '$(srcdir)/'`!!
20181 _EOF
20182 sed -f vpsed$$ $ac_file > tmp$$
20183 mv tmp$$ $ac_file
20184 rm vpsed$$
20185 echo 'MULTISUBDIR =' >> $ac_file
20186 ml_norecursion=yes
20187 . ${multi_basedir}/config-ml.in
20188 { ml_norecursion=; unset ml_norecursion;}
20191 esac
20192 done # for ac_tag
20195 as_fn_exit 0
20196 _ACEOF
20197 ac_clean_files=$ac_clean_files_save
20199 test $ac_write_fail = 0 ||
20200 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20203 # configure is writing to config.log, and then calls config.status.
20204 # config.status does its own redirection, appending to config.log.
20205 # Unfortunately, on DOS this fails, as config.log is still kept open
20206 # by configure, so config.status won't be able to write to it; its
20207 # output is simply discarded. So we exec the FD to /dev/null,
20208 # effectively closing config.log, so it can be properly (re)opened and
20209 # appended to by config.status. When coming back to configure, we
20210 # need to make the FD available again.
20211 if test "$no_create" != yes; then
20212 ac_cs_success=:
20213 ac_config_status_args=
20214 test "$silent" = yes &&
20215 ac_config_status_args="$ac_config_status_args --quiet"
20216 exec 5>/dev/null
20217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20218 exec 5>>config.log
20219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20220 # would make configure fail if this is the last instruction.
20221 $ac_cs_success || as_fn_exit 1
20223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}