Skip -fwhole-program when merging LTO options.
[official-gcc.git] / libbacktrace / configure
blobcbd69522202860599c801ca066f7d61af0f848fc
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.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libbacktrace'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="backtrace.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 NATIVE_FALSE
637 NATIVE_TRUE
638 HAVE_LIBLZMA_FALSE
639 HAVE_LIBLZMA_TRUE
640 HAVE_MINIDEBUG_FALSE
641 HAVE_MINIDEBUG_TRUE
642 HAVE_COMM_FALSE
643 HAVE_COMM_TRUE
644 COMM
645 HAVE_XZ_FALSE
646 HAVE_XZ_TRUE
648 USE_DSYMUTIL_FALSE
649 USE_DSYMUTIL_TRUE
650 HAVE_OBJCOPY_DEBUGLINK_FALSE
651 HAVE_OBJCOPY_DEBUGLINK_TRUE
652 READELF
653 OBJCOPY
654 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE
655 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE
656 HAVE_ZSTD_FALSE
657 HAVE_ZSTD_TRUE
658 HAVE_COMPRESSED_DEBUG_FALSE
659 HAVE_COMPRESSED_DEBUG_TRUE
660 HAVE_ZLIB_FALSE
661 HAVE_ZLIB_TRUE
662 HAVE_DWARF5_FALSE
663 HAVE_DWARF5_TRUE
664 HAVE_PTHREAD_FALSE
665 HAVE_PTHREAD_TRUE
666 PTHREAD_CFLAGS
667 CLOCK_GETTIME_LINK
668 BACKTRACE_USES_MALLOC
669 ALLOC_FILE
670 VIEW_FILE
671 BACKTRACE_SUPPORTS_DATA
672 BACKTRACE_SUPPORTED
673 HAVE_ELF_FALSE
674 HAVE_ELF_TRUE
675 FORMAT_FILE
676 BACKTRACE_SUPPORTS_THREADS
677 CET_HOST_FLAGS
678 PIC_FLAG
679 WARN_FLAGS
680 EXTRA_FLAGS
681 BACKTRACE_FILE
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
688 OBJDUMP
689 LN_S
691 ac_ct_DUMPBIN
692 DUMPBIN
694 FGREP
696 LIBTOOL
697 HAVE_DWZ_FALSE
698 HAVE_DWZ_TRUE
700 RANLIB
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__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 libtool_VERSION
732 EGREP
733 GREP
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 multi_basedir
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_multilib
797 enable_silent_rules
798 enable_maintainer_mode
799 with_target_subdir
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 enable_libtool_lock
806 enable_largefile
807 enable_cet
808 enable_werror
809 with_system_libunwind
810 enable_host_shared
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
821 OBJCOPY
822 DSYMUTIL
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
874 ac_prev=
875 ac_dashdash=
876 for ac_option
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
895 ac_dashdash=yes ;;
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
914 --config-cache | -C)
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information"
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 esac
1232 done
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $? "missing argument to $ac_option"
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287 test "$silent" = yes && exec 6>/dev/null
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $? "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $? "pwd does not report name of working directory"
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1316 /^X\(\/\/\)$/{
1317 s//\1/
1320 /^X\(\/\).*/{
1321 s//\1/
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1329 else
1330 ac_srcdir_defaulted=no
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1419 cat <<\_ACEOF
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430 _ACEOF
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of package-unused version-unused:";;
1436 esac
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-multilib build many library versions (default)
1444 --enable-silent-rules less verbose build output (undo: "make V=1")
1445 --disable-silent-rules verbose build output (undo: "make V=0")
1446 --enable-maintainer-mode
1447 enable make rules and dependencies not useful (and
1448 sometimes confusing) to the casual installer
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --disable-largefile omit support for large files
1455 --enable-cet enable Intel CET in target libraries [default=auto]
1456 --disable-werror disable building with -Werror
1457 --enable-host-shared build host code as shared libraries
1458 --enable-cet enable Intel CET in host libraries [default=auto]
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1464 --with-pic try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-system-libunwind use installed libunwind
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CPP C preprocessor
1478 OBJCOPY location of objcopy
1479 DSYMUTIL location of dsymutil
1480 NM location of nm
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 _ACEOF
1487 ac_status=$?
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 package-unused configure version-unused
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555 exit
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_cpp
1637 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640 # the include files in INCLUDES and setting the cache variable VAR
1641 # accordingly.
1642 ac_fn_c_check_header_mongrel ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if eval \${$3+:} false; then :
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 else
1655 # Is the header compilable?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657 $as_echo_n "checking $2 usability... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_header_compiler=yes
1665 else
1666 ac_header_compiler=no
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670 $as_echo "$ac_header_compiler" >&6; }
1672 # Is the header present?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674 $as_echo_n "checking $2 presence... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_cpp "$LINENO"; then :
1680 ac_header_preproc=yes
1681 else
1682 ac_header_preproc=no
1684 rm -f conftest.err conftest.i conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686 $as_echo "$ac_header_preproc" >&6; }
1688 # So? What about this header?
1689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1690 yes:no: )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 no:yes:* )
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 esac
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 eval "$3=\$ac_header_compiler"
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_mongrel
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_run
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_link ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=1
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_link
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1871 #undef $2
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1888 main ()
1890 return $2 ();
1892 return 0;
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_func
1910 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911 # -------------------------------------------
1912 # Tests whether TYPE exists after having included INCLUDES, setting cache
1913 # variable VAR accordingly.
1914 ac_fn_c_check_type ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 eval "$3=no"
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 main ()
1929 if (sizeof ($2))
1930 return 0;
1932 return 0;
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 main ()
1942 if (sizeof (($2)))
1943 return 0;
1945 return 0;
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1950 else
1951 eval "$3=yes"
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_check_type
1964 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1965 # --------------------------------------------
1966 # Tries to find the compile-time value of EXPR in a program that includes
1967 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1968 # computed
1969 ac_fn_c_compute_int ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if test "$cross_compiling" = yes; then
1973 # Depending upon the size, compute the lo and hi bounds.
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 main ()
1980 static int test_array [1 - 2 * !(($2) >= 0)];
1981 test_array [0] = 0;
1982 return test_array [0];
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_lo=0 ac_mid=0
1990 while :; do
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1998 test_array [0] = 0;
1999 return test_array [0];
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_hi=$ac_mid; break
2007 else
2008 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2009 if test $ac_lo -le $ac_mid; then
2010 ac_lo= ac_hi=
2011 break
2013 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 done
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static int test_array [1 - 2 * !(($2) < 0)];
2025 test_array [0] = 0;
2026 return test_array [0];
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_hi=-1 ac_mid=-1
2034 while :; do
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2042 test_array [0] = 0;
2043 return test_array [0];
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_lo=$ac_mid; break
2051 else
2052 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2053 if test $ac_mid -le $ac_hi; then
2054 ac_lo= ac_hi=
2055 break
2057 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 done
2061 else
2062 ac_lo= ac_hi=
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 # Binary search between lo and hi bounds.
2068 while test "x$ac_lo" != "x$ac_hi"; do
2069 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2077 test_array [0] = 0;
2078 return test_array [0];
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid
2086 else
2087 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 done
2091 case $ac_lo in #((
2092 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2093 '') ac_retval=1 ;;
2094 esac
2095 else
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2099 static long int longval () { return $2; }
2100 static unsigned long int ulongval () { return $2; }
2101 #include <stdio.h>
2102 #include <stdlib.h>
2104 main ()
2107 FILE *f = fopen ("conftest.val", "w");
2108 if (! f)
2109 return 1;
2110 if (($2) < 0)
2112 long int i = longval ();
2113 if (i != ($2))
2114 return 1;
2115 fprintf (f, "%ld", i);
2117 else
2119 unsigned long int i = ulongval ();
2120 if (i != ($2))
2121 return 1;
2122 fprintf (f, "%lu", i);
2124 /* Do not output a trailing newline, as this causes \r\n confusion
2125 on some platforms. */
2126 return ferror (f) || fclose (f) != 0;
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_run "$LINENO"; then :
2133 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2134 else
2135 ac_retval=1
2137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2138 conftest.$ac_objext conftest.beam conftest.$ac_ext
2139 rm -f conftest.val
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 as_fn_set_status $ac_retval
2145 } # ac_fn_c_compute_int
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2148 # ---------------------------------------------
2149 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_decl ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 as_decl_name=`echo $2|sed 's/ *(.*//'`
2155 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2157 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 #ifndef $as_decl_name
2168 #ifdef __cplusplus
2169 (void) $as_decl_use;
2170 #else
2171 (void) $as_decl_name;
2172 #endif
2173 #endif
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_decl
2192 cat >config.log <<_ACEOF
2193 This file contains any messages produced by compilers while
2194 running configure, to aid debugging if configure makes a mistake.
2196 It was created by package-unused $as_me version-unused, which was
2197 generated by GNU Autoconf 2.69. Invocation command line was
2199 $ $0 $@
2201 _ACEOF
2202 exec 5>>config.log
2204 cat <<_ASUNAME
2205 ## --------- ##
2206 ## Platform. ##
2207 ## --------- ##
2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2226 _ASUNAME
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 $as_echo "PATH: $as_dir"
2234 done
2235 IFS=$as_save_IFS
2237 } >&5
2239 cat >&5 <<_ACEOF
2242 ## ----------- ##
2243 ## Core tests. ##
2244 ## ----------- ##
2246 _ACEOF
2249 # Keep a trace of the command line.
2250 # Strip out --no-create and --no-recursion so they do not pile up.
2251 # Strip out --silent because we don't want to record it for future runs.
2252 # Also quote any args containing shell meta-characters.
2253 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_configure_args=
2255 ac_configure_args0=
2256 ac_configure_args1=
2257 ac_must_keep_next=false
2258 for ac_pass in 1 2
2260 for ac_arg
2262 case $ac_arg in
2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 | -silent | --silent | --silen | --sile | --sil)
2266 continue ;;
2267 *\'*)
2268 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 case $ac_pass in
2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2273 as_fn_append ac_configure_args1 " '$ac_arg'"
2274 if test $ac_must_keep_next = true; then
2275 ac_must_keep_next=false # Got value, back to normal.
2276 else
2277 case $ac_arg in
2278 *=* | --config-cache | -C | -disable-* | --disable-* \
2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 | -with-* | --with-* | -without-* | --without-* | --x)
2282 case "$ac_configure_args0 " in
2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 esac
2286 -* ) ac_must_keep_next=true ;;
2287 esac
2289 as_fn_append ac_configure_args " '$ac_arg'"
2291 esac
2292 done
2293 done
2294 { ac_configure_args0=; unset ac_configure_args0;}
2295 { ac_configure_args1=; unset ac_configure_args1;}
2297 # When interrupted or exit'd, cleanup temporary files, and complete
2298 # config.log. We remove comments because anyway the quotes in there
2299 # would cause problems or look ugly.
2300 # WARNING: Use '\'' to represent an apostrophe within the trap.
2301 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302 trap 'exit_status=$?
2303 # Save into config.log some information that might help in debugging.
2305 echo
2307 $as_echo "## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##"
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338 esac |
2339 sort
2341 echo
2343 $as_echo "## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##"
2346 echo
2347 for ac_var in $ac_subst_vars
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2357 if test -n "$ac_subst_files"; then
2358 $as_echo "## ------------------- ##
2359 ## File substitutions. ##
2360 ## ------------------- ##"
2361 echo
2362 for ac_var in $ac_subst_files
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2373 if test -s confdefs.h; then
2374 $as_echo "## ----------- ##
2375 ## confdefs.h. ##
2376 ## ----------- ##"
2377 echo
2378 cat confdefs.h
2379 echo
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2389 for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 done
2392 ac_signal=0
2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 rm -f -r conftest* confdefs.h
2397 $as_echo "/* confdefs.h */" > confdefs.h
2399 # Predefined preprocessor variables.
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_NAME "$PACKAGE_NAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_STRING "$PACKAGE_STRING"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 _ACEOF
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_URL "$PACKAGE_URL"
2423 _ACEOF
2426 # Let the site file select an alternate cache file if it wants to.
2427 # Prefer an explicitly selected file to automatically selected ones.
2428 ac_site_file1=NONE
2429 ac_site_file2=NONE
2430 if test -n "$CONFIG_SITE"; then
2431 # We do not want a PATH search for config.site.
2432 case $CONFIG_SITE in #((
2433 -*) ac_site_file1=./$CONFIG_SITE;;
2434 */*) ac_site_file1=$CONFIG_SITE;;
2435 *) ac_site_file1=./$CONFIG_SITE;;
2436 esac
2437 elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440 else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 test "x$ac_site_file" = xNONE && continue
2447 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file" \
2452 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454 as_fn_error $? "failed to load site script $ac_site_file
2455 See \`config.log' for more details" "$LINENO" 5; }
2457 done
2459 if test -r "$cache_file"; then
2460 # Some versions of bash will fail to source /dev/null (special files
2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464 $as_echo "$as_me: loading cache $cache_file" >&6;}
2465 case $cache_file in
2466 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 *) . "./$cache_file";;
2468 esac
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 >$cache_file
2476 # Check that the precious variables saved in the cache have kept the same
2477 # value.
2478 ac_cache_corrupted=false
2479 for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2525 done
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548 ac_config_headers="$ac_config_headers config.h"
2551 if test -n "${with_target_subdir}"; then
2552 # Default to --enable-multilib
2553 # Check whether --enable-multilib was given.
2554 if test "${enable_multilib+set}" = set; then :
2555 enableval=$enable_multilib; case "$enableval" in
2556 yes) multilib=yes ;;
2557 no) multilib=no ;;
2558 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2559 esac
2560 else
2561 multilib=yes
2565 # We may get other options which we leave undocumented:
2566 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2567 # See config-ml.in if you want the gory details.
2569 if test "$srcdir" = "."; then
2570 if test "$with_target_subdir" != "."; then
2571 multi_basedir="$srcdir/$with_multisrctop../.."
2572 else
2573 multi_basedir="$srcdir/$with_multisrctop.."
2575 else
2576 multi_basedir="$srcdir/.."
2580 # Even if the default multilib is not a cross compilation,
2581 # it may be that some of the other multilibs are.
2582 if test $cross_compiling = no && test $multilib = yes \
2583 && test "x${with_multisubdir}" != x ; then
2584 cross_compiling=maybe
2587 ac_config_commands="$ac_config_commands default-1"
2591 ac_aux_dir=
2592 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2593 if test -f "$ac_dir/install-sh"; then
2594 ac_aux_dir=$ac_dir
2595 ac_install_sh="$ac_aux_dir/install-sh -c"
2596 break
2597 elif test -f "$ac_dir/install.sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install.sh -c"
2600 break
2601 elif test -f "$ac_dir/shtool"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/shtool install -c"
2604 break
2606 done
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620 # Make sure we can run config.sub.
2621 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2622 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2625 $as_echo_n "checking build system type... " >&6; }
2626 if ${ac_cv_build+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 ac_build_alias=$build_alias
2630 test "x$ac_build_alias" = x &&
2631 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2632 test "x$ac_build_alias" = x &&
2633 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2634 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2639 $as_echo "$ac_cv_build" >&6; }
2640 case $ac_cv_build in
2641 *-*-*) ;;
2642 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2643 esac
2644 build=$ac_cv_build
2645 ac_save_IFS=$IFS; IFS='-'
2646 set x $ac_cv_build
2647 shift
2648 build_cpu=$1
2649 build_vendor=$2
2650 shift; shift
2651 # Remember, the first character of IFS is used to create $*,
2652 # except with old shells:
2653 build_os=$*
2654 IFS=$ac_save_IFS
2655 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2659 $as_echo_n "checking host system type... " >&6; }
2660 if ${ac_cv_host+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test "x$host_alias" = x; then
2664 ac_cv_host=$ac_cv_build
2665 else
2666 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2672 $as_echo "$ac_cv_host" >&6; }
2673 case $ac_cv_host in
2674 *-*-*) ;;
2675 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2676 esac
2677 host=$ac_cv_host
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_host
2680 shift
2681 host_cpu=$1
2682 host_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 host_os=$*
2687 IFS=$ac_save_IFS
2688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2692 $as_echo_n "checking target system type... " >&6; }
2693 if ${ac_cv_target+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test "x$target_alias" = x; then
2697 ac_cv_target=$ac_cv_host
2698 else
2699 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2705 $as_echo "$ac_cv_target" >&6; }
2706 case $ac_cv_target in
2707 *-*-*) ;;
2708 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2709 esac
2710 target=$ac_cv_target
2711 ac_save_IFS=$IFS; IFS='-'
2712 set x $ac_cv_target
2713 shift
2714 target_cpu=$1
2715 target_vendor=$2
2716 shift; shift
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2719 target_os=$*
2720 IFS=$ac_save_IFS
2721 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2724 # The aliases save the names the user supplied, while $host etc.
2725 # will get canonicalized.
2726 test -n "$target_alias" &&
2727 test "$program_prefix$program_suffix$program_transform_name" = \
2728 NONENONEs,x,x, &&
2729 program_prefix=${target_alias}-
2731 target_alias=${target_alias-$host_alias}
2733 # Expand $ac_aux_dir to an absolute path.
2734 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_CC+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2765 IFS=$as_save_IFS
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2780 if test -z "$ac_cv_prog_CC"; then
2781 ac_ct_CC=$CC
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 CC=$ac_ct_CC
2829 else
2830 CC="$ac_cv_prog_CC"
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}cc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="${ac_tool_prefix}cc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2858 IFS=$as_save_IFS
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2874 if test -z "$CC"; then
2875 # Extract the first word of "cc", so it can be a program name with args.
2876 set dummy cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 ac_prog_rejected=no
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894 ac_prog_rejected=yes
2895 continue
2897 ac_cv_prog_CC="cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2905 if test $ac_prog_rejected = yes; then
2906 # We found a bogon in the path, so make sure we never use it.
2907 set dummy $ac_cv_prog_CC
2908 shift
2909 if test $# != 0; then
2910 # We chose a different compiler from the bogus one.
2911 # However, it has the same basename, so the bogon will be chosen
2912 # first if we set CC to just the basename; use the full file name.
2913 shift
2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in cl.exe
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$CC" && break
2972 done
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl.exe
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$ac_ct_CC" && break
3016 done
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CC=$ac_ct_CC
3034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 as_fn_error $? "no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details" "$LINENO" 5; }
3039 # Provide some information about the compiler.
3040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3041 set X $ac_compile
3042 ac_compiler=$2
3043 for ac_option in --version -v -V -qversion; do
3044 { { ac_try="$ac_compiler $ac_option >&5"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3052 ac_status=$?
3053 if test -s conftest.err; then
3054 sed '10a\
3055 ... rest of stderr output deleted ...
3056 10q' conftest.err >conftest.er1
3057 cat conftest.er1 >&5
3059 rm -f conftest.er1 conftest.err
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 done
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3079 # of exeext.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3081 $as_echo_n "checking whether the C compiler works... " >&6; }
3082 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084 # The possible output files:
3085 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3087 ac_rmfiles=
3088 for ac_file in $ac_files
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094 done
3095 rm -f $ac_rmfiles
3097 if { { ac_try="$ac_link_default"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link_default") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3110 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3111 # so that the user can short-circuit this test for compilers unknown to
3112 # Autoconf.
3113 for ac_file in $ac_files ''
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3119 [ab].out )
3120 # We found the default executable, but exeext='' is most
3121 # certainly right.
3122 break;;
3123 *.* )
3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3125 then :; else
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 # We set ac_cv_exeext here because the later test for it is not
3129 # safe: cross compilers may not add the suffix if given an `-o'
3130 # argument, so we may need to know it at that point already.
3131 # Even if this section looks crufty: it has the advantage of
3132 # actually working.
3133 break;;
3135 break;;
3136 esac
3137 done
3138 test "$ac_cv_exeext" = no && ac_cv_exeext=
3140 else
3141 ac_file=''
3143 if test -z "$ac_file"; then :
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error 77 "C compiler cannot create executables
3152 See \`config.log' for more details" "$LINENO" 5; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3155 $as_echo "yes" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3158 $as_echo_n "checking for C compiler default output file name... " >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3160 $as_echo "$ac_file" >&6; }
3161 ac_exeext=$ac_cv_exeext
3163 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3164 ac_clean_files=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3166 $as_echo_n "checking for suffix of executables... " >&6; }
3167 if { { ac_try="$ac_link"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_link") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3179 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3180 # work properly (i.e., refer to `conftest.exe'), while it won't with
3181 # `rm'.
3182 for ac_file in conftest.exe conftest conftest.*; do
3183 test -f "$ac_file" || continue
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 break;;
3188 * ) break;;
3189 esac
3190 done
3191 else
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details" "$LINENO" 5; }
3197 rm -f conftest conftest$ac_cv_exeext
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3199 $as_echo "$ac_cv_exeext" >&6; }
3201 rm -f conftest.$ac_ext
3202 EXEEXT=$ac_cv_exeext
3203 ac_exeext=$EXEEXT
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <stdio.h>
3208 main ()
3210 FILE *f = fopen ("conftest.out", "w");
3211 return ferror (f) || fclose (f) != 0;
3214 return 0;
3216 _ACEOF
3217 ac_clean_files="$ac_clean_files conftest.out"
3218 # Check that the compiler produces executables we can run. If not, either
3219 # the compiler is broken, or we cross compile.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3221 $as_echo_n "checking whether we are cross compiling... " >&6; }
3222 if test "$cross_compiling" != yes; then
3223 { { ac_try="$ac_link"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_link") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }
3234 if { ac_try='./conftest$ac_cv_exeext'
3235 { { case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; }; then
3245 cross_compiling=no
3246 else
3247 if test "$cross_compiling" = maybe; then
3248 cross_compiling=yes
3249 else
3250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 as_fn_error $? "cannot run C compiled programs.
3253 If you meant to cross compile, use \`--host'.
3254 See \`config.log' for more details" "$LINENO" 5; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3259 $as_echo "$cross_compiling" >&6; }
3261 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3262 ac_clean_files=$ac_clean_files_save
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3264 $as_echo_n "checking for suffix of object files... " >&6; }
3265 if ${ac_cv_objext+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 rm -f conftest.o conftest.obj
3280 if { { ac_try="$ac_compile"
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_compile") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details" "$LINENO" 5; }
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3311 $as_echo "$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3313 ac_objext=$OBJEXT
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3315 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3316 if ${ac_cv_c_compiler_gnu+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3325 #ifndef __GNUC__
3326 choke me
3327 #endif
3330 return 0;
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_compiler_gnu=yes
3335 else
3336 ac_compiler_gnu=no
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3343 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3344 if test $ac_compiler_gnu = yes; then
3345 GCC=yes
3346 else
3347 GCC=
3349 ac_test_CFLAGS=${CFLAGS+set}
3350 ac_save_CFLAGS=$CFLAGS
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3352 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3353 if ${ac_cv_prog_cc_g+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_save_c_werror_flag=$ac_c_werror_flag
3357 ac_c_werror_flag=yes
3358 ac_cv_prog_cc_g=no
3359 CFLAGS="-g"
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_cv_prog_cc_g=yes
3373 else
3374 CFLAGS=""
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3388 else
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3390 CFLAGS="-g"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_g=yes
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3413 $as_echo "$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3422 else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3431 if ${ac_cv_prog_cc_c89+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 ac_cv_prog_cc_c89=no
3435 ac_save_CC=$CC
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #include <stdarg.h>
3439 #include <stdio.h>
3440 struct stat;
3441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442 struct buf { int x; };
3443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444 static char *e (p, i)
3445 char **p;
3446 int i;
3448 return p[i];
3450 static char *f (char * (*g) (char **, int), char **p, ...)
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
3463 as 'x'. The following induces an error, until -std is added to get
3464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
3466 that's true only with -std. */
3467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470 inside strings and character constants. */
3471 #define FOO(x) 'x'
3472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474 int test (int i, double x);
3475 struct s1 {int (*f) (int a);};
3476 struct s2 {int (*f) (double a);};
3477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 int argc;
3479 char **argv;
3481 main ()
3483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485 return 0;
3487 _ACEOF
3488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491 CC="$ac_save_CC $ac_arg"
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_c89=$ac_arg
3495 rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497 done
3498 rm -f conftest.$ac_ext
3499 CC=$ac_save_CC
3502 # AC_CACHE_VAL
3503 case "x$ac_cv_prog_cc_c89" in
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 $as_echo "none needed" >&6; } ;;
3507 xno)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509 $as_echo "unsupported" >&6; } ;;
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3514 esac
3515 if test "x$ac_cv_prog_cc_c89" != xno; then :
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3531 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3532 if ${am_cv_prog_cc_c_o+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 # Make sure it works both with $CC and with simple cc.
3547 # Following AC_PROG_CC_C_O, we do the test twice because some
3548 # compilers refuse to overwrite an existing .o file with -o,
3549 # though they will create one.
3550 am_cv_prog_cc_c_o=yes
3551 for am_i in 1 2; do
3552 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3553 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } \
3557 && test -f conftest2.$ac_objext; then
3558 : OK
3559 else
3560 am_cv_prog_cc_c_o=no
3561 break
3563 done
3564 rm -f core conftest*
3565 unset am_i
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3568 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3569 if test "$am_cv_prog_cc_c_o" != yes; then
3570 # Losing compiler, so override with the script.
3571 # FIXME: It is wrong to rewrite CC.
3572 # But if we don't then we get into trouble of one sort or another.
3573 # A longer-term fix would be to have automake use am__CC in this case,
3574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3575 CC="$am_aux_dir/compile $CC"
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3592 # On Suns, sometimes $CPP names a directory.
3593 if test -n "$CPP" && test -d "$CPP"; then
3594 CPP=
3596 if test -z "$CPP"; then
3597 if ${ac_cv_prog_CPP+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 # Double quotes because CPP needs to be expanded
3601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603 ac_preproc_ok=false
3604 for ac_c_preproc_warn_flag in '' yes
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
3608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #ifdef __STDC__
3615 # include <limits.h>
3616 #else
3617 # include <assert.h>
3618 #endif
3619 Syntax error
3620 _ACEOF
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3623 else
3624 # Broken: fails on valid input.
3625 continue
3627 rm -f conftest.err conftest.i conftest.$ac_ext
3629 # OK, works on sane cases. Now check whether nonexistent headers
3630 # can be detected and how.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3634 _ACEOF
3635 if ac_fn_c_try_cpp "$LINENO"; then :
3636 # Broken: success on invalid input.
3637 continue
3638 else
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3643 rm -f conftest.err conftest.i conftest.$ac_ext
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.i conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then :
3649 break
3652 done
3653 ac_cv_prog_CPP=$CPP
3656 CPP=$ac_cv_prog_CPP
3657 else
3658 ac_cv_prog_CPP=$CPP
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3661 $as_echo "$CPP" >&6; }
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678 Syntax error
3679 _ACEOF
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3682 else
3683 # Broken: fails on valid input.
3684 continue
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3688 # OK, works on sane cases. Now check whether nonexistent headers
3689 # can be detected and how.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695 # Broken: success on invalid input.
3696 continue
3697 else
3698 # Passes both tests.
3699 ac_preproc_ok=:
3700 break
3702 rm -f conftest.err conftest.i conftest.$ac_ext
3704 done
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.i conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then :
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3713 See \`config.log' for more details" "$LINENO" 5; }
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3725 if ${ac_cv_path_GREP+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -z "$GREP"; then
3729 ac_path_GREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in grep ggrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3739 as_fn_executable_p "$ac_path_GREP" || continue
3740 # Check for GNU ac_path_GREP and select it if it is found.
3741 # Check for GNU $ac_path_GREP
3742 case `"$ac_path_GREP" --version 2>&1` in
3743 *GNU*)
3744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746 ac_count=0
3747 $as_echo_n 0123456789 >"conftest.in"
3748 while :
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 $as_echo 'GREP' >> "conftest.nl"
3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 as_fn_arith $ac_count + 1 && ac_count=$as_val
3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_GREP="$ac_path_GREP"
3760 ac_path_GREP_max=$ac_count
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766 esac
3768 $ac_path_GREP_found && break 3
3769 done
3770 done
3771 done
3772 IFS=$as_save_IFS
3773 if test -z "$ac_cv_path_GREP"; then
3774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3776 else
3777 ac_cv_path_GREP=$GREP
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3782 $as_echo "$ac_cv_path_GREP" >&6; }
3783 GREP="$ac_cv_path_GREP"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3787 $as_echo_n "checking for egrep... " >&6; }
3788 if ${ac_cv_path_EGREP+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3792 then ac_cv_path_EGREP="$GREP -E"
3793 else
3794 if test -z "$EGREP"; then
3795 ac_path_EGREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in egrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3805 as_fn_executable_p "$ac_path_EGREP" || continue
3806 # Check for GNU ac_path_EGREP and select it if it is found.
3807 # Check for GNU $ac_path_EGREP
3808 case `"$ac_path_EGREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3812 ac_count=0
3813 $as_echo_n 0123456789 >"conftest.in"
3814 while :
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 $as_echo 'EGREP' >> "conftest.nl"
3820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 as_fn_arith $ac_count + 1 && ac_count=$as_val
3823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_EGREP="$ac_path_EGREP"
3826 ac_path_EGREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3834 $ac_path_EGREP_found && break 3
3835 done
3836 done
3837 done
3838 IFS=$as_save_IFS
3839 if test -z "$ac_cv_path_EGREP"; then
3840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3842 else
3843 ac_cv_path_EGREP=$EGREP
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3849 $as_echo "$ac_cv_path_EGREP" >&6; }
3850 EGREP="$ac_cv_path_EGREP"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3854 $as_echo_n "checking for ANSI C header files... " >&6; }
3855 if ${ac_cv_header_stdc+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdlib.h>
3861 #include <stdarg.h>
3862 #include <string.h>
3863 #include <float.h>
3866 main ()
3870 return 0;
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_header_stdc=yes
3875 else
3876 ac_cv_header_stdc=no
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test $ac_cv_header_stdc = yes; then
3881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <string.h>
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then :
3890 else
3891 ac_cv_header_stdc=no
3893 rm -f conftest*
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <stdlib.h>
3903 _ACEOF
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "free" >/dev/null 2>&1; then :
3907 else
3908 ac_cv_header_stdc=no
3910 rm -f conftest*
3914 if test $ac_cv_header_stdc = yes; then
3915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3916 if test "$cross_compiling" = yes; then :
3918 else
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ctype.h>
3922 #include <stdlib.h>
3923 #if ((' ' & 0x0FF) == 0x020)
3924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 #else
3927 # define ISLOWER(c) \
3928 (('a' <= (c) && (c) <= 'i') \
3929 || ('j' <= (c) && (c) <= 'r') \
3930 || ('s' <= (c) && (c) <= 'z'))
3931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3932 #endif
3934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936 main ()
3938 int i;
3939 for (i = 0; i < 256; i++)
3940 if (XOR (islower (i), ISLOWER (i))
3941 || toupper (i) != TOUPPER (i))
3942 return 2;
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_run "$LINENO"; then :
3948 else
3949 ac_cv_header_stdc=no
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3952 conftest.$ac_objext conftest.beam conftest.$ac_ext
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3958 $as_echo "$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967 inttypes.h stdint.h unistd.h
3968 do :
3969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3973 cat >>confdefs.h <<_ACEOF
3974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3979 done
3983 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3985 MINIX=yes
3986 else
3987 MINIX=
3991 if test "$MINIX" = yes; then
3993 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999 $as_echo "#define _MINIX 1" >>confdefs.h
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4005 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4006 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4012 # define __EXTENSIONS__ 1
4013 $ac_includes_default
4015 main ()
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_safe_to_define___extensions__=yes
4024 else
4025 ac_cv_safe_to_define___extensions__=no
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4030 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4031 test $ac_cv_safe_to_define___extensions__ = yes &&
4032 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4034 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4036 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4038 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4040 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4044 libtool_VERSION=1:0:0
4047 # 1.11.1: Require that version of automake.
4048 # foreign: Don't require README, INSTALL, NEWS, etc.
4049 # no-define: Don't define PACKAGE and VERSION.
4050 # no-dependencies: Don't generate automatic dependencies.
4051 # (because it breaks when using bootstrap-lean, since some of the
4052 # headers are gone at "make install" time).
4053 # -Wall: Issue all automake warnings.
4054 # -Wno-portability: Don't warn about constructs supported by GNU make.
4055 # (because GCC requires GNU make anyhow).
4056 am__api_version='1.15'
4058 # Find a good install program. We prefer a C program (faster),
4059 # so one script is as good as another. But avoid the broken or
4060 # incompatible versions:
4061 # SysV /etc/install, /usr/sbin/install
4062 # SunOS /usr/etc/install
4063 # IRIX /sbin/install
4064 # AIX /bin/install
4065 # AmigaOS /C/install, which installs bootblocks on floppy discs
4066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4069 # OS/2's system install, which has a completely different semantic
4070 # ./install, which can be erroneously created by make from ./install.sh.
4071 # Reject install programs that cannot install multiple files.
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4074 if test -z "$INSTALL"; then
4075 if ${ac_cv_path_install+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 # Account for people who put trailing slashes in PATH elements.
4084 case $as_dir/ in #((
4085 ./ | .// | /[cC]/* | \
4086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4087 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4088 /usr/ucb/* ) ;;
4090 # OSF1 and SCO ODT 3.0 have their own names for install.
4091 # Don't use installbsd from OSF since it installs stuff as root
4092 # by default.
4093 for ac_prog in ginstall scoinst install; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4096 if test $ac_prog = install &&
4097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4098 # AIX install. It has an incompatible calling convention.
4100 elif test $ac_prog = install &&
4101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4102 # program-specific install script used by HP pwplus--don't use.
4104 else
4105 rm -rf conftest.one conftest.two conftest.dir
4106 echo one > conftest.one
4107 echo two > conftest.two
4108 mkdir conftest.dir
4109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4110 test -s conftest.one && test -s conftest.two &&
4111 test -s conftest.dir/conftest.one &&
4112 test -s conftest.dir/conftest.two
4113 then
4114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4115 break 3
4119 done
4120 done
4122 esac
4124 done
4125 IFS=$as_save_IFS
4127 rm -rf conftest.one conftest.two conftest.dir
4130 if test "${ac_cv_path_install+set}" = set; then
4131 INSTALL=$ac_cv_path_install
4132 else
4133 # As a last resort, use the slow shell script. Don't cache a
4134 # value for INSTALL within a source directory, because that will
4135 # break other packages using the cache if that directory is
4136 # removed, or if the value is a relative name.
4137 INSTALL=$ac_install_sh
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4141 $as_echo "$INSTALL" >&6; }
4143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4144 # It thinks the first close brace ends the variable substitution.
4145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4152 $as_echo_n "checking whether build environment is sane... " >&6; }
4153 # Reject unsafe characters in $srcdir or the absolute working directory
4154 # name. Accept space and tab only in the latter.
4155 am_lf='
4157 case `pwd` in
4158 *[\\\"\#\$\&\'\`$am_lf]*)
4159 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4160 esac
4161 case $srcdir in
4162 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4163 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4164 esac
4166 # Do 'set' in a subshell so we don't clobber the current shell's
4167 # arguments. Must try -L first in case configure is actually a
4168 # symlink; some systems play weird games with the mod time of symlinks
4169 # (eg FreeBSD returns the mod time of the symlink's containing
4170 # directory).
4171 if (
4172 am_has_slept=no
4173 for am_try in 1 2; do
4174 echo "timestamp, slept: $am_has_slept" > conftest.file
4175 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4176 if test "$*" = "X"; then
4177 # -L didn't work.
4178 set X `ls -t "$srcdir/configure" conftest.file`
4180 if test "$*" != "X $srcdir/configure conftest.file" \
4181 && test "$*" != "X conftest.file $srcdir/configure"; then
4183 # If neither matched, then we have a broken ls. This can happen
4184 # if, for instance, CONFIG_SHELL is bash and it inherits a
4185 # broken ls alias from the environment. This has actually
4186 # happened. Such a system could not be considered "sane".
4187 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4188 alias in your environment" "$LINENO" 5
4190 if test "$2" = conftest.file || test $am_try -eq 2; then
4191 break
4193 # Just in case.
4194 sleep 1
4195 am_has_slept=yes
4196 done
4197 test "$2" = conftest.file
4199 then
4200 # Ok.
4202 else
4203 as_fn_error $? "newly created file is older than distributed files!
4204 Check your system clock" "$LINENO" 5
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207 $as_echo "yes" >&6; }
4208 # If we didn't sleep, we still need to ensure time stamps of config.status and
4209 # generated files are strictly newer.
4210 am_sleep_pid=
4211 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4212 ( sleep 1 ) &
4213 am_sleep_pid=$!
4216 rm -f conftest.file
4218 test "$program_prefix" != NONE &&
4219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4220 # Use a double $ so make ignores it.
4221 test "$program_suffix" != NONE &&
4222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4223 # Double any \ or $.
4224 # By default was `s,x,x', remove it if useless.
4225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4228 if test x"${MISSING+set}" != xset; then
4229 case $am_aux_dir in
4230 *\ * | *\ *)
4231 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4233 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4234 esac
4236 # Use eval to expand $SHELL
4237 if eval "$MISSING --is-lightweight"; then
4238 am_missing_run="$MISSING "
4239 else
4240 am_missing_run=
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4242 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4245 if test x"${install_sh+set}" != xset; then
4246 case $am_aux_dir in
4247 *\ * | *\ *)
4248 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4250 install_sh="\${SHELL} $am_aux_dir/install-sh"
4251 esac
4254 # Installed binaries are usually stripped using 'strip' when the user
4255 # run "make install-strip". However 'strip' might not be the right
4256 # tool to use in cross-compilation environments, therefore Automake
4257 # will honor the 'STRIP' environment variable to overrule this program.
4258 if test "$cross_compiling" != no; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}strip; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_STRIP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$STRIP"; then
4268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 STRIP=$ac_cv_prog_STRIP
4288 if test -n "$STRIP"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4290 $as_echo "$STRIP" >&6; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4298 if test -z "$ac_cv_prog_STRIP"; then
4299 ac_ct_STRIP=$STRIP
4300 # Extract the first word of "strip", so it can be a program name with args.
4301 set dummy strip; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$ac_ct_STRIP"; then
4308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_ac_ct_STRIP="strip"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4328 if test -n "$ac_ct_STRIP"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4330 $as_echo "$ac_ct_STRIP" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4336 if test "x$ac_ct_STRIP" = x; then
4337 STRIP=":"
4338 else
4339 case $cross_compiling:$ac_tool_warned in
4340 yes:)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4343 ac_tool_warned=yes ;;
4344 esac
4345 STRIP=$ac_ct_STRIP
4347 else
4348 STRIP="$ac_cv_prog_STRIP"
4352 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4355 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4356 if test -z "$MKDIR_P"; then
4357 if ${ac_cv_path_mkdir+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_prog in mkdir gmkdir; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4368 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4369 'mkdir (GNU coreutils) '* | \
4370 'mkdir (coreutils) '* | \
4371 'mkdir (fileutils) '4.1*)
4372 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4373 break 3;;
4374 esac
4375 done
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 test -d ./--version && rmdir ./--version
4383 if test "${ac_cv_path_mkdir+set}" = set; then
4384 MKDIR_P="$ac_cv_path_mkdir -p"
4385 else
4386 # As a last resort, use the slow shell script. Don't cache a
4387 # value for MKDIR_P within a source directory, because that will
4388 # break other packages using the cache if that directory is
4389 # removed, or if the value is a relative name.
4390 MKDIR_P="$ac_install_sh -d"
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4394 $as_echo "$MKDIR_P" >&6; }
4396 for ac_prog in gawk mawk nawk awk
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_AWK+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$AWK"; then
4406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_AWK="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 AWK=$ac_cv_prog_AWK
4426 if test -n "$AWK"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4428 $as_echo "$AWK" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$AWK" && break
4436 done
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4439 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4440 set x ${MAKE-make}
4441 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4442 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 cat >conftest.make <<\_ACEOF
4446 SHELL = /bin/sh
4447 all:
4448 @echo '@@@%%%=$(MAKE)=@@@%%%'
4449 _ACEOF
4450 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4451 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4452 *@@@%%%=?*=@@@%%%*)
4453 eval ac_cv_prog_make_${ac_make}_set=yes;;
4455 eval ac_cv_prog_make_${ac_make}_set=no;;
4456 esac
4457 rm -f conftest.make
4459 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 $as_echo "yes" >&6; }
4462 SET_MAKE=
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 SET_MAKE="MAKE=${MAKE-make}"
4469 rm -rf .tst 2>/dev/null
4470 mkdir .tst 2>/dev/null
4471 if test -d .tst; then
4472 am__leading_dot=.
4473 else
4474 am__leading_dot=_
4476 rmdir .tst 2>/dev/null
4478 # Check whether --enable-silent-rules was given.
4479 if test "${enable_silent_rules+set}" = set; then :
4480 enableval=$enable_silent_rules;
4483 case $enable_silent_rules in # (((
4484 yes) AM_DEFAULT_VERBOSITY=0;;
4485 no) AM_DEFAULT_VERBOSITY=1;;
4486 *) AM_DEFAULT_VERBOSITY=1;;
4487 esac
4488 am_make=${MAKE-make}
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4490 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4491 if ${am_cv_make_support_nested_variables+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if $as_echo 'TRUE=$(BAR$(V))
4495 BAR0=false
4496 BAR1=true
4498 am__doit:
4499 @$(TRUE)
4500 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4501 am_cv_make_support_nested_variables=yes
4502 else
4503 am_cv_make_support_nested_variables=no
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4507 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4508 if test $am_cv_make_support_nested_variables = yes; then
4509 AM_V='$(V)'
4510 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4511 else
4512 AM_V=$AM_DEFAULT_VERBOSITY
4513 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4515 AM_BACKSLASH='\'
4517 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4518 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4519 # is not polluted with repeated "-I."
4520 am__isrc=' -I$(srcdir)'
4521 # test to see if srcdir already configured
4522 if test -f $srcdir/config.status; then
4523 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4527 # test whether we have cygpath
4528 if test -z "$CYGPATH_W"; then
4529 if (cygpath --version) >/dev/null 2>/dev/null; then
4530 CYGPATH_W='cygpath -w'
4531 else
4532 CYGPATH_W=echo
4537 # Define the identity of the package.
4538 PACKAGE='libbacktrace'
4539 VERSION='version-unused'
4542 # Some tools Automake needs.
4544 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4547 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4550 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4553 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4556 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4558 # For better backward compatibility. To be removed once Automake 1.9.x
4559 # dies out for good. For more background, see:
4560 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4561 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4562 mkdir_p='$(MKDIR_P)'
4564 # We need awk for the "check" target (and possibly the TAP driver). The
4565 # system "awk" is bad on some platforms.
4566 # Always define AMTAR for backward compatibility. Yes, it's still used
4567 # in the wild :-( We should find a proper way to deprecate it ...
4568 AMTAR='$${TAR-tar}'
4571 # We'll loop over all known methods to create a tar archive until one works.
4572 _am_tools='gnutar pax cpio none'
4574 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4581 # POSIX will say in a future version that running "rm -f" with no argument
4582 # is OK; and we want to be able to make that assumption in our Makefile
4583 # recipes. So use an aggressive probe to check that the usage we want is
4584 # actually supported "in the wild" to an acceptable degree.
4585 # See automake bug#10828.
4586 # To make any issue more visible, cause the running configure to be aborted
4587 # by default if the 'rm' program in use doesn't match our expectations; the
4588 # user can still override this though.
4589 if rm -f && rm -fr && rm -rf; then : OK; else
4590 cat >&2 <<'END'
4591 Oops!
4593 Your 'rm' program seems unable to run without file operands specified
4594 on the command line, even when the '-f' option is present. This is contrary
4595 to the behaviour of most rm programs out there, and not conforming with
4596 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4598 Please tell bug-automake@gnu.org about your system, including the value
4599 of your $PATH and any error possibly output before this message. This
4600 can help us improve future automake versions.
4603 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4604 echo 'Configuration will proceed anyway, since you have set the' >&2
4605 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4606 echo >&2
4607 else
4608 cat >&2 <<'END'
4609 Aborting the configuration process, to ensure you take notice of the issue.
4611 You can download and install GNU coreutils to get an 'rm' implementation
4612 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4614 If you want to complete the configuration process using your problematic
4615 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4616 to "yes", and re-run configure.
4619 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4626 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4627 # Check whether --enable-maintainer-mode was given.
4628 if test "${enable_maintainer_mode+set}" = set; then :
4629 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4630 else
4631 USE_MAINTAINER_MODE=no
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4635 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4636 if test $USE_MAINTAINER_MODE = yes; then
4637 MAINTAINER_MODE_TRUE=
4638 MAINTAINER_MODE_FALSE='#'
4639 else
4640 MAINTAINER_MODE_TRUE='#'
4641 MAINTAINER_MODE_FALSE=
4644 MAINT=$MAINTAINER_MODE_TRUE
4649 # Check whether --with-target-subdir was given.
4650 if test "${with_target_subdir+set}" = set; then :
4651 withval=$with_target_subdir;
4655 # We must force CC to /not/ be precious variables; otherwise
4656 # the wrong, non-multilib-adjusted value will be used in multilibs.
4657 # As a side effect, we have to subst CFLAGS ourselves.
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_prog_CC+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4687 done
4688 done
4689 IFS=$as_save_IFS
4693 CC=$ac_cv_prog_CC
4694 if test -n "$CC"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4696 $as_echo "$CC" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4704 if test -z "$ac_cv_prog_CC"; then
4705 ac_ct_CC=$CC
4706 # Extract the first word of "gcc", so it can be a program name with args.
4707 set dummy gcc; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$ac_ct_CC"; then
4714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_ac_ct_CC="gcc"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4729 IFS=$as_save_IFS
4733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4734 if test -n "$ac_ct_CC"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4736 $as_echo "$ac_ct_CC" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4742 if test "x$ac_ct_CC" = x; then
4743 CC=""
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749 ac_tool_warned=yes ;;
4750 esac
4751 CC=$ac_ct_CC
4753 else
4754 CC="$ac_cv_prog_CC"
4757 if test -z "$CC"; then
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}cc; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if ${ac_cv_prog_CC+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -n "$CC"; then
4767 ac_cv_prog_CC="$CC" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_CC="${ac_tool_prefix}cc"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 CC=$ac_cv_prog_CC
4787 if test -n "$CC"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4789 $as_echo "$CC" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4798 if test -z "$CC"; then
4799 # Extract the first word of "cc", so it can be a program name with args.
4800 set dummy cc; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_CC+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$CC"; then
4807 ac_cv_prog_CC="$CC" # Let the user override the test.
4808 else
4809 ac_prog_rejected=no
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4818 ac_prog_rejected=yes
4819 continue
4821 ac_cv_prog_CC="cc"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4829 if test $ac_prog_rejected = yes; then
4830 # We found a bogon in the path, so make sure we never use it.
4831 set dummy $ac_cv_prog_CC
4832 shift
4833 if test $# != 0; then
4834 # We chose a different compiler from the bogus one.
4835 # However, it has the same basename, so the bogon will be chosen
4836 # first if we set CC to just the basename; use the full file name.
4837 shift
4838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 if test -z "$CC"; then
4855 if test -n "$ac_tool_prefix"; then
4856 for ac_prog in cl.exe
4858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_CC+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$CC"; then
4866 ac_cv_prog_CC="$CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 CC=$ac_cv_prog_CC
4886 if test -n "$CC"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4888 $as_echo "$CC" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$CC" && break
4896 done
4898 if test -z "$CC"; then
4899 ac_ct_CC=$CC
4900 for ac_prog in cl.exe
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$ac_ct_CC"; then
4910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_CC="$ac_prog"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4930 if test -n "$ac_ct_CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4932 $as_echo "$ac_ct_CC" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 test -n "$ac_ct_CC" && break
4940 done
4942 if test "x$ac_ct_CC" = x; then
4943 CC=""
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 CC=$ac_ct_CC
4958 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4960 as_fn_error $? "no acceptable C compiler found in \$PATH
4961 See \`config.log' for more details" "$LINENO" 5; }
4963 # Provide some information about the compiler.
4964 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4965 set X $ac_compile
4966 ac_compiler=$2
4967 for ac_option in --version -v -V -qversion; do
4968 { { ac_try="$ac_compiler $ac_option >&5"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4976 ac_status=$?
4977 if test -s conftest.err; then
4978 sed '10a\
4979 ... rest of stderr output deleted ...
4980 10q' conftest.err >conftest.er1
4981 cat conftest.er1 >&5
4983 rm -f conftest.er1 conftest.err
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }
4986 done
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4990 if ${ac_cv_c_compiler_gnu+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 main ()
4999 #ifndef __GNUC__
5000 choke me
5001 #endif
5004 return 0;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_compiler_gnu=yes
5009 else
5010 ac_compiler_gnu=no
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018 if test $ac_compiler_gnu = yes; then
5019 GCC=yes
5020 else
5021 GCC=
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5027 if ${ac_cv_prog_cc_g+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5038 main ()
5042 return 0;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_prog_cc_g=yes
5047 else
5048 CFLAGS=""
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5053 main ()
5057 return 0;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5062 else
5063 ac_c_werror_flag=$ac_save_c_werror_flag
5064 CFLAGS="-g"
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5069 main ()
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_prog_cc_g=yes
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5087 $as_echo "$ac_cv_prog_cc_g" >&6; }
5088 if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090 elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5092 CFLAGS="-g -O2"
5093 else
5094 CFLAGS="-g"
5096 else
5097 if test "$GCC" = yes; then
5098 CFLAGS="-O2"
5099 else
5100 CFLAGS=
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5105 if ${ac_cv_prog_cc_c89+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_cv_prog_cc_c89=no
5109 ac_save_CC=$CC
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdarg.h>
5113 #include <stdio.h>
5114 struct stat;
5115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5116 struct buf { int x; };
5117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5118 static char *e (p, i)
5119 char **p;
5120 int i;
5122 return p[i];
5124 static char *f (char * (*g) (char **, int), char **p, ...)
5126 char *s;
5127 va_list v;
5128 va_start (v,p);
5129 s = g (p, va_arg (v,int));
5130 va_end (v);
5131 return s;
5134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5135 function prototypes and stuff, but not '\xHH' hex character constants.
5136 These don't provoke an error unfortunately, instead are silently treated
5137 as 'x'. The following induces an error, until -std is added to get
5138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5139 array size at least. It's necessary to write '\x00'==0 to get something
5140 that's true only with -std. */
5141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5143 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5144 inside strings and character constants. */
5145 #define FOO(x) 'x'
5146 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5148 int test (int i, double x);
5149 struct s1 {int (*f) (int a);};
5150 struct s2 {int (*f) (double a);};
5151 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5152 int argc;
5153 char **argv;
5155 main ()
5157 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5159 return 0;
5161 _ACEOF
5162 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5165 CC="$ac_save_CC $ac_arg"
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 ac_cv_prog_cc_c89=$ac_arg
5169 rm -f core conftest.err conftest.$ac_objext
5170 test "x$ac_cv_prog_cc_c89" != "xno" && break
5171 done
5172 rm -f conftest.$ac_ext
5173 CC=$ac_save_CC
5176 # AC_CACHE_VAL
5177 case "x$ac_cv_prog_cc_c89" in
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5180 $as_echo "none needed" >&6; } ;;
5181 xno)
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5183 $as_echo "unsupported" >&6; } ;;
5185 CC="$CC $ac_cv_prog_cc_c89"
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5187 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5188 esac
5189 if test "x$ac_cv_prog_cc_c89" != xno; then :
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5205 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5206 if ${am_cv_prog_cc_c_o+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5213 main ()
5217 return 0;
5219 _ACEOF
5220 # Make sure it works both with $CC and with simple cc.
5221 # Following AC_PROG_CC_C_O, we do the test twice because some
5222 # compilers refuse to overwrite an existing .o file with -o,
5223 # though they will create one.
5224 am_cv_prog_cc_c_o=yes
5225 for am_i in 1 2; do
5226 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5227 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } \
5231 && test -f conftest2.$ac_objext; then
5232 : OK
5233 else
5234 am_cv_prog_cc_c_o=no
5235 break
5237 done
5238 rm -f core conftest*
5239 unset am_i
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5242 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5243 if test "$am_cv_prog_cc_c_o" != yes; then
5244 # Losing compiler, so override with the script.
5245 # FIXME: It is wrong to rewrite CC.
5246 # But if we don't then we get into trouble of one sort or another.
5247 # A longer-term fix would be to have automake use am__CC in this case,
5248 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5249 CC="$am_aux_dir/compile $CC"
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_RANLIB+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$RANLIB"; then
5271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 RANLIB=$ac_cv_prog_RANLIB
5291 if test -n "$RANLIB"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5293 $as_echo "$RANLIB" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5301 if test -z "$ac_cv_prog_RANLIB"; then
5302 ac_ct_RANLIB=$RANLIB
5303 # Extract the first word of "ranlib", so it can be a program name with args.
5304 set dummy ranlib; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$ac_ct_RANLIB"; then
5311 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_ac_ct_RANLIB="ranlib"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5324 done
5325 done
5326 IFS=$as_save_IFS
5330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5331 if test -n "$ac_ct_RANLIB"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5333 $as_echo "$ac_ct_RANLIB" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5339 if test "x$ac_ct_RANLIB" = x; then
5340 RANLIB=":"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348 RANLIB=$ac_ct_RANLIB
5350 else
5351 RANLIB="$ac_cv_prog_RANLIB"
5355 for ac_prog in gawk mawk nawk awk
5357 # Extract the first word of "$ac_prog", so it can be a program name with args.
5358 set dummy $ac_prog; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_AWK+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$AWK"; then
5365 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_AWK="$ac_prog"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5380 IFS=$as_save_IFS
5384 AWK=$ac_cv_prog_AWK
5385 if test -n "$AWK"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5387 $as_echo "$AWK" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5394 test -n "$AWK" && break
5395 done
5397 case "$AWK" in
5398 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5399 esac
5401 # Extract the first word of "dwz", so it can be a program name with args.
5402 set dummy dwz; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_DWZ+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$DWZ"; then
5409 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_DWZ="dwz"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 DWZ=$ac_cv_prog_DWZ
5429 if test -n "$DWZ"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5431 $as_echo "$DWZ" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "$DWZ" != ""; then
5439 HAVE_DWZ_TRUE=
5440 HAVE_DWZ_FALSE='#'
5441 else
5442 HAVE_DWZ_TRUE='#'
5443 HAVE_DWZ_FALSE=
5447 case `pwd` in
5448 *\ * | *\ *)
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5451 esac
5455 macro_version='2.2.7a'
5456 macro_revision='1.3134'
5470 ltmain="$ac_aux_dir/ltmain.sh"
5472 # Backslashify metacharacters that are still active within
5473 # double-quoted strings.
5474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5476 # Same as above, but do not quote variable references.
5477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5479 # Sed substitution to delay expansion of an escaped shell variable in a
5480 # double_quote_subst'ed string.
5481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5483 # Sed substitution to delay expansion of an escaped single quote.
5484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5486 # Sed substitution to avoid accidental globbing in evaled expressions
5487 no_glob_subst='s/\*/\\\*/g'
5489 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5494 $as_echo_n "checking how to print strings... " >&6; }
5495 # Test print first, because it will be a builtin if present.
5496 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5497 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5498 ECHO='print -r --'
5499 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5500 ECHO='printf %s\n'
5501 else
5502 # Use this function as a fallback that always works.
5503 func_fallback_echo ()
5505 eval 'cat <<_LTECHO_EOF
5507 _LTECHO_EOF'
5509 ECHO='func_fallback_echo'
5512 # func_echo_all arg...
5513 # Invoke $ECHO with all args, space-separated.
5514 func_echo_all ()
5516 $ECHO ""
5519 case "$ECHO" in
5520 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5521 $as_echo "printf" >&6; } ;;
5522 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5523 $as_echo "print -r" >&6; } ;;
5524 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5525 $as_echo "cat" >&6; } ;;
5526 esac
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5543 if ${ac_cv_path_SED+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5547 for ac_i in 1 2 3 4 5 6 7; do
5548 ac_script="$ac_script$as_nl$ac_script"
5549 done
5550 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5551 { ac_script=; unset ac_script;}
5552 if test -z "$SED"; then
5553 ac_path_SED_found=false
5554 # Loop through the user's path and test for each of PROGNAME-LIST
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_prog in sed gsed; do
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5563 as_fn_executable_p "$ac_path_SED" || continue
5564 # Check for GNU ac_path_SED and select it if it is found.
5565 # Check for GNU $ac_path_SED
5566 case `"$ac_path_SED" --version 2>&1` in
5567 *GNU*)
5568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5570 ac_count=0
5571 $as_echo_n 0123456789 >"conftest.in"
5572 while :
5574 cat "conftest.in" "conftest.in" >"conftest.tmp"
5575 mv "conftest.tmp" "conftest.in"
5576 cp "conftest.in" "conftest.nl"
5577 $as_echo '' >> "conftest.nl"
5578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5580 as_fn_arith $ac_count + 1 && ac_count=$as_val
5581 if test $ac_count -gt ${ac_path_SED_max-0}; then
5582 # Best one so far, save it but keep looking for a better one
5583 ac_cv_path_SED="$ac_path_SED"
5584 ac_path_SED_max=$ac_count
5586 # 10*(2^10) chars as input seems more than enough
5587 test $ac_count -gt 10 && break
5588 done
5589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590 esac
5592 $ac_path_SED_found && break 3
5593 done
5594 done
5595 done
5596 IFS=$as_save_IFS
5597 if test -z "$ac_cv_path_SED"; then
5598 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5600 else
5601 ac_cv_path_SED=$SED
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5606 $as_echo "$ac_cv_path_SED" >&6; }
5607 SED="$ac_cv_path_SED"
5608 rm -f conftest.sed
5610 test -z "$SED" && SED=sed
5611 Xsed="$SED -e 1s/^X//"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5624 $as_echo_n "checking for fgrep... " >&6; }
5625 if ${ac_cv_path_FGREP+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5629 then ac_cv_path_FGREP="$GREP -F"
5630 else
5631 if test -z "$FGREP"; then
5632 ac_path_FGREP_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in fgrep; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5642 as_fn_executable_p "$ac_path_FGREP" || continue
5643 # Check for GNU ac_path_FGREP and select it if it is found.
5644 # Check for GNU $ac_path_FGREP
5645 case `"$ac_path_FGREP" --version 2>&1` in
5646 *GNU*)
5647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5649 ac_count=0
5650 $as_echo_n 0123456789 >"conftest.in"
5651 while :
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo 'FGREP' >> "conftest.nl"
5657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 as_fn_arith $ac_count + 1 && ac_count=$as_val
5660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_FGREP="$ac_path_FGREP"
5663 ac_path_FGREP_max=$ac_count
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5667 done
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 esac
5671 $ac_path_FGREP_found && break 3
5672 done
5673 done
5674 done
5675 IFS=$as_save_IFS
5676 if test -z "$ac_cv_path_FGREP"; then
5677 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5679 else
5680 ac_cv_path_FGREP=$FGREP
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5686 $as_echo "$ac_cv_path_FGREP" >&6; }
5687 FGREP="$ac_cv_path_FGREP"
5690 test -z "$GREP" && GREP=grep
5710 # Check whether --with-gnu-ld was given.
5711 if test "${with_gnu_ld+set}" = set; then :
5712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5713 else
5714 with_gnu_ld=no
5717 ac_prog=ld
5718 if test "$GCC" = yes; then
5719 # Check if gcc -print-prog-name=ld gives a path.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5721 $as_echo_n "checking for ld used by $CC... " >&6; }
5722 case $host in
5723 *-*-mingw*)
5724 # gcc leaves a trailing carriage return which upsets mingw
5725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5728 esac
5729 case $ac_prog in
5730 # Accept absolute paths.
5731 [\\/]* | ?:[\\/]*)
5732 re_direlt='/[^/][^/]*/\.\./'
5733 # Canonicalize the pathname of ld
5734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5737 done
5738 test -z "$LD" && LD="$ac_prog"
5741 # If it fails, then pretend we aren't using GCC.
5742 ac_prog=ld
5745 # If it is relative, then search for the first ld in PATH.
5746 with_gnu_ld=unknown
5748 esac
5749 elif test "$with_gnu_ld" = yes; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5751 $as_echo_n "checking for GNU ld... " >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5754 $as_echo_n "checking for non-GNU ld... " >&6; }
5756 if ${lt_cv_path_LD+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -z "$LD"; then
5760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761 for ac_dir in $PATH; do
5762 IFS="$lt_save_ifs"
5763 test -z "$ac_dir" && ac_dir=.
5764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5765 lt_cv_path_LD="$ac_dir/$ac_prog"
5766 # Check to see if the program is GNU ld. I'd rather use --version,
5767 # but apparently some variants of GNU ld only accept -v.
5768 # Break only if it was the GNU/non-GNU ld that we prefer.
5769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5770 *GNU* | *'with BFD'*)
5771 test "$with_gnu_ld" != no && break
5774 test "$with_gnu_ld" != yes && break
5776 esac
5778 done
5779 IFS="$lt_save_ifs"
5780 else
5781 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5785 LD="$lt_cv_path_LD"
5786 if test -n "$LD"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5788 $as_echo "$LD" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5793 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5795 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5796 if ${lt_cv_prog_gnu_ld+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5800 case `$LD -v 2>&1 </dev/null` in
5801 *GNU* | *'with BFD'*)
5802 lt_cv_prog_gnu_ld=yes
5805 lt_cv_prog_gnu_ld=no
5807 esac
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5810 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5811 with_gnu_ld=$lt_cv_prog_gnu_ld
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5822 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5823 if ${lt_cv_path_NM+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$NM"; then
5827 # Let the user override the test.
5828 lt_cv_path_NM="$NM"
5829 else
5830 lt_nm_to_check="${ac_tool_prefix}nm"
5831 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5832 lt_nm_to_check="$lt_nm_to_check nm"
5834 for lt_tmp_nm in $lt_nm_to_check; do
5835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5837 IFS="$lt_save_ifs"
5838 test -z "$ac_dir" && ac_dir=.
5839 tmp_nm="$ac_dir/$lt_tmp_nm"
5840 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5841 # Check to see if the nm accepts a BSD-compat flag.
5842 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5843 # nm: unknown option "B" ignored
5844 # Tru64's nm complains that /dev/null is an invalid object file
5845 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5846 */dev/null* | *'Invalid file or object type'*)
5847 lt_cv_path_NM="$tmp_nm -B"
5848 break
5851 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5852 */dev/null*)
5853 lt_cv_path_NM="$tmp_nm -p"
5854 break
5857 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5858 continue # so that we can try to find one that supports BSD flags
5860 esac
5862 esac
5864 done
5865 IFS="$lt_save_ifs"
5866 done
5867 : ${lt_cv_path_NM=no}
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5871 $as_echo "$lt_cv_path_NM" >&6; }
5872 if test "$lt_cv_path_NM" != "no"; then
5873 NM="$lt_cv_path_NM"
5874 else
5875 # Didn't find any BSD compatible name lister, look for dumpbin.
5876 if test -n "$DUMPBIN"; then :
5877 # Let the user override the test.
5878 else
5879 if test -n "$ac_tool_prefix"; then
5880 for ac_prog in dumpbin "link -dump"
5882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_prog_DUMPBIN+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 if test -n "$DUMPBIN"; then
5890 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5903 done
5904 done
5905 IFS=$as_save_IFS
5909 DUMPBIN=$ac_cv_prog_DUMPBIN
5910 if test -n "$DUMPBIN"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5912 $as_echo "$DUMPBIN" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5919 test -n "$DUMPBIN" && break
5920 done
5922 if test -z "$DUMPBIN"; then
5923 ac_ct_DUMPBIN=$DUMPBIN
5924 for ac_prog in dumpbin "link -dump"
5926 # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$ac_ct_DUMPBIN"; then
5934 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5949 IFS=$as_save_IFS
5953 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5954 if test -n "$ac_ct_DUMPBIN"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5956 $as_echo "$ac_ct_DUMPBIN" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5963 test -n "$ac_ct_DUMPBIN" && break
5964 done
5966 if test "x$ac_ct_DUMPBIN" = x; then
5967 DUMPBIN=":"
5968 else
5969 case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975 DUMPBIN=$ac_ct_DUMPBIN
5979 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5980 *COFF*)
5981 DUMPBIN="$DUMPBIN -symbols"
5984 DUMPBIN=:
5986 esac
5989 if test "$DUMPBIN" != ":"; then
5990 NM="$DUMPBIN"
5993 test -z "$NM" && NM=nm
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6001 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6002 if ${lt_cv_nm_interface+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 lt_cv_nm_interface="BSD nm"
6006 echo "int some_variable = 0;" > conftest.$ac_ext
6007 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6008 (eval "$ac_compile" 2>conftest.err)
6009 cat conftest.err >&5
6010 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6011 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6012 cat conftest.err >&5
6013 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6014 cat conftest.out >&5
6015 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6016 lt_cv_nm_interface="MS dumpbin"
6018 rm -f conftest*
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6021 $as_echo "$lt_cv_nm_interface" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6024 $as_echo_n "checking whether ln -s works... " >&6; }
6025 LN_S=$as_ln_s
6026 if test "$LN_S" = "ln -s"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6028 $as_echo "yes" >&6; }
6029 else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6031 $as_echo "no, using $LN_S" >&6; }
6034 # find the maximum length of command line arguments
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6036 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6037 if ${lt_cv_sys_max_cmd_len+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6041 teststring="ABCD"
6043 case $build_os in
6044 msdosdjgpp*)
6045 # On DJGPP, this test can blow up pretty badly due to problems in libc
6046 # (any single argument exceeding 2000 bytes causes a buffer overrun
6047 # during glob expansion). Even if it were fixed, the result of this
6048 # check would be larger than it should be.
6049 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6052 gnu*)
6053 # Under GNU Hurd, this test is not required because there is
6054 # no limit to the length of command line arguments.
6055 # Libtool will interpret -1 as no limit whatsoever
6056 lt_cv_sys_max_cmd_len=-1;
6059 cygwin* | mingw* | cegcc*)
6060 # On Win9x/ME, this test blows up -- it succeeds, but takes
6061 # about 5 minutes as the teststring grows exponentially.
6062 # Worse, since 9x/ME are not pre-emptively multitasking,
6063 # you end up with a "frozen" computer, even though with patience
6064 # the test eventually succeeds (with a max line length of 256k).
6065 # Instead, let's just punt: use the minimum linelength reported by
6066 # all of the supported platforms: 8192 (on NT/2K/XP).
6067 lt_cv_sys_max_cmd_len=8192;
6070 mint*)
6071 # On MiNT this can take a long time and run out of memory.
6072 lt_cv_sys_max_cmd_len=8192;
6075 amigaos*)
6076 # On AmigaOS with pdksh, this test takes hours, literally.
6077 # So we just punt and use a minimum line length of 8192.
6078 lt_cv_sys_max_cmd_len=8192;
6081 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6082 # This has been around since 386BSD, at least. Likely further.
6083 if test -x /sbin/sysctl; then
6084 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6085 elif test -x /usr/sbin/sysctl; then
6086 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6087 else
6088 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6090 # And add a safety zone
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6095 interix*)
6096 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6097 lt_cv_sys_max_cmd_len=196608
6100 osf*)
6101 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6102 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6103 # nice to cause kernel panics so lets avoid the loop below.
6104 # First set a reasonable default.
6105 lt_cv_sys_max_cmd_len=16384
6107 if test -x /sbin/sysconfig; then
6108 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6109 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6110 esac
6113 sco3.2v5*)
6114 lt_cv_sys_max_cmd_len=102400
6116 sysv5* | sco5v6* | sysv4.2uw2*)
6117 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6118 if test -n "$kargmax"; then
6119 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6120 else
6121 lt_cv_sys_max_cmd_len=32768
6125 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6126 if test -n "$lt_cv_sys_max_cmd_len"; then
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6129 else
6130 # Make teststring a little bigger before we do anything with it.
6131 # a 1K string should be a reasonable start.
6132 for i in 1 2 3 4 5 6 7 8 ; do
6133 teststring=$teststring$teststring
6134 done
6135 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6136 # If test is not a shell built-in, we'll probably end up computing a
6137 # maximum length that is only half of the actual maximum length, but
6138 # we can't tell.
6139 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6140 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6141 test $i != 17 # 1/2 MB should be enough
6143 i=`expr $i + 1`
6144 teststring=$teststring$teststring
6145 done
6146 # Only check the string length outside the loop.
6147 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6148 teststring=
6149 # Add a significant safety factor because C++ compilers can tack on
6150 # massive amounts of additional arguments before passing them to the
6151 # linker. It appears as though 1/2 is a usable value.
6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6155 esac
6159 if test -n $lt_cv_sys_max_cmd_len ; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6161 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6164 $as_echo "none" >&6; }
6166 max_cmd_len=$lt_cv_sys_max_cmd_len
6173 : ${CP="cp -f"}
6174 : ${MV="mv -f"}
6175 : ${RM="rm -f"}
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6178 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6179 # Try some XSI features
6180 xsi_shell=no
6181 ( _lt_dummy="a/b/c"
6182 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6183 = c,a/b,, \
6184 && eval 'test $(( 1 + 1 )) -eq 2 \
6185 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6186 && xsi_shell=yes
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6188 $as_echo "$xsi_shell" >&6; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6192 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6193 lt_shell_append=no
6194 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6195 >/dev/null 2>&1 \
6196 && lt_shell_append=yes
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6198 $as_echo "$lt_shell_append" >&6; }
6201 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6202 lt_unset=unset
6203 else
6204 lt_unset=false
6211 # test EBCDIC or ASCII
6212 case `echo X|tr X '\101'` in
6213 A) # ASCII based system
6214 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6215 lt_SP2NL='tr \040 \012'
6216 lt_NL2SP='tr \015\012 \040\040'
6218 *) # EBCDIC based system
6219 lt_SP2NL='tr \100 \n'
6220 lt_NL2SP='tr \r\n \100\100'
6222 esac
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6233 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6234 if ${lt_cv_ld_reload_flag+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 lt_cv_ld_reload_flag='-r'
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6240 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6241 reload_flag=$lt_cv_ld_reload_flag
6242 case $reload_flag in
6243 "" | " "*) ;;
6244 *) reload_flag=" $reload_flag" ;;
6245 esac
6246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 case $host_os in
6248 darwin*)
6249 if test "$GCC" = yes; then
6250 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6251 else
6252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255 esac
6265 if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if ${ac_cv_prog_OBJDUMP+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 if test -n "$OBJDUMP"; then
6274 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6287 done
6288 done
6289 IFS=$as_save_IFS
6293 OBJDUMP=$ac_cv_prog_OBJDUMP
6294 if test -n "$OBJDUMP"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6296 $as_echo "$OBJDUMP" >&6; }
6297 else
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6304 if test -z "$ac_cv_prog_OBJDUMP"; then
6305 ac_ct_OBJDUMP=$OBJDUMP
6306 # Extract the first word of "objdump", so it can be a program name with args.
6307 set dummy objdump; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$ac_ct_OBJDUMP"; then
6314 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6333 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6334 if test -n "$ac_ct_OBJDUMP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6336 $as_echo "$ac_ct_OBJDUMP" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6342 if test "x$ac_ct_OBJDUMP" = x; then
6343 OBJDUMP="false"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351 OBJDUMP=$ac_ct_OBJDUMP
6353 else
6354 OBJDUMP="$ac_cv_prog_OBJDUMP"
6357 test -z "$OBJDUMP" && OBJDUMP=objdump
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6368 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6369 if ${lt_cv_deplibs_check_method+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 lt_cv_file_magic_cmd='$MAGIC_CMD'
6373 lt_cv_file_magic_test_file=
6374 lt_cv_deplibs_check_method='unknown'
6375 # Need to set the preceding variable on all platforms that support
6376 # interlibrary dependencies.
6377 # 'none' -- dependencies not supported.
6378 # `unknown' -- same as none, but documents that we really don't know.
6379 # 'pass_all' -- all dependencies passed with no checks.
6380 # 'test_compile' -- check by making test program.
6381 # 'file_magic [[regex]]' -- check by looking for files in library path
6382 # which responds to the $file_magic_cmd with a given extended regex.
6383 # If you have `file' or equivalent on your system and you're not sure
6384 # whether `pass_all' will *always* work, you probably want this one.
6386 case $host_os in
6387 aix[4-9]*)
6388 lt_cv_deplibs_check_method=pass_all
6391 beos*)
6392 lt_cv_deplibs_check_method=pass_all
6395 bsdi[45]*)
6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6397 lt_cv_file_magic_cmd='/usr/bin/file -L'
6398 lt_cv_file_magic_test_file=/shlib/libc.so
6401 cygwin*)
6402 # func_win32_libid is a shell function defined in ltmain.sh
6403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6404 lt_cv_file_magic_cmd='func_win32_libid'
6407 mingw* | pw32*)
6408 # Base MSYS/MinGW do not provide the 'file' command needed by
6409 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6410 # unless we find 'file', for example because we are cross-compiling.
6411 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6412 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6413 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6414 lt_cv_file_magic_cmd='func_win32_libid'
6415 else
6416 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6421 cegcc*)
6422 # use the weaker test based on 'objdump'. See mingw*.
6423 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 darwin* | rhapsody*)
6428 lt_cv_deplibs_check_method=pass_all
6431 freebsd* | dragonfly*)
6432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6433 case $host_cpu in
6434 i*86 )
6435 # Not sure whether the presence of OpenBSD here was a mistake.
6436 # Let's accept both of them until this is cleared up.
6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441 esac
6442 else
6443 lt_cv_deplibs_check_method=pass_all
6447 gnu*)
6448 lt_cv_deplibs_check_method=pass_all
6451 haiku*)
6452 lt_cv_deplibs_check_method=pass_all
6455 hpux10.20* | hpux11*)
6456 lt_cv_file_magic_cmd=/usr/bin/file
6457 case $host_cpu in
6458 ia64*)
6459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6460 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462 hppa*64*)
6463 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]'
6464 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6468 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470 esac
6473 interix[3-9]*)
6474 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6478 irix5* | irix6* | nonstopux*)
6479 case $LD in
6480 *-32|*"-32 ") libmagic=32-bit;;
6481 *-n32|*"-n32 ") libmagic=N32;;
6482 *-64|*"-64 ") libmagic=64-bit;;
6483 *) libmagic=never-match;;
6484 esac
6485 lt_cv_deplibs_check_method=pass_all
6488 # This must be Linux ELF.
6489 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6490 lt_cv_deplibs_check_method=pass_all
6493 netbsd*)
6494 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6496 else
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6501 newos6*)
6502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6503 lt_cv_file_magic_cmd=/usr/bin/file
6504 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6507 *nto* | *qnx*)
6508 lt_cv_deplibs_check_method=pass_all
6511 openbsd*)
6512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6514 else
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6519 osf3* | osf4* | osf5*)
6520 lt_cv_deplibs_check_method=pass_all
6523 rdos*)
6524 lt_cv_deplibs_check_method=pass_all
6527 solaris*)
6528 lt_cv_deplibs_check_method=pass_all
6531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6532 lt_cv_deplibs_check_method=pass_all
6535 sysv4 | sysv4.3*)
6536 case $host_vendor in
6537 motorola)
6538 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]'
6539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541 ncr)
6542 lt_cv_deplibs_check_method=pass_all
6544 sequent)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548 sni)
6549 lt_cv_file_magic_cmd='/bin/file'
6550 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6551 lt_cv_file_magic_test_file=/lib/libc.so
6553 siemens)
6554 lt_cv_deplibs_check_method=pass_all
6557 lt_cv_deplibs_check_method=pass_all
6559 esac
6562 tpf*)
6563 lt_cv_deplibs_check_method=pass_all
6565 vxworks*)
6566 # Assume VxWorks cross toolchains are built on Linux, possibly
6567 # as canadian for Windows hosts.
6568 lt_cv_deplibs_check_method=pass_all
6570 esac
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6574 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6575 file_magic_cmd=$lt_cv_file_magic_cmd
6576 deplibs_check_method=$lt_cv_deplibs_check_method
6577 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}ar; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_prog_AR+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 if test -n "$AR"; then
6599 ac_cv_prog_AR="$AR" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_AR="${ac_tool_prefix}ar"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6612 done
6613 done
6614 IFS=$as_save_IFS
6618 AR=$ac_cv_prog_AR
6619 if test -n "$AR"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6621 $as_echo "$AR" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6629 if test -z "$ac_cv_prog_AR"; then
6630 ac_ct_AR=$AR
6631 # Extract the first word of "ar", so it can be a program name with args.
6632 set dummy ar; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$ac_ct_AR"; then
6639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_ac_ct_AR="ar"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6659 if test -n "$ac_ct_AR"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6661 $as_echo "$ac_ct_AR" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6667 if test "x$ac_ct_AR" = x; then
6668 AR="false"
6669 else
6670 case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 AR=$ac_ct_AR
6678 else
6679 AR="$ac_cv_prog_AR"
6682 test -z "$AR" && AR=ar
6683 test -z "$AR_FLAGS" && AR_FLAGS=cru
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}strip; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_STRIP+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$STRIP"; then
6704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6723 STRIP=$ac_cv_prog_STRIP
6724 if test -n "$STRIP"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6726 $as_echo "$STRIP" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6734 if test -z "$ac_cv_prog_STRIP"; then
6735 ac_ct_STRIP=$STRIP
6736 # Extract the first word of "strip", so it can be a program name with args.
6737 set dummy strip; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$ac_ct_STRIP"; then
6744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_ac_ct_STRIP="strip"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6757 done
6758 done
6759 IFS=$as_save_IFS
6763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6764 if test -n "$ac_ct_STRIP"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6766 $as_echo "$ac_ct_STRIP" >&6; }
6767 else
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6772 if test "x$ac_ct_STRIP" = x; then
6773 STRIP=":"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6780 esac
6781 STRIP=$ac_ct_STRIP
6783 else
6784 STRIP="$ac_cv_prog_STRIP"
6787 test -z "$STRIP" && STRIP=:
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_RANLIB+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$RANLIB"; then
6803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6818 IFS=$as_save_IFS
6822 RANLIB=$ac_cv_prog_RANLIB
6823 if test -n "$RANLIB"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6825 $as_echo "$RANLIB" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6833 if test -z "$ac_cv_prog_RANLIB"; then
6834 ac_ct_RANLIB=$RANLIB
6835 # Extract the first word of "ranlib", so it can be a program name with args.
6836 set dummy ranlib; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_RANLIB"; then
6843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_ac_ct_RANLIB="ranlib"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6863 if test -n "$ac_ct_RANLIB"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6865 $as_echo "$ac_ct_RANLIB" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6871 if test "x$ac_ct_RANLIB" = x; then
6872 RANLIB=":"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 RANLIB=$ac_ct_RANLIB
6882 else
6883 RANLIB="$ac_cv_prog_RANLIB"
6886 test -z "$RANLIB" && RANLIB=:
6893 # Determine commands to create old-style static archives.
6894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6895 old_postinstall_cmds='chmod 644 $oldlib'
6896 old_postuninstall_cmds=
6898 if test -n "$RANLIB"; then
6899 case $host_os in
6900 openbsd*)
6901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6906 esac
6907 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6910 case $host_os in
6911 darwin*)
6912 lock_old_archive_extraction=yes ;;
6914 lock_old_archive_extraction=no ;;
6915 esac
6955 # If no C compiler was specified, use CC.
6956 LTCC=${LTCC-"$CC"}
6958 # If no C compiler flags were specified, use CFLAGS.
6959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6961 # Allow CC to be a program name with arguments.
6962 compiler=$CC
6965 # Check for command to grab the raw symbol name followed by C symbol from nm.
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6967 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6968 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6972 # These are sane defaults that work on at least a few old systems.
6973 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6975 # Character class describing NM global symbol codes.
6976 symcode='[BCDEGRST]'
6978 # Regexp to match symbols that can be accessed directly from C.
6979 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6981 # Define system-specific variables.
6982 case $host_os in
6983 aix*)
6984 symcode='[BCDT]'
6986 cygwin* | mingw* | pw32* | cegcc*)
6987 symcode='[ABCDGISTW]'
6989 hpux*)
6990 if test "$host_cpu" = ia64; then
6991 symcode='[ABCDEGRST]'
6994 irix* | nonstopux*)
6995 symcode='[BCDEGRST]'
6997 osf*)
6998 symcode='[BCDEGQRST]'
7000 solaris*)
7001 symcode='[BDRT]'
7003 sco3.2v5*)
7004 symcode='[DT]'
7006 sysv4.2uw2*)
7007 symcode='[DT]'
7009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7010 symcode='[ABDT]'
7012 sysv4)
7013 symcode='[DFNSTU]'
7015 esac
7017 # If we're using GNU nm, then use its standard symbol codes.
7018 case `$NM -V 2>&1` in
7019 *GNU* | *'with BFD'*)
7020 symcode='[ABCDGIRSTW]' ;;
7021 esac
7023 # Transform an extracted symbol line into a proper C declaration.
7024 # Some systems (esp. on ia64) link data and code symbols differently,
7025 # so use this general approach.
7026 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7028 # Transform an extracted symbol line into symbol name and symbol address
7029 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7030 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'"
7032 # Handle CRLF in mingw tool chain
7033 opt_cr=
7034 case $build_os in
7035 mingw*)
7036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7038 esac
7040 # Try without a prefix underscore, then with it.
7041 for ac_symprfx in "" "_"; do
7043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7044 symxfrm="\\1 $ac_symprfx\\2 \\2"
7046 # Write the raw and C identifiers.
7047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7048 # Fake it for dumpbin and say T for any non-static function
7049 # and D for any global variable.
7050 # Also find C++ and __fastcall symbols from MSVC++,
7051 # which start with @ or ?.
7052 lt_cv_sys_global_symbol_pipe="$AWK '"\
7053 " {last_section=section; section=\$ 3};"\
7054 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7055 " \$ 0!~/External *\|/{next};"\
7056 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7057 " {if(hide[section]) next};"\
7058 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7059 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7060 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7061 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7062 " ' prfx=^$ac_symprfx"
7063 else
7064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7067 # Check to see that the pipe works correctly.
7068 pipe_works=no
7070 rm -f conftest*
7071 cat > conftest.$ac_ext <<_LT_EOF
7072 #ifdef __cplusplus
7073 extern "C" {
7074 #endif
7075 char nm_test_var;
7076 void nm_test_func(void);
7077 void nm_test_func(void){}
7078 #ifdef __cplusplus
7080 #endif
7081 int main(){nm_test_var='a';nm_test_func();return(0);}
7082 _LT_EOF
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085 (eval $ac_compile) 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 # Now try to grab the symbols.
7090 nlist=conftest.nm
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7092 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7093 ac_status=$?
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; } && test -s "$nlist"; then
7096 # Try sorting and uniquifying the output.
7097 if sort "$nlist" | uniq > "$nlist"T; then
7098 mv -f "$nlist"T "$nlist"
7099 else
7100 rm -f "$nlist"T
7103 # Make sure that we snagged all the symbols we need.
7104 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106 cat <<_LT_EOF > conftest.$ac_ext
7107 #ifdef __cplusplus
7108 extern "C" {
7109 #endif
7111 _LT_EOF
7112 # Now generate the symbol file.
7113 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7115 cat <<_LT_EOF >> conftest.$ac_ext
7117 /* The mapping between symbol names and symbols. */
7118 const struct {
7119 const char *name;
7120 void *address;
7122 lt__PROGRAM__LTX_preloaded_symbols[] =
7124 { "@PROGRAM@", (void *) 0 },
7125 _LT_EOF
7126 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7127 cat <<\_LT_EOF >> conftest.$ac_ext
7128 {0, (void *) 0}
7131 /* This works around a problem in FreeBSD linker */
7132 #ifdef FREEBSD_WORKAROUND
7133 static const void *lt_preloaded_setup() {
7134 return lt__PROGRAM__LTX_preloaded_symbols;
7136 #endif
7138 #ifdef __cplusplus
7140 #endif
7141 _LT_EOF
7142 # Now try linking the two files.
7143 mv conftest.$ac_objext conftstm.$ac_objext
7144 lt_save_LIBS="$LIBS"
7145 lt_save_CFLAGS="$CFLAGS"
7146 LIBS="conftstm.$ac_objext"
7147 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7149 (eval $ac_link) 2>&5
7150 ac_status=$?
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7153 pipe_works=yes
7155 LIBS="$lt_save_LIBS"
7156 CFLAGS="$lt_save_CFLAGS"
7157 else
7158 echo "cannot find nm_test_func in $nlist" >&5
7160 else
7161 echo "cannot find nm_test_var in $nlist" >&5
7163 else
7164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7166 else
7167 echo "$progname: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 rm -rf conftest* conftst*
7172 # Do not use the global_symbol_pipe unless it works.
7173 if test "$pipe_works" = yes; then
7174 break
7175 else
7176 lt_cv_sys_global_symbol_pipe=
7178 done
7182 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7183 lt_cv_sys_global_symbol_to_cdecl=
7185 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7187 $as_echo "failed" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7190 $as_echo "ok" >&6; }
7214 # Check whether --enable-libtool-lock was given.
7215 if test "${enable_libtool_lock+set}" = set; then :
7216 enableval=$enable_libtool_lock;
7219 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7221 # Some flags need to be propagated to the compiler or linker for good
7222 # libtool support.
7223 case $host in
7224 ia64-*-hpux*)
7225 # Find out which ABI we are using.
7226 echo 'int i;' > conftest.$ac_ext
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 case `/usr/bin/file conftest.$ac_objext` in
7233 *ELF-32*)
7234 HPUX_IA64_MODE="32"
7236 *ELF-64*)
7237 HPUX_IA64_MODE="64"
7239 esac
7241 rm -rf conftest*
7243 *-*-irix6*)
7244 # Find out which ABI we are using.
7245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247 (eval $ac_compile) 2>&5
7248 ac_status=$?
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }; then
7251 if test "$lt_cv_prog_gnu_ld" = yes; then
7252 case `/usr/bin/file conftest.$ac_objext` in
7253 *32-bit*)
7254 LD="${LD-ld} -melf32bsmip"
7256 *N32*)
7257 LD="${LD-ld} -melf32bmipn32"
7259 *64-bit*)
7260 LD="${LD-ld} -melf64bmip"
7262 esac
7263 else
7264 case `/usr/bin/file conftest.$ac_objext` in
7265 *32-bit*)
7266 LD="${LD-ld} -32"
7268 *N32*)
7269 LD="${LD-ld} -n32"
7271 *64-bit*)
7272 LD="${LD-ld} -64"
7274 esac
7277 rm -rf conftest*
7280 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7281 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7282 # Find out which ABI we are using.
7283 echo 'int i;' > conftest.$ac_ext
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285 (eval $ac_compile) 2>&5
7286 ac_status=$?
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; }; then
7289 case `/usr/bin/file conftest.o` in
7290 *32-bit*)
7291 case $host in
7292 x86_64-*kfreebsd*-gnu)
7293 LD="${LD-ld} -m elf_i386_fbsd"
7295 x86_64-*linux*)
7296 case `/usr/bin/file conftest.o` in
7297 *x86-64*)
7298 LD="${LD-ld} -m elf32_x86_64"
7301 LD="${LD-ld} -m elf_i386"
7303 esac
7305 powerpc64le-*linux*)
7306 LD="${LD-ld} -m elf32lppclinux"
7308 powerpc64-*linux*)
7309 LD="${LD-ld} -m elf32ppclinux"
7311 s390x-*linux*)
7312 LD="${LD-ld} -m elf_s390"
7314 sparc64-*linux*)
7315 LD="${LD-ld} -m elf32_sparc"
7317 esac
7319 *64-bit*)
7320 case $host in
7321 x86_64-*kfreebsd*-gnu)
7322 LD="${LD-ld} -m elf_x86_64_fbsd"
7324 x86_64-*linux*)
7325 LD="${LD-ld} -m elf_x86_64"
7327 powerpcle-*linux*)
7328 LD="${LD-ld} -m elf64lppc"
7330 powerpc-*linux*)
7331 LD="${LD-ld} -m elf64ppc"
7333 s390*-*linux*|s390*-*tpf*)
7334 LD="${LD-ld} -m elf64_s390"
7336 sparc*-*linux*)
7337 LD="${LD-ld} -m elf64_sparc"
7339 esac
7341 esac
7343 rm -rf conftest*
7346 *-*-sco3.2v5*)
7347 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7348 SAVE_CFLAGS="$CFLAGS"
7349 CFLAGS="$CFLAGS -belf"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7351 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7352 if ${lt_cv_cc_needs_belf+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 ac_ext=c
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7365 main ()
7369 return 0;
7371 _ACEOF
7372 if ac_fn_c_try_link "$LINENO"; then :
7373 lt_cv_cc_needs_belf=yes
7374 else
7375 lt_cv_cc_needs_belf=no
7377 rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7379 ac_ext=c
7380 ac_cpp='$CPP $CPPFLAGS'
7381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7387 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7388 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7389 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7390 CFLAGS="$SAVE_CFLAGS"
7393 sparc*-*solaris*)
7394 # Find out which ABI we are using.
7395 echo 'int i;' > conftest.$ac_ext
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397 (eval $ac_compile) 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; }; then
7401 case `/usr/bin/file conftest.o` in
7402 *64-bit*)
7403 case $lt_cv_prog_gnu_ld in
7404 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7406 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7407 LD="${LD-ld} -64"
7410 esac
7412 esac
7414 rm -rf conftest*
7416 esac
7418 need_locks="$enable_libtool_lock"
7421 case $host_os in
7422 rhapsody* | darwin*)
7423 if test -n "$ac_tool_prefix"; then
7424 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7425 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$DSYMUTIL"; then
7432 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7451 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7452 if test -n "$DSYMUTIL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7454 $as_echo "$DSYMUTIL" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7462 if test -z "$ac_cv_prog_DSYMUTIL"; then
7463 ac_ct_DSYMUTIL=$DSYMUTIL
7464 # Extract the first word of "dsymutil", so it can be a program name with args.
7465 set dummy dsymutil; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$ac_ct_DSYMUTIL"; then
7472 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7491 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7492 if test -n "$ac_ct_DSYMUTIL"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7494 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7500 if test "x$ac_ct_DSYMUTIL" = x; then
7501 DSYMUTIL=":"
7502 else
7503 case $cross_compiling:$ac_tool_warned in
7504 yes:)
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned=yes ;;
7508 esac
7509 DSYMUTIL=$ac_ct_DSYMUTIL
7511 else
7512 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_NMEDIT+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$NMEDIT"; then
7524 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7537 done
7538 done
7539 IFS=$as_save_IFS
7543 NMEDIT=$ac_cv_prog_NMEDIT
7544 if test -n "$NMEDIT"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7546 $as_echo "$NMEDIT" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7554 if test -z "$ac_cv_prog_NMEDIT"; then
7555 ac_ct_NMEDIT=$NMEDIT
7556 # Extract the first word of "nmedit", so it can be a program name with args.
7557 set dummy nmedit; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$ac_ct_NMEDIT"; then
7564 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7577 done
7578 done
7579 IFS=$as_save_IFS
7583 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7584 if test -n "$ac_ct_NMEDIT"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7586 $as_echo "$ac_ct_NMEDIT" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7592 if test "x$ac_ct_NMEDIT" = x; then
7593 NMEDIT=":"
7594 else
7595 case $cross_compiling:$ac_tool_warned in
7596 yes:)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601 NMEDIT=$ac_ct_NMEDIT
7603 else
7604 NMEDIT="$ac_cv_prog_NMEDIT"
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_LIPO+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$LIPO"; then
7616 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7629 done
7630 done
7631 IFS=$as_save_IFS
7635 LIPO=$ac_cv_prog_LIPO
7636 if test -n "$LIPO"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7638 $as_echo "$LIPO" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7646 if test -z "$ac_cv_prog_LIPO"; then
7647 ac_ct_LIPO=$LIPO
7648 # Extract the first word of "lipo", so it can be a program name with args.
7649 set dummy lipo; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$ac_ct_LIPO"; then
7656 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_LIPO="lipo"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7669 done
7670 done
7671 IFS=$as_save_IFS
7675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7676 if test -n "$ac_ct_LIPO"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7678 $as_echo "$ac_ct_LIPO" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7684 if test "x$ac_ct_LIPO" = x; then
7685 LIPO=":"
7686 else
7687 case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693 LIPO=$ac_ct_LIPO
7695 else
7696 LIPO="$ac_cv_prog_LIPO"
7699 if test -n "$ac_tool_prefix"; then
7700 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}otool; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_OTOOL+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$OTOOL"; then
7708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7723 IFS=$as_save_IFS
7727 OTOOL=$ac_cv_prog_OTOOL
7728 if test -n "$OTOOL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7730 $as_echo "$OTOOL" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7738 if test -z "$ac_cv_prog_OTOOL"; then
7739 ac_ct_OTOOL=$OTOOL
7740 # Extract the first word of "otool", so it can be a program name with args.
7741 set dummy otool; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$ac_ct_OTOOL"; then
7748 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_ac_ct_OTOOL="otool"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768 if test -n "$ac_ct_OTOOL"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7770 $as_echo "$ac_ct_OTOOL" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7776 if test "x$ac_ct_OTOOL" = x; then
7777 OTOOL=":"
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783 ac_tool_warned=yes ;;
7784 esac
7785 OTOOL=$ac_ct_OTOOL
7787 else
7788 OTOOL="$ac_cv_prog_OTOOL"
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_OTOOL64+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$OTOOL64"; then
7800 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7819 OTOOL64=$ac_cv_prog_OTOOL64
7820 if test -n "$OTOOL64"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7822 $as_echo "$OTOOL64" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7830 if test -z "$ac_cv_prog_OTOOL64"; then
7831 ac_ct_OTOOL64=$OTOOL64
7832 # Extract the first word of "otool64", so it can be a program name with args.
7833 set dummy otool64; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$ac_ct_OTOOL64"; then
7840 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_OTOOL64="otool64"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7853 done
7854 done
7855 IFS=$as_save_IFS
7859 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7860 if test -n "$ac_ct_OTOOL64"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7862 $as_echo "$ac_ct_OTOOL64" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7868 if test "x$ac_ct_OTOOL64" = x; then
7869 OTOOL64=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877 OTOOL64=$ac_ct_OTOOL64
7879 else
7880 OTOOL64="$ac_cv_prog_OTOOL64"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7910 $as_echo_n "checking for -single_module linker flag... " >&6; }
7911 if ${lt_cv_apple_cc_single_mod+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 lt_cv_apple_cc_single_mod=no
7915 if test -z "${LT_MULTI_MODULE}"; then
7916 # By default we will add the -single_module flag. You can override
7917 # by either setting the environment variable LT_MULTI_MODULE
7918 # non-empty at configure time, or by adding -multi_module to the
7919 # link flags.
7920 rm -rf libconftest.dylib*
7921 echo "int foo(void){return 1;}" > conftest.c
7922 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923 -dynamiclib -Wl,-single_module conftest.c" >&5
7924 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7926 _lt_result=$?
7927 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7928 lt_cv_apple_cc_single_mod=yes
7929 else
7930 cat conftest.err >&5
7932 rm -rf libconftest.dylib*
7933 rm -f conftest.*
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7937 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7939 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7940 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 lt_cv_ld_exported_symbols_list=no
7944 save_LDFLAGS=$LDFLAGS
7945 echo "_main" > conftest.sym
7946 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7951 main ()
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 lt_cv_ld_exported_symbols_list=yes
7960 else
7961 lt_cv_ld_exported_symbols_list=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LDFLAGS="$save_LDFLAGS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7969 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7971 $as_echo_n "checking for -force_load linker flag... " >&6; }
7972 if ${lt_cv_ld_force_load+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 lt_cv_ld_force_load=no
7976 cat > conftest.c << _LT_EOF
7977 int forced_loaded() { return 2;}
7978 _LT_EOF
7979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7981 echo "$AR cru libconftest.a conftest.o" >&5
7982 $AR cru libconftest.a conftest.o 2>&5
7983 cat > conftest.c << _LT_EOF
7984 int main() { return 0;}
7985 _LT_EOF
7986 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7987 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7988 _lt_result=$?
7989 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7990 lt_cv_ld_force_load=yes
7991 else
7992 cat conftest.err >&5
7994 rm -f conftest.err libconftest.a conftest conftest.c
7995 rm -rf conftest.dSYM
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7999 $as_echo "$lt_cv_ld_force_load" >&6; }
8000 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8001 # build without first building modern cctools / linker.
8002 case $host_cpu-$host_os in
8003 *-rhapsody* | *-darwin1.[012])
8004 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8005 *-darwin1.*)
8006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8007 *-darwin*)
8008 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8009 # deployment target is forced to an earlier version.
8010 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8011 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8013 10.[012][,.]*)
8014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8018 esac
8020 esac
8021 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8022 _lt_dar_single_mod='$single_module'
8024 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8025 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8026 else
8027 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8029 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8030 _lt_dsymutil='~$DSYMUTIL $lib || :'
8031 else
8032 _lt_dsymutil=
8035 esac
8037 for ac_header in dlfcn.h
8038 do :
8039 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8041 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8042 cat >>confdefs.h <<_ACEOF
8043 #define HAVE_DLFCN_H 1
8044 _ACEOF
8048 done
8054 # Set options
8058 enable_dlopen=no
8061 enable_win32_dll=no
8064 # Check whether --enable-shared was given.
8065 if test "${enable_shared+set}" = set; then :
8066 enableval=$enable_shared; p=${PACKAGE-default}
8067 case $enableval in
8068 yes) enable_shared=yes ;;
8069 no) enable_shared=no ;;
8071 enable_shared=no
8072 # Look at the argument we got. We use all the common list separators.
8073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8074 for pkg in $enableval; do
8075 IFS="$lt_save_ifs"
8076 if test "X$pkg" = "X$p"; then
8077 enable_shared=yes
8079 done
8080 IFS="$lt_save_ifs"
8082 esac
8083 else
8084 enable_shared=yes
8095 # Check whether --enable-static was given.
8096 if test "${enable_static+set}" = set; then :
8097 enableval=$enable_static; p=${PACKAGE-default}
8098 case $enableval in
8099 yes) enable_static=yes ;;
8100 no) enable_static=no ;;
8102 enable_static=no
8103 # Look at the argument we got. We use all the common list separators.
8104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8105 for pkg in $enableval; do
8106 IFS="$lt_save_ifs"
8107 if test "X$pkg" = "X$p"; then
8108 enable_static=yes
8110 done
8111 IFS="$lt_save_ifs"
8113 esac
8114 else
8115 enable_static=yes
8127 # Check whether --with-pic was given.
8128 if test "${with_pic+set}" = set; then :
8129 withval=$with_pic; pic_mode="$withval"
8130 else
8131 pic_mode=default
8135 test -z "$pic_mode" && pic_mode=default
8143 # Check whether --enable-fast-install was given.
8144 if test "${enable_fast_install+set}" = set; then :
8145 enableval=$enable_fast_install; p=${PACKAGE-default}
8146 case $enableval in
8147 yes) enable_fast_install=yes ;;
8148 no) enable_fast_install=no ;;
8150 enable_fast_install=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153 for pkg in $enableval; do
8154 IFS="$lt_save_ifs"
8155 if test "X$pkg" = "X$p"; then
8156 enable_fast_install=yes
8158 done
8159 IFS="$lt_save_ifs"
8161 esac
8162 else
8163 enable_fast_install=yes
8176 # This can be used to rebuild libtool when needed
8177 LIBTOOL_DEPS="$ltmain"
8179 # Always use our own libtool.
8180 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8207 test -z "$LN_S" && LN_S="ln -s"
8222 if test -n "${ZSH_VERSION+set}" ; then
8223 setopt NO_GLOB_SUBST
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8227 $as_echo_n "checking for objdir... " >&6; }
8228 if ${lt_cv_objdir+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 rm -f .libs 2>/dev/null
8232 mkdir .libs 2>/dev/null
8233 if test -d .libs; then
8234 lt_cv_objdir=.libs
8235 else
8236 # MS-DOS does not allow filenames that begin with a dot.
8237 lt_cv_objdir=_libs
8239 rmdir .libs 2>/dev/null
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8242 $as_echo "$lt_cv_objdir" >&6; }
8243 objdir=$lt_cv_objdir
8249 cat >>confdefs.h <<_ACEOF
8250 #define LT_OBJDIR "$lt_cv_objdir/"
8251 _ACEOF
8256 case $host_os in
8257 aix3*)
8258 # AIX sometimes has problems with the GCC collect2 program. For some
8259 # reason, if we set the COLLECT_NAMES environment variable, the problems
8260 # vanish in a puff of smoke.
8261 if test "X${COLLECT_NAMES+set}" != Xset; then
8262 COLLECT_NAMES=
8263 export COLLECT_NAMES
8266 esac
8268 # Global variables:
8269 ofile=libtool
8270 can_build_shared=yes
8272 # All known linkers require a `.a' archive for static linking (except MSVC,
8273 # which needs '.lib').
8274 libext=a
8276 with_gnu_ld="$lt_cv_prog_gnu_ld"
8278 old_CC="$CC"
8279 old_CFLAGS="$CFLAGS"
8281 # Set sane defaults for various variables
8282 test -z "$CC" && CC=cc
8283 test -z "$LTCC" && LTCC=$CC
8284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8285 test -z "$LD" && LD=ld
8286 test -z "$ac_objext" && ac_objext=o
8288 for cc_temp in $compiler""; do
8289 case $cc_temp in
8290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8292 \-*) ;;
8293 *) break;;
8294 esac
8295 done
8296 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8299 # Only perform the check for file, if the check method requires it
8300 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8301 case $deplibs_check_method in
8302 file_magic*)
8303 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8305 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8306 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 case $MAGIC_CMD in
8310 [\\/*] | ?:[\\/]*)
8311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8314 lt_save_MAGIC_CMD="$MAGIC_CMD"
8315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8317 for ac_dir in $ac_dummy; do
8318 IFS="$lt_save_ifs"
8319 test -z "$ac_dir" && ac_dir=.
8320 if test -f $ac_dir/${ac_tool_prefix}file; then
8321 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8322 if test -n "$file_magic_test_file"; then
8323 case $deplibs_check_method in
8324 "file_magic "*)
8325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8328 $EGREP "$file_magic_regex" > /dev/null; then
8330 else
8331 cat <<_LT_EOF 1>&2
8333 *** Warning: the command libtool uses to detect shared libraries,
8334 *** $file_magic_cmd, produces output that libtool cannot recognize.
8335 *** The result is that libtool may fail to recognize shared libraries
8336 *** as such. This will affect the creation of libtool libraries that
8337 *** depend on shared libraries, but programs linked with such libtool
8338 *** libraries will work regardless of this problem. Nevertheless, you
8339 *** may want to report the problem to your system manager and/or to
8340 *** bug-libtool@gnu.org
8342 _LT_EOF
8343 fi ;;
8344 esac
8346 break
8348 done
8349 IFS="$lt_save_ifs"
8350 MAGIC_CMD="$lt_save_MAGIC_CMD"
8352 esac
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356 if test -n "$MAGIC_CMD"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8358 $as_echo "$MAGIC_CMD" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8368 if test -z "$lt_cv_path_MAGIC_CMD"; then
8369 if test -n "$ac_tool_prefix"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8371 $as_echo_n "checking for file... " >&6; }
8372 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 case $MAGIC_CMD in
8376 [\\/*] | ?:[\\/]*)
8377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380 lt_save_MAGIC_CMD="$MAGIC_CMD"
8381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8383 for ac_dir in $ac_dummy; do
8384 IFS="$lt_save_ifs"
8385 test -z "$ac_dir" && ac_dir=.
8386 if test -f $ac_dir/file; then
8387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8388 if test -n "$file_magic_test_file"; then
8389 case $deplibs_check_method in
8390 "file_magic "*)
8391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8394 $EGREP "$file_magic_regex" > /dev/null; then
8396 else
8397 cat <<_LT_EOF 1>&2
8399 *** Warning: the command libtool uses to detect shared libraries,
8400 *** $file_magic_cmd, produces output that libtool cannot recognize.
8401 *** The result is that libtool may fail to recognize shared libraries
8402 *** as such. This will affect the creation of libtool libraries that
8403 *** depend on shared libraries, but programs linked with such libtool
8404 *** libraries will work regardless of this problem. Nevertheless, you
8405 *** may want to report the problem to your system manager and/or to
8406 *** bug-libtool@gnu.org
8408 _LT_EOF
8409 fi ;;
8410 esac
8412 break
8414 done
8415 IFS="$lt_save_ifs"
8416 MAGIC_CMD="$lt_save_MAGIC_CMD"
8418 esac
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if test -n "$MAGIC_CMD"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8424 $as_echo "$MAGIC_CMD" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8431 else
8432 MAGIC_CMD=:
8438 esac
8440 # Use C for the default configuration in the libtool script
8442 lt_save_CC="$CC"
8443 ac_ext=c
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 # Source file extension for C test sources.
8451 ac_ext=c
8453 # Object file extension for compiled C test sources.
8454 objext=o
8455 objext=$objext
8457 # Code to be used in simple compile tests
8458 lt_simple_compile_test_code="int some_variable = 0;"
8460 # Code to be used in simple link tests
8461 lt_simple_link_test_code='int main(){return(0);}'
8469 # If no C compiler was specified, use CC.
8470 LTCC=${LTCC-"$CC"}
8472 # If no C compiler flags were specified, use CFLAGS.
8473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8475 # Allow CC to be a program name with arguments.
8476 compiler=$CC
8478 # Save the default compiler, since it gets overwritten when the other
8479 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8480 compiler_DEFAULT=$CC
8482 # save warnings/boilerplate of simple test code
8483 ac_outfile=conftest.$ac_objext
8484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8486 _lt_compiler_boilerplate=`cat conftest.err`
8487 $RM conftest*
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8492 _lt_linker_boilerplate=`cat conftest.err`
8493 $RM -r conftest*
8496 ## CAVEAT EMPTOR:
8497 ## There is no encapsulation within the following macros, do not change
8498 ## the running order or otherwise move them around unless you know exactly
8499 ## what you are doing...
8500 if test -n "$compiler"; then
8502 lt_prog_compiler_no_builtin_flag=
8504 if test "$GCC" = yes; then
8505 case $cc_basename in
8506 nvcc*)
8507 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8509 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8510 esac
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8513 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8514 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 lt_cv_prog_compiler_rtti_exceptions=no
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520 lt_compiler_flag="-fno-rtti -fno-exceptions"
8521 # Insert the option either (1) after the last *FLAGS variable, or
8522 # (2) before a word containing "conftest.", or (3) at the end.
8523 # Note that $ac_compile itself does not contain backslashes and begins
8524 # with a dollar sign (not a hyphen), so the echo should work correctly.
8525 # The option is referenced via a variable to avoid confusing sed.
8526 lt_compile=`echo "$ac_compile" | $SED \
8527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8529 -e 's:$: $lt_compiler_flag:'`
8530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8531 (eval "$lt_compile" 2>conftest.err)
8532 ac_status=$?
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 if (exit $ac_status) && test -s "$ac_outfile"; then
8536 # The compiler can only warn and ignore the option if not recognized
8537 # So say no if there are warnings other than the usual output.
8538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_rtti_exceptions=yes
8544 $RM conftest*
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8548 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8551 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8552 else
8563 lt_prog_compiler_wl=
8564 lt_prog_compiler_pic=
8565 lt_prog_compiler_static=
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8570 if test "$GCC" = yes; then
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_static='-static'
8574 case $host_os in
8575 aix*)
8576 # All AIX code is PIC.
8577 if test "$host_cpu" = ia64; then
8578 # AIX 5 now supports IA64 processor
8579 lt_prog_compiler_static='-Bstatic'
8581 lt_prog_compiler_pic='-fPIC'
8584 amigaos*)
8585 case $host_cpu in
8586 powerpc)
8587 # see comment about AmigaOS4 .so support
8588 lt_prog_compiler_pic='-fPIC'
8590 m68k)
8591 # FIXME: we need at least 68020 code to build shared libraries, but
8592 # adding the `-m68020' flag to GCC prevents building anything better,
8593 # like `-m68040'.
8594 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8596 esac
8599 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8600 # PIC is the default for these OSes.
8603 mingw* | cygwin* | pw32* | os2* | cegcc*)
8604 # This hack is so that the source file can tell whether it is being
8605 # built for inclusion in a dll (and should export symbols for example).
8606 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8607 # (--disable-auto-import) libraries
8608 lt_prog_compiler_pic='-DDLL_EXPORT'
8611 darwin* | rhapsody*)
8612 # PIC is the default on this platform
8613 # Common symbols not allowed in MH_DYLIB files
8614 lt_prog_compiler_pic='-fno-common'
8617 haiku*)
8618 # PIC is the default for Haiku.
8619 # The "-static" flag exists, but is broken.
8620 lt_prog_compiler_static=
8623 hpux*)
8624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8626 # sets the default TLS model and affects inlining.
8627 case $host_cpu in
8628 hppa*64*)
8629 # +Z the default
8632 lt_prog_compiler_pic='-fPIC'
8634 esac
8637 interix[3-9]*)
8638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8639 # Instead, we relocate shared libraries at runtime.
8642 msdosdjgpp*)
8643 # Just because we use GCC doesn't mean we suddenly get shared libraries
8644 # on systems that don't support them.
8645 lt_prog_compiler_can_build_shared=no
8646 enable_shared=no
8649 *nto* | *qnx*)
8650 # QNX uses GNU C++, but need to define -shared option too, otherwise
8651 # it will coredump.
8652 lt_prog_compiler_pic='-fPIC -shared'
8655 sysv4*MP*)
8656 if test -d /usr/nec; then
8657 lt_prog_compiler_pic=-Kconform_pic
8662 lt_prog_compiler_pic='-fPIC'
8664 esac
8666 case $cc_basename in
8667 nvcc*) # Cuda Compiler Driver 2.2
8668 lt_prog_compiler_wl='-Xlinker '
8669 lt_prog_compiler_pic='-Xcompiler -fPIC'
8671 esac
8672 else
8673 # PORTME Check for flag to pass linker flags through the system compiler.
8674 case $host_os in
8675 aix*)
8676 lt_prog_compiler_wl='-Wl,'
8677 if test "$host_cpu" = ia64; then
8678 # AIX 5 now supports IA64 processor
8679 lt_prog_compiler_static='-Bstatic'
8680 else
8681 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8685 mingw* | cygwin* | pw32* | os2* | cegcc*)
8686 # This hack is so that the source file can tell whether it is being
8687 # built for inclusion in a dll (and should export symbols for example).
8688 lt_prog_compiler_pic='-DDLL_EXPORT'
8691 hpux9* | hpux10* | hpux11*)
8692 lt_prog_compiler_wl='-Wl,'
8693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8694 # not for PA HP-UX.
8695 case $host_cpu in
8696 hppa*64*|ia64*)
8697 # +Z the default
8700 lt_prog_compiler_pic='+Z'
8702 esac
8703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8704 lt_prog_compiler_static='${wl}-a ${wl}archive'
8707 irix5* | irix6* | nonstopux*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # PIC (with -KPIC) is the default.
8710 lt_prog_compiler_static='-non_shared'
8713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8714 case $cc_basename in
8715 # old Intel for x86_64 which still supported -KPIC.
8716 ecc*)
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-static'
8721 # icc used to be incompatible with GCC.
8722 # ICC 10 doesn't accept -KPIC any more.
8723 icc* | ifort*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-fPIC'
8726 lt_prog_compiler_static='-static'
8728 # Lahey Fortran 8.1.
8729 lf95*)
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_pic='--shared'
8732 lt_prog_compiler_static='--static'
8734 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8735 # Portland Group compilers (*not* the Pentium gcc compiler,
8736 # which looks to be a dead project)
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='-fpic'
8739 lt_prog_compiler_static='-Bstatic'
8741 ccc*)
8742 lt_prog_compiler_wl='-Wl,'
8743 # All Alpha code is PIC.
8744 lt_prog_compiler_static='-non_shared'
8746 xl* | bgxl* | bgf* | mpixl*)
8747 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-qpic'
8750 lt_prog_compiler_static='-qstaticlink'
8753 case `$CC -V 2>&1 | sed 5q` in
8754 *Sun\ F* | *Sun*Fortran*)
8755 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8756 lt_prog_compiler_pic='-KPIC'
8757 lt_prog_compiler_static='-Bstatic'
8758 lt_prog_compiler_wl=''
8760 *Sun\ C*)
8761 # Sun C 5.9
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 lt_prog_compiler_wl='-Wl,'
8766 esac
8768 esac
8771 newsos6)
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8776 *nto* | *qnx*)
8777 # QNX uses GNU C++, but need to define -shared option too, otherwise
8778 # it will coredump.
8779 lt_prog_compiler_pic='-fPIC -shared'
8782 osf3* | osf4* | osf5*)
8783 lt_prog_compiler_wl='-Wl,'
8784 # All OSF/1 code is PIC.
8785 lt_prog_compiler_static='-non_shared'
8788 rdos*)
8789 lt_prog_compiler_static='-non_shared'
8792 solaris*)
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 case $cc_basename in
8796 f77* | f90* | f95*)
8797 lt_prog_compiler_wl='-Qoption ld ';;
8799 lt_prog_compiler_wl='-Wl,';;
8800 esac
8803 sunos4*)
8804 lt_prog_compiler_wl='-Qoption ld '
8805 lt_prog_compiler_pic='-PIC'
8806 lt_prog_compiler_static='-Bstatic'
8809 sysv4 | sysv4.2uw2* | sysv4.3*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-KPIC'
8812 lt_prog_compiler_static='-Bstatic'
8815 sysv4*MP*)
8816 if test -d /usr/nec ;then
8817 lt_prog_compiler_pic='-Kconform_pic'
8818 lt_prog_compiler_static='-Bstatic'
8822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8828 unicos*)
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_can_build_shared=no
8833 uts4*)
8834 lt_prog_compiler_pic='-pic'
8835 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_can_build_shared=no
8841 esac
8844 case $host_os in
8845 # For platforms which do not support PIC, -DPIC is meaningless:
8846 *djgpp*)
8847 lt_prog_compiler_pic=
8850 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8852 esac
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8854 $as_echo "$lt_prog_compiler_pic" >&6; }
8862 # Check to make sure the PIC flag actually works.
8864 if test -n "$lt_prog_compiler_pic"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8867 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 lt_cv_prog_compiler_pic_works=no
8871 ac_outfile=conftest.$ac_objext
8872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 # The option is referenced via a variable to avoid confusing sed.
8879 lt_compile=`echo "$ac_compile" | $SED \
8880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882 -e 's:$: $lt_compiler_flag:'`
8883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8884 (eval "$lt_compile" 2>conftest.err)
8885 ac_status=$?
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 if (exit $ac_status) && test -s "$ac_outfile"; then
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings other than the usual output.
8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8894 lt_cv_prog_compiler_pic_works=yes
8897 $RM conftest*
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8901 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8904 case $lt_prog_compiler_pic in
8905 "" | " "*) ;;
8906 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8907 esac
8908 else
8909 lt_prog_compiler_pic=
8910 lt_prog_compiler_can_build_shared=no
8921 # Check to make sure the static flag actually works.
8923 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8925 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8926 if ${lt_cv_prog_compiler_static_works+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 lt_cv_prog_compiler_static_works=no
8930 save_LDFLAGS="$LDFLAGS"
8931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8932 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8934 # The linker can only warn and ignore the option if not recognized
8935 # So say no if there are warnings
8936 if test -s conftest.err; then
8937 # Append any errors to the config.log.
8938 cat conftest.err 1>&5
8939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941 if diff conftest.exp conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_static_works=yes
8944 else
8945 lt_cv_prog_compiler_static_works=yes
8948 $RM -r conftest*
8949 LDFLAGS="$save_LDFLAGS"
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8953 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8955 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8957 else
8958 lt_prog_compiler_static=
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8968 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8969 if ${lt_cv_prog_compiler_c_o+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 lt_cv_prog_compiler_c_o=no
8973 $RM -r conftest 2>/dev/null
8974 mkdir conftest
8975 cd conftest
8976 mkdir out
8977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979 lt_compiler_flag="-o out/conftest2.$ac_objext"
8980 # Insert the option either (1) after the last *FLAGS variable, or
8981 # (2) before a word containing "conftest.", or (3) at the end.
8982 # Note that $ac_compile itself does not contain backslashes and begins
8983 # with a dollar sign (not a hyphen), so the echo should work correctly.
8984 lt_compile=`echo "$ac_compile" | $SED \
8985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987 -e 's:$: $lt_compiler_flag:'`
8988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8989 (eval "$lt_compile" 2>out/conftest.err)
8990 ac_status=$?
8991 cat out/conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994 then
8995 # The compiler can only warn and ignore the option if not recognized
8996 # So say no if there are warnings
8997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9000 lt_cv_prog_compiler_c_o=yes
9003 chmod u+w . 2>&5
9004 $RM conftest*
9005 # SGI C++ compiler will create directory out/ii_files/ for
9006 # template instantiation
9007 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9008 $RM out/* && rmdir out
9009 cd ..
9010 $RM -r conftest
9011 $RM conftest*
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9015 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9024 if ${lt_cv_prog_compiler_c_o+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 lt_cv_prog_compiler_c_o=no
9028 $RM -r conftest 2>/dev/null
9029 mkdir conftest
9030 cd conftest
9031 mkdir out
9032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034 lt_compiler_flag="-o out/conftest2.$ac_objext"
9035 # Insert the option either (1) after the last *FLAGS variable, or
9036 # (2) before a word containing "conftest.", or (3) at the end.
9037 # Note that $ac_compile itself does not contain backslashes and begins
9038 # with a dollar sign (not a hyphen), so the echo should work correctly.
9039 lt_compile=`echo "$ac_compile" | $SED \
9040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9042 -e 's:$: $lt_compiler_flag:'`
9043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9044 (eval "$lt_compile" 2>out/conftest.err)
9045 ac_status=$?
9046 cat out/conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9049 then
9050 # The compiler can only warn and ignore the option if not recognized
9051 # So say no if there are warnings
9052 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9055 lt_cv_prog_compiler_c_o=yes
9058 chmod u+w . 2>&5
9059 $RM conftest*
9060 # SGI C++ compiler will create directory out/ii_files/ for
9061 # template instantiation
9062 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9063 $RM out/* && rmdir out
9064 cd ..
9065 $RM -r conftest
9066 $RM conftest*
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9070 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9075 hard_links="nottested"
9076 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9077 # do not overwrite the value of need_locks provided by the user
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9079 $as_echo_n "checking if we can lock with hard links... " >&6; }
9080 hard_links=yes
9081 $RM conftest*
9082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9083 touch conftest.a
9084 ln conftest.a conftest.b 2>&5 || hard_links=no
9085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9087 $as_echo "$hard_links" >&6; }
9088 if test "$hard_links" = no; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9090 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9091 need_locks=warn
9093 else
9094 need_locks=no
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9103 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9105 runpath_var=
9106 allow_undefined_flag=
9107 always_export_symbols=no
9108 archive_cmds=
9109 archive_expsym_cmds=
9110 compiler_needs_object=no
9111 enable_shared_with_static_runtimes=no
9112 export_dynamic_flag_spec=
9113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9114 hardcode_automatic=no
9115 hardcode_direct=no
9116 hardcode_direct_absolute=no
9117 hardcode_libdir_flag_spec=
9118 hardcode_libdir_flag_spec_ld=
9119 hardcode_libdir_separator=
9120 hardcode_minus_L=no
9121 hardcode_shlibpath_var=unsupported
9122 inherit_rpath=no
9123 link_all_deplibs=unknown
9124 module_cmds=
9125 module_expsym_cmds=
9126 old_archive_from_new_cmds=
9127 old_archive_from_expsyms_cmds=
9128 thread_safe_flag_spec=
9129 whole_archive_flag_spec=
9130 # include_expsyms should be a list of space-separated symbols to be *always*
9131 # included in the symbol list
9132 include_expsyms=
9133 # exclude_expsyms can be an extended regexp of symbols to exclude
9134 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9135 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9136 # as well as any symbol that contains `d'.
9137 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9138 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9139 # platforms (ab)use it in PIC code, but their linkers get confused if
9140 # the symbol is explicitly referenced. Since portable code cannot
9141 # rely on this symbol name, it's probably fine to never include it in
9142 # preloaded symbol tables.
9143 # Exclude shared library initialization/finalization symbols.
9144 extract_expsyms_cmds=
9146 case $host_os in
9147 cygwin* | mingw* | pw32* | cegcc*)
9148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9149 # When not using gcc, we currently assume that we are using
9150 # Microsoft Visual C++.
9151 if test "$GCC" != yes; then
9152 with_gnu_ld=no
9155 interix*)
9156 # we just hope/assume this is gcc and not c89 (= MSVC++)
9157 with_gnu_ld=yes
9159 openbsd*)
9160 with_gnu_ld=no
9162 esac
9164 ld_shlibs=yes
9166 # On some targets, GNU ld is compatible enough with the native linker
9167 # that we're better off using the native interface for both.
9168 lt_use_gnu_ld_interface=no
9169 if test "$with_gnu_ld" = yes; then
9170 case $host_os in
9171 aix*)
9172 # The AIX port of GNU ld has always aspired to compatibility
9173 # with the native linker. However, as the warning in the GNU ld
9174 # block says, versions before 2.19.5* couldn't really create working
9175 # shared libraries, regardless of the interface used.
9176 case `$LD -v 2>&1` in
9177 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9178 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9179 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9181 lt_use_gnu_ld_interface=yes
9183 esac
9186 lt_use_gnu_ld_interface=yes
9188 esac
9191 if test "$lt_use_gnu_ld_interface" = yes; then
9192 # If archive_cmds runs LD, not CC, wlarc should be empty
9193 wlarc='${wl}'
9195 # Set some defaults for GNU ld with shared library support. These
9196 # are reset later if shared libraries are not supported. Putting them
9197 # here allows them to be overridden if necessary.
9198 runpath_var=LD_RUN_PATH
9199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9200 export_dynamic_flag_spec='${wl}--export-dynamic'
9201 # ancient GNU ld didn't support --whole-archive et. al.
9202 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9203 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9204 else
9205 whole_archive_flag_spec=
9207 supports_anon_versioning=no
9208 case `$LD -v 2>&1` in
9209 *GNU\ gold*) supports_anon_versioning=yes ;;
9210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9213 *\ 2.11.*) ;; # other 2.11 versions
9214 *) supports_anon_versioning=yes ;;
9215 esac
9217 # See if GNU ld supports shared libraries.
9218 case $host_os in
9219 aix[3-9]*)
9220 # On AIX/PPC, the GNU linker is very broken
9221 if test "$host_cpu" != ia64; then
9222 ld_shlibs=no
9223 cat <<_LT_EOF 1>&2
9225 *** Warning: the GNU linker, at least up to release 2.19, is reported
9226 *** to be unable to reliably create shared libraries on AIX.
9227 *** Therefore, libtool is disabling shared libraries support. If you
9228 *** really care for shared libraries, you may want to install binutils
9229 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9230 *** You will then need to restart the configuration process.
9232 _LT_EOF
9236 amigaos*)
9237 case $host_cpu in
9238 powerpc)
9239 # see comment about AmigaOS4 .so support
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241 archive_expsym_cmds=''
9243 m68k)
9244 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)'
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_minus_L=yes
9248 esac
9251 beos*)
9252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 allow_undefined_flag=unsupported
9254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9255 # support --undefined. This deserves some investigation. FIXME
9256 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 else
9258 ld_shlibs=no
9262 cygwin* | mingw* | pw32* | cegcc*)
9263 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9264 # as there is no search path for DLLs.
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 export_dynamic_flag_spec='${wl}--export-all-symbols'
9267 allow_undefined_flag=unsupported
9268 always_export_symbols=no
9269 enable_shared_with_static_runtimes=yes
9270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9272 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9274 # If the export-symbols file already is a .def file (1st line
9275 # is EXPORTS), use it as is; otherwise, prepend...
9276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9277 cp $export_symbols $output_objdir/$soname.def;
9278 else
9279 echo EXPORTS > $output_objdir/$soname.def;
9280 cat $export_symbols >> $output_objdir/$soname.def;
9282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9283 else
9284 ld_shlibs=no
9288 haiku*)
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 link_all_deplibs=yes
9293 interix[3-9]*)
9294 hardcode_direct=no
9295 hardcode_shlibpath_var=no
9296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9297 export_dynamic_flag_spec='${wl}-E'
9298 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9299 # Instead, shared libraries are loaded at an image base (0x10000000 by
9300 # default) and relocated if they conflict, which is a slow very memory
9301 # consuming and fragmenting process. To avoid this, we pick a random,
9302 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9303 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9305 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'
9308 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9309 tmp_diet=no
9310 if test "$host_os" = linux-dietlibc; then
9311 case $cc_basename in
9312 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9313 esac
9315 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9316 && test "$tmp_diet" = no
9317 then
9318 tmp_addflag=' $pic_flag'
9319 tmp_sharedflag='-shared'
9320 case $cc_basename,$host_cpu in
9321 pgcc*) # Portland Group C compiler
9322 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'
9323 tmp_addflag=' $pic_flag'
9325 pgf77* | pgf90* | pgf95* | pgfortran*)
9326 # Portland Group f77 and f90 compilers
9327 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'
9328 tmp_addflag=' $pic_flag -Mnomain' ;;
9329 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9330 tmp_addflag=' -i_dynamic' ;;
9331 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9332 tmp_addflag=' -i_dynamic -nofor_main' ;;
9333 ifc* | ifort*) # Intel Fortran compiler
9334 tmp_addflag=' -nofor_main' ;;
9335 lf95*) # Lahey Fortran 8.1
9336 whole_archive_flag_spec=
9337 tmp_sharedflag='--shared' ;;
9338 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9339 tmp_sharedflag='-qmkshrobj'
9340 tmp_addflag= ;;
9341 nvcc*) # Cuda Compiler Driver 2.2
9342 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'
9343 compiler_needs_object=yes
9345 esac
9346 case `$CC -V 2>&1 | sed 5q` in
9347 *Sun\ C*) # Sun C 5.9
9348 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'
9349 compiler_needs_object=yes
9350 tmp_sharedflag='-G' ;;
9351 *Sun\ F*) # Sun Fortran 8.3
9352 tmp_sharedflag='-G' ;;
9353 esac
9354 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 if test "x$supports_anon_versioning" = xyes; then
9357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9359 echo "local: *; };" >> $output_objdir/$libname.ver~
9360 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9363 case $cc_basename in
9364 xlf* | bgf* | bgxlf* | mpixlf*)
9365 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9366 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9367 hardcode_libdir_flag_spec=
9368 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9369 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9370 if test "x$supports_anon_versioning" = xyes; then
9371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9373 echo "local: *; };" >> $output_objdir/$libname.ver~
9374 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9377 esac
9378 else
9379 ld_shlibs=no
9383 netbsd*)
9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9386 wlarc=
9387 else
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9393 solaris*)
9394 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9395 ld_shlibs=no
9396 cat <<_LT_EOF 1>&2
9398 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9399 *** create shared libraries on Solaris systems. Therefore, libtool
9400 *** is disabling shared libraries support. We urge you to upgrade GNU
9401 *** binutils to release 2.9.1 or newer. Another option is to modify
9402 *** your PATH or compiler configuration so that the native linker is
9403 *** used, and then restart.
9405 _LT_EOF
9406 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9409 else
9410 ld_shlibs=no
9414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9415 case `$LD -v 2>&1` in
9416 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9417 ld_shlibs=no
9418 cat <<_LT_EOF 1>&2
9420 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9421 *** reliably create shared libraries on SCO systems. Therefore, libtool
9422 *** is disabling shared libraries support. We urge you to upgrade GNU
9423 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9424 *** your PATH or compiler configuration so that the native linker is
9425 *** used, and then restart.
9427 _LT_EOF
9430 # For security reasons, it is highly recommended that you always
9431 # use absolute paths for naming shared libraries, and exclude the
9432 # DT_RUNPATH tag from executables and libraries. But doing so
9433 # requires that you compile everything twice, which is a pain.
9434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438 else
9439 ld_shlibs=no
9442 esac
9445 sunos4*)
9446 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9447 wlarc=
9448 hardcode_direct=yes
9449 hardcode_shlibpath_var=no
9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456 else
9457 ld_shlibs=no
9460 esac
9462 if test "$ld_shlibs" = no; then
9463 runpath_var=
9464 hardcode_libdir_flag_spec=
9465 export_dynamic_flag_spec=
9466 whole_archive_flag_spec=
9468 else
9469 # PORTME fill in a description of your system's linker (not GNU ld)
9470 case $host_os in
9471 aix3*)
9472 allow_undefined_flag=unsupported
9473 always_export_symbols=yes
9474 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'
9475 # Note: this linker hardcodes the directories in LIBPATH if there
9476 # are no directories specified by -L.
9477 hardcode_minus_L=yes
9478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9479 # Neither direct hardcoding nor static linking is supported with a
9480 # broken collect2.
9481 hardcode_direct=unsupported
9485 aix[4-9]*)
9486 if test "$host_cpu" = ia64; then
9487 # On IA64, the linker does run time linking by default, so we don't
9488 # have to do anything special.
9489 aix_use_runtimelinking=no
9490 exp_sym_flag='-Bexport'
9491 no_entry_flag=""
9492 else
9493 # If we're using GNU nm, then we don't want the "-C" option.
9494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9495 # Also, AIX nm treats weak defined symbols like other global
9496 # defined symbols, whereas GNU nm marks them as "W".
9497 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9498 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'
9499 else
9500 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'
9502 aix_use_runtimelinking=no
9504 # Test if we are trying to use run time linking or normal
9505 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9506 # need to do runtime linking.
9507 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9508 for ld_flag in $LDFLAGS; do
9509 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9510 aix_use_runtimelinking=yes
9511 break
9513 done
9515 esac
9517 exp_sym_flag='-bexport'
9518 no_entry_flag='-bnoentry'
9521 # When large executables or shared objects are built, AIX ld can
9522 # have problems creating the table of contents. If linking a library
9523 # or program results in "error TOC overflow" add -mminimal-toc to
9524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9527 archive_cmds=''
9528 hardcode_direct=yes
9529 hardcode_direct_absolute=yes
9530 hardcode_libdir_separator=':'
9531 link_all_deplibs=yes
9532 file_list_spec='${wl}-f,'
9534 if test "$GCC" = yes; then
9535 case $host_os in aix4.[012]|aix4.[012].*)
9536 # We only want to do this on AIX 4.2 and lower, the check
9537 # below for broken collect2 doesn't work under 4.3+
9538 collect2name=`${CC} -print-prog-name=collect2`
9539 if test -f "$collect2name" &&
9540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9541 then
9542 # We have reworked collect2
9544 else
9545 # We have old collect2
9546 hardcode_direct=unsupported
9547 # It fails to find uninstalled libraries when the uninstalled
9548 # path is not listed in the libpath. Setting hardcode_minus_L
9549 # to unsupported forces relinking
9550 hardcode_minus_L=yes
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 hardcode_libdir_separator=
9555 esac
9556 shared_flag='-shared'
9557 if test "$aix_use_runtimelinking" = yes; then
9558 shared_flag="$shared_flag "'${wl}-G'
9560 else
9561 # not using gcc
9562 if test "$host_cpu" = ia64; then
9563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9564 # chokes on -Wl,-G. The following line is correct:
9565 shared_flag='-G'
9566 else
9567 if test "$aix_use_runtimelinking" = yes; then
9568 shared_flag='${wl}-G'
9569 else
9570 shared_flag='${wl}-bM:SRE'
9575 export_dynamic_flag_spec='${wl}-bexpall'
9576 # It seems that -bexpall does not export symbols beginning with
9577 # underscore (_), so it is better to generate a list of symbols to export.
9578 always_export_symbols=yes
9579 if test "$aix_use_runtimelinking" = yes; then
9580 # Warning - without using the other runtime loading flags (-brtl),
9581 # -berok will link without error, but may produce a broken library.
9582 allow_undefined_flag='-berok'
9583 # Determine the default libpath from the value encoded in an
9584 # empty executable.
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 main ()
9593 return 0;
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9598 lt_aix_libpath_sed='
9599 /Import File Strings/,/^$/ {
9600 /^0/ {
9601 s/^0 *\(.*\)$/\1/
9605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 # Check for a 64-bit object if we didn't find anything.
9607 if test -z "$aix_libpath"; then
9608 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9616 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"
9617 else
9618 if test "$host_cpu" = ia64; then
9619 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9620 allow_undefined_flag="-z nodefs"
9621 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"
9622 else
9623 # Determine the default libpath from the value encoded in an
9624 # empty executable.
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9629 main ()
9633 return 0;
9635 _ACEOF
9636 if ac_fn_c_try_link "$LINENO"; then :
9638 lt_aix_libpath_sed='
9639 /Import File Strings/,/^$/ {
9640 /^0/ {
9641 s/^0 *\(.*\)$/\1/
9645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646 # Check for a 64-bit object if we didn't find anything.
9647 if test -z "$aix_libpath"; then
9648 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9656 # Warning - without using the other run time loading flags,
9657 # -berok will link without error, but may produce a broken library.
9658 no_undefined_flag=' ${wl}-bernotok'
9659 allow_undefined_flag=' ${wl}-berok'
9660 if test "$with_gnu_ld" = yes; then
9661 # We only use this code for GNU lds that support --whole-archive.
9662 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9663 else
9664 # Exported symbols can be pulled into shared objects from archives
9665 whole_archive_flag_spec='$convenience'
9667 archive_cmds_need_lc=yes
9668 # This is similar to how AIX traditionally builds its shared libraries.
9669 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'
9674 amigaos*)
9675 case $host_cpu in
9676 powerpc)
9677 # see comment about AmigaOS4 .so support
9678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679 archive_expsym_cmds=''
9681 m68k)
9682 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)'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_minus_L=yes
9686 esac
9689 bsdi[45]*)
9690 export_dynamic_flag_spec=-rdynamic
9693 cygwin* | mingw* | pw32* | cegcc*)
9694 # When not using gcc, we currently assume that we are using
9695 # Microsoft Visual C++.
9696 # hardcode_libdir_flag_spec is actually meaningless, as there is
9697 # no search path for DLLs.
9698 hardcode_libdir_flag_spec=' '
9699 allow_undefined_flag=unsupported
9700 # Tell ltmain to make .lib files, not .a files.
9701 libext=lib
9702 # Tell ltmain to make .dll files, not .so files.
9703 shrext_cmds=".dll"
9704 # FIXME: Setting linknames here is a bad hack.
9705 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9706 # The linker will automatically build a .lib file if we build a DLL.
9707 old_archive_from_new_cmds='true'
9708 # FIXME: Should let the user specify the lib program.
9709 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9710 fix_srcfile_path='`cygpath -w "$srcfile"`'
9711 enable_shared_with_static_runtimes=yes
9714 darwin* | rhapsody*)
9717 archive_cmds_need_lc=no
9718 hardcode_direct=no
9719 hardcode_automatic=yes
9720 hardcode_shlibpath_var=unsupported
9721 if test "$lt_cv_ld_force_load" = "yes"; then
9722 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\"`'
9723 else
9724 whole_archive_flag_spec=''
9726 link_all_deplibs=yes
9727 allow_undefined_flag="$_lt_dar_allow_undefined"
9728 case $cc_basename in
9729 ifort*) _lt_dar_can_shared=yes ;;
9730 *) _lt_dar_can_shared=$GCC ;;
9731 esac
9732 if test "$_lt_dar_can_shared" = "yes"; then
9733 output_verbose_link_cmd=func_echo_all
9734 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9735 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9736 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}"
9737 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}"
9739 else
9740 ld_shlibs=no
9745 dgux*)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_shlibpath_var=no
9751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9752 # support. Future versions do this automatically, but an explicit c++rt0.o
9753 # does not break anything, and helps significantly (at the cost of a little
9754 # extra space).
9755 freebsd2.2*)
9756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9757 hardcode_libdir_flag_spec='-R$libdir'
9758 hardcode_direct=yes
9759 hardcode_shlibpath_var=no
9762 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9763 freebsd2.*)
9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=yes
9766 hardcode_minus_L=yes
9767 hardcode_shlibpath_var=no
9770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9771 freebsd* | dragonfly*)
9772 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9773 hardcode_libdir_flag_spec='-R$libdir'
9774 hardcode_direct=yes
9775 hardcode_shlibpath_var=no
9778 hpux9*)
9779 if test "$GCC" = yes; then
9780 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'
9781 else
9782 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'
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_separator=:
9786 hardcode_direct=yes
9788 # hardcode_minus_L: Not really in the search PATH,
9789 # but as the default location of the library.
9790 hardcode_minus_L=yes
9791 export_dynamic_flag_spec='${wl}-E'
9794 hpux10*)
9795 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797 else
9798 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9800 if test "$with_gnu_ld" = no; then
9801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9802 hardcode_libdir_flag_spec_ld='+b $libdir'
9803 hardcode_libdir_separator=:
9804 hardcode_direct=yes
9805 hardcode_direct_absolute=yes
9806 export_dynamic_flag_spec='${wl}-E'
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9813 hpux11*)
9814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9815 case $host_cpu in
9816 hppa*64*)
9817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 ia64*)
9820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825 esac
9826 else
9827 case $host_cpu in
9828 hppa*64*)
9829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831 ia64*)
9832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9836 # Older versions of the 11.00 compiler do not understand -b yet
9837 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9839 $as_echo_n "checking if $CC understands -b... " >&6; }
9840 if ${lt_cv_prog_compiler__b+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 lt_cv_prog_compiler__b=no
9844 save_LDFLAGS="$LDFLAGS"
9845 LDFLAGS="$LDFLAGS -b"
9846 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9848 # The linker can only warn and ignore the option if not recognized
9849 # So say no if there are warnings
9850 if test -s conftest.err; then
9851 # Append any errors to the config.log.
9852 cat conftest.err 1>&5
9853 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9855 if diff conftest.exp conftest.er2 >/dev/null; then
9856 lt_cv_prog_compiler__b=yes
9858 else
9859 lt_cv_prog_compiler__b=yes
9862 $RM -r conftest*
9863 LDFLAGS="$save_LDFLAGS"
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9867 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9869 if test x"$lt_cv_prog_compiler__b" = xyes; then
9870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9871 else
9872 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9876 esac
9878 if test "$with_gnu_ld" = no; then
9879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880 hardcode_libdir_separator=:
9882 case $host_cpu in
9883 hppa*64*|ia64*)
9884 hardcode_direct=no
9885 hardcode_shlibpath_var=no
9888 hardcode_direct=yes
9889 hardcode_direct_absolute=yes
9890 export_dynamic_flag_spec='${wl}-E'
9892 # hardcode_minus_L: Not really in the search PATH,
9893 # but as the default location of the library.
9894 hardcode_minus_L=yes
9896 esac
9900 irix5* | irix6* | nonstopux*)
9901 if test "$GCC" = yes; then
9902 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'
9903 # Try to use the -exported_symbol ld option, if it does not
9904 # work, assume that -exports_file does not work either and
9905 # implicitly export all symbols.
9906 save_LDFLAGS="$LDFLAGS"
9907 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int foo(void) {}
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 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'
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LDFLAGS="$save_LDFLAGS"
9919 else
9920 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'
9921 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'
9923 archive_cmds_need_lc='no'
9924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9925 hardcode_libdir_separator=:
9926 inherit_rpath=yes
9927 link_all_deplibs=yes
9930 netbsd*)
9931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9933 else
9934 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9936 hardcode_libdir_flag_spec='-R$libdir'
9937 hardcode_direct=yes
9938 hardcode_shlibpath_var=no
9941 newsos6)
9942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_direct=yes
9944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9945 hardcode_libdir_separator=:
9946 hardcode_shlibpath_var=no
9949 *nto* | *qnx*)
9952 openbsd*)
9953 if test -f /usr/libexec/ld.so; then
9954 hardcode_direct=yes
9955 hardcode_shlibpath_var=no
9956 hardcode_direct_absolute=yes
9957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9961 export_dynamic_flag_spec='${wl}-E'
9962 else
9963 case $host_os in
9964 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9966 hardcode_libdir_flag_spec='-R$libdir'
9969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9972 esac
9974 else
9975 ld_shlibs=no
9979 os2*)
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_minus_L=yes
9982 allow_undefined_flag=unsupported
9983 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'
9984 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9987 osf3*)
9988 if test "$GCC" = yes; then
9989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9990 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'
9991 else
9992 allow_undefined_flag=' -expect_unresolved \*'
9993 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'
9995 archive_cmds_need_lc='no'
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 hardcode_libdir_separator=:
10000 osf4* | osf5*) # as osf3* with the addition of -msym flag
10001 if test "$GCC" = yes; then
10002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10003 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'
10004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005 else
10006 allow_undefined_flag=' -expect_unresolved \*'
10007 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'
10008 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~
10009 $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'
10011 # Both c and cxx compiler support -rpath directly
10012 hardcode_libdir_flag_spec='-rpath $libdir'
10014 archive_cmds_need_lc='no'
10015 hardcode_libdir_separator=:
10018 solaris*)
10019 no_undefined_flag=' -z defs'
10020 if test "$GCC" = yes; then
10021 wlarc='${wl}'
10022 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10025 else
10026 case `$CC -V 2>&1` in
10027 *"Compilers 5.0"*)
10028 wlarc=''
10029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10034 wlarc='${wl}'
10035 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10037 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10039 esac
10041 hardcode_libdir_flag_spec='-R$libdir'
10042 hardcode_shlibpath_var=no
10043 case $host_os in
10044 solaris2.[0-5] | solaris2.[0-5].*) ;;
10046 # The compiler driver will combine and reorder linker options,
10047 # but understands `-z linker_flag'. GCC discards it without `$wl',
10048 # but is careful enough not to reorder.
10049 # Supported since Solaris 2.6 (maybe 2.5.1?)
10050 if test "$GCC" = yes; then
10051 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10052 else
10053 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10056 esac
10057 link_all_deplibs=yes
10060 sunos4*)
10061 if test "x$host_vendor" = xsequent; then
10062 # Use $CC to link under sequent, because it throws in some extra .o
10063 # files that make .init and .fini sections work.
10064 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 hardcode_direct=yes
10070 hardcode_minus_L=yes
10071 hardcode_shlibpath_var=no
10074 sysv4)
10075 case $host_vendor in
10076 sni)
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_direct=yes # is this really true???
10080 siemens)
10081 ## LD is ld it makes a PLAMLIB
10082 ## CC just makes a GrossModule.
10083 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10084 reload_cmds='$CC -r -o $output$reload_objs'
10085 hardcode_direct=no
10087 motorola)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10091 esac
10092 runpath_var='LD_RUN_PATH'
10093 hardcode_shlibpath_var=no
10096 sysv4.3*)
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_shlibpath_var=no
10099 export_dynamic_flag_spec='-Bexport'
10102 sysv4*MP*)
10103 if test -d /usr/nec; then
10104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105 hardcode_shlibpath_var=no
10106 runpath_var=LD_RUN_PATH
10107 hardcode_runpath_var=yes
10108 ld_shlibs=yes
10112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10113 no_undefined_flag='${wl}-z,text'
10114 archive_cmds_need_lc=no
10115 hardcode_shlibpath_var=no
10116 runpath_var='LD_RUN_PATH'
10118 if test "$GCC" = yes; then
10119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 else
10122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 sysv5* | sco3.2v5* | sco5v6*)
10128 # Note: We can NOT use -z defs as we might desire, because we do not
10129 # link with -lc, and that would cause any symbols used from libc to
10130 # always be unresolved, which means just about no library would
10131 # ever link correctly. If we're not using GNU ld we use -z text
10132 # though, which does catch some bad symbols but isn't as heavy-handed
10133 # as -z defs.
10134 no_undefined_flag='${wl}-z,text'
10135 allow_undefined_flag='${wl}-z,nodefs'
10136 archive_cmds_need_lc=no
10137 hardcode_shlibpath_var=no
10138 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10139 hardcode_libdir_separator=':'
10140 link_all_deplibs=yes
10141 export_dynamic_flag_spec='${wl}-Bexport'
10142 runpath_var='LD_RUN_PATH'
10144 if test "$GCC" = yes; then
10145 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 else
10148 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 uts4*)
10154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_libdir_flag_spec='-L$libdir'
10156 hardcode_shlibpath_var=no
10160 ld_shlibs=no
10162 esac
10164 if test x$host_vendor = xsni; then
10165 case $host in
10166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10167 export_dynamic_flag_spec='${wl}-Blargedynsym'
10169 esac
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10174 $as_echo "$ld_shlibs" >&6; }
10175 test "$ld_shlibs" = no && can_build_shared=no
10177 with_gnu_ld=$with_gnu_ld
10194 # Do we need to explicitly link libc?
10196 case "x$archive_cmds_need_lc" in
10197 x|xyes)
10198 # Assume -lc should be added
10199 archive_cmds_need_lc=yes
10201 if test "$enable_shared" = yes && test "$GCC" = yes; then
10202 case $archive_cmds in
10203 *'~'*)
10204 # FIXME: we may have to deal with multi-command sequences.
10206 '$CC '*)
10207 # Test whether the compiler implicitly links with -lc since on some
10208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10209 # to ld, don't add -lc before -lgcc.
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10211 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10212 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 $RM conftest*
10216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10219 (eval $ac_compile) 2>&5
10220 ac_status=$?
10221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222 test $ac_status = 0; } 2>conftest.err; then
10223 soname=conftest
10224 lib=conftest
10225 libobjs=conftest.$ac_objext
10226 deplibs=
10227 wl=$lt_prog_compiler_wl
10228 pic_flag=$lt_prog_compiler_pic
10229 compiler_flags=-v
10230 linker_flags=-v
10231 verstring=
10232 output_objdir=.
10233 libname=conftest
10234 lt_save_allow_undefined_flag=$allow_undefined_flag
10235 allow_undefined_flag=
10236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10237 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10238 ac_status=$?
10239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10240 test $ac_status = 0; }
10241 then
10242 lt_cv_archive_cmds_need_lc=no
10243 else
10244 lt_cv_archive_cmds_need_lc=yes
10246 allow_undefined_flag=$lt_save_allow_undefined_flag
10247 else
10248 cat conftest.err 1>&5
10250 $RM conftest*
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10254 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10255 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10257 esac
10260 esac
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10419 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10421 if test "$GCC" = yes; then
10422 case $host_os in
10423 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10424 *) lt_awk_arg="/^libraries:/" ;;
10425 esac
10426 case $host_os in
10427 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10428 *) lt_sed_strip_eq="s,=/,/,g" ;;
10429 esac
10430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10431 case $lt_search_path_spec in
10432 *\;*)
10433 # if the path contains ";" then we assume it to be the separator
10434 # otherwise default to the standard path separator (i.e. ":") - it is
10435 # assumed that no part of a normal pathname contains ";" but that should
10436 # okay in the real world where ";" in dirpaths is itself problematic.
10437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10442 esac
10443 # Ok, now we have the path, separated by spaces, we can step through it
10444 # and add multilib dir if necessary.
10445 lt_tmp_lt_search_path_spec=
10446 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10447 for lt_sys_path in $lt_search_path_spec; do
10448 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10450 else
10451 test -d "$lt_sys_path" && \
10452 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10454 done
10455 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10456 BEGIN {RS=" "; FS="/|\n";} {
10457 lt_foo="";
10458 lt_count=0;
10459 for (lt_i = NF; lt_i > 0; lt_i--) {
10460 if ($lt_i != "" && $lt_i != ".") {
10461 if ($lt_i == "..") {
10462 lt_count++;
10463 } else {
10464 if (lt_count == 0) {
10465 lt_foo="/" $lt_i lt_foo;
10466 } else {
10467 lt_count--;
10472 if (lt_foo != "") { lt_freq[lt_foo]++; }
10473 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10475 # AWK program above erroneously prepends '/' to C:/dos/paths
10476 # for these hosts.
10477 case $host_os in
10478 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10479 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10480 esac
10481 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10482 else
10483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10485 library_names_spec=
10486 libname_spec='lib$name'
10487 soname_spec=
10488 shrext_cmds=".so"
10489 postinstall_cmds=
10490 postuninstall_cmds=
10491 finish_cmds=
10492 finish_eval=
10493 shlibpath_var=
10494 shlibpath_overrides_runpath=unknown
10495 version_type=none
10496 dynamic_linker="$host_os ld.so"
10497 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10498 need_lib_prefix=unknown
10499 hardcode_into_libs=no
10501 # when you set need_version to no, make sure it does not cause -set_version
10502 # flags to be left without arguments
10503 need_version=unknown
10505 case $host_os in
10506 aix3*)
10507 version_type=linux
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10509 shlibpath_var=LIBPATH
10511 # AIX 3 has no versioning support, so we append a major version to the name.
10512 soname_spec='${libname}${release}${shared_ext}$major'
10515 aix[4-9]*)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 hardcode_into_libs=yes
10520 if test "$host_cpu" = ia64; then
10521 # AIX 5 supports IA64
10522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 else
10525 # With GCC up to 2.95.x, collect2 would create an import file
10526 # for dependence libraries. The import file would start with
10527 # the line `#! .'. This would cause the generated library to
10528 # depend on `.', always an invalid library. This was fixed in
10529 # development snapshots of GCC prior to 3.0.
10530 case $host_os in
10531 aix4 | aix4.[01] | aix4.[01].*)
10532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10533 echo ' yes '
10534 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10536 else
10537 can_build_shared=no
10540 esac
10541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10542 # soname into executable. Probably we can add versioning support to
10543 # collect2, so additional links can be useful in future.
10544 if test "$aix_use_runtimelinking" = yes; then
10545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10546 # instead of lib<name>.a to let people know that these are not
10547 # typical AIX shared libraries.
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549 else
10550 # We preserve .a as extension for shared libraries through AIX4.2
10551 # and later when we are not doing run time linking.
10552 library_names_spec='${libname}${release}.a $libname.a'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LIBPATH
10559 amigaos*)
10560 case $host_cpu in
10561 powerpc)
10562 # Since July 2007 AmigaOS4 officially supports .so libraries.
10563 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 m68k)
10567 library_names_spec='$libname.ixlibrary $libname.a'
10568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10569 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'
10571 esac
10574 beos*)
10575 library_names_spec='${libname}${shared_ext}'
10576 dynamic_linker="$host_os ld.so"
10577 shlibpath_var=LIBRARY_PATH
10580 bsdi[45]*)
10581 version_type=linux
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10589 # the default ld.so.conf also contains /usr/contrib/lib and
10590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10591 # libtool to hard-code these into programs
10594 cygwin* | mingw* | pw32* | cegcc*)
10595 version_type=windows
10596 shrext_cmds=".dll"
10597 need_version=no
10598 need_lib_prefix=no
10600 case $GCC,$host_os in
10601 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10602 library_names_spec='$libname.dll.a'
10603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10604 postinstall_cmds='base_file=`basename \${file}`~
10605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10606 dldir=$destdir/`dirname \$dlpath`~
10607 test -d \$dldir || mkdir -p \$dldir~
10608 $install_prog $dir/$dlname \$dldir/$dlname~
10609 chmod a+x \$dldir/$dlname~
10610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10614 dlpath=$dir/\$dldll~
10615 $RM \$dlpath'
10616 shlibpath_overrides_runpath=yes
10618 case $host_os in
10619 cygwin*)
10620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10625 mingw* | cegcc*)
10626 # MinGW DLLs use traditional 'lib' prefix
10627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10629 pw32*)
10630 # pw32 DLLs use 'pw' prefix rather than 'lib'
10631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10633 esac
10637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10639 esac
10640 dynamic_linker='Win32 ld.exe'
10641 # FIXME: first we should search . and the directory the executable is in
10642 shlibpath_var=PATH
10645 darwin* | rhapsody*)
10646 dynamic_linker="$host_os dyld"
10647 version_type=darwin
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10651 soname_spec='${libname}${release}${major}$shared_ext'
10652 shlibpath_overrides_runpath=yes
10653 shlibpath_var=DYLD_LIBRARY_PATH
10654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10660 dgux*)
10661 version_type=linux
10662 need_lib_prefix=no
10663 need_version=no
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10669 freebsd* | dragonfly*)
10670 # DragonFly does not have aout. When/if they implement a new
10671 # versioning mechanism, adjust this.
10672 if test -x /usr/bin/objformat; then
10673 objformat=`/usr/bin/objformat`
10674 else
10675 case $host_os in
10676 freebsd[23].*) objformat=aout ;;
10677 *) objformat=elf ;;
10678 esac
10680 version_type=freebsd-$objformat
10681 case $version_type in
10682 freebsd-elf*)
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 need_version=no
10685 need_lib_prefix=no
10687 freebsd-*)
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10689 need_version=yes
10691 esac
10692 shlibpath_var=LD_LIBRARY_PATH
10693 case $host_os in
10694 freebsd2.*)
10695 shlibpath_overrides_runpath=yes
10697 freebsd3.[01]* | freebsdelf3.[01]*)
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10703 shlibpath_overrides_runpath=no
10704 hardcode_into_libs=yes
10706 *) # from 4.6 on, and DragonFly
10707 shlibpath_overrides_runpath=yes
10708 hardcode_into_libs=yes
10710 esac
10713 haiku*)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 dynamic_linker="$host_os runtime_loader"
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 shlibpath_var=LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes
10722 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10723 hardcode_into_libs=yes
10726 hpux9* | hpux10* | hpux11*)
10727 # Give a soname corresponding to the major version so that dld.sl refuses to
10728 # link against other versions.
10729 version_type=sunos
10730 need_lib_prefix=no
10731 need_version=no
10732 case $host_cpu in
10733 ia64*)
10734 shrext_cmds='.so'
10735 hardcode_into_libs=yes
10736 dynamic_linker="$host_os dld.so"
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 if test "X$HPUX_IA64_MODE" = X32; then
10742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10743 else
10744 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10748 hppa*64*)
10749 shrext_cmds='.sl'
10750 hardcode_into_libs=yes
10751 dynamic_linker="$host_os dld.sl"
10752 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10760 shrext_cmds='.sl'
10761 dynamic_linker="$host_os dld.sl"
10762 shlibpath_var=SHLIB_PATH
10763 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10767 esac
10768 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10769 postinstall_cmds='chmod 555 $lib'
10770 # or fails outright, so override atomically:
10771 install_override_mode=555
10774 interix[3-9]*)
10775 version_type=linux
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=no
10783 hardcode_into_libs=yes
10786 irix5* | irix6* | nonstopux*)
10787 case $host_os in
10788 nonstopux*) version_type=nonstopux ;;
10790 if test "$lt_cv_prog_gnu_ld" = yes; then
10791 version_type=linux
10792 else
10793 version_type=irix
10794 fi ;;
10795 esac
10796 need_lib_prefix=no
10797 need_version=no
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10800 case $host_os in
10801 irix5* | nonstopux*)
10802 libsuff= shlibsuff=
10805 case $LD in # libtool.m4 will add one of these switches to LD
10806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10807 libsuff= shlibsuff= libmagic=32-bit;;
10808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10809 libsuff=32 shlibsuff=N32 libmagic=N32;;
10810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10812 *) libsuff= shlibsuff= libmagic=never-match;;
10813 esac
10815 esac
10816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10817 shlibpath_overrides_runpath=no
10818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10820 hardcode_into_libs=yes
10823 # No shared lib support for Linux oldld, aout, or coff.
10824 linux*oldld* | linux*aout* | linux*coff*)
10825 dynamic_linker=no
10828 # This must be Linux ELF.
10830 # uclinux* changes (here and below) have been submitted to the libtool
10831 # project, but have not yet been accepted: they are GCC-local changes
10832 # for the time being. (See
10833 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10834 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10835 version_type=linux
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10844 # Some binutils ld are patched to set DT_RUNPATH
10845 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 lt_cv_shlibpath_overrides_runpath=no
10849 save_LDFLAGS=$LDFLAGS
10850 save_libdir=$libdir
10851 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10852 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10857 main ()
10861 return 0;
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10866 lt_cv_shlibpath_overrides_runpath=yes
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LDFLAGS=$save_LDFLAGS
10872 libdir=$save_libdir
10876 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10878 # This implies no fast_install, which is unacceptable.
10879 # Some rework will be needed to allow for fast_install
10880 # before this can be enabled.
10881 hardcode_into_libs=yes
10883 # Append ld.so.conf contents to the search path
10884 if test -f /etc/ld.so.conf; then
10885 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' ' '`
10886 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10889 # We used to test for /lib/ld.so.1 and disable shared libraries on
10890 # powerpc, because MkLinux only supported shared libraries with the
10891 # GNU dynamic linker. Since this was broken with cross compilers,
10892 # most powerpc-linux boxes support dynamic linking these days and
10893 # people can always --disable-shared, the test was removed, and we
10894 # assume the GNU/Linux dynamic linker is in use.
10895 dynamic_linker='GNU/Linux ld.so'
10898 netbsd*)
10899 version_type=sunos
10900 need_lib_prefix=no
10901 need_version=no
10902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10905 dynamic_linker='NetBSD (a.out) ld.so'
10906 else
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 dynamic_linker='NetBSD ld.elf_so'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10916 newsos6)
10917 version_type=linux
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=yes
10923 *nto* | *qnx*)
10924 version_type=qnx
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 dynamic_linker='ldqnx.so'
10935 openbsd*)
10936 version_type=sunos
10937 sys_lib_dlsearch_path_spec="/usr/lib"
10938 need_lib_prefix=no
10939 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10940 case $host_os in
10941 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10942 *) need_version=no ;;
10943 esac
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10948 case $host_os in
10949 openbsd2.[89] | openbsd2.[89].*)
10950 shlibpath_overrides_runpath=no
10953 shlibpath_overrides_runpath=yes
10955 esac
10956 else
10957 shlibpath_overrides_runpath=yes
10961 os2*)
10962 libname_spec='$name'
10963 shrext_cmds=".dll"
10964 need_lib_prefix=no
10965 library_names_spec='$libname${shared_ext} $libname.a'
10966 dynamic_linker='OS/2 ld.exe'
10967 shlibpath_var=LIBPATH
10970 osf3* | osf4* | osf5*)
10971 version_type=osf
10972 need_lib_prefix=no
10973 need_version=no
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10978 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10981 rdos*)
10982 dynamic_linker=no
10985 solaris*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 hardcode_into_libs=yes
10994 # ldd complains unless libraries are executable
10995 postinstall_cmds='chmod +x $lib'
10998 sunos4*)
10999 version_type=sunos
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=yes
11004 if test "$with_gnu_ld" = yes; then
11005 need_lib_prefix=no
11007 need_version=yes
11010 sysv4 | sysv4.3*)
11011 version_type=linux
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 case $host_vendor in
11016 sni)
11017 shlibpath_overrides_runpath=no
11018 need_lib_prefix=no
11019 runpath_var=LD_RUN_PATH
11021 siemens)
11022 need_lib_prefix=no
11024 motorola)
11025 need_lib_prefix=no
11026 need_version=no
11027 shlibpath_overrides_runpath=no
11028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11030 esac
11033 sysv4*MP*)
11034 if test -d /usr/nec ;then
11035 version_type=linux
11036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11037 soname_spec='$libname${shared_ext}.$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11043 version_type=freebsd-elf
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11051 if test "$with_gnu_ld" = yes; then
11052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11053 else
11054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11055 case $host_os in
11056 sco3.2v5*)
11057 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11059 esac
11061 sys_lib_dlsearch_path_spec='/usr/lib'
11064 tpf*)
11065 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11066 version_type=linux
11067 need_lib_prefix=no
11068 need_version=no
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=no
11072 hardcode_into_libs=yes
11075 uts4*)
11076 version_type=linux
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11082 # Shared libraries for VwWorks, >= 7 only at this stage
11083 # and (fpic) still incompatible with "large" code models
11084 # in a few configurations. Only for RTP mode in any case,
11085 # and upon explicit request at configure time.
11086 vxworks7*)
11087 dynamic_linker=no
11088 case ${with_multisubdir}-${enable_shared} in
11089 *large*)
11091 *mrtp*-yes)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 dynamic_linker="$host_os module_loader"
11099 esac
11102 dynamic_linker=no
11104 esac
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11106 $as_echo "$dynamic_linker" >&6; }
11107 test "$dynamic_linker" = no && can_build_shared=no
11109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11110 if test "$GCC" = yes; then
11111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11117 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11214 hardcode_action=
11215 if test -n "$hardcode_libdir_flag_spec" ||
11216 test -n "$runpath_var" ||
11217 test "X$hardcode_automatic" = "Xyes" ; then
11219 # We can hardcode non-existent directories.
11220 if test "$hardcode_direct" != no &&
11221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11222 # have to relink, otherwise we might link with an installed library
11223 # when we should be linking with a yet-to-be-installed one
11224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11225 test "$hardcode_minus_L" != no; then
11226 # Linking always hardcodes the temporary library directory.
11227 hardcode_action=relink
11228 else
11229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11230 hardcode_action=immediate
11232 else
11233 # We cannot hardcode anything, or else we can only hardcode existing
11234 # directories.
11235 hardcode_action=unsupported
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11238 $as_echo "$hardcode_action" >&6; }
11240 if test "$hardcode_action" = relink ||
11241 test "$inherit_rpath" = yes; then
11242 # Fast installation is not supported
11243 enable_fast_install=no
11244 elif test "$shlibpath_overrides_runpath" = yes ||
11245 test "$enable_shared" = no; then
11246 # Fast installation is not necessary
11247 enable_fast_install=needless
11255 if test "x$enable_dlopen" != xyes; then
11256 enable_dlopen=unknown
11257 enable_dlopen_self=unknown
11258 enable_dlopen_self_static=unknown
11259 else
11260 lt_cv_dlopen=no
11261 lt_cv_dlopen_libs=
11263 case $host_os in
11264 beos*)
11265 lt_cv_dlopen="load_add_on"
11266 lt_cv_dlopen_libs=
11267 lt_cv_dlopen_self=yes
11270 mingw* | pw32* | cegcc*)
11271 lt_cv_dlopen="LoadLibrary"
11272 lt_cv_dlopen_libs=
11275 cygwin*)
11276 lt_cv_dlopen="dlopen"
11277 lt_cv_dlopen_libs=
11280 darwin*)
11281 # if libdl is installed we need to link against it
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11284 if ${ac_cv_lib_dl_dlopen+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-ldl $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char dlopen ();
11300 main ()
11302 return dlopen ();
11304 return 0;
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_dl_dlopen=yes
11309 else
11310 ac_cv_lib_dl_dlopen=no
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11318 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11320 else
11322 lt_cv_dlopen="dyld"
11323 lt_cv_dlopen_libs=
11324 lt_cv_dlopen_self=yes
11331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11332 if test "x$ac_cv_func_shl_load" = xyes; then :
11333 lt_cv_dlopen="shl_load"
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11336 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11337 if ${ac_cv_lib_dld_shl_load+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-ldld $LIBS"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char shl_load ();
11353 main ()
11355 return shl_load ();
11357 return 0;
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_lib_dld_shl_load=yes
11362 else
11363 ac_cv_lib_dld_shl_load=no
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11371 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11373 else
11374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11375 if test "x$ac_cv_func_dlopen" = xyes; then :
11376 lt_cv_dlopen="dlopen"
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if ${ac_cv_lib_dl_dlopen+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldl $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dlopen ();
11396 main ()
11398 return dlopen ();
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_dl_dlopen=yes
11405 else
11406 ac_cv_lib_dl_dlopen=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11418 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11419 if ${ac_cv_lib_svld_dlopen+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 ac_check_lib_save_LIBS=$LIBS
11423 LIBS="-lsvld $LIBS"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char dlopen ();
11435 main ()
11437 return dlopen ();
11439 return 0;
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 ac_cv_lib_svld_dlopen=yes
11444 else
11445 ac_cv_lib_svld_dlopen=no
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11452 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11453 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11457 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11458 if ${ac_cv_lib_dld_dld_link+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-ldld $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char dld_link ();
11474 main ()
11476 return dld_link ();
11478 return 0;
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dld_dld_link=yes
11483 else
11484 ac_cv_lib_dld_dld_link=no
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11491 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11492 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11512 esac
11514 if test "x$lt_cv_dlopen" != xno; then
11515 enable_dlopen=yes
11516 else
11517 enable_dlopen=no
11520 case $lt_cv_dlopen in
11521 dlopen)
11522 save_CPPFLAGS="$CPPFLAGS"
11523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11525 save_LDFLAGS="$LDFLAGS"
11526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11528 save_LIBS="$LIBS"
11529 LIBS="$lt_cv_dlopen_libs $LIBS"
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11532 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11533 if ${lt_cv_dlopen_self+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 if test "$cross_compiling" = yes; then :
11537 lt_cv_dlopen_self=cross
11538 else
11539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540 lt_status=$lt_dlunknown
11541 cat > conftest.$ac_ext <<_LT_EOF
11542 #line 11542 "configure"
11543 #include "confdefs.h"
11545 #if HAVE_DLFCN_H
11546 #include <dlfcn.h>
11547 #endif
11549 #include <stdio.h>
11551 #ifdef RTLD_GLOBAL
11552 # define LT_DLGLOBAL RTLD_GLOBAL
11553 #else
11554 # ifdef DL_GLOBAL
11555 # define LT_DLGLOBAL DL_GLOBAL
11556 # else
11557 # define LT_DLGLOBAL 0
11558 # endif
11559 #endif
11561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562 find out it does not work in some platform. */
11563 #ifndef LT_DLLAZY_OR_NOW
11564 # ifdef RTLD_LAZY
11565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11566 # else
11567 # ifdef DL_LAZY
11568 # define LT_DLLAZY_OR_NOW DL_LAZY
11569 # else
11570 # ifdef RTLD_NOW
11571 # define LT_DLLAZY_OR_NOW RTLD_NOW
11572 # else
11573 # ifdef DL_NOW
11574 # define LT_DLLAZY_OR_NOW DL_NOW
11575 # else
11576 # define LT_DLLAZY_OR_NOW 0
11577 # endif
11578 # endif
11579 # endif
11580 # endif
11581 #endif
11583 /* When -fvisbility=hidden is used, assume the code has been annotated
11584 correspondingly for the symbols needed. */
11585 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11586 void fnord () __attribute__((visibility("default")));
11587 #endif
11589 void fnord () { int i=42; }
11590 int main ()
11592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11593 int status = $lt_dlunknown;
11595 if (self)
11597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11598 else
11600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11601 else puts (dlerror ());
11603 /* dlclose (self); */
11605 else
11606 puts (dlerror ());
11608 return status;
11610 _LT_EOF
11611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11616 (./conftest; exit; ) >&5 2>/dev/null
11617 lt_status=$?
11618 case x$lt_status in
11619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11622 esac
11623 else :
11624 # compilation failed
11625 lt_cv_dlopen_self=no
11628 rm -fr conftest*
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11633 $as_echo "$lt_cv_dlopen_self" >&6; }
11635 if test "x$lt_cv_dlopen_self" = xyes; then
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11639 if ${lt_cv_dlopen_self_static+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test "$cross_compiling" = yes; then :
11643 lt_cv_dlopen_self_static=cross
11644 else
11645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11646 lt_status=$lt_dlunknown
11647 cat > conftest.$ac_ext <<_LT_EOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11651 #if HAVE_DLFCN_H
11652 #include <dlfcn.h>
11653 #endif
11655 #include <stdio.h>
11657 #ifdef RTLD_GLOBAL
11658 # define LT_DLGLOBAL RTLD_GLOBAL
11659 #else
11660 # ifdef DL_GLOBAL
11661 # define LT_DLGLOBAL DL_GLOBAL
11662 # else
11663 # define LT_DLGLOBAL 0
11664 # endif
11665 #endif
11667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11668 find out it does not work in some platform. */
11669 #ifndef LT_DLLAZY_OR_NOW
11670 # ifdef RTLD_LAZY
11671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11672 # else
11673 # ifdef DL_LAZY
11674 # define LT_DLLAZY_OR_NOW DL_LAZY
11675 # else
11676 # ifdef RTLD_NOW
11677 # define LT_DLLAZY_OR_NOW RTLD_NOW
11678 # else
11679 # ifdef DL_NOW
11680 # define LT_DLLAZY_OR_NOW DL_NOW
11681 # else
11682 # define LT_DLLAZY_OR_NOW 0
11683 # endif
11684 # endif
11685 # endif
11686 # endif
11687 #endif
11689 /* When -fvisbility=hidden is used, assume the code has been annotated
11690 correspondingly for the symbols needed. */
11691 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11692 void fnord () __attribute__((visibility("default")));
11693 #endif
11695 void fnord () { int i=42; }
11696 int main ()
11698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11699 int status = $lt_dlunknown;
11701 if (self)
11703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11704 else
11706 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707 else puts (dlerror ());
11709 /* dlclose (self); */
11711 else
11712 puts (dlerror ());
11714 return status;
11716 _LT_EOF
11717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11722 (./conftest; exit; ) >&5 2>/dev/null
11723 lt_status=$?
11724 case x$lt_status in
11725 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11726 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11728 esac
11729 else :
11730 # compilation failed
11731 lt_cv_dlopen_self_static=no
11734 rm -fr conftest*
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11739 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11742 CPPFLAGS="$save_CPPFLAGS"
11743 LDFLAGS="$save_LDFLAGS"
11744 LIBS="$save_LIBS"
11746 esac
11748 case $lt_cv_dlopen_self in
11749 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11750 *) enable_dlopen_self=unknown ;;
11751 esac
11753 case $lt_cv_dlopen_self_static in
11754 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11755 *) enable_dlopen_self_static=unknown ;;
11756 esac
11775 striplib=
11776 old_striplib=
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11778 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11779 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11780 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11781 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11783 $as_echo "yes" >&6; }
11784 else
11785 # FIXME - insert some real tests, host_os isn't really good enough
11786 case $host_os in
11787 darwin*)
11788 if test -n "$STRIP" ; then
11789 striplib="$STRIP -x"
11790 old_striplib="$STRIP -S"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 $as_echo "yes" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11802 esac
11816 # Report which library types will actually be built
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11820 $as_echo "$can_build_shared" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11823 $as_echo_n "checking whether to build shared libraries... " >&6; }
11824 test "$can_build_shared" = "no" && enable_shared=no
11826 # On AIX, shared libraries and static libraries use the same namespace, and
11827 # are all built from PIC.
11828 case $host_os in
11829 aix3*)
11830 test "$enable_shared" = yes && enable_static=no
11831 if test -n "$RANLIB"; then
11832 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11833 postinstall_cmds='$RANLIB $lib'
11837 aix[4-9]*)
11838 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11839 test "$enable_shared" = yes && enable_static=no
11842 esac
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11844 $as_echo "$enable_shared" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11847 $as_echo_n "checking whether to build static libraries... " >&6; }
11848 # Make sure either enable_shared or enable_static is yes.
11849 test "$enable_shared" = yes || enable_static=yes
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11851 $as_echo "$enable_static" >&6; }
11857 ac_ext=c
11858 ac_cpp='$CPP $CPPFLAGS'
11859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863 CC="$lt_save_CC"
11877 ac_config_commands="$ac_config_commands libtool"
11882 # Only expand once:
11887 # Check whether --enable-largefile was given.
11888 if test "${enable_largefile+set}" = set; then :
11889 enableval=$enable_largefile;
11892 if test "$enable_largefile" != no; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11895 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11896 if ${ac_cv_sys_largefile_CC+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_cv_sys_largefile_CC=no
11900 if test "$GCC" != yes; then
11901 ac_save_CC=$CC
11902 while :; do
11903 # IRIX 6.2 and later do not support large files by default,
11904 # so use the C compiler's -n32 option if that helps.
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include <sys/types.h>
11908 /* Check that off_t can represent 2**63 - 1 correctly.
11909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11910 since some C++ compilers masquerading as C compilers
11911 incorrectly reject 9223372036854775807. */
11912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11914 && LARGE_OFF_T % 2147483647 == 1)
11915 ? 1 : -1];
11917 main ()
11921 return 0;
11923 _ACEOF
11924 if ac_fn_c_try_compile "$LINENO"; then :
11925 break
11927 rm -f core conftest.err conftest.$ac_objext
11928 CC="$CC -n32"
11929 if ac_fn_c_try_compile "$LINENO"; then :
11930 ac_cv_sys_largefile_CC=' -n32'; break
11932 rm -f core conftest.err conftest.$ac_objext
11933 break
11934 done
11935 CC=$ac_save_CC
11936 rm -f conftest.$ac_ext
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11940 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11941 if test "$ac_cv_sys_largefile_CC" != no; then
11942 CC=$CC$ac_cv_sys_largefile_CC
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11946 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11947 if ${ac_cv_sys_file_offset_bits+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 while :; do
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953 #include <sys/types.h>
11954 /* Check that off_t can represent 2**63 - 1 correctly.
11955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11956 since some C++ compilers masquerading as C compilers
11957 incorrectly reject 9223372036854775807. */
11958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11960 && LARGE_OFF_T % 2147483647 == 1)
11961 ? 1 : -1];
11963 main ()
11967 return 0;
11969 _ACEOF
11970 if ac_fn_c_try_compile "$LINENO"; then :
11971 ac_cv_sys_file_offset_bits=no; break
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #define _FILE_OFFSET_BITS 64
11977 #include <sys/types.h>
11978 /* Check that off_t can represent 2**63 - 1 correctly.
11979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11980 since some C++ compilers masquerading as C compilers
11981 incorrectly reject 9223372036854775807. */
11982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11984 && LARGE_OFF_T % 2147483647 == 1)
11985 ? 1 : -1];
11987 main ()
11991 return 0;
11993 _ACEOF
11994 if ac_fn_c_try_compile "$LINENO"; then :
11995 ac_cv_sys_file_offset_bits=64; break
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 ac_cv_sys_file_offset_bits=unknown
11999 break
12000 done
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12003 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12004 case $ac_cv_sys_file_offset_bits in #(
12005 no | unknown) ;;
12007 cat >>confdefs.h <<_ACEOF
12008 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12009 _ACEOF
12011 esac
12012 rm -rf conftest*
12013 if test $ac_cv_sys_file_offset_bits = unknown; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12015 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12016 if ${ac_cv_sys_large_files+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 while :; do
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 #include <sys/types.h>
12023 /* Check that off_t can represent 2**63 - 1 correctly.
12024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12025 since some C++ compilers masquerading as C compilers
12026 incorrectly reject 9223372036854775807. */
12027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12029 && LARGE_OFF_T % 2147483647 == 1)
12030 ? 1 : -1];
12032 main ()
12036 return 0;
12038 _ACEOF
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 ac_cv_sys_large_files=no; break
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045 #define _LARGE_FILES 1
12046 #include <sys/types.h>
12047 /* Check that off_t can represent 2**63 - 1 correctly.
12048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12049 since some C++ compilers masquerading as C compilers
12050 incorrectly reject 9223372036854775807. */
12051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12053 && LARGE_OFF_T % 2147483647 == 1)
12054 ? 1 : -1];
12056 main ()
12060 return 0;
12062 _ACEOF
12063 if ac_fn_c_try_compile "$LINENO"; then :
12064 ac_cv_sys_large_files=1; break
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 ac_cv_sys_large_files=unknown
12068 break
12069 done
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12072 $as_echo "$ac_cv_sys_large_files" >&6; }
12073 case $ac_cv_sys_large_files in #(
12074 no | unknown) ;;
12076 cat >>confdefs.h <<_ACEOF
12077 #define _LARGE_FILES $ac_cv_sys_large_files
12078 _ACEOF
12080 esac
12081 rm -rf conftest*
12088 backtrace_supported=yes
12090 if test -n "${with_target_subdir}"; then
12091 # We are compiling a GCC library. We can assume that the unwind
12092 # library exists.
12093 BACKTRACE_FILE="backtrace.lo simple.lo"
12094 else
12095 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12096 if test "x$ac_cv_header_unwind_h" = xyes; then :
12097 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12098 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12099 BACKTRACE_FILE="backtrace.lo simple.lo"
12100 else
12101 BACKTRACE_FILE="nounwind.lo"
12102 backtrace_supported=no
12105 else
12106 BACKTRACE_FILE="nounwind.lo"
12107 backtrace_supported=no
12114 EXTRA_FLAGS=
12115 if test -n "${with_target_subdir}"; then
12116 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12119 $as_echo_n "checking for -funwind-tables option... " >&6; }
12120 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 CFLAGS_hold="$CFLAGS"
12124 CFLAGS="$CFLAGS -funwind-tables"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 static int f() { return 0; }
12129 main ()
12131 return f();
12133 return 0;
12135 _ACEOF
12136 if ac_fn_c_try_compile "$LINENO"; then :
12137 libbacktrace_cv_c_unwind_tables=yes
12138 else
12139 libbacktrace_cv_c_unwind_tables=no
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 CFLAGS="$CFLAGS_hold"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12145 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12146 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12147 EXTRA_FLAGS=-funwind-tables
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12150 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12151 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 CFLAGS_hold="$CFLAGS"
12155 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12160 main ()
12162 return 0;
12164 return 0;
12166 _ACEOF
12167 if ac_fn_c_try_compile "$LINENO"; then :
12168 libbacktrace_cv_c_random_seed_string=yes
12169 else
12170 libbacktrace_cv_c_random_seed_string=no
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 CFLAGS="$CFLAGS_hold"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12176 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12177 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12178 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12182 if test -n "${with_target_subdir}"; then
12183 # Add CET specific flags is Intel CET is enabled.
12184 # Check whether --enable-cet was given.
12185 if test "${enable_cet+set}" = set; then :
12186 enableval=$enable_cet;
12187 case "$enableval" in
12188 yes|no|auto) ;;
12189 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12190 esac
12192 else
12193 enable_cet=auto
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12198 $as_echo_n "checking for CET support... " >&6; }
12200 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12201 case "$host" in
12202 i[34567]86-*-linux* | x86_64-*-linux*)
12203 case "$enable_cet" in
12204 auto)
12205 # Check if target supports multi-byte NOPs
12206 # and if compiler and assembler support CET insn.
12207 cet_save_CFLAGS="$CFLAGS"
12208 CFLAGS="$CFLAGS -fcf-protection"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12213 main ()
12216 #if !defined(__SSE2__)
12217 #error target does not support multi-byte NOPs
12218 #else
12219 asm ("setssbsy");
12220 #endif
12223 return 0;
12225 _ACEOF
12226 if ac_fn_c_try_compile "$LINENO"; then :
12227 enable_cet=yes
12228 else
12229 enable_cet=no
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 CFLAGS="$cet_save_CFLAGS"
12234 yes)
12235 # Check if assembler supports CET.
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12240 main ()
12242 asm ("setssbsy");
12244 return 0;
12246 _ACEOF
12247 if ac_fn_c_try_compile "$LINENO"; then :
12249 else
12250 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 esac
12257 enable_cet=no
12259 esac
12260 if test x$enable_cet = xyes; then
12261 CET_FLAGS="-fcf-protection -mshstk"
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12269 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12273 ac_ext=c
12274 ac_cpp='$CPP $CPPFLAGS'
12275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279 WARN_FLAGS=
12280 save_CFLAGS="$CFLAGS"
12281 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12282 -Wmissing-prototypes -Wold-style-definition \
12283 -Wmissing-format-attribute -Wcast-qual; do
12284 # Do the check with the no- prefix removed since gcc silently
12285 # accepts any -Wno-* option on purpose
12286 case $real_option in
12287 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12288 *) option=$real_option ;;
12289 esac
12290 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12293 $as_echo_n "checking whether $CC supports $option... " >&6; }
12294 if eval \${$as_acx_Woption+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 CFLAGS="$option"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12302 main ()
12306 return 0;
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 eval "$as_acx_Woption=yes"
12311 else
12312 eval "$as_acx_Woption=no"
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 eval ac_res=\$$as_acx_Woption
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12319 $as_echo "$ac_res" >&6; }
12320 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12321 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12323 done
12324 CFLAGS="$save_CFLAGS"
12325 ac_ext=c
12326 ac_cpp='$CPP $CPPFLAGS'
12327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12333 # Check whether --enable-werror was given.
12334 if test "${enable_werror+set}" = set; then :
12335 enableval=$enable_werror;
12338 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12339 WARN_FLAGS="$WARN_FLAGS -Werror"
12343 if test -n "${with_target_subdir}"; then
12346 # Check whether --with-system-libunwind was given.
12347 if test "${with_system_libunwind+set}" = set; then :
12348 withval=$with_system_libunwind;
12351 # If system-libunwind was not specifically set, pick a default setting.
12352 if test x$with_system_libunwind = x; then
12353 case ${target} in
12354 ia64-*-hpux*) with_system_libunwind=yes ;;
12355 *) with_system_libunwind=no ;;
12356 esac
12358 # Based on system-libunwind and target, do we have ipinfo?
12359 if test x$with_system_libunwind = xyes; then
12360 case ${target} in
12361 ia64-*-*) have_unwind_getipinfo=no ;;
12362 *) have_unwind_getipinfo=yes ;;
12363 esac
12364 else
12365 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12367 case ${target} in
12368 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12369 *) have_unwind_getipinfo=yes ;;
12370 esac
12374 if test x$have_unwind_getipinfo = xyes; then
12376 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12380 else
12381 ac_save_CFFLAGS="$CFLAGS"
12382 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12384 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 #include "unwind.h"
12388 struct _Unwind_Context *context;
12389 int ip_before_insn = 0;
12391 main ()
12393 return _Unwind_GetIPInfo (context, &ip_before_insn);
12395 return 0;
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 have_unwind_getipinfo=yes
12400 else
12401 have_unwind_getipinfo=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 CFLAGS="$ac_save_CFLAGS"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12407 $as_echo "$have_unwind_getipinfo" >&6; }
12408 if test "$have_unwind_getipinfo" = "yes"; then
12410 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12415 # Enable --enable-host-shared.
12416 # Check whether --enable-host-shared was given.
12417 if test "${enable_host_shared+set}" = set; then :
12418 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12419 else
12420 PIC_FLAG=
12425 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12426 # Check whether --enable-cet was given.
12427 if test "${enable_cet+set}" = set; then :
12428 enableval=$enable_cet;
12429 case "$enableval" in
12430 yes|no|auto) ;;
12431 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12432 esac
12434 else
12435 enable_cet=auto
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12440 $as_echo_n "checking for CET support... " >&6; }
12442 case "$host" in
12443 i[34567]86-*-linux* | x86_64-*-linux*)
12444 may_have_cet=yes
12445 cet_save_CFLAGS="$CFLAGS"
12446 CFLAGS="$CFLAGS -fcf-protection"
12447 case "$enable_cet" in
12448 auto)
12449 # Check if target supports multi-byte NOPs
12450 # and if compiler and assembler support CET.
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12455 main ()
12458 #if !defined(__SSE2__)
12459 #error target does not support multi-byte NOPs
12460 #else
12461 asm ("setssbsy");
12462 #endif
12465 return 0;
12467 _ACEOF
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469 enable_cet=yes
12470 else
12471 enable_cet=no
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 yes)
12476 # Check if compiler and assembler support CET.
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12481 main ()
12483 asm ("setssbsy");
12485 return 0;
12487 _ACEOF
12488 if ac_fn_c_try_compile "$LINENO"; then :
12489 support_cet=yes
12490 else
12491 support_cet=no
12493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494 if test $support_cet = "no"; then
12495 if test x$enable_bootstrap != xno \
12496 && test -z "${with_build_subdir}" \
12497 && (test ! -f ../stage_current \
12498 || test `cat ../stage_current` != "stage1"); then
12499 # Require CET support only for the final GCC build.
12500 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12501 else
12502 # Don't enable CET without CET support for non-bootstrap
12503 # build, in stage1 nor for build support.
12504 enable_cet=no
12508 esac
12509 CFLAGS="$cet_save_CFLAGS"
12512 may_have_cet=no
12513 enable_cet=no
12515 esac
12517 cet_save_CFLAGS="$CFLAGS"
12518 CFLAGS="$CFLAGS -fcf-protection=none"
12519 cet_save_LDFLAGS="$LDFLAGS"
12520 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12521 if test x$may_have_cet = xyes; then
12522 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12527 main ()
12529 return 0;
12531 return 0;
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 may_have_cet=yes
12536 else
12537 may_have_cet=no
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12543 if test x$may_have_cet = xyes; then
12544 if test x$cross_compiling = xno; then
12545 if test "$cross_compiling" = yes; then :
12546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12548 as_fn_error $? "cannot run test program while cross compiling
12549 See \`config.log' for more details" "$LINENO" 5; }
12550 else
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12555 main ()
12557 asm ("endbr32");
12558 return 0;
12561 _ACEOF
12562 if ac_fn_c_try_run "$LINENO"; then :
12563 have_multi_byte_nop=yes
12564 else
12565 have_multi_byte_nop=no
12567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12568 conftest.$ac_objext conftest.beam conftest.$ac_ext
12571 have_cet=no
12572 if test x$have_multi_byte_nop = xyes; then
12573 if test "$cross_compiling" = yes; then :
12574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12576 as_fn_error $? "cannot run test program while cross compiling
12577 See \`config.log' for more details" "$LINENO" 5; }
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 static void
12583 foo (void)
12587 static void
12588 __attribute__ ((noinline, noclone))
12589 xxx (void (*f) (void))
12591 f ();
12594 static void
12595 __attribute__ ((noinline, noclone))
12596 bar (void)
12598 xxx (foo);
12602 main ()
12604 bar ();
12605 return 0;
12608 _ACEOF
12609 if ac_fn_c_try_run "$LINENO"; then :
12610 have_cet=no
12611 else
12612 have_cet=yes
12614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12615 conftest.$ac_objext conftest.beam conftest.$ac_ext
12619 if test x$enable_cet = xno -a x$have_cet = xyes; then
12620 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12623 else
12624 # Enable CET in cross compiler if possible so that it will run on both
12625 # CET and non-CET hosts.
12626 have_cet=yes
12628 if test x$enable_cet = xyes; then
12629 CET_HOST_FLAGS="-fcf-protection"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631 $as_echo "yes" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12636 CFLAGS="$cet_save_CFLAGS"
12637 LDFLAGS="$cet_save_LDFLAGS"
12639 case x$enable_languages in
12640 *jit*)
12643 CET_HOST_FLAGS=
12645 esac
12648 # Test for __sync support.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12650 $as_echo_n "checking __sync extensions... " >&6; }
12651 if ${libbacktrace_cv_sys_sync+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 if test -n "${with_target_subdir}"; then
12655 case "${host}" in
12656 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12657 *) libbacktrace_cv_sys_sync=yes ;;
12658 esac
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 int i;
12664 main ()
12666 __sync_bool_compare_and_swap (&i, i, i);
12667 __sync_lock_test_and_set (&i, 1);
12668 __sync_lock_release (&i);
12670 return 0;
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 libbacktrace_cv_sys_sync=yes
12675 else
12676 libbacktrace_cv_sys_sync=no
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12683 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12684 BACKTRACE_SUPPORTS_THREADS=0
12685 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12686 BACKTRACE_SUPPORTS_THREADS=1
12688 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12693 # Test for __atomic support.
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12695 $as_echo_n "checking __atomic extensions... " >&6; }
12696 if ${libbacktrace_cv_sys_atomic+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test -n "${with_target_subdir}"; then
12700 libbacktrace_cv_sys_atomic=yes
12701 else
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 int i;
12706 main ()
12708 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12709 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715 libbacktrace_cv_sys_atomic=yes
12716 else
12717 libbacktrace_cv_sys_atomic=no
12719 rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12724 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12725 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12727 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12731 # The library needs to be able to read the executable itself. Compile
12732 # a file to determine the executable format. The awk script
12733 # filetype.awk prints out the file type.
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12735 $as_echo_n "checking output filetype... " >&6; }
12736 if ${libbacktrace_cv_sys_filetype+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 filetype=
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 int i;
12744 main ()
12746 int j;
12748 return 0;
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12753 else
12754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12756 as_fn_error $? "compiler failed
12757 See \`config.log' for more details" "$LINENO" 5; }
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 libbacktrace_cv_sys_filetype=$filetype
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12763 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12765 # Match the file type to decide what files to compile.
12766 FORMAT_FILE=
12767 backtrace_supports_data=yes
12768 case "$libbacktrace_cv_sys_filetype" in
12769 elf*) FORMAT_FILE="elf.lo" ;;
12770 macho) FORMAT_FILE="macho.lo" ;;
12771 pecoff) FORMAT_FILE="pecoff.lo"
12772 backtrace_supports_data=no
12774 xcoff*) FORMAT_FILE="xcoff.lo"
12775 backtrace_supports_data=no
12777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12778 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12779 FORMAT_FILE="unknown.lo"
12780 backtrace_supported=no
12782 esac
12785 # ELF defines.
12786 elfsize=
12787 case "$libbacktrace_cv_sys_filetype" in
12788 elf32) elfsize=32 ;;
12789 elf64) elfsize=64 ;;
12790 *) elfsize=unused
12791 esac
12793 cat >>confdefs.h <<_ACEOF
12794 #define BACKTRACE_ELF_SIZE $elfsize
12795 _ACEOF
12797 if test "$FORMAT_FILE" = "elf.lo"; then
12798 HAVE_ELF_TRUE=
12799 HAVE_ELF_FALSE='#'
12800 else
12801 HAVE_ELF_TRUE='#'
12802 HAVE_ELF_FALSE=
12806 # XCOFF defines.
12807 xcoffsize=
12808 case "$libbacktrace_cv_sys_filetype" in
12809 xcoff32) xcoffsize=32 ;;
12810 xcoff64) xcoffsize=64 ;;
12811 *) xcoffsize=unused
12812 esac
12814 cat >>confdefs.h <<_ACEOF
12815 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12816 _ACEOF
12819 BACKTRACE_SUPPORTED=0
12820 if test "$backtrace_supported" = "yes"; then
12821 BACKTRACE_SUPPORTED=1
12825 BACKTRACE_SUPPORTS_DATA=0
12826 if test "$backtrace_supports_data" = "yes"; then
12827 BACKTRACE_SUPPORTS_DATA=1
12833 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12835 acx_cv_header_stdint=stddef.h
12836 acx_cv_header_stdint_kind="(already complete)"
12837 for i in stdint.h $inttype_headers; do
12838 unset ac_cv_type_uintptr_t
12839 unset ac_cv_type_uintmax_t
12840 unset ac_cv_type_int_least32_t
12841 unset ac_cv_type_int_fast32_t
12842 unset ac_cv_type_uint64_t
12843 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12844 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12845 #include <$i>
12847 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12848 acx_cv_header_stdint=$i
12849 else
12850 continue
12853 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12854 #include <$i>
12856 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12858 else
12859 acx_cv_header_stdint_kind="(mostly complete)"
12862 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12863 #include <$i>
12865 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12867 else
12868 acx_cv_header_stdint_kind="(mostly complete)"
12871 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12872 #include <$i>
12874 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12876 else
12877 acx_cv_header_stdint_kind="(mostly complete)"
12880 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12881 #include <$i>
12883 if test "x$ac_cv_type_uint64_t" = xyes; then :
12885 else
12886 acx_cv_header_stdint_kind="(lacks uint64_t)"
12889 break
12890 done
12891 if test "$acx_cv_header_stdint" = stddef.h; then
12892 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12893 for i in stdint.h $inttype_headers; do
12894 unset ac_cv_type_uintptr_t
12895 unset ac_cv_type_uint32_t
12896 unset ac_cv_type_uint64_t
12897 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12898 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12899 #include <$i>
12901 if test "x$ac_cv_type_uint32_t" = xyes; then :
12902 acx_cv_header_stdint=$i
12903 else
12904 continue
12907 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12908 #include <$i>
12910 if test "x$ac_cv_type_uint64_t" = xyes; then :
12914 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12915 #include <$i>
12917 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12921 break
12922 done
12924 if test "$acx_cv_header_stdint" = stddef.h; then
12925 acx_cv_header_stdint_kind="(u_intXX_t style)"
12926 for i in sys/types.h $inttype_headers; do
12927 unset ac_cv_type_u_int32_t
12928 unset ac_cv_type_u_int64_t
12929 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12930 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12931 #include <$i>
12933 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12934 acx_cv_header_stdint=$i
12935 else
12936 continue
12939 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12940 #include <$i>
12942 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12946 break
12947 done
12949 if test "$acx_cv_header_stdint" = stddef.h; then
12950 acx_cv_header_stdint_kind="(using manual detection)"
12953 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12954 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12955 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12956 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12957 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12959 # ----------------- Summarize what we found so far
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12962 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12964 case `$as_basename -- gstdint.h ||
12965 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12966 Xgstdint.h : 'X\(//\)$' \| \
12967 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12968 $as_echo X/gstdint.h |
12969 sed '/^.*\/\([^/][^/]*\)\/*$/{
12970 s//\1/
12973 /^X\/\(\/\/\)$/{
12974 s//\1/
12977 /^X\/\(\/\).*/{
12978 s//\1/
12981 s/.*/./; q'` in
12982 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12983 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12984 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12985 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12986 *) ;;
12987 esac
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12990 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12992 # ----------------- done included file, check C basic types --------
12994 # Lacking an uintptr_t? Test size of void *
12995 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12996 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12999 # This bug is HP SR number 8606223364.
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13001 $as_echo_n "checking size of void *... " >&6; }
13002 if ${ac_cv_sizeof_void_p+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13007 else
13008 if test "$ac_cv_type_void_p" = yes; then
13009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13011 as_fn_error 77 "cannot compute sizeof (void *)
13012 See \`config.log' for more details" "$LINENO" 5; }
13013 else
13014 ac_cv_sizeof_void_p=0
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13020 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13024 cat >>confdefs.h <<_ACEOF
13025 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13026 _ACEOF
13029 esac
13031 # Lacking an uint64_t? Test size of long
13032 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13033 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13036 # This bug is HP SR number 8606223364.
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13038 $as_echo_n "checking size of long... " >&6; }
13039 if ${ac_cv_sizeof_long+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13044 else
13045 if test "$ac_cv_type_long" = yes; then
13046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13048 as_fn_error 77 "cannot compute sizeof (long)
13049 See \`config.log' for more details" "$LINENO" 5; }
13050 else
13051 ac_cv_sizeof_long=0
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13057 $as_echo "$ac_cv_sizeof_long" >&6; }
13061 cat >>confdefs.h <<_ACEOF
13062 #define SIZEOF_LONG $ac_cv_sizeof_long
13063 _ACEOF
13066 esac
13068 if test $acx_cv_header_stdint = stddef.h; then
13069 # Lacking a good header? Test size of everything and deduce all types.
13070 # The cast to long int works around a bug in the HP C Compiler
13071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13073 # This bug is HP SR number 8606223364.
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13075 $as_echo_n "checking size of int... " >&6; }
13076 if ${ac_cv_sizeof_int+:} false; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13081 else
13082 if test "$ac_cv_type_int" = yes; then
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13085 as_fn_error 77 "cannot compute sizeof (int)
13086 See \`config.log' for more details" "$LINENO" 5; }
13087 else
13088 ac_cv_sizeof_int=0
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13094 $as_echo "$ac_cv_sizeof_int" >&6; }
13098 cat >>confdefs.h <<_ACEOF
13099 #define SIZEOF_INT $ac_cv_sizeof_int
13100 _ACEOF
13103 # The cast to long int works around a bug in the HP C Compiler
13104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13106 # This bug is HP SR number 8606223364.
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13108 $as_echo_n "checking size of short... " >&6; }
13109 if ${ac_cv_sizeof_short+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13114 else
13115 if test "$ac_cv_type_short" = yes; then
13116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13118 as_fn_error 77 "cannot compute sizeof (short)
13119 See \`config.log' for more details" "$LINENO" 5; }
13120 else
13121 ac_cv_sizeof_short=0
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13127 $as_echo "$ac_cv_sizeof_short" >&6; }
13131 cat >>confdefs.h <<_ACEOF
13132 #define SIZEOF_SHORT $ac_cv_sizeof_short
13133 _ACEOF
13136 # The cast to long int works around a bug in the HP C Compiler
13137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13139 # This bug is HP SR number 8606223364.
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13141 $as_echo_n "checking size of char... " >&6; }
13142 if ${ac_cv_sizeof_char+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13147 else
13148 if test "$ac_cv_type_char" = yes; then
13149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13151 as_fn_error 77 "cannot compute sizeof (char)
13152 See \`config.log' for more details" "$LINENO" 5; }
13153 else
13154 ac_cv_sizeof_char=0
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13160 $as_echo "$ac_cv_sizeof_char" >&6; }
13164 cat >>confdefs.h <<_ACEOF
13165 #define SIZEOF_CHAR $ac_cv_sizeof_char
13166 _ACEOF
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13171 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13172 case "$ac_cv_sizeof_char" in
13173 1) acx_cv_type_int8_t=char ;;
13174 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13175 esac
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13177 $as_echo "$acx_cv_type_int8_t" >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13180 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13181 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13182 2:*) acx_cv_type_int16_t=int ;;
13183 *:2) acx_cv_type_int16_t=short ;;
13184 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13185 esac
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13187 $as_echo "$acx_cv_type_int16_t" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13190 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13191 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13192 4:*) acx_cv_type_int32_t=int ;;
13193 *:4) acx_cv_type_int32_t=long ;;
13194 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13195 esac
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13197 $as_echo "$acx_cv_type_int32_t" >&6; }
13200 # These tests are here to make the output prettier
13202 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13203 case "$ac_cv_sizeof_long" in
13204 8) acx_cv_type_int64_t=long ;;
13205 esac
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13207 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13209 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13212 # Now we can use the above types
13214 if test "$ac_cv_type_uintptr_t" != yes; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13216 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13217 case $ac_cv_sizeof_void_p in
13218 2) acx_cv_type_intptr_t=int16_t ;;
13219 4) acx_cv_type_intptr_t=int32_t ;;
13220 8) acx_cv_type_intptr_t=int64_t ;;
13221 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13222 esac
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13224 $as_echo "$acx_cv_type_intptr_t" >&6; }
13227 # ----------------- done all checks, emit header -------------
13228 ac_config_commands="$ac_config_commands gstdint.h"
13233 for ac_header in sys/mman.h
13234 do :
13235 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13236 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13237 cat >>confdefs.h <<_ACEOF
13238 #define HAVE_SYS_MMAN_H 1
13239 _ACEOF
13243 done
13245 if test "$ac_cv_header_sys_mman_h" = "no"; then
13246 have_mmap=no
13247 else
13248 if test -n "${with_target_subdir}"; then
13249 # When built as a GCC target library, we can't do a link test. We
13250 # simply assume that if we have mman.h, we have mmap.
13251 have_mmap=yes
13252 case "${host}" in
13253 *-*-msdosdjgpp)
13254 # DJGPP has sys/man.h, but no mmap
13255 have_mmap=no ;;
13256 esac
13257 else
13258 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13259 if test "x$ac_cv_func_mmap" = xyes; then :
13260 have_mmap=yes
13261 else
13262 have_mmap=no
13267 if test "$have_mmap" = "no"; then
13268 VIEW_FILE=read.lo
13269 ALLOC_FILE=alloc.lo
13270 else
13271 VIEW_FILE=mmapio.lo
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13275 #include <sys/mman.h>
13276 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13277 #error no MAP_ANONYMOUS
13278 #endif
13280 _ACEOF
13281 if ac_fn_c_try_cpp "$LINENO"; then :
13282 ALLOC_FILE=mmap.lo
13283 else
13284 ALLOC_FILE=alloc.lo
13286 rm -f conftest.err conftest.i conftest.$ac_ext
13291 BACKTRACE_USES_MALLOC=0
13292 if test "$ALLOC_FILE" = "alloc.lo"; then
13293 BACKTRACE_USES_MALLOC=1
13297 # Check for dl_iterate_phdr.
13298 for ac_header in link.h sys/link.h
13299 do :
13300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13303 cat >>confdefs.h <<_ACEOF
13304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13305 _ACEOF
13309 done
13311 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13312 have_dl_iterate_phdr=no
13313 else
13314 if test -n "${with_target_subdir}"; then
13315 link_h=link.h
13316 if test "$ac_cv_header_link_h" = "no"; then
13317 link_h=sys/link.h
13319 # When built as a GCC target library, we can't do a link test.
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 #include <$link_h>
13324 _ACEOF
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13327 have_dl_iterate_phdr=yes
13328 else
13329 have_dl_iterate_phdr=no
13331 rm -f conftest*
13333 else
13334 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13335 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13336 have_dl_iterate_phdr=yes
13337 else
13338 have_dl_iterate_phdr=no
13343 if test "$have_dl_iterate_phdr" = "yes"; then
13345 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13349 # Check for header file for Mach-O image functions.
13350 for ac_header in mach-o/dyld.h
13351 do :
13352 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13353 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_MACH_O_DYLD_H 1
13356 _ACEOF
13360 done
13363 # Check for loadquery.
13364 for ac_header in sys/ldr.h
13365 do :
13366 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13367 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_SYS_LDR_H 1
13370 _ACEOF
13374 done
13376 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13377 have_loadquery=no
13378 else
13379 if test -n "${with_target_subdir}"; then
13380 # When built as a GCC target library, we can't do a link test.
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include <sys/ldr.h>
13385 _ACEOF
13386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13387 $EGREP "loadquery" >/dev/null 2>&1; then :
13388 have_loadquery=yes
13389 else
13390 have_loadquery=no
13392 rm -f conftest*
13394 else
13395 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13396 if test "x$ac_cv_func_loadquery" = xyes; then :
13397 have_loadquery=yes
13398 else
13399 have_loadquery=no
13404 if test "$have_loadquery" = "yes"; then
13406 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13410 # Check for the fcntl function.
13411 if test -n "${with_target_subdir}"; then
13412 case "${host}" in
13413 *-*-mingw*) have_fcntl=no ;;
13414 *) have_fcntl=yes ;;
13415 esac
13416 else
13417 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13418 if test "x$ac_cv_func_fcntl" = xyes; then :
13419 have_fcntl=yes
13420 else
13421 have_fcntl=no
13425 if test "$have_fcntl" = "yes"; then
13427 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13431 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13432 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13433 ac_have_decl=1
13434 else
13435 ac_have_decl=0
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_DECL_STRNLEN $ac_have_decl
13440 _ACEOF
13441 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13442 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13443 ac_have_decl=1
13444 else
13445 ac_have_decl=0
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13450 _ACEOF
13452 for ac_func in lstat readlink
13453 do :
13454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13457 cat >>confdefs.h <<_ACEOF
13458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13459 _ACEOF
13462 done
13465 # Check for getexecname function.
13466 if test -n "${with_target_subdir}"; then
13467 case "${host}" in
13468 *-*-solaris2*) have_getexecname=yes ;;
13469 *) have_getexecname=no ;;
13470 esac
13471 else
13472 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13473 if test "x$ac_cv_func_getexecname" = xyes; then :
13474 have_getexecname=yes
13475 else
13476 have_getexecname=no
13480 if test "$have_getexecname" = "yes"; then
13482 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13486 # Check for sysctl definitions.
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13489 $as_echo_n "checking for KERN_PROC... " >&6; }
13490 if ${libbacktrace_cv_proc+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13496 #include <sys/types.h>
13497 #include <sys/sysctl.h>
13500 main ()
13502 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13504 return 0;
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508 libbacktrace_cv_proc=yes
13509 else
13510 libbacktrace_cv_proc=no
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13515 $as_echo "$libbacktrace_cv_proc" >&6; }
13516 if test "$libbacktrace_cv_proc" = "yes"; then
13518 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13523 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13524 if ${libbacktrace_cv_procargs+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13530 #include <sys/types.h>
13531 #include <sys/sysctl.h>
13534 main ()
13536 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13538 return 0;
13540 _ACEOF
13541 if ac_fn_c_try_compile "$LINENO"; then :
13542 libbacktrace_cv_procargs=yes
13543 else
13544 libbacktrace_cv_procargs=no
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13549 $as_echo "$libbacktrace_cv_procargs" >&6; }
13550 if test "$libbacktrace_cv_procargs" = "yes"; then
13552 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13556 # Check for the clock_gettime function.
13557 for ac_func in clock_gettime
13558 do :
13559 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13560 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_CLOCK_GETTIME 1
13563 _ACEOF
13566 done
13568 clock_gettime_link=
13569 # At least for glibc, clock_gettime is in librt. But don't
13570 # pull that in if it still doesn't give us the function we want. This
13571 # test is copied from libgomp, and modified to not link in -lrt as
13572 # we're using this for test timing only.
13573 if test "$ac_cv_func_clock_gettime" = no; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13575 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13576 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lrt $LIBS"
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char clock_gettime ();
13592 main ()
13594 return clock_gettime ();
13596 return 0;
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_lib_rt_clock_gettime=yes
13601 else
13602 ac_cv_lib_rt_clock_gettime=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13609 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13610 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13611 CLOCK_GETTIME_LINK=-lrt
13613 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13621 $as_echo_n "checking whether -pthread is supported... " >&6; }
13622 if ${libgo_cv_lib_pthread+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 CFLAGS_hold=$CFLAGS
13626 CFLAGS="$CFLAGS -pthread"
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 int i;
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632 libgo_cv_lib_pthread=yes
13633 else
13634 libgo_cv_lib_pthread=no
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 CFLAGS=$CFLAGS_hold
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13640 $as_echo "$libgo_cv_lib_pthread" >&6; }
13641 PTHREAD_CFLAGS=
13642 if test "$libgo_cv_lib_pthread" = yes; then
13643 PTHREAD_CFLAGS=-pthread
13647 if test "$libgo_cv_lib_pthread" = yes; then
13648 HAVE_PTHREAD_TRUE=
13649 HAVE_PTHREAD_FALSE='#'
13650 else
13651 HAVE_PTHREAD_TRUE='#'
13652 HAVE_PTHREAD_FALSE=
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13657 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13658 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 CFLAGS_hold=$CFLAGS
13662 CFLAGS="$CFLAGS -gdwarf-5"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665 int i;
13667 main ()
13669 return 0;
13671 return 0;
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 libbacktrace_cv_lib_dwarf5=yes
13676 else
13677 libbacktrace_cv_lib_dwarf5=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 CFLAGS=$CFLAGS_hold
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13684 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13685 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13686 HAVE_DWARF5_TRUE=
13687 HAVE_DWARF5_FALSE='#'
13688 else
13689 HAVE_DWARF5_TRUE='#'
13690 HAVE_DWARF5_FALSE=
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13695 $as_echo_n "checking for compress in -lz... " >&6; }
13696 if ${ac_cv_lib_z_compress+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lz $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 char compress ();
13712 main ()
13714 return compress ();
13716 return 0;
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_lib_z_compress=yes
13721 else
13722 ac_cv_lib_z_compress=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13729 $as_echo "$ac_cv_lib_z_compress" >&6; }
13730 if test "x$ac_cv_lib_z_compress" = xyes; then :
13732 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13736 if test "$ac_cv_lib_z_compress" = yes; then
13737 HAVE_ZLIB_TRUE=
13738 HAVE_ZLIB_FALSE='#'
13739 else
13740 HAVE_ZLIB_TRUE='#'
13741 HAVE_ZLIB_FALSE=
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13746 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13747 if ${libgo_cv_ld_compress+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 LDFLAGS_hold=$LDFLAGS
13751 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13756 main ()
13760 return 0;
13762 _ACEOF
13763 if ac_fn_c_try_link "$LINENO"; then :
13764 libgo_cv_ld_compress=yes
13765 else
13766 libgo_cv_ld_compress=no
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 LDFLAGS=$LDFLAGS_hold
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13773 $as_echo "$libgo_cv_ld_compress" >&6; }
13774 if test "$libgo_cv_ld_compress" = yes; then
13775 HAVE_COMPRESSED_DEBUG_TRUE=
13776 HAVE_COMPRESSED_DEBUG_FALSE='#'
13777 else
13778 HAVE_COMPRESSED_DEBUG_TRUE='#'
13779 HAVE_COMPRESSED_DEBUG_FALSE=
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13784 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13785 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 ac_check_lib_save_LIBS=$LIBS
13789 LIBS="-lzstd $LIBS"
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13796 #ifdef __cplusplus
13797 extern "C"
13798 #endif
13799 char ZSTD_compress ();
13801 main ()
13803 return ZSTD_compress ();
13805 return 0;
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 ac_cv_lib_zstd_ZSTD_compress=yes
13810 else
13811 ac_cv_lib_zstd_ZSTD_compress=no
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13818 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13819 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
13821 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13825 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
13826 HAVE_ZSTD_TRUE=
13827 HAVE_ZSTD_FALSE='#'
13828 else
13829 HAVE_ZSTD_TRUE='#'
13830 HAVE_ZSTD_FALSE=
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
13835 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
13836 if ${libgo_cv_ld_compress_zstd+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 LDFLAGS_hold=$LDFLAGS
13840 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13845 main ()
13849 return 0;
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 libgo_cv_ld_compress_zstd=yes
13854 else
13855 libgo_cv_ld_compress_zstd=no
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LDFLAGS=$LDFLAGS_hold
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
13862 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
13863 if test "$libgo_cv_ld_compress_zstd" = yes; then
13864 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
13865 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
13866 else
13867 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
13868 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
13873 # Extract the first word of "objcopy", so it can be a program name with args.
13874 set dummy objcopy; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_prog_OBJCOPY+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$OBJCOPY"; then
13881 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_OBJCOPY="objcopy"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13894 done
13895 done
13896 IFS=$as_save_IFS
13900 OBJCOPY=$ac_cv_prog_OBJCOPY
13901 if test -n "$OBJCOPY"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13903 $as_echo "$OBJCOPY" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13910 # Extract the first word of "readelf", so it can be a program name with args.
13911 set dummy readelf; ac_word=$2
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13913 $as_echo_n "checking for $ac_word... " >&6; }
13914 if ${ac_cv_prog_READELF+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 if test -n "$READELF"; then
13918 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13927 ac_cv_prog_READELF="readelf"
13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13931 done
13932 done
13933 IFS=$as_save_IFS
13937 READELF=$ac_cv_prog_READELF
13938 if test -n "$READELF"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13940 $as_echo "$READELF" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13948 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13949 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 if test -n "${with_target_subdir}"; then
13953 libbacktrace_cv_objcopy_debuglink=no
13954 elif ! test -n "${OBJCOPY}"; then
13955 libbacktrace_cv_objcopy_debuglink=no
13956 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
13957 libbacktrace_cv_objcopy_debuglink=yes
13958 else
13959 libbacktrace_cv_objcopy_debuglink=no
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13963 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13964 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13965 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13966 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13967 else
13968 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13969 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13974 # Extract the first word of "dsymutil", so it can be a program name with args.
13975 set dummy dsymutil; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 if test -n "$DSYMUTIL"; then
13982 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_DSYMUTIL="dsymutil"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13995 done
13996 done
13997 IFS=$as_save_IFS
14001 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14002 if test -n "$DSYMUTIL"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14004 $as_echo "$DSYMUTIL" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14011 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14012 USE_DSYMUTIL_TRUE=
14013 USE_DSYMUTIL_FALSE='#'
14014 else
14015 USE_DSYMUTIL_TRUE='#'
14016 USE_DSYMUTIL_FALSE=
14021 # Extract the first word of "nm", so it can be a program name with args.
14022 set dummy nm; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if ${ac_cv_prog_NM+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 if test -n "$NM"; then
14029 ac_cv_prog_NM="$NM" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_prog_NM="nm"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 break 2
14042 done
14043 done
14044 IFS=$as_save_IFS
14048 NM=$ac_cv_prog_NM
14049 if test -n "$NM"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14051 $as_echo "$NM" >&6; }
14052 else
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14059 # Extract the first word of "xz", so it can be a program name with args.
14060 set dummy xz; ac_word=$2
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062 $as_echo_n "checking for $ac_word... " >&6; }
14063 if ${ac_cv_prog_XZ+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 if test -n "$XZ"; then
14067 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14068 else
14069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in $PATH
14072 IFS=$as_save_IFS
14073 test -z "$as_dir" && as_dir=.
14074 for ac_exec_ext in '' $ac_executable_extensions; do
14075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14076 ac_cv_prog_XZ="xz"
14077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14078 break 2
14080 done
14081 done
14082 IFS=$as_save_IFS
14086 XZ=$ac_cv_prog_XZ
14087 if test -n "$XZ"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14089 $as_echo "$XZ" >&6; }
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14096 if test "$XZ" != ""; then
14097 HAVE_XZ_TRUE=
14098 HAVE_XZ_FALSE='#'
14099 else
14100 HAVE_XZ_TRUE='#'
14101 HAVE_XZ_FALSE=
14104 # Extract the first word of "comm", so it can be a program name with args.
14105 set dummy comm; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if ${ac_cv_prog_COMM+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 if test -n "$COMM"; then
14112 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14113 else
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $PATH
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14121 ac_cv_prog_COMM="comm"
14122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14125 done
14126 done
14127 IFS=$as_save_IFS
14131 COMM=$ac_cv_prog_COMM
14132 if test -n "$COMM"; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14134 $as_echo "$COMM" >&6; }
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14141 if test "$COMM" != ""; then
14142 HAVE_COMM_TRUE=
14143 HAVE_COMM_FALSE='#'
14144 else
14145 HAVE_COMM_TRUE='#'
14146 HAVE_COMM_FALSE=
14150 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14151 HAVE_MINIDEBUG_TRUE=
14152 HAVE_MINIDEBUG_FALSE='#'
14153 else
14154 HAVE_MINIDEBUG_TRUE='#'
14155 HAVE_MINIDEBUG_FALSE=
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14160 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14161 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 ac_check_lib_save_LIBS=$LIBS
14165 LIBS="-llzma $LIBS"
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char lzma_auto_decoder ();
14177 main ()
14179 return lzma_auto_decoder ();
14181 return 0;
14183 _ACEOF
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_lib_lzma_lzma_auto_decoder=yes
14186 else
14187 ac_cv_lib_lzma_lzma_auto_decoder=no
14189 rm -f core conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14194 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14195 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14197 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14201 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14202 HAVE_LIBLZMA_TRUE=
14203 HAVE_LIBLZMA_FALSE='#'
14204 else
14205 HAVE_LIBLZMA_TRUE='#'
14206 HAVE_LIBLZMA_FALSE=
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14211 $as_echo_n "checking whether tests can run... " >&6; }
14212 if ${libbacktrace_cv_sys_native+:} false; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 if test "$cross_compiling" = yes; then :
14216 libbacktrace_cv_sys_native=no
14217 else
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14222 main ()
14224 return 0;
14226 return 0;
14228 _ACEOF
14229 if ac_fn_c_try_run "$LINENO"; then :
14230 libbacktrace_cv_sys_native=yes
14231 else
14232 libbacktrace_cv_sys_native=no
14234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14235 conftest.$ac_objext conftest.beam conftest.$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14240 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14241 if test "$libbacktrace_cv_sys_native" = "yes"; then
14242 NATIVE_TRUE=
14243 NATIVE_FALSE='#'
14244 else
14245 NATIVE_TRUE='#'
14246 NATIVE_FALSE=
14250 if test "${multilib}" = "yes"; then
14251 multilib_arg="--enable-multilib"
14252 else
14253 multilib_arg=
14256 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14258 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14261 # We need multilib support, but only if configuring for the target.
14262 ac_config_commands="$ac_config_commands default"
14265 cat >confcache <<\_ACEOF
14266 # This file is a shell script that caches the results of configure
14267 # tests run on this system so they can be shared between configure
14268 # scripts and configure runs, see configure's option --config-cache.
14269 # It is not useful on other systems. If it contains results you don't
14270 # want to keep, you may remove or edit it.
14272 # config.status only pays attention to the cache file if you give it
14273 # the --recheck option to rerun configure.
14275 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14276 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14277 # following values.
14279 _ACEOF
14281 # The following way of writing the cache mishandles newlines in values,
14282 # but we know of no workaround that is simple, portable, and efficient.
14283 # So, we kill variables containing newlines.
14284 # Ultrix sh set writes to stderr and can't be redirected directly,
14285 # and sets the high bit in the cache file unless we assign to the vars.
14287 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14288 eval ac_val=\$$ac_var
14289 case $ac_val in #(
14290 *${as_nl}*)
14291 case $ac_var in #(
14292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14294 esac
14295 case $ac_var in #(
14296 _ | IFS | as_nl) ;; #(
14297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14298 *) { eval $ac_var=; unset $ac_var;} ;;
14299 esac ;;
14300 esac
14301 done
14303 (set) 2>&1 |
14304 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14305 *${as_nl}ac_space=\ *)
14306 # `set' does not quote correctly, so add quotes: double-quote
14307 # substitution turns \\\\ into \\, and sed turns \\ into \.
14308 sed -n \
14309 "s/'/'\\\\''/g;
14310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14311 ;; #(
14313 # `set' quotes correctly as required by POSIX, so do not add quotes.
14314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14316 esac |
14317 sort
14319 sed '
14320 /^ac_cv_env_/b end
14321 t clear
14322 :clear
14323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14324 t end
14325 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14326 :end' >>confcache
14327 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14328 if test -w "$cache_file"; then
14329 if test "x$cache_file" != "x/dev/null"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14331 $as_echo "$as_me: updating cache $cache_file" >&6;}
14332 if test ! -f "$cache_file" || test -h "$cache_file"; then
14333 cat confcache >"$cache_file"
14334 else
14335 case $cache_file in #(
14336 */* | ?:*)
14337 mv -f confcache "$cache_file"$$ &&
14338 mv -f "$cache_file"$$ "$cache_file" ;; #(
14340 mv -f confcache "$cache_file" ;;
14341 esac
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14346 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14349 rm -f confcache
14351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14352 # Let make expand exec_prefix.
14353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14355 DEFS=-DHAVE_CONFIG_H
14357 ac_libobjs=
14358 ac_ltlibobjs=
14360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14361 # 1. Remove the extension, and $U if already installed.
14362 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14363 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14364 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14365 # will be set to the directory where LIBOBJS objects are built.
14366 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14367 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14368 done
14369 LIBOBJS=$ac_libobjs
14371 LTLIBOBJS=$ac_ltlibobjs
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14375 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14376 if test -n "$am_sleep_pid"; then
14377 # Hide warnings about reused PIDs.
14378 wait $am_sleep_pid 2>/dev/null
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14381 $as_echo "done" >&6; }
14382 if test -n "$EXEEXT"; then
14383 am__EXEEXT_TRUE=
14384 am__EXEEXT_FALSE='#'
14385 else
14386 am__EXEEXT_TRUE='#'
14387 am__EXEEXT_FALSE=
14390 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14391 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14394 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14395 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14398 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14399 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14402 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14403 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14406 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14407 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14410 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14411 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14414 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14415 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14418 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14419 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14422 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14423 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14426 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14427 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14430 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14431 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14434 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14435 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14438 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14439 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14442 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14443 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14446 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14447 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14450 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14451 as_fn_error $? "conditional \"NATIVE\" was never defined.
14452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14455 : "${CONFIG_STATUS=./config.status}"
14456 ac_write_fail=0
14457 ac_clean_files_save=$ac_clean_files
14458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14460 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14461 as_write_fail=0
14462 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14463 #! $SHELL
14464 # Generated by $as_me.
14465 # Run this file to recreate the current configuration.
14466 # Compiler output produced by configure, useful for debugging
14467 # configure, is in config.log if it exists.
14469 debug=false
14470 ac_cs_recheck=false
14471 ac_cs_silent=false
14473 SHELL=\${CONFIG_SHELL-$SHELL}
14474 export SHELL
14475 _ASEOF
14476 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14477 ## -------------------- ##
14478 ## M4sh Initialization. ##
14479 ## -------------------- ##
14481 # Be more Bourne compatible
14482 DUALCASE=1; export DUALCASE # for MKS sh
14483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14484 emulate sh
14485 NULLCMD=:
14486 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14487 # is contrary to our usage. Disable this feature.
14488 alias -g '${1+"$@"}'='"$@"'
14489 setopt NO_GLOB_SUBST
14490 else
14491 case `(set -o) 2>/dev/null` in #(
14492 *posix*) :
14493 set -o posix ;; #(
14494 *) :
14496 esac
14500 as_nl='
14502 export as_nl
14503 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14504 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14505 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14506 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14507 # Prefer a ksh shell builtin over an external printf program on Solaris,
14508 # but without wasting forks for bash or zsh.
14509 if test -z "$BASH_VERSION$ZSH_VERSION" \
14510 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14511 as_echo='print -r --'
14512 as_echo_n='print -rn --'
14513 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14514 as_echo='printf %s\n'
14515 as_echo_n='printf %s'
14516 else
14517 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14518 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14519 as_echo_n='/usr/ucb/echo -n'
14520 else
14521 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14522 as_echo_n_body='eval
14523 arg=$1;
14524 case $arg in #(
14525 *"$as_nl"*)
14526 expr "X$arg" : "X\\(.*\\)$as_nl";
14527 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14528 esac;
14529 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14531 export as_echo_n_body
14532 as_echo_n='sh -c $as_echo_n_body as_echo'
14534 export as_echo_body
14535 as_echo='sh -c $as_echo_body as_echo'
14538 # The user is always right.
14539 if test "${PATH_SEPARATOR+set}" != set; then
14540 PATH_SEPARATOR=:
14541 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14542 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14543 PATH_SEPARATOR=';'
14548 # IFS
14549 # We need space, tab and new line, in precisely that order. Quoting is
14550 # there to prevent editors from complaining about space-tab.
14551 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14552 # splitting by setting IFS to empty value.)
14553 IFS=" "" $as_nl"
14555 # Find who we are. Look in the path if we contain no directory separator.
14556 as_myself=
14557 case $0 in #((
14558 *[\\/]* ) as_myself=$0 ;;
14559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14562 IFS=$as_save_IFS
14563 test -z "$as_dir" && as_dir=.
14564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14565 done
14566 IFS=$as_save_IFS
14569 esac
14570 # We did not find ourselves, most probably we were run as `sh COMMAND'
14571 # in which case we are not to be found in the path.
14572 if test "x$as_myself" = x; then
14573 as_myself=$0
14575 if test ! -f "$as_myself"; then
14576 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14577 exit 1
14580 # Unset variables that we do not need and which cause bugs (e.g. in
14581 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14582 # suppresses any "Segmentation fault" message there. '((' could
14583 # trigger a bug in pdksh 5.2.14.
14584 for as_var in BASH_ENV ENV MAIL MAILPATH
14585 do eval test x\${$as_var+set} = xset \
14586 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14587 done
14588 PS1='$ '
14589 PS2='> '
14590 PS4='+ '
14592 # NLS nuisances.
14593 LC_ALL=C
14594 export LC_ALL
14595 LANGUAGE=C
14596 export LANGUAGE
14598 # CDPATH.
14599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14602 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14603 # ----------------------------------------
14604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14606 # script with STATUS, using 1 if that was 0.
14607 as_fn_error ()
14609 as_status=$1; test $as_status -eq 0 && as_status=1
14610 if test "$4"; then
14611 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14612 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14614 $as_echo "$as_me: error: $2" >&2
14615 as_fn_exit $as_status
14616 } # as_fn_error
14619 # as_fn_set_status STATUS
14620 # -----------------------
14621 # Set $? to STATUS, without forking.
14622 as_fn_set_status ()
14624 return $1
14625 } # as_fn_set_status
14627 # as_fn_exit STATUS
14628 # -----------------
14629 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14630 as_fn_exit ()
14632 set +e
14633 as_fn_set_status $1
14634 exit $1
14635 } # as_fn_exit
14637 # as_fn_unset VAR
14638 # ---------------
14639 # Portably unset VAR.
14640 as_fn_unset ()
14642 { eval $1=; unset $1;}
14644 as_unset=as_fn_unset
14645 # as_fn_append VAR VALUE
14646 # ----------------------
14647 # Append the text in VALUE to the end of the definition contained in VAR. Take
14648 # advantage of any shell optimizations that allow amortized linear growth over
14649 # repeated appends, instead of the typical quadratic growth present in naive
14650 # implementations.
14651 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14652 eval 'as_fn_append ()
14654 eval $1+=\$2
14656 else
14657 as_fn_append ()
14659 eval $1=\$$1\$2
14661 fi # as_fn_append
14663 # as_fn_arith ARG...
14664 # ------------------
14665 # Perform arithmetic evaluation on the ARGs, and store the result in the
14666 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14667 # must be portable across $(()) and expr.
14668 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14669 eval 'as_fn_arith ()
14671 as_val=$(( $* ))
14673 else
14674 as_fn_arith ()
14676 as_val=`expr "$@" || test $? -eq 1`
14678 fi # as_fn_arith
14681 if expr a : '\(a\)' >/dev/null 2>&1 &&
14682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14683 as_expr=expr
14684 else
14685 as_expr=false
14688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14689 as_basename=basename
14690 else
14691 as_basename=false
14694 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14695 as_dirname=dirname
14696 else
14697 as_dirname=false
14700 as_me=`$as_basename -- "$0" ||
14701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14702 X"$0" : 'X\(//\)$' \| \
14703 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14704 $as_echo X/"$0" |
14705 sed '/^.*\/\([^/][^/]*\)\/*$/{
14706 s//\1/
14709 /^X\/\(\/\/\)$/{
14710 s//\1/
14713 /^X\/\(\/\).*/{
14714 s//\1/
14717 s/.*/./; q'`
14719 # Avoid depending upon Character Ranges.
14720 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14721 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14722 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14723 as_cr_digits='0123456789'
14724 as_cr_alnum=$as_cr_Letters$as_cr_digits
14726 ECHO_C= ECHO_N= ECHO_T=
14727 case `echo -n x` in #(((((
14728 -n*)
14729 case `echo 'xy\c'` in
14730 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14731 xy) ECHO_C='\c';;
14732 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14733 ECHO_T=' ';;
14734 esac;;
14736 ECHO_N='-n';;
14737 esac
14739 rm -f conf$$ conf$$.exe conf$$.file
14740 if test -d conf$$.dir; then
14741 rm -f conf$$.dir/conf$$.file
14742 else
14743 rm -f conf$$.dir
14744 mkdir conf$$.dir 2>/dev/null
14746 if (echo >conf$$.file) 2>/dev/null; then
14747 if ln -s conf$$.file conf$$ 2>/dev/null; then
14748 as_ln_s='ln -s'
14749 # ... but there are two gotchas:
14750 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14751 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14752 # In both cases, we have to default to `cp -pR'.
14753 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14754 as_ln_s='cp -pR'
14755 elif ln conf$$.file conf$$ 2>/dev/null; then
14756 as_ln_s=ln
14757 else
14758 as_ln_s='cp -pR'
14760 else
14761 as_ln_s='cp -pR'
14763 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14764 rmdir conf$$.dir 2>/dev/null
14767 # as_fn_mkdir_p
14768 # -------------
14769 # Create "$as_dir" as a directory, including parents if necessary.
14770 as_fn_mkdir_p ()
14773 case $as_dir in #(
14774 -*) as_dir=./$as_dir;;
14775 esac
14776 test -d "$as_dir" || eval $as_mkdir_p || {
14777 as_dirs=
14778 while :; do
14779 case $as_dir in #(
14780 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14781 *) as_qdir=$as_dir;;
14782 esac
14783 as_dirs="'$as_qdir' $as_dirs"
14784 as_dir=`$as_dirname -- "$as_dir" ||
14785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14786 X"$as_dir" : 'X\(//\)[^/]' \| \
14787 X"$as_dir" : 'X\(//\)$' \| \
14788 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14789 $as_echo X"$as_dir" |
14790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14791 s//\1/
14794 /^X\(\/\/\)[^/].*/{
14795 s//\1/
14798 /^X\(\/\/\)$/{
14799 s//\1/
14802 /^X\(\/\).*/{
14803 s//\1/
14806 s/.*/./; q'`
14807 test -d "$as_dir" && break
14808 done
14809 test -z "$as_dirs" || eval "mkdir $as_dirs"
14810 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14813 } # as_fn_mkdir_p
14814 if mkdir -p . 2>/dev/null; then
14815 as_mkdir_p='mkdir -p "$as_dir"'
14816 else
14817 test -d ./-p && rmdir ./-p
14818 as_mkdir_p=false
14822 # as_fn_executable_p FILE
14823 # -----------------------
14824 # Test if FILE is an executable regular file.
14825 as_fn_executable_p ()
14827 test -f "$1" && test -x "$1"
14828 } # as_fn_executable_p
14829 as_test_x='test -x'
14830 as_executable_p=as_fn_executable_p
14832 # Sed expression to map a string onto a valid CPP name.
14833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14835 # Sed expression to map a string onto a valid variable name.
14836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14839 exec 6>&1
14840 ## ----------------------------------- ##
14841 ## Main body of $CONFIG_STATUS script. ##
14842 ## ----------------------------------- ##
14843 _ASEOF
14844 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847 # Save the log message, to keep $0 and so on meaningful, and to
14848 # report actual input values of CONFIG_FILES etc. instead of their
14849 # values after options handling.
14850 ac_log="
14851 This file was extended by package-unused $as_me version-unused, which was
14852 generated by GNU Autoconf 2.69. Invocation command line was
14854 CONFIG_FILES = $CONFIG_FILES
14855 CONFIG_HEADERS = $CONFIG_HEADERS
14856 CONFIG_LINKS = $CONFIG_LINKS
14857 CONFIG_COMMANDS = $CONFIG_COMMANDS
14858 $ $0 $@
14860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14863 _ACEOF
14865 case $ac_config_files in *"
14866 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14867 esac
14869 case $ac_config_headers in *"
14870 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14871 esac
14874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 # Files that config.status was made for.
14876 config_files="$ac_config_files"
14877 config_headers="$ac_config_headers"
14878 config_commands="$ac_config_commands"
14880 _ACEOF
14882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14883 ac_cs_usage="\
14884 \`$as_me' instantiates files and other configuration actions
14885 from templates according to the current configuration. Unless the files
14886 and actions are specified as TAGs, all are instantiated by default.
14888 Usage: $0 [OPTION]... [TAG]...
14890 -h, --help print this help, then exit
14891 -V, --version print version number and configuration settings, then exit
14892 --config print configuration, then exit
14893 -q, --quiet, --silent
14894 do not print progress messages
14895 -d, --debug don't remove temporary files
14896 --recheck update $as_me by reconfiguring in the same conditions
14897 --file=FILE[:TEMPLATE]
14898 instantiate the configuration file FILE
14899 --header=FILE[:TEMPLATE]
14900 instantiate the configuration header FILE
14902 Configuration files:
14903 $config_files
14905 Configuration headers:
14906 $config_headers
14908 Configuration commands:
14909 $config_commands
14911 Report bugs to the package provider."
14913 _ACEOF
14914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14915 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14916 ac_cs_version="\\
14917 package-unused config.status version-unused
14918 configured by $0, generated by GNU Autoconf 2.69,
14919 with options \\"\$ac_cs_config\\"
14921 Copyright (C) 2012 Free Software Foundation, Inc.
14922 This config.status script is free software; the Free Software Foundation
14923 gives unlimited permission to copy, distribute and modify it."
14925 ac_pwd='$ac_pwd'
14926 srcdir='$srcdir'
14927 INSTALL='$INSTALL'
14928 MKDIR_P='$MKDIR_P'
14929 AWK='$AWK'
14930 test -n "\$AWK" || AWK=awk
14931 _ACEOF
14933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14934 # The default lists apply if the user does not specify any file.
14935 ac_need_defaults=:
14936 while test $# != 0
14938 case $1 in
14939 --*=?*)
14940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14942 ac_shift=:
14944 --*=)
14945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14946 ac_optarg=
14947 ac_shift=:
14950 ac_option=$1
14951 ac_optarg=$2
14952 ac_shift=shift
14954 esac
14956 case $ac_option in
14957 # Handling of the options.
14958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14959 ac_cs_recheck=: ;;
14960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14961 $as_echo "$ac_cs_version"; exit ;;
14962 --config | --confi | --conf | --con | --co | --c )
14963 $as_echo "$ac_cs_config"; exit ;;
14964 --debug | --debu | --deb | --de | --d | -d )
14965 debug=: ;;
14966 --file | --fil | --fi | --f )
14967 $ac_shift
14968 case $ac_optarg in
14969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14970 '') as_fn_error $? "missing file argument" ;;
14971 esac
14972 as_fn_append CONFIG_FILES " '$ac_optarg'"
14973 ac_need_defaults=false;;
14974 --header | --heade | --head | --hea )
14975 $ac_shift
14976 case $ac_optarg in
14977 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14978 esac
14979 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14980 ac_need_defaults=false;;
14981 --he | --h)
14982 # Conflict between --help and --header
14983 as_fn_error $? "ambiguous option: \`$1'
14984 Try \`$0 --help' for more information.";;
14985 --help | --hel | -h )
14986 $as_echo "$ac_cs_usage"; exit ;;
14987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14989 ac_cs_silent=: ;;
14991 # This is an error.
14992 -*) as_fn_error $? "unrecognized option: \`$1'
14993 Try \`$0 --help' for more information." ;;
14995 *) as_fn_append ac_config_targets " $1"
14996 ac_need_defaults=false ;;
14998 esac
14999 shift
15000 done
15002 ac_configure_extra_args=
15004 if $ac_cs_silent; then
15005 exec 6>/dev/null
15006 ac_configure_extra_args="$ac_configure_extra_args --silent"
15009 _ACEOF
15010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15011 if \$ac_cs_recheck; then
15012 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15013 shift
15014 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15015 CONFIG_SHELL='$SHELL'
15016 export CONFIG_SHELL
15017 exec "\$@"
15020 _ACEOF
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 exec 5>>config.log
15024 echo
15025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15026 ## Running $as_me. ##
15027 _ASBOX
15028 $as_echo "$ac_log"
15029 } >&5
15031 _ACEOF
15032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15034 # INIT-COMMANDS
15037 srcdir="$srcdir"
15038 host="$host"
15039 target="$target"
15040 with_multisubdir="$with_multisubdir"
15041 with_multisrctop="$with_multisrctop"
15042 with_target_subdir="$with_target_subdir"
15043 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15044 multi_basedir="$multi_basedir"
15045 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15046 CC="$CC"
15047 CXX="$CXX"
15048 GFORTRAN="$GFORTRAN"
15049 GDC="$GDC"
15052 # The HP-UX ksh and POSIX shell print the target directory to stdout
15053 # if CDPATH is set.
15054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15056 sed_quote_subst='$sed_quote_subst'
15057 double_quote_subst='$double_quote_subst'
15058 delay_variable_subst='$delay_variable_subst'
15059 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15060 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15061 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15062 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15063 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15064 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15065 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15066 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15067 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15068 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15069 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15070 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15071 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15072 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15073 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15074 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15075 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15076 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15077 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15078 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15079 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15080 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15081 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15082 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15083 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15084 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15085 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15086 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15087 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15088 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15089 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15090 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15091 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15092 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15093 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15094 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15095 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15096 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15097 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15098 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15099 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15100 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15101 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15102 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15103 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15104 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15105 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15106 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15107 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"`'
15108 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15109 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15110 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15111 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15112 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15113 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15114 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15115 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15116 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15117 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15118 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15119 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15120 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15121 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15122 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15123 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15124 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15125 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15126 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15127 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15128 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15129 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15130 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15131 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15132 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15133 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15134 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15135 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15136 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15137 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15138 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15139 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15140 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15141 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15142 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15143 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15144 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15145 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15146 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15147 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15148 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15149 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15150 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15151 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15152 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15153 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15154 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15155 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15156 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15157 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15158 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15159 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15160 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15161 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15162 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15163 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15164 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15165 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15166 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15167 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15168 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15169 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15170 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15171 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15172 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15173 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15174 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15175 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15176 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15177 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15178 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15180 LTCC='$LTCC'
15181 LTCFLAGS='$LTCFLAGS'
15182 compiler='$compiler_DEFAULT'
15184 # A function that is used when there is no print builtin or printf.
15185 func_fallback_echo ()
15187 eval 'cat <<_LTECHO_EOF
15189 _LTECHO_EOF'
15192 # Quote evaled strings.
15193 for var in SHELL \
15194 ECHO \
15195 SED \
15196 GREP \
15197 EGREP \
15198 FGREP \
15199 LD \
15200 NM \
15201 LN_S \
15202 lt_SP2NL \
15203 lt_NL2SP \
15204 reload_flag \
15205 OBJDUMP \
15206 deplibs_check_method \
15207 file_magic_cmd \
15208 AR \
15209 AR_FLAGS \
15210 STRIP \
15211 RANLIB \
15212 CC \
15213 CFLAGS \
15214 compiler \
15215 lt_cv_sys_global_symbol_pipe \
15216 lt_cv_sys_global_symbol_to_cdecl \
15217 lt_cv_sys_global_symbol_to_c_name_address \
15218 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15219 lt_prog_compiler_no_builtin_flag \
15220 lt_prog_compiler_wl \
15221 lt_prog_compiler_pic \
15222 lt_prog_compiler_static \
15223 lt_cv_prog_compiler_c_o \
15224 need_locks \
15225 DSYMUTIL \
15226 NMEDIT \
15227 LIPO \
15228 OTOOL \
15229 OTOOL64 \
15230 shrext_cmds \
15231 export_dynamic_flag_spec \
15232 whole_archive_flag_spec \
15233 compiler_needs_object \
15234 with_gnu_ld \
15235 allow_undefined_flag \
15236 no_undefined_flag \
15237 hardcode_libdir_flag_spec \
15238 hardcode_libdir_flag_spec_ld \
15239 hardcode_libdir_separator \
15240 fix_srcfile_path \
15241 exclude_expsyms \
15242 include_expsyms \
15243 file_list_spec \
15244 variables_saved_for_relink \
15245 libname_spec \
15246 library_names_spec \
15247 soname_spec \
15248 install_override_mode \
15249 finish_eval \
15250 old_striplib \
15251 striplib; do
15252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15253 *[\\\\\\\`\\"\\\$]*)
15254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15259 esac
15260 done
15262 # Double-quote double-evaled strings.
15263 for var in reload_cmds \
15264 old_postinstall_cmds \
15265 old_postuninstall_cmds \
15266 old_archive_cmds \
15267 extract_expsyms_cmds \
15268 old_archive_from_new_cmds \
15269 old_archive_from_expsyms_cmds \
15270 archive_cmds \
15271 archive_expsym_cmds \
15272 module_cmds \
15273 module_expsym_cmds \
15274 export_symbols_cmds \
15275 prelink_cmds \
15276 postinstall_cmds \
15277 postuninstall_cmds \
15278 finish_cmds \
15279 sys_lib_search_path_spec \
15280 sys_lib_dlsearch_path_spec; do
15281 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15282 *[\\\\\\\`\\"\\\$]*)
15283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15288 esac
15289 done
15291 ac_aux_dir='$ac_aux_dir'
15292 xsi_shell='$xsi_shell'
15293 lt_shell_append='$lt_shell_append'
15295 # See if we are running on zsh, and set the options which allow our
15296 # commands through without removal of \ escapes INIT.
15297 if test -n "\${ZSH_VERSION+set}" ; then
15298 setopt NO_GLOB_SUBST
15302 PACKAGE='$PACKAGE'
15303 VERSION='$VERSION'
15304 TIMESTAMP='$TIMESTAMP'
15305 RM='$RM'
15306 ofile='$ofile'
15311 GCC="$GCC"
15312 CC="$CC"
15313 acx_cv_header_stdint="$acx_cv_header_stdint"
15314 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15315 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15316 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15317 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15318 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15319 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15320 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15321 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15322 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15323 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15324 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15325 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15326 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15329 # Variables needed in config.status (file generation) which aren't already
15330 # passed by autoconf.
15331 SUBDIRS="$SUBDIRS"
15334 _ACEOF
15336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15338 # Handling of arguments.
15339 for ac_config_target in $ac_config_targets
15341 case $ac_config_target in
15342 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15343 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15344 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15345 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15346 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15347 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15348 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15349 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15351 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15352 esac
15353 done
15356 # If the user did not use the arguments to specify the items to instantiate,
15357 # then the envvar interface is used. Set only those that are not.
15358 # We use the long form for the default assignment because of an extremely
15359 # bizarre bug on SunOS 4.1.3.
15360 if $ac_need_defaults; then
15361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15366 # Have a temporary directory for convenience. Make it in the build tree
15367 # simply because there is no reason against having it here, and in addition,
15368 # creating and moving files from /tmp can sometimes cause problems.
15369 # Hook for its removal unless debugging.
15370 # Note that there is a small window in which the directory will not be cleaned:
15371 # after its creation but before its name has been assigned to `$tmp'.
15372 $debug ||
15374 tmp= ac_tmp=
15375 trap 'exit_status=$?
15376 : "${ac_tmp:=$tmp}"
15377 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15379 trap 'as_fn_exit 1' 1 2 13 15
15381 # Create a (secure) tmp directory for tmp files.
15384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15385 test -d "$tmp"
15386 } ||
15388 tmp=./conf$$-$RANDOM
15389 (umask 077 && mkdir "$tmp")
15390 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15391 ac_tmp=$tmp
15393 # Set up the scripts for CONFIG_FILES section.
15394 # No need to generate them if there are no CONFIG_FILES.
15395 # This happens for instance with `./config.status config.h'.
15396 if test -n "$CONFIG_FILES"; then
15399 ac_cr=`echo X | tr X '\015'`
15400 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15401 # But we know of no other shell where ac_cr would be empty at this
15402 # point, so we can use a bashism as a fallback.
15403 if test "x$ac_cr" = x; then
15404 eval ac_cr=\$\'\\r\'
15406 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15407 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15408 ac_cs_awk_cr='\\r'
15409 else
15410 ac_cs_awk_cr=$ac_cr
15413 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15414 _ACEOF
15418 echo "cat >conf$$subs.awk <<_ACEOF" &&
15419 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15420 echo "_ACEOF"
15421 } >conf$$subs.sh ||
15422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15424 ac_delim='%!_!# '
15425 for ac_last_try in false false false false false :; do
15426 . ./conf$$subs.sh ||
15427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15429 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15430 if test $ac_delim_n = $ac_delim_num; then
15431 break
15432 elif $ac_last_try; then
15433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15434 else
15435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15437 done
15438 rm -f conf$$subs.sh
15440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15442 _ACEOF
15443 sed -n '
15445 s/^/S["/; s/!.*/"]=/
15448 s/^[^!]*!//
15449 :repl
15450 t repl
15451 s/'"$ac_delim"'$//
15452 t delim
15455 s/\(.\{148\}\)..*/\1/
15456 t more1
15457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15460 b repl
15461 :more1
15462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15465 s/.\{148\}//
15466 t nl
15467 :delim
15469 s/\(.\{148\}\)..*/\1/
15470 t more2
15471 s/["\\]/\\&/g; s/^/"/; s/$/"/
15474 :more2
15475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15478 s/.\{148\}//
15479 t delim
15480 ' <conf$$subs.awk | sed '
15481 /^[^""]/{
15483 s/\n//
15485 ' >>$CONFIG_STATUS || ac_write_fail=1
15486 rm -f conf$$subs.awk
15487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15488 _ACAWK
15489 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15490 for (key in S) S_is_set[key] = 1
15491 FS = "\a"
15495 line = $ 0
15496 nfields = split(line, field, "@")
15497 substed = 0
15498 len = length(field[1])
15499 for (i = 2; i < nfields; i++) {
15500 key = field[i]
15501 keylen = length(key)
15502 if (S_is_set[key]) {
15503 value = S[key]
15504 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15505 len += length(value) + length(field[++i])
15506 substed = 1
15507 } else
15508 len += 1 + keylen
15511 print line
15514 _ACAWK
15515 _ACEOF
15516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15518 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15519 else
15521 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15522 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15523 _ACEOF
15525 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15526 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15527 # trailing colons and then remove the whole line if VPATH becomes empty
15528 # (actually we leave an empty line to preserve line numbers).
15529 if test "x$srcdir" = x.; then
15530 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15532 s///
15533 s/^/:/
15534 s/[ ]*$/:/
15535 s/:\$(srcdir):/:/g
15536 s/:\${srcdir}:/:/g
15537 s/:@srcdir@:/:/g
15538 s/^:*//
15539 s/:*$//
15541 s/\(=[ ]*\).*/\1/
15543 s/\n//
15544 s/^[^=]*=[ ]*$//
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 fi # test -n "$CONFIG_FILES"
15551 # Set up the scripts for CONFIG_HEADERS section.
15552 # No need to generate them if there are no CONFIG_HEADERS.
15553 # This happens for instance with `./config.status Makefile'.
15554 if test -n "$CONFIG_HEADERS"; then
15555 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15556 BEGIN {
15557 _ACEOF
15559 # Transform confdefs.h into an awk script `defines.awk', embedded as
15560 # here-document in config.status, that substitutes the proper values into
15561 # config.h.in to produce config.h.
15563 # Create a delimiter string that does not exist in confdefs.h, to ease
15564 # handling of long lines.
15565 ac_delim='%!_!# '
15566 for ac_last_try in false false :; do
15567 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15568 if test -z "$ac_tt"; then
15569 break
15570 elif $ac_last_try; then
15571 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15572 else
15573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15575 done
15577 # For the awk script, D is an array of macro values keyed by name,
15578 # likewise P contains macro parameters if any. Preserve backslash
15579 # newline sequences.
15581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15582 sed -n '
15583 s/.\{148\}/&'"$ac_delim"'/g
15584 t rset
15585 :rset
15586 s/^[ ]*#[ ]*define[ ][ ]*/ /
15587 t def
15589 :def
15590 s/\\$//
15591 t bsnl
15592 s/["\\]/\\&/g
15593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15594 D["\1"]=" \3"/p
15595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15597 :bsnl
15598 s/["\\]/\\&/g
15599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15600 D["\1"]=" \3\\\\\\n"\\/p
15601 t cont
15602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15603 t cont
15605 :cont
15607 s/.\{148\}/&'"$ac_delim"'/g
15608 t clear
15609 :clear
15610 s/\\$//
15611 t bsnlc
15612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15614 :bsnlc
15615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15616 b cont
15617 ' <confdefs.h | sed '
15618 s/'"$ac_delim"'/"\\\
15619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15622 for (key in D) D_is_set[key] = 1
15623 FS = "\a"
15625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15626 line = \$ 0
15627 split(line, arg, " ")
15628 if (arg[1] == "#") {
15629 defundef = arg[2]
15630 mac1 = arg[3]
15631 } else {
15632 defundef = substr(arg[1], 2)
15633 mac1 = arg[2]
15635 split(mac1, mac2, "(") #)
15636 macro = mac2[1]
15637 prefix = substr(line, 1, index(line, defundef) - 1)
15638 if (D_is_set[macro]) {
15639 # Preserve the white space surrounding the "#".
15640 print prefix "define", macro P[macro] D[macro]
15641 next
15642 } else {
15643 # Replace #undef with comments. This is necessary, for example,
15644 # in the case of _POSIX_SOURCE, which is predefined and required
15645 # on some systems where configure will not decide to define it.
15646 if (defundef == "undef") {
15647 print "/*", prefix defundef, macro, "*/"
15648 next
15652 { print }
15653 _ACAWK
15654 _ACEOF
15655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15656 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15657 fi # test -n "$CONFIG_HEADERS"
15660 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15661 shift
15662 for ac_tag
15664 case $ac_tag in
15665 :[FHLC]) ac_mode=$ac_tag; continue;;
15666 esac
15667 case $ac_mode$ac_tag in
15668 :[FHL]*:*);;
15669 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15670 :[FH]-) ac_tag=-:-;;
15671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15672 esac
15673 ac_save_IFS=$IFS
15674 IFS=:
15675 set x $ac_tag
15676 IFS=$ac_save_IFS
15677 shift
15678 ac_file=$1
15679 shift
15681 case $ac_mode in
15682 :L) ac_source=$1;;
15683 :[FH])
15684 ac_file_inputs=
15685 for ac_f
15687 case $ac_f in
15688 -) ac_f="$ac_tmp/stdin";;
15689 *) # Look for the file first in the build tree, then in the source tree
15690 # (if the path is not absolute). The absolute path cannot be DOS-style,
15691 # because $ac_f cannot contain `:'.
15692 test -f "$ac_f" ||
15693 case $ac_f in
15694 [\\/$]*) false;;
15695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15696 esac ||
15697 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15698 esac
15699 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15700 as_fn_append ac_file_inputs " '$ac_f'"
15701 done
15703 # Let's still pretend it is `configure' which instantiates (i.e., don't
15704 # use $as_me), people would be surprised to read:
15705 # /* config.h. Generated by config.status. */
15706 configure_input='Generated from '`
15707 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15708 `' by configure.'
15709 if test x"$ac_file" != x-; then
15710 configure_input="$ac_file. $configure_input"
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15712 $as_echo "$as_me: creating $ac_file" >&6;}
15714 # Neutralize special characters interpreted by sed in replacement strings.
15715 case $configure_input in #(
15716 *\&* | *\|* | *\\* )
15717 ac_sed_conf_input=`$as_echo "$configure_input" |
15718 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15719 *) ac_sed_conf_input=$configure_input;;
15720 esac
15722 case $ac_tag in
15723 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15725 esac
15727 esac
15729 ac_dir=`$as_dirname -- "$ac_file" ||
15730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15731 X"$ac_file" : 'X\(//\)[^/]' \| \
15732 X"$ac_file" : 'X\(//\)$' \| \
15733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15734 $as_echo X"$ac_file" |
15735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15736 s//\1/
15739 /^X\(\/\/\)[^/].*/{
15740 s//\1/
15743 /^X\(\/\/\)$/{
15744 s//\1/
15747 /^X\(\/\).*/{
15748 s//\1/
15751 s/.*/./; q'`
15752 as_dir="$ac_dir"; as_fn_mkdir_p
15753 ac_builddir=.
15755 case "$ac_dir" in
15756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15759 # A ".." for each directory in $ac_dir_suffix.
15760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15761 case $ac_top_builddir_sub in
15762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15764 esac ;;
15765 esac
15766 ac_abs_top_builddir=$ac_pwd
15767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15768 # for backward compatibility:
15769 ac_top_builddir=$ac_top_build_prefix
15771 case $srcdir in
15772 .) # We are building in place.
15773 ac_srcdir=.
15774 ac_top_srcdir=$ac_top_builddir_sub
15775 ac_abs_top_srcdir=$ac_pwd ;;
15776 [\\/]* | ?:[\\/]* ) # Absolute name.
15777 ac_srcdir=$srcdir$ac_dir_suffix;
15778 ac_top_srcdir=$srcdir
15779 ac_abs_top_srcdir=$srcdir ;;
15780 *) # Relative name.
15781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15782 ac_top_srcdir=$ac_top_build_prefix$srcdir
15783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15784 esac
15785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15788 case $ac_mode in
15791 # CONFIG_FILE
15794 case $INSTALL in
15795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15797 esac
15798 ac_MKDIR_P=$MKDIR_P
15799 case $MKDIR_P in
15800 [\\/$]* | ?:[\\/]* ) ;;
15801 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15802 esac
15803 _ACEOF
15805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 # If the template does not know about datarootdir, expand it.
15807 # FIXME: This hack should be removed a few years after 2.60.
15808 ac_datarootdir_hack=; ac_datarootdir_seen=
15809 ac_sed_dataroot='
15810 /datarootdir/ {
15814 /@datadir@/p
15815 /@docdir@/p
15816 /@infodir@/p
15817 /@localedir@/p
15818 /@mandir@/p'
15819 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15820 *datarootdir*) ac_datarootdir_seen=yes;;
15821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15823 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 ac_datarootdir_hack='
15827 s&@datadir@&$datadir&g
15828 s&@docdir@&$docdir&g
15829 s&@infodir@&$infodir&g
15830 s&@localedir@&$localedir&g
15831 s&@mandir@&$mandir&g
15832 s&\\\${datarootdir}&$datarootdir&g' ;;
15833 esac
15834 _ACEOF
15836 # Neutralize VPATH when `$srcdir' = `.'.
15837 # Shell code in configure.ac might set extrasub.
15838 # FIXME: do we really want to maintain this feature?
15839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15840 ac_sed_extra="$ac_vpsub
15841 $extrasub
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15846 s|@configure_input@|$ac_sed_conf_input|;t t
15847 s&@top_builddir@&$ac_top_builddir_sub&;t t
15848 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15849 s&@srcdir@&$ac_srcdir&;t t
15850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15851 s&@top_srcdir@&$ac_top_srcdir&;t t
15852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15853 s&@builddir@&$ac_builddir&;t t
15854 s&@abs_builddir@&$ac_abs_builddir&;t t
15855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15856 s&@INSTALL@&$ac_INSTALL&;t t
15857 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15858 $ac_datarootdir_hack
15860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15861 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15864 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15866 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15868 which seems to be undefined. Please make sure it is defined" >&5
15869 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15870 which seems to be undefined. Please make sure it is defined" >&2;}
15872 rm -f "$ac_tmp/stdin"
15873 case $ac_file in
15874 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15875 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15876 esac \
15877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15881 # CONFIG_HEADER
15883 if test x"$ac_file" != x-; then
15885 $as_echo "/* $configure_input */" \
15886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15887 } >"$ac_tmp/config.h" \
15888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15889 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15891 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15892 else
15893 rm -f "$ac_file"
15894 mv "$ac_tmp/config.h" "$ac_file" \
15895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15897 else
15898 $as_echo "/* $configure_input */" \
15899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15900 || as_fn_error $? "could not create -" "$LINENO" 5
15902 # Compute "$ac_file"'s index in $config_headers.
15903 _am_arg="$ac_file"
15904 _am_stamp_count=1
15905 for _am_header in $config_headers :; do
15906 case $_am_header in
15907 $_am_arg | $_am_arg:* )
15908 break ;;
15910 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15911 esac
15912 done
15913 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15914 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15915 X"$_am_arg" : 'X\(//\)[^/]' \| \
15916 X"$_am_arg" : 'X\(//\)$' \| \
15917 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15918 $as_echo X"$_am_arg" |
15919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15920 s//\1/
15923 /^X\(\/\/\)[^/].*/{
15924 s//\1/
15927 /^X\(\/\/\)$/{
15928 s//\1/
15931 /^X\(\/\).*/{
15932 s//\1/
15935 s/.*/./; q'`/stamp-h$_am_stamp_count
15938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15939 $as_echo "$as_me: executing $ac_file commands" >&6;}
15941 esac
15944 case $ac_file$ac_mode in
15945 "default-1":C)
15946 # Only add multilib support code if we just rebuilt the top-level
15947 # Makefile.
15948 case " $CONFIG_FILES " in
15949 *" Makefile "*)
15950 ac_file=Makefile . ${multi_basedir}/config-ml.in
15952 esac ;;
15953 "libtool":C)
15955 # See if we are running on zsh, and set the options which allow our
15956 # commands through without removal of \ escapes.
15957 if test -n "${ZSH_VERSION+set}" ; then
15958 setopt NO_GLOB_SUBST
15961 cfgfile="${ofile}T"
15962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15963 $RM "$cfgfile"
15965 cat <<_LT_EOF >> "$cfgfile"
15966 #! $SHELL
15968 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15969 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15973 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15974 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15975 # Written by Gordon Matzigkeit, 1996
15977 # This file is part of GNU Libtool.
15979 # GNU Libtool is free software; you can redistribute it and/or
15980 # modify it under the terms of the GNU General Public License as
15981 # published by the Free Software Foundation; either version 2 of
15982 # the License, or (at your option) any later version.
15984 # As a special exception to the GNU General Public License,
15985 # if you distribute this file as part of a program or library that
15986 # is built using GNU Libtool, you may include this file under the
15987 # same distribution terms that you use for the rest of that program.
15989 # GNU Libtool is distributed in the hope that it will be useful,
15990 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15992 # GNU General Public License for more details.
15994 # You should have received a copy of the GNU General Public License
15995 # along with GNU Libtool; see the file COPYING. If not, a copy
15996 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15997 # obtained by writing to the Free Software Foundation, Inc.,
15998 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16001 # The names of the tagged configurations supported by this script.
16002 available_tags=""
16004 # ### BEGIN LIBTOOL CONFIG
16006 # Which release of libtool.m4 was used?
16007 macro_version=$macro_version
16008 macro_revision=$macro_revision
16010 # Whether or not to build shared libraries.
16011 build_libtool_libs=$enable_shared
16013 # Whether or not to build static libraries.
16014 build_old_libs=$enable_static
16016 # What type of objects to build.
16017 pic_mode=$pic_mode
16019 # Whether or not to optimize for fast installation.
16020 fast_install=$enable_fast_install
16022 # Shell to use when invoking shell scripts.
16023 SHELL=$lt_SHELL
16025 # An echo program that protects backslashes.
16026 ECHO=$lt_ECHO
16028 # The host system.
16029 host_alias=$host_alias
16030 host=$host
16031 host_os=$host_os
16033 # The build system.
16034 build_alias=$build_alias
16035 build=$build
16036 build_os=$build_os
16038 # A sed program that does not truncate output.
16039 SED=$lt_SED
16041 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16042 Xsed="\$SED -e 1s/^X//"
16044 # A grep program that handles long lines.
16045 GREP=$lt_GREP
16047 # An ERE matcher.
16048 EGREP=$lt_EGREP
16050 # A literal string matcher.
16051 FGREP=$lt_FGREP
16053 # A BSD- or MS-compatible name lister.
16054 NM=$lt_NM
16056 # Whether we need soft or hard links.
16057 LN_S=$lt_LN_S
16059 # What is the maximum length of a command?
16060 max_cmd_len=$max_cmd_len
16062 # Object file suffix (normally "o").
16063 objext=$ac_objext
16065 # Executable file suffix (normally "").
16066 exeext=$exeext
16068 # whether the shell understands "unset".
16069 lt_unset=$lt_unset
16071 # turn spaces into newlines.
16072 SP2NL=$lt_lt_SP2NL
16074 # turn newlines into spaces.
16075 NL2SP=$lt_lt_NL2SP
16077 # An object symbol dumper.
16078 OBJDUMP=$lt_OBJDUMP
16080 # Method to check whether dependent libraries are shared objects.
16081 deplibs_check_method=$lt_deplibs_check_method
16083 # Command to use when deplibs_check_method == "file_magic".
16084 file_magic_cmd=$lt_file_magic_cmd
16086 # The archiver.
16087 AR=$lt_AR
16088 AR_FLAGS=$lt_AR_FLAGS
16090 # A symbol stripping program.
16091 STRIP=$lt_STRIP
16093 # Commands used to install an old-style archive.
16094 RANLIB=$lt_RANLIB
16095 old_postinstall_cmds=$lt_old_postinstall_cmds
16096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16098 # Whether to use a lock for old archive extraction.
16099 lock_old_archive_extraction=$lock_old_archive_extraction
16101 # A C compiler.
16102 LTCC=$lt_CC
16104 # LTCC compiler flags.
16105 LTCFLAGS=$lt_CFLAGS
16107 # Take the output of nm and produce a listing of raw symbols and C names.
16108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16110 # Transform the output of nm in a proper C declaration.
16111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16113 # Transform the output of nm in a C name address pair.
16114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16116 # Transform the output of nm in a C name address pair when lib prefix is needed.
16117 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16119 # The name of the directory that contains temporary libtool files.
16120 objdir=$objdir
16122 # Used to examine libraries when file_magic_cmd begins with "file".
16123 MAGIC_CMD=$MAGIC_CMD
16125 # Must we lock files when doing compilation?
16126 need_locks=$lt_need_locks
16128 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16129 DSYMUTIL=$lt_DSYMUTIL
16131 # Tool to change global to local symbols on Mac OS X.
16132 NMEDIT=$lt_NMEDIT
16134 # Tool to manipulate fat objects and archives on Mac OS X.
16135 LIPO=$lt_LIPO
16137 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16138 OTOOL=$lt_OTOOL
16140 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16141 OTOOL64=$lt_OTOOL64
16143 # Old archive suffix (normally "a").
16144 libext=$libext
16146 # Shared library suffix (normally ".so").
16147 shrext_cmds=$lt_shrext_cmds
16149 # The commands to extract the exported symbol list from a shared archive.
16150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16152 # Variables whose values should be saved in libtool wrapper scripts and
16153 # restored at link time.
16154 variables_saved_for_relink=$lt_variables_saved_for_relink
16156 # Do we need the "lib" prefix for modules?
16157 need_lib_prefix=$need_lib_prefix
16159 # Do we need a version for libraries?
16160 need_version=$need_version
16162 # Library versioning type.
16163 version_type=$version_type
16165 # Shared library runtime path variable.
16166 runpath_var=$runpath_var
16168 # Shared library path variable.
16169 shlibpath_var=$shlibpath_var
16171 # Is shlibpath searched before the hard-coded library search path?
16172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16174 # Format of library name prefix.
16175 libname_spec=$lt_libname_spec
16177 # List of archive names. First name is the real one, the rest are links.
16178 # The last name is the one that the linker finds with -lNAME
16179 library_names_spec=$lt_library_names_spec
16181 # The coded name of the library, if different from the real name.
16182 soname_spec=$lt_soname_spec
16184 # Permission mode override for installation of shared libraries.
16185 install_override_mode=$lt_install_override_mode
16187 # Command to use after installation of a shared archive.
16188 postinstall_cmds=$lt_postinstall_cmds
16190 # Command to use after uninstallation of a shared archive.
16191 postuninstall_cmds=$lt_postuninstall_cmds
16193 # Commands used to finish a libtool library installation in a directory.
16194 finish_cmds=$lt_finish_cmds
16196 # As "finish_cmds", except a single script fragment to be evaled but
16197 # not shown.
16198 finish_eval=$lt_finish_eval
16200 # Whether we should hardcode library paths into libraries.
16201 hardcode_into_libs=$hardcode_into_libs
16203 # Compile-time system search path for libraries.
16204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16206 # Run-time system search path for libraries.
16207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16209 # Whether dlopen is supported.
16210 dlopen_support=$enable_dlopen
16212 # Whether dlopen of programs is supported.
16213 dlopen_self=$enable_dlopen_self
16215 # Whether dlopen of statically linked programs is supported.
16216 dlopen_self_static=$enable_dlopen_self_static
16218 # Commands to strip libraries.
16219 old_striplib=$lt_old_striplib
16220 striplib=$lt_striplib
16223 # The linker used to build libraries.
16224 LD=$lt_LD
16226 # How to create reloadable object files.
16227 reload_flag=$lt_reload_flag
16228 reload_cmds=$lt_reload_cmds
16230 # Commands used to build an old-style archive.
16231 old_archive_cmds=$lt_old_archive_cmds
16233 # A language specific compiler.
16234 CC=$lt_compiler
16236 # Is the compiler the GNU compiler?
16237 with_gcc=$GCC
16239 # Compiler flag to turn off builtin functions.
16240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16242 # How to pass a linker flag through the compiler.
16243 wl=$lt_lt_prog_compiler_wl
16245 # Additional compiler flags for building library objects.
16246 pic_flag=$lt_lt_prog_compiler_pic
16248 # Compiler flag to prevent dynamic linking.
16249 link_static_flag=$lt_lt_prog_compiler_static
16251 # Does compiler simultaneously support -c and -o options?
16252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16254 # Whether or not to add -lc for building shared libraries.
16255 build_libtool_need_lc=$archive_cmds_need_lc
16257 # Whether or not to disallow shared libs when runtime libs are static.
16258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16260 # Compiler flag to allow reflexive dlopens.
16261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16263 # Compiler flag to generate shared objects directly from archives.
16264 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16266 # Whether the compiler copes with passing no objects directly.
16267 compiler_needs_object=$lt_compiler_needs_object
16269 # Create an old-style archive from a shared archive.
16270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16272 # Create a temporary old-style archive to link instead of a shared archive.
16273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16275 # Commands used to build a shared archive.
16276 archive_cmds=$lt_archive_cmds
16277 archive_expsym_cmds=$lt_archive_expsym_cmds
16279 # Commands used to build a loadable module if different from building
16280 # a shared archive.
16281 module_cmds=$lt_module_cmds
16282 module_expsym_cmds=$lt_module_expsym_cmds
16284 # Whether we are building with GNU ld or not.
16285 with_gnu_ld=$lt_with_gnu_ld
16287 # Flag that allows shared libraries with undefined symbols to be built.
16288 allow_undefined_flag=$lt_allow_undefined_flag
16290 # Flag that enforces no undefined symbols.
16291 no_undefined_flag=$lt_no_undefined_flag
16293 # Flag to hardcode \$libdir into a binary during linking.
16294 # This must work even if \$libdir does not exist
16295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16297 # If ld is used when linking, flag to hardcode \$libdir into a binary
16298 # during linking. This must work even if \$libdir does not exist.
16299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16301 # Whether we need a single "-rpath" flag with a separated argument.
16302 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16305 # DIR into the resulting binary.
16306 hardcode_direct=$hardcode_direct
16308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16309 # DIR into the resulting binary and the resulting library dependency is
16310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16311 # library is relocated.
16312 hardcode_direct_absolute=$hardcode_direct_absolute
16314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16315 # into the resulting binary.
16316 hardcode_minus_L=$hardcode_minus_L
16318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16319 # into the resulting binary.
16320 hardcode_shlibpath_var=$hardcode_shlibpath_var
16322 # Set to "yes" if building a shared library automatically hardcodes DIR
16323 # into the library and all subsequent libraries and executables linked
16324 # against it.
16325 hardcode_automatic=$hardcode_automatic
16327 # Set to yes if linker adds runtime paths of dependent libraries
16328 # to runtime path list.
16329 inherit_rpath=$inherit_rpath
16331 # Whether libtool must link a program against all its dependency libraries.
16332 link_all_deplibs=$link_all_deplibs
16334 # Fix the shell variable \$srcfile for the compiler.
16335 fix_srcfile_path=$lt_fix_srcfile_path
16337 # Set to "yes" if exported symbols are required.
16338 always_export_symbols=$always_export_symbols
16340 # The commands to list exported symbols.
16341 export_symbols_cmds=$lt_export_symbols_cmds
16343 # Symbols that should not be listed in the preloaded symbols.
16344 exclude_expsyms=$lt_exclude_expsyms
16346 # Symbols that must always be exported.
16347 include_expsyms=$lt_include_expsyms
16349 # Commands necessary for linking programs (against libraries) with templates.
16350 prelink_cmds=$lt_prelink_cmds
16352 # Specify filename containing input files.
16353 file_list_spec=$lt_file_list_spec
16355 # How to hardcode a shared library path into an executable.
16356 hardcode_action=$hardcode_action
16358 # ### END LIBTOOL CONFIG
16360 _LT_EOF
16362 case $host_os in
16363 aix3*)
16364 cat <<\_LT_EOF >> "$cfgfile"
16365 # AIX sometimes has problems with the GCC collect2 program. For some
16366 # reason, if we set the COLLECT_NAMES environment variable, the problems
16367 # vanish in a puff of smoke.
16368 if test "X${COLLECT_NAMES+set}" != Xset; then
16369 COLLECT_NAMES=
16370 export COLLECT_NAMES
16372 _LT_EOF
16374 esac
16377 ltmain="$ac_aux_dir/ltmain.sh"
16380 # We use sed instead of cat because bash on DJGPP gets confused if
16381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16382 # text mode, it properly converts lines to CR/LF. This bash problem
16383 # is reportedly fixed, but why not run on old versions too?
16384 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16385 || (rm -f "$cfgfile"; exit 1)
16387 case $xsi_shell in
16388 yes)
16389 cat << \_LT_EOF >> "$cfgfile"
16391 # func_dirname file append nondir_replacement
16392 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16393 # otherwise set result to NONDIR_REPLACEMENT.
16394 func_dirname ()
16396 case ${1} in
16397 */*) func_dirname_result="${1%/*}${2}" ;;
16398 * ) func_dirname_result="${3}" ;;
16399 esac
16402 # func_basename file
16403 func_basename ()
16405 func_basename_result="${1##*/}"
16408 # func_dirname_and_basename file append nondir_replacement
16409 # perform func_basename and func_dirname in a single function
16410 # call:
16411 # dirname: Compute the dirname of FILE. If nonempty,
16412 # add APPEND to the result, otherwise set result
16413 # to NONDIR_REPLACEMENT.
16414 # value returned in "$func_dirname_result"
16415 # basename: Compute filename of FILE.
16416 # value retuned in "$func_basename_result"
16417 # Implementation must be kept synchronized with func_dirname
16418 # and func_basename. For efficiency, we do not delegate to
16419 # those functions but instead duplicate the functionality here.
16420 func_dirname_and_basename ()
16422 case ${1} in
16423 */*) func_dirname_result="${1%/*}${2}" ;;
16424 * ) func_dirname_result="${3}" ;;
16425 esac
16426 func_basename_result="${1##*/}"
16429 # func_stripname prefix suffix name
16430 # strip PREFIX and SUFFIX off of NAME.
16431 # PREFIX and SUFFIX must not contain globbing or regex special
16432 # characters, hashes, percent signs, but SUFFIX may contain a leading
16433 # dot (in which case that matches only a dot).
16434 func_stripname ()
16436 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16437 # positional parameters, so assign one to ordinary parameter first.
16438 func_stripname_result=${3}
16439 func_stripname_result=${func_stripname_result#"${1}"}
16440 func_stripname_result=${func_stripname_result%"${2}"}
16443 # func_opt_split
16444 func_opt_split ()
16446 func_opt_split_opt=${1%%=*}
16447 func_opt_split_arg=${1#*=}
16450 # func_lo2o object
16451 func_lo2o ()
16453 case ${1} in
16454 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16455 *) func_lo2o_result=${1} ;;
16456 esac
16459 # func_xform libobj-or-source
16460 func_xform ()
16462 func_xform_result=${1%.*}.lo
16465 # func_arith arithmetic-term...
16466 func_arith ()
16468 func_arith_result=$(( $* ))
16471 # func_len string
16472 # STRING may not start with a hyphen.
16473 func_len ()
16475 func_len_result=${#1}
16478 _LT_EOF
16480 *) # Bourne compatible functions.
16481 cat << \_LT_EOF >> "$cfgfile"
16483 # func_dirname file append nondir_replacement
16484 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16485 # otherwise set result to NONDIR_REPLACEMENT.
16486 func_dirname ()
16488 # Extract subdirectory from the argument.
16489 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16490 if test "X$func_dirname_result" = "X${1}"; then
16491 func_dirname_result="${3}"
16492 else
16493 func_dirname_result="$func_dirname_result${2}"
16497 # func_basename file
16498 func_basename ()
16500 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16504 # func_stripname prefix suffix name
16505 # strip PREFIX and SUFFIX off of NAME.
16506 # PREFIX and SUFFIX must not contain globbing or regex special
16507 # characters, hashes, percent signs, but SUFFIX may contain a leading
16508 # dot (in which case that matches only a dot).
16509 # func_strip_suffix prefix name
16510 func_stripname ()
16512 case ${2} in
16513 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16514 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16515 esac
16518 # sed scripts:
16519 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16520 my_sed_long_arg='1s/^-[^=]*=//'
16522 # func_opt_split
16523 func_opt_split ()
16525 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16526 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16529 # func_lo2o object
16530 func_lo2o ()
16532 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16535 # func_xform libobj-or-source
16536 func_xform ()
16538 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16541 # func_arith arithmetic-term...
16542 func_arith ()
16544 func_arith_result=`expr "$@"`
16547 # func_len string
16548 # STRING may not start with a hyphen.
16549 func_len ()
16551 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16554 _LT_EOF
16555 esac
16557 case $lt_shell_append in
16558 yes)
16559 cat << \_LT_EOF >> "$cfgfile"
16561 # func_append var value
16562 # Append VALUE to the end of shell variable VAR.
16563 func_append ()
16565 eval "$1+=\$2"
16567 _LT_EOF
16570 cat << \_LT_EOF >> "$cfgfile"
16572 # func_append var value
16573 # Append VALUE to the end of shell variable VAR.
16574 func_append ()
16576 eval "$1=\$$1\$2"
16579 _LT_EOF
16581 esac
16584 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16585 || (rm -f "$cfgfile"; exit 1)
16587 mv -f "$cfgfile" "$ofile" ||
16588 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16589 chmod +x "$ofile"
16592 "gstdint.h":C)
16593 if test "$GCC" = yes; then
16594 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16595 else
16596 echo "/* generated for $CC */" > tmp-stdint.h
16599 sed 's/^ *//' >> tmp-stdint.h <<EOF
16601 #ifndef GCC_GENERATED_STDINT_H
16602 #define GCC_GENERATED_STDINT_H 1
16604 #include <sys/types.h>
16607 if test "$acx_cv_header_stdint" != stdint.h; then
16608 echo "#include <stddef.h>" >> tmp-stdint.h
16610 if test "$acx_cv_header_stdint" != stddef.h; then
16611 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16614 sed 's/^ *//' >> tmp-stdint.h <<EOF
16615 /* glibc uses these symbols as guards to prevent redefinitions. */
16616 #ifdef __int8_t_defined
16617 #define _INT8_T
16618 #define _INT16_T
16619 #define _INT32_T
16620 #endif
16621 #ifdef __uint32_t_defined
16622 #define _UINT32_T
16623 #endif
16627 # ----------------- done header, emit basic int types -------------
16628 if test "$acx_cv_header_stdint" = stddef.h; then
16629 sed 's/^ *//' >> tmp-stdint.h <<EOF
16631 #ifndef _UINT8_T
16632 #define _UINT8_T
16633 #ifndef __uint8_t_defined
16634 #define __uint8_t_defined
16635 #ifndef uint8_t
16636 typedef unsigned $acx_cv_type_int8_t uint8_t;
16637 #endif
16638 #endif
16639 #endif
16641 #ifndef _UINT16_T
16642 #define _UINT16_T
16643 #ifndef __uint16_t_defined
16644 #define __uint16_t_defined
16645 #ifndef uint16_t
16646 typedef unsigned $acx_cv_type_int16_t uint16_t;
16647 #endif
16648 #endif
16649 #endif
16651 #ifndef _UINT32_T
16652 #define _UINT32_T
16653 #ifndef __uint32_t_defined
16654 #define __uint32_t_defined
16655 #ifndef uint32_t
16656 typedef unsigned $acx_cv_type_int32_t uint32_t;
16657 #endif
16658 #endif
16659 #endif
16661 #ifndef _INT8_T
16662 #define _INT8_T
16663 #ifndef __int8_t_defined
16664 #define __int8_t_defined
16665 #ifndef int8_t
16666 typedef $acx_cv_type_int8_t int8_t;
16667 #endif
16668 #endif
16669 #endif
16671 #ifndef _INT16_T
16672 #define _INT16_T
16673 #ifndef __int16_t_defined
16674 #define __int16_t_defined
16675 #ifndef int16_t
16676 typedef $acx_cv_type_int16_t int16_t;
16677 #endif
16678 #endif
16679 #endif
16681 #ifndef _INT32_T
16682 #define _INT32_T
16683 #ifndef __int32_t_defined
16684 #define __int32_t_defined
16685 #ifndef int32_t
16686 typedef $acx_cv_type_int32_t int32_t;
16687 #endif
16688 #endif
16689 #endif
16691 elif test "$ac_cv_type_u_int32_t" = yes; then
16692 sed 's/^ *//' >> tmp-stdint.h <<EOF
16694 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16695 #ifndef _INT8_T
16696 #define _INT8_T
16697 #endif
16698 #ifndef _INT16_T
16699 #define _INT16_T
16700 #endif
16701 #ifndef _INT32_T
16702 #define _INT32_T
16703 #endif
16705 #ifndef _UINT8_T
16706 #define _UINT8_T
16707 #ifndef __uint8_t_defined
16708 #define __uint8_t_defined
16709 #ifndef uint8_t
16710 typedef u_int8_t uint8_t;
16711 #endif
16712 #endif
16713 #endif
16715 #ifndef _UINT16_T
16716 #define _UINT16_T
16717 #ifndef __uint16_t_defined
16718 #define __uint16_t_defined
16719 #ifndef uint16_t
16720 typedef u_int16_t uint16_t;
16721 #endif
16722 #endif
16723 #endif
16725 #ifndef _UINT32_T
16726 #define _UINT32_T
16727 #ifndef __uint32_t_defined
16728 #define __uint32_t_defined
16729 #ifndef uint32_t
16730 typedef u_int32_t uint32_t;
16731 #endif
16732 #endif
16733 #endif
16735 else
16736 sed 's/^ *//' >> tmp-stdint.h <<EOF
16738 /* Some systems have guard macros to prevent redefinitions, define them. */
16739 #ifndef _INT8_T
16740 #define _INT8_T
16741 #endif
16742 #ifndef _INT16_T
16743 #define _INT16_T
16744 #endif
16745 #ifndef _INT32_T
16746 #define _INT32_T
16747 #endif
16748 #ifndef _UINT8_T
16749 #define _UINT8_T
16750 #endif
16751 #ifndef _UINT16_T
16752 #define _UINT16_T
16753 #endif
16754 #ifndef _UINT32_T
16755 #define _UINT32_T
16756 #endif
16760 # ------------- done basic int types, emit int64_t types ------------
16761 if test "$ac_cv_type_uint64_t" = yes; then
16762 sed 's/^ *//' >> tmp-stdint.h <<EOF
16764 /* system headers have good uint64_t and int64_t */
16765 #ifndef _INT64_T
16766 #define _INT64_T
16767 #endif
16768 #ifndef _UINT64_T
16769 #define _UINT64_T
16770 #endif
16772 elif test "$ac_cv_type_u_int64_t" = yes; then
16773 sed 's/^ *//' >> tmp-stdint.h <<EOF
16775 /* system headers have an u_int64_t (and int64_t) */
16776 #ifndef _INT64_T
16777 #define _INT64_T
16778 #endif
16779 #ifndef _UINT64_T
16780 #define _UINT64_T
16781 #ifndef __uint64_t_defined
16782 #define __uint64_t_defined
16783 #ifndef uint64_t
16784 typedef u_int64_t uint64_t;
16785 #endif
16786 #endif
16787 #endif
16789 elif test -n "$acx_cv_type_int64_t"; then
16790 sed 's/^ *//' >> tmp-stdint.h <<EOF
16792 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16793 #ifndef _INT64_T
16794 #define _INT64_T
16795 #ifndef int64_t
16796 typedef $acx_cv_type_int64_t int64_t;
16797 #endif
16798 #endif
16799 #ifndef _UINT64_T
16800 #define _UINT64_T
16801 #ifndef __uint64_t_defined
16802 #define __uint64_t_defined
16803 #ifndef uint64_t
16804 typedef unsigned $acx_cv_type_int64_t uint64_t;
16805 #endif
16806 #endif
16807 #endif
16809 else
16810 sed 's/^ *//' >> tmp-stdint.h <<EOF
16812 /* some common heuristics for int64_t, using compiler-specific tests */
16813 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16814 #ifndef _INT64_T
16815 #define _INT64_T
16816 #ifndef __int64_t_defined
16817 #ifndef int64_t
16818 typedef long long int64_t;
16819 #endif
16820 #endif
16821 #endif
16822 #ifndef _UINT64_T
16823 #define _UINT64_T
16824 #ifndef uint64_t
16825 typedef unsigned long long uint64_t;
16826 #endif
16827 #endif
16829 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16830 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16831 does not implement __extension__. But that compiler doesn't define
16832 __GNUC_MINOR__. */
16833 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16834 # define __extension__
16835 # endif
16837 # ifndef _INT64_T
16838 # define _INT64_T
16839 # ifndef int64_t
16840 __extension__ typedef long long int64_t;
16841 # endif
16842 # endif
16843 # ifndef _UINT64_T
16844 # define _UINT64_T
16845 # ifndef uint64_t
16846 __extension__ typedef unsigned long long uint64_t;
16847 # endif
16848 # endif
16850 #elif !defined __STRICT_ANSI__
16851 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16853 # ifndef _INT64_T
16854 # define _INT64_T
16855 # ifndef int64_t
16856 typedef __int64 int64_t;
16857 # endif
16858 # endif
16859 # ifndef _UINT64_T
16860 # define _UINT64_T
16861 # ifndef uint64_t
16862 typedef unsigned __int64 uint64_t;
16863 # endif
16864 # endif
16865 # endif /* compiler */
16867 #endif /* ANSI version */
16871 # ------------- done int64_t types, emit intptr types ------------
16872 if test "$ac_cv_type_uintptr_t" != yes; then
16873 sed 's/^ *//' >> tmp-stdint.h <<EOF
16875 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16876 #ifndef __uintptr_t_defined
16877 #ifndef uintptr_t
16878 typedef u$acx_cv_type_intptr_t uintptr_t;
16879 #endif
16880 #endif
16881 #ifndef __intptr_t_defined
16882 #ifndef intptr_t
16883 typedef $acx_cv_type_intptr_t intptr_t;
16884 #endif
16885 #endif
16889 # ------------- done intptr types, emit int_least types ------------
16890 if test "$ac_cv_type_int_least32_t" != yes; then
16891 sed 's/^ *//' >> tmp-stdint.h <<EOF
16893 /* Define int_least types */
16894 typedef int8_t int_least8_t;
16895 typedef int16_t int_least16_t;
16896 typedef int32_t int_least32_t;
16897 #ifdef _INT64_T
16898 typedef int64_t int_least64_t;
16899 #endif
16901 typedef uint8_t uint_least8_t;
16902 typedef uint16_t uint_least16_t;
16903 typedef uint32_t uint_least32_t;
16904 #ifdef _UINT64_T
16905 typedef uint64_t uint_least64_t;
16906 #endif
16910 # ------------- done intptr types, emit int_fast types ------------
16911 if test "$ac_cv_type_int_fast32_t" != yes; then
16912 sed 's/^ *//' >> tmp-stdint.h <<EOF
16914 /* Define int_fast types. short is often slow */
16915 typedef int8_t int_fast8_t;
16916 typedef int int_fast16_t;
16917 typedef int32_t int_fast32_t;
16918 #ifdef _INT64_T
16919 typedef int64_t int_fast64_t;
16920 #endif
16922 typedef uint8_t uint_fast8_t;
16923 typedef unsigned int uint_fast16_t;
16924 typedef uint32_t uint_fast32_t;
16925 #ifdef _UINT64_T
16926 typedef uint64_t uint_fast64_t;
16927 #endif
16931 if test "$ac_cv_type_uintmax_t" != yes; then
16932 sed 's/^ *//' >> tmp-stdint.h <<EOF
16934 /* Define intmax based on what we found */
16935 #ifndef intmax_t
16936 #ifdef _INT64_T
16937 typedef int64_t intmax_t;
16938 #else
16939 typedef long intmax_t;
16940 #endif
16941 #endif
16942 #ifndef uintmax_t
16943 #ifdef _UINT64_T
16944 typedef uint64_t uintmax_t;
16945 #else
16946 typedef unsigned long uintmax_t;
16947 #endif
16948 #endif
16952 sed 's/^ *//' >> tmp-stdint.h <<EOF
16954 #endif /* GCC_GENERATED_STDINT_H */
16957 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16958 rm -f tmp-stdint.h
16959 else
16960 mv -f tmp-stdint.h gstdint.h
16964 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
16965 "default":C) if test -n "$CONFIG_FILES"; then
16966 if test -n "${with_target_subdir}"; then
16967 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16968 # that multilib installs will end up installed in the correct place.
16969 # The testsuite needs it for multilib-aware ABI baseline files.
16970 # To work around this not being passed down from config-ml.in ->
16971 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16972 # append it here. Only modify Makefiles that have just been created.
16974 # Also, get rid of this simulated-VPATH thing that automake does.
16975 cat > vpsed << \_EOF
16976 s!`test -f '$<' || echo '$(srcdir)/'`!!
16977 _EOF
16978 for i in $SUBDIRS; do
16979 case $CONFIG_FILES in
16980 *${i}/Makefile*)
16981 #echo "Adding MULTISUBDIR to $i/Makefile"
16982 sed -f vpsed $i/Makefile > tmp
16983 grep '^MULTISUBDIR =' Makefile >> tmp
16984 mv tmp $i/Makefile
16986 esac
16987 done
16988 rm vpsed
16993 esac
16994 done # for ac_tag
16997 as_fn_exit 0
16998 _ACEOF
16999 ac_clean_files=$ac_clean_files_save
17001 test $ac_write_fail = 0 ||
17002 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17005 # configure is writing to config.log, and then calls config.status.
17006 # config.status does its own redirection, appending to config.log.
17007 # Unfortunately, on DOS this fails, as config.log is still kept open
17008 # by configure, so config.status won't be able to write to it; its
17009 # output is simply discarded. So we exec the FD to /dev/null,
17010 # effectively closing config.log, so it can be properly (re)opened and
17011 # appended to by config.status. When coming back to configure, we
17012 # need to make the FD available again.
17013 if test "$no_create" != yes; then
17014 ac_cs_success=:
17015 ac_config_status_args=
17016 test "$silent" = yes &&
17017 ac_config_status_args="$ac_config_status_args --quiet"
17018 exec 5>/dev/null
17019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17020 exec 5>>config.log
17021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17022 # would make configure fail if this is the last instruction.
17023 $ac_cs_success || as_fn_exit 1
17025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}