constify inchash
[official-gcc.git] / libbacktrace / configure
blobfe0bb2083eb169a7a632151dff1af80eb54f55d4
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_ZLIB_GABI_FALSE
659 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE
660 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE
661 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE
662 HAVE_BUILDID_FALSE
663 HAVE_BUILDID_TRUE
664 HAVE_ZLIB_FALSE
665 HAVE_ZLIB_TRUE
666 HAVE_DWARF5_FALSE
667 HAVE_DWARF5_TRUE
668 HAVE_PTHREAD_FALSE
669 HAVE_PTHREAD_TRUE
670 PTHREAD_CFLAGS
671 CLOCK_GETTIME_LINK
672 BACKTRACE_USES_MALLOC
673 ALLOC_FILE
674 VIEW_FILE
675 BACKTRACE_SUPPORTS_DATA
676 BACKTRACE_SUPPORTED
677 HAVE_ELF_FALSE
678 HAVE_ELF_TRUE
679 FORMAT_FILE
680 BACKTRACE_SUPPORTS_THREADS
681 CET_HOST_FLAGS
682 PIC_FLAG
683 WARN_FLAGS
684 EXTRA_FLAGS
685 BACKTRACE_FILE
686 ENABLE_DARWIN_AT_RPATH_FALSE
687 ENABLE_DARWIN_AT_RPATH_TRUE
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
694 OBJDUMP
695 LN_S
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 HAVE_DWZ_FALSE
704 HAVE_DWZ_TRUE
706 RANLIB
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 libtool_VERSION
738 EGREP
739 GREP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 enable_silent_rules
804 enable_maintainer_mode
805 with_target_subdir
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 enable_libtool_lock
812 enable_darwin_at_rpath
813 enable_largefile
814 enable_cet
815 enable_werror
816 with_system_libunwind
817 enable_host_shared
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
828 OBJCOPY
829 DSYMUTIL
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
881 ac_prev=
882 ac_dashdash=
883 for ac_option
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
902 ac_dashdash=yes ;;
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
921 --config-cache | -C)
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 esac
1239 done
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1323 /^X\(\/\/\)$/{
1324 s//\1/
1327 /^X\(\/\).*/{
1328 s//\1/
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1336 else
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1426 cat <<\_ACEOF
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of package-unused version-unused:";;
1443 esac
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-multilib build many library versions (default)
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-darwin-at-rpath
1462 install libraries with @rpath/library-name, requires
1463 rpaths to be added to executables
1464 --disable-largefile omit support for large files
1465 --enable-cet enable Intel CET in target libraries [default=auto]
1466 --disable-werror disable building with -Werror
1467 --enable-host-shared build host code as shared libraries
1468 --enable-cet enable Intel CET in host libraries [default=auto]
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-system-libunwind use installed libunwind
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 OBJCOPY location of objcopy
1489 DSYMUTIL location of dsymutil
1490 NM location of nm
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 _ACEOF
1497 ac_status=$?
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
1506 ac_builddir=.
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 package-unused configure version-unused
1559 generated by GNU Autoconf 2.69
1561 Copyright (C) 2012 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_compile
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_cpp
1647 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650 # the include files in INCLUDES and setting the cache variable VAR
1651 # accordingly.
1652 ac_fn_c_check_header_mongrel ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if eval \${$3+:} false; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 else
1665 # Is the header compilable?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667 $as_echo_n "checking $2 usability... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675 else
1676 ac_header_compiler=no
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680 $as_echo "$ac_header_compiler" >&6; }
1682 # Is the header present?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684 $as_echo_n "checking $2 presence... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691 else
1692 ac_header_preproc=no
1694 rm -f conftest.err conftest.i conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696 $as_echo "$ac_header_preproc" >&6; }
1698 # So? What about this header?
1699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 eval "$3=\$ac_header_compiler"
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_mongrel
1734 # ac_fn_c_try_run LINENO
1735 # ----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737 # that executables *can* be run.
1738 ac_fn_c_try_run ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
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_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=$ac_status
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_run
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_header_compile
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 test -x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=1
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_link
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1881 #undef $2
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1898 main ()
1900 return $2 ();
1902 return 0;
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_func
1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921 # -------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_c_check_type ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=no"
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 if (sizeof ($2))
1940 return 0;
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 main ()
1952 if (sizeof (($2)))
1953 return 0;
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1960 else
1961 eval "$3=yes"
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_type
1974 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1975 # --------------------------------------------
1976 # Tries to find the compile-time value of EXPR in a program that includes
1977 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1978 # computed
1979 ac_fn_c_compute_int ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if test "$cross_compiling" = yes; then
1983 # Depending upon the size, compute the lo and hi bounds.
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) >= 0)];
1991 test_array [0] = 0;
1992 return test_array [0];
1995 return 0;
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_lo=0 ac_mid=0
2000 while :; do
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0;
2009 return test_array [0];
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=$ac_mid; break
2017 else
2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019 if test $ac_lo -le $ac_mid; then
2020 ac_lo= ac_hi=
2021 break
2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 done
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static int test_array [1 - 2 * !(($2) < 0)];
2035 test_array [0] = 0;
2036 return test_array [0];
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=-1 ac_mid=-1
2044 while :; do
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 main ()
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2052 test_array [0] = 0;
2053 return test_array [0];
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_lo=$ac_mid; break
2061 else
2062 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2063 if test $ac_mid -le $ac_hi; then
2064 ac_lo= ac_hi=
2065 break
2067 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 done
2071 else
2072 ac_lo= ac_hi=
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 # Binary search between lo and hi bounds.
2078 while test "x$ac_lo" != "x$ac_hi"; do
2079 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0;
2088 return test_array [0];
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid
2096 else
2097 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 done
2101 case $ac_lo in #((
2102 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2103 '') ac_retval=1 ;;
2104 esac
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2109 static long int longval () { return $2; }
2110 static unsigned long int ulongval () { return $2; }
2111 #include <stdio.h>
2112 #include <stdlib.h>
2114 main ()
2117 FILE *f = fopen ("conftest.val", "w");
2118 if (! f)
2119 return 1;
2120 if (($2) < 0)
2122 long int i = longval ();
2123 if (i != ($2))
2124 return 1;
2125 fprintf (f, "%ld", i);
2127 else
2129 unsigned long int i = ulongval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%lu", i);
2134 /* Do not output a trailing newline, as this causes \r\n confusion
2135 on some platforms. */
2136 return ferror (f) || fclose (f) != 0;
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_run "$LINENO"; then :
2143 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2144 else
2145 ac_retval=1
2147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2148 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149 rm -f conftest.val
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153 as_fn_set_status $ac_retval
2155 } # ac_fn_c_compute_int
2157 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2158 # ---------------------------------------------
2159 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2160 # accordingly.
2161 ac_fn_c_check_decl ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 as_decl_name=`echo $2|sed 's/ *(.*//'`
2165 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2167 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2175 main ()
2177 #ifndef $as_decl_name
2178 #ifdef __cplusplus
2179 (void) $as_decl_use;
2180 #else
2181 (void) $as_decl_name;
2182 #endif
2183 #endif
2186 return 0;
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 eval "$3=yes"
2191 else
2192 eval "$3=no"
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 } # ac_fn_c_check_decl
2202 cat >config.log <<_ACEOF
2203 This file contains any messages produced by compilers while
2204 running configure, to aid debugging if configure makes a mistake.
2206 It was created by package-unused $as_me version-unused, which was
2207 generated by GNU Autoconf 2.69. Invocation command line was
2209 $ $0 $@
2211 _ACEOF
2212 exec 5>>config.log
2214 cat <<_ASUNAME
2215 ## --------- ##
2216 ## Platform. ##
2217 ## --------- ##
2219 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2220 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2221 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2222 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2223 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2226 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2229 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2230 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2231 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2232 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2233 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2234 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236 _ASUNAME
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 $as_echo "PATH: $as_dir"
2244 done
2245 IFS=$as_save_IFS
2247 } >&5
2249 cat >&5 <<_ACEOF
2252 ## ----------- ##
2253 ## Core tests. ##
2254 ## ----------- ##
2256 _ACEOF
2259 # Keep a trace of the command line.
2260 # Strip out --no-create and --no-recursion so they do not pile up.
2261 # Strip out --silent because we don't want to record it for future runs.
2262 # Also quote any args containing shell meta-characters.
2263 # Make two passes to allow for proper duplicate-argument suppression.
2264 ac_configure_args=
2265 ac_configure_args0=
2266 ac_configure_args1=
2267 ac_must_keep_next=false
2268 for ac_pass in 1 2
2270 for ac_arg
2272 case $ac_arg in
2273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2275 | -silent | --silent | --silen | --sile | --sil)
2276 continue ;;
2277 *\'*)
2278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 esac
2280 case $ac_pass in
2281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 as_fn_append ac_configure_args1 " '$ac_arg'"
2284 if test $ac_must_keep_next = true; then
2285 ac_must_keep_next=false # Got value, back to normal.
2286 else
2287 case $ac_arg in
2288 *=* | --config-cache | -C | -disable-* | --disable-* \
2289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2291 | -with-* | --with-* | -without-* | --without-* | --x)
2292 case "$ac_configure_args0 " in
2293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2294 esac
2296 -* ) ac_must_keep_next=true ;;
2297 esac
2299 as_fn_append ac_configure_args " '$ac_arg'"
2301 esac
2302 done
2303 done
2304 { ac_configure_args0=; unset ac_configure_args0;}
2305 { ac_configure_args1=; unset ac_configure_args1;}
2307 # When interrupted or exit'd, cleanup temporary files, and complete
2308 # config.log. We remove comments because anyway the quotes in there
2309 # would cause problems or look ugly.
2310 # WARNING: Use '\'' to represent an apostrophe within the trap.
2311 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2312 trap 'exit_status=$?
2313 # Save into config.log some information that might help in debugging.
2315 echo
2317 $as_echo "## ---------------- ##
2318 ## Cache variables. ##
2319 ## ---------------- ##"
2320 echo
2321 # The following way of writing the cache mishandles newlines in values,
2323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in #(
2326 *${as_nl}*)
2327 case $ac_var in #(
2328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2329 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2330 esac
2331 case $ac_var in #(
2332 _ | IFS | as_nl) ;; #(
2333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2334 *) { eval $ac_var=; unset $ac_var;} ;;
2335 esac ;;
2336 esac
2337 done
2338 (set) 2>&1 |
2339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2340 *${as_nl}ac_space=\ *)
2341 sed -n \
2342 "s/'\''/'\''\\\\'\'''\''/g;
2343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2344 ;; #(
2346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348 esac |
2349 sort
2351 echo
2353 $as_echo "## ----------------- ##
2354 ## Output variables. ##
2355 ## ----------------- ##"
2356 echo
2357 for ac_var in $ac_subst_vars
2359 eval ac_val=\$$ac_var
2360 case $ac_val in
2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 esac
2363 $as_echo "$ac_var='\''$ac_val'\''"
2364 done | sort
2365 echo
2367 if test -n "$ac_subst_files"; then
2368 $as_echo "## ------------------- ##
2369 ## File substitutions. ##
2370 ## ------------------- ##"
2371 echo
2372 for ac_var in $ac_subst_files
2374 eval ac_val=\$$ac_var
2375 case $ac_val in
2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 esac
2378 $as_echo "$ac_var='\''$ac_val'\''"
2379 done | sort
2380 echo
2383 if test -s confdefs.h; then
2384 $as_echo "## ----------- ##
2385 ## confdefs.h. ##
2386 ## ----------- ##"
2387 echo
2388 cat confdefs.h
2389 echo
2391 test "$ac_signal" != 0 &&
2392 $as_echo "$as_me: caught signal $ac_signal"
2393 $as_echo "$as_me: exit $exit_status"
2394 } >&5
2395 rm -f core *.core core.conftest.* &&
2396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2397 exit $exit_status
2399 for ac_signal in 1 2 13 15; do
2400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 done
2402 ac_signal=0
2404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2405 rm -f -r conftest* confdefs.h
2407 $as_echo "/* confdefs.h */" > confdefs.h
2409 # Predefined preprocessor variables.
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_NAME "$PACKAGE_NAME"
2413 _ACEOF
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2417 _ACEOF
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2421 _ACEOF
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_STRING "$PACKAGE_STRING"
2425 _ACEOF
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2429 _ACEOF
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_URL "$PACKAGE_URL"
2433 _ACEOF
2436 # Let the site file select an alternate cache file if it wants to.
2437 # Prefer an explicitly selected file to automatically selected ones.
2438 ac_site_file1=NONE
2439 ac_site_file2=NONE
2440 if test -n "$CONFIG_SITE"; then
2441 # We do not want a PATH search for config.site.
2442 case $CONFIG_SITE in #((
2443 -*) ac_site_file1=./$CONFIG_SITE;;
2444 */*) ac_site_file1=$CONFIG_SITE;;
2445 *) ac_site_file1=./$CONFIG_SITE;;
2446 esac
2447 elif test "x$prefix" != xNONE; then
2448 ac_site_file1=$prefix/share/config.site
2449 ac_site_file2=$prefix/etc/config.site
2450 else
2451 ac_site_file1=$ac_default_prefix/share/config.site
2452 ac_site_file2=$ac_default_prefix/etc/config.site
2454 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 test "x$ac_site_file" = xNONE && continue
2457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2459 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2460 sed 's/^/| /' "$ac_site_file" >&5
2461 . "$ac_site_file" \
2462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464 as_fn_error $? "failed to load site script $ac_site_file
2465 See \`config.log' for more details" "$LINENO" 5; }
2467 done
2469 if test -r "$cache_file"; then
2470 # Some versions of bash will fail to source /dev/null (special files
2471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2486 # Check that the precious variables saved in the cache have kept the same
2487 # value.
2488 ac_cache_corrupted=false
2489 for ac_var in $ac_precious_vars; do
2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491 eval ac_new_set=\$ac_env_${ac_var}_set
2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493 eval ac_new_val=\$ac_env_${ac_var}_value
2494 case $ac_old_set,$ac_new_set in
2495 set,)
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2498 ac_cache_corrupted=: ;;
2499 ,set)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2502 ac_cache_corrupted=: ;;
2503 ,);;
2505 if test "x$ac_old_val" != "x$ac_new_val"; then
2506 # differences in whitespace do not lead to failure.
2507 ac_old_val_w=`echo x $ac_old_val`
2508 ac_new_val_w=`echo x $ac_new_val`
2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512 ac_cache_corrupted=:
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516 eval $ac_var=\$ac_old_val
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2519 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2521 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2522 fi;;
2523 esac
2524 # Pass precious variables to config.status.
2525 if test "$ac_new_set" = set; then
2526 case $ac_new_val in
2527 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 *) ac_arg=$ac_var=$ac_new_val ;;
2529 esac
2530 case " $ac_configure_args " in
2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533 esac
2535 done
2536 if $ac_cache_corrupted; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2541 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 ## -------------------- ##
2544 ## Main body of script. ##
2545 ## -------------------- ##
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 ac_config_headers="$ac_config_headers config.h"
2561 if test -n "${with_target_subdir}"; then
2562 # Default to --enable-multilib
2563 # Check whether --enable-multilib was given.
2564 if test "${enable_multilib+set}" = set; then :
2565 enableval=$enable_multilib; case "$enableval" in
2566 yes) multilib=yes ;;
2567 no) multilib=no ;;
2568 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2569 esac
2570 else
2571 multilib=yes
2575 # We may get other options which we leave undocumented:
2576 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2577 # See config-ml.in if you want the gory details.
2579 if test "$srcdir" = "."; then
2580 if test "$with_target_subdir" != "."; then
2581 multi_basedir="$srcdir/$with_multisrctop../.."
2582 else
2583 multi_basedir="$srcdir/$with_multisrctop.."
2585 else
2586 multi_basedir="$srcdir/.."
2590 # Even if the default multilib is not a cross compilation,
2591 # it may be that some of the other multilibs are.
2592 if test $cross_compiling = no && test $multilib = yes \
2593 && test "x${with_multisubdir}" != x ; then
2594 cross_compiling=maybe
2597 ac_config_commands="$ac_config_commands default-1"
2601 ac_aux_dir=
2602 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2603 if test -f "$ac_dir/install-sh"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/install-sh -c"
2606 break
2607 elif test -f "$ac_dir/install.sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install.sh -c"
2610 break
2611 elif test -f "$ac_dir/shtool"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/shtool install -c"
2614 break
2616 done
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630 # Make sure we can run config.sub.
2631 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635 $as_echo_n "checking build system type... " >&6; }
2636 if ${ac_cv_build+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 ac_build_alias=$build_alias
2640 test "x$ac_build_alias" = x &&
2641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642 test "x$ac_build_alias" = x &&
2643 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2644 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649 $as_echo "$ac_cv_build" >&6; }
2650 case $ac_cv_build in
2651 *-*-*) ;;
2652 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653 esac
2654 build=$ac_cv_build
2655 ac_save_IFS=$IFS; IFS='-'
2656 set x $ac_cv_build
2657 shift
2658 build_cpu=$1
2659 build_vendor=$2
2660 shift; shift
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2663 build_os=$*
2664 IFS=$ac_save_IFS
2665 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669 $as_echo_n "checking host system type... " >&6; }
2670 if ${ac_cv_host+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test "x$host_alias" = x; then
2674 ac_cv_host=$ac_cv_build
2675 else
2676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682 $as_echo "$ac_cv_host" >&6; }
2683 case $ac_cv_host in
2684 *-*-*) ;;
2685 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686 esac
2687 host=$ac_cv_host
2688 ac_save_IFS=$IFS; IFS='-'
2689 set x $ac_cv_host
2690 shift
2691 host_cpu=$1
2692 host_vendor=$2
2693 shift; shift
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2696 host_os=$*
2697 IFS=$ac_save_IFS
2698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2702 $as_echo_n "checking target system type... " >&6; }
2703 if ${ac_cv_target+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test "x$target_alias" = x; then
2707 ac_cv_target=$ac_cv_host
2708 else
2709 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2715 $as_echo "$ac_cv_target" >&6; }
2716 case $ac_cv_target in
2717 *-*-*) ;;
2718 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2719 esac
2720 target=$ac_cv_target
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_target
2723 shift
2724 target_cpu=$1
2725 target_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 target_os=$*
2730 IFS=$ac_save_IFS
2731 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2734 # The aliases save the names the user supplied, while $host etc.
2735 # will get canonicalized.
2736 test -n "$target_alias" &&
2737 test "$program_prefix$program_suffix$program_transform_name" = \
2738 NONENONEs,x,x, &&
2739 program_prefix=${target_alias}-
2741 target_alias=${target_alias-$host_alias}
2743 # Expand $ac_aux_dir to an absolute path.
2744 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$ac_cv_prog_CC"; then
2791 ac_ct_CC=$CC
2792 # Extract the first word of "gcc", so it can be a program name with args.
2793 set dummy gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_ac_ct_CC="gcc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822 $as_echo "$ac_ct_CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 CC=$ac_ct_CC
2839 else
2840 CC="$ac_cv_prog_CC"
2843 if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}cc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2868 IFS=$as_save_IFS
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 ac_prog_rejected=no
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected=yes
2905 continue
2907 ac_cv_prog_CC="cc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2913 IFS=$as_save_IFS
2915 if test $ac_prog_rejected = yes; then
2916 # We found a bogon in the path, so make sure we never use it.
2917 set dummy $ac_cv_prog_CC
2918 shift
2919 if test $# != 0; then
2920 # We chose a different compiler from the bogus one.
2921 # However, it has the same basename, so the bogon will be chosen
2922 # first if we set CC to just the basename; use the full file name.
2923 shift
2924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in cl.exe
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CC+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CC" && break
2982 done
2984 if test -z "$CC"; then
2985 ac_ct_CC=$CC
2986 for ac_prog in cl.exe
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016 if test -n "$ac_ct_CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018 $as_echo "$ac_ct_CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CC" && break
3026 done
3028 if test "x$ac_ct_CC" = x; then
3029 CC=""
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 CC=$ac_ct_CC
3044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "no acceptable C compiler found in \$PATH
3047 See \`config.log' for more details" "$LINENO" 5; }
3049 # Provide some information about the compiler.
3050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051 set X $ac_compile
3052 ac_compiler=$2
3053 for ac_option in --version -v -V -qversion; do
3054 { { ac_try="$ac_compiler $ac_option >&5"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062 ac_status=$?
3063 if test -s conftest.err; then
3064 sed '10a\
3065 ... rest of stderr output deleted ...
3066 10q' conftest.err >conftest.er1
3067 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }
3072 done
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3078 main ()
3082 return 0;
3084 _ACEOF
3085 ac_clean_files_save=$ac_clean_files
3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3087 # Try to create an executable without -o first, disregard a.out.
3088 # It will help us diagnose broken compilers, and finding out an intuition
3089 # of exeext.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3091 $as_echo_n "checking whether the C compiler works... " >&6; }
3092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094 # The possible output files:
3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097 ac_rmfiles=
3098 for ac_file in $ac_files
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103 esac
3104 done
3105 rm -f $ac_rmfiles
3107 if { { ac_try="$ac_link_default"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link_default") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3121 # so that the user can short-circuit this test for compilers unknown to
3122 # Autoconf.
3123 for ac_file in $ac_files ''
3125 test -f "$ac_file" || continue
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129 [ab].out )
3130 # We found the default executable, but exeext='' is most
3131 # certainly right.
3132 break;;
3133 *.* )
3134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135 then :; else
3136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 # We set ac_cv_exeext here because the later test for it is not
3139 # safe: cross compilers may not add the suffix if given an `-o'
3140 # argument, so we may need to know it at that point already.
3141 # Even if this section looks crufty: it has the advantage of
3142 # actually working.
3143 break;;
3145 break;;
3146 esac
3147 done
3148 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150 else
3151 ac_file=''
3153 if test -z "$ac_file"; then :
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error 77 "C compiler cannot create executables
3162 See \`config.log' for more details" "$LINENO" 5; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3168 $as_echo_n "checking for C compiler default output file name... " >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170 $as_echo "$ac_file" >&6; }
3171 ac_exeext=$ac_cv_exeext
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3174 ac_clean_files=$ac_clean_files_save
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 $as_echo_n "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3191 # `rm'.
3192 for ac_file in conftest.exe conftest conftest.*; do
3193 test -f "$ac_file" || continue
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 break;;
3198 * ) break;;
3199 esac
3200 done
3201 else
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details" "$LINENO" 5; }
3207 rm -f conftest conftest$ac_cv_exeext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209 $as_echo "$ac_cv_exeext" >&6; }
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3213 ac_exeext=$EXEEXT
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3216 #include <stdio.h>
3218 main ()
3220 FILE *f = fopen ("conftest.out", "w");
3221 return ferror (f) || fclose (f) != 0;
3224 return 0;
3226 _ACEOF
3227 ac_clean_files="$ac_clean_files conftest.out"
3228 # Check that the compiler produces executables we can run. If not, either
3229 # the compiler is broken, or we cross compile.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3231 $as_echo_n "checking whether we are cross compiling... " >&6; }
3232 if test "$cross_compiling" != yes; then
3233 { { ac_try="$ac_link"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }
3244 if { ac_try='./conftest$ac_cv_exeext'
3245 { { case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_try") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }; }; then
3255 cross_compiling=no
3256 else
3257 if test "$cross_compiling" = maybe; then
3258 cross_compiling=yes
3259 else
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot run C compiled programs.
3263 If you meant to cross compile, use \`--host'.
3264 See \`config.log' for more details" "$LINENO" 5; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3269 $as_echo "$cross_compiling" >&6; }
3271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3274 $as_echo_n "checking for suffix of object files... " >&6; }
3275 if ${ac_cv_objext+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 main ()
3286 return 0;
3288 _ACEOF
3289 rm -f conftest.o conftest.obj
3290 if { { ac_try="$ac_compile"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compile") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 for ac_file in conftest.o conftest.obj conftest.*; do
3302 test -f "$ac_file" || continue;
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 break;;
3307 esac
3308 done
3309 else
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3321 $as_echo "$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3323 ac_objext=$OBJEXT
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3326 if ${ac_cv_c_compiler_gnu+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3333 main ()
3335 #ifndef __GNUC__
3336 choke me
3337 #endif
3340 return 0;
3342 _ACEOF
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_compiler_gnu=yes
3345 else
3346 ac_compiler_gnu=no
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3353 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354 if test $ac_compiler_gnu = yes; then
3355 GCC=yes
3356 else
3357 GCC=
3359 ac_test_CFLAGS=${CFLAGS+set}
3360 ac_save_CFLAGS=$CFLAGS
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3363 if ${ac_cv_prog_cc_g+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 ac_save_c_werror_flag=$ac_c_werror_flag
3367 ac_c_werror_flag=yes
3368 ac_cv_prog_cc_g=no
3369 CFLAGS="-g"
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3374 main ()
3378 return 0;
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382 ac_cv_prog_cc_g=yes
3383 else
3384 CFLAGS=""
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3389 main ()
3393 return 0;
3395 _ACEOF
3396 if ac_fn_c_try_compile "$LINENO"; then :
3398 else
3399 ac_c_werror_flag=$ac_save_c_werror_flag
3400 CFLAGS="-g"
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_g=yes
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_c_werror_flag=$ac_save_c_werror_flag
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3423 $as_echo "$ac_cv_prog_cc_g" >&6; }
3424 if test "$ac_test_CFLAGS" = set; then
3425 CFLAGS=$ac_save_CFLAGS
3426 elif test $ac_cv_prog_cc_g = yes; then
3427 if test "$GCC" = yes; then
3428 CFLAGS="-g -O2"
3429 else
3430 CFLAGS="-g"
3432 else
3433 if test "$GCC" = yes; then
3434 CFLAGS="-O2"
3435 else
3436 CFLAGS=
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3441 if ${ac_cv_prog_cc_c89+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 ac_cv_prog_cc_c89=no
3445 ac_save_CC=$CC
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #include <stdarg.h>
3449 #include <stdio.h>
3450 struct stat;
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3455 char **p;
3456 int i;
3458 return p[i];
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3462 char *s;
3463 va_list v;
3464 va_start (v,p);
3465 s = g (p, va_arg (v,int));
3466 va_end (v);
3467 return s;
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3471 function prototypes and stuff, but not '\xHH' hex character constants.
3472 These don't provoke an error unfortunately, instead are silently treated
3473 as 'x'. The following induces an error, until -std is added to get
3474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3475 array size at least. It's necessary to write '\x00'==0 to get something
3476 that's true only with -std. */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480 inside strings and character constants. */
3481 #define FOO(x) 'x'
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 int argc;
3489 char **argv;
3491 main ()
3493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3495 return 0;
3497 _ACEOF
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_cv_prog_cc_c89=$ac_arg
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3517 xno)
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525 if test "x$ac_cv_prog_cc_c89" != xno; then :
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3541 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3542 if ${am_cv_prog_cc_c_o+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 # Make sure it works both with $CC and with simple cc.
3557 # Following AC_PROG_CC_C_O, we do the test twice because some
3558 # compilers refuse to overwrite an existing .o file with -o,
3559 # though they will create one.
3560 am_cv_prog_cc_c_o=yes
3561 for am_i in 1 2; do
3562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } \
3567 && test -f conftest2.$ac_objext; then
3568 : OK
3569 else
3570 am_cv_prog_cc_c_o=no
3571 break
3573 done
3574 rm -f core conftest*
3575 unset am_i
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3578 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3579 if test "$am_cv_prog_cc_c_o" != yes; then
3580 # Losing compiler, so override with the script.
3581 # FIXME: It is wrong to rewrite CC.
3582 # But if we don't then we get into trouble of one sort or another.
3583 # A longer-term fix would be to have automake use am__CC in this case,
3584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3585 CC="$am_aux_dir/compile $CC"
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3602 # On Suns, sometimes $CPP names a directory.
3603 if test -n "$CPP" && test -d "$CPP"; then
3604 CPP=
3606 if test -z "$CPP"; then
3607 if ${ac_cv_prog_CPP+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 # Double quotes because CPP needs to be expanded
3611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3613 ac_preproc_ok=false
3614 for ac_c_preproc_warn_flag in '' yes
3616 # Use a header file that comes with gcc, so configuring glibc
3617 # with a fresh cross-compiler works.
3618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 # <limits.h> exists even on freestanding compilers.
3620 # On the NeXT, cc -E runs the code through the compiler's parser,
3621 # not just through cpp. "Syntax error" is here to catch this case.
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #ifdef __STDC__
3625 # include <limits.h>
3626 #else
3627 # include <assert.h>
3628 #endif
3629 Syntax error
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3633 else
3634 # Broken: fails on valid input.
3635 continue
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3639 # OK, works on sane cases. Now check whether nonexistent headers
3640 # can be detected and how.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <ac_nonexistent.h>
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646 # Broken: success on invalid input.
3647 continue
3648 else
3649 # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3653 rm -f conftest.err conftest.i conftest.$ac_ext
3655 done
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.i conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3659 break
3662 done
3663 ac_cv_prog_CPP=$CPP
3666 CPP=$ac_cv_prog_CPP
3667 else
3668 ac_cv_prog_CPP=$CPP
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3671 $as_echo "$CPP" >&6; }
3672 ac_preproc_ok=false
3673 for ac_c_preproc_warn_flag in '' yes
3675 # Use a header file that comes with gcc, so configuring glibc
3676 # with a fresh cross-compiler works.
3677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678 # <limits.h> exists even on freestanding compilers.
3679 # On the NeXT, cc -E runs the code through the compiler's parser,
3680 # not just through cpp. "Syntax error" is here to catch this case.
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #ifdef __STDC__
3684 # include <limits.h>
3685 #else
3686 # include <assert.h>
3687 #endif
3688 Syntax error
3689 _ACEOF
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3692 else
3693 # Broken: fails on valid input.
3694 continue
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3698 # OK, works on sane cases. Now check whether nonexistent headers
3699 # can be detected and how.
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702 #include <ac_nonexistent.h>
3703 _ACEOF
3704 if ac_fn_c_try_cpp "$LINENO"; then :
3705 # Broken: success on invalid input.
3706 continue
3707 else
3708 # Passes both tests.
3709 ac_preproc_ok=:
3710 break
3712 rm -f conftest.err conftest.i conftest.$ac_ext
3714 done
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.i conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then :
3719 else
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details" "$LINENO" 5; }
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3735 if ${ac_cv_path_GREP+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -z "$GREP"; then
3739 ac_path_GREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in grep ggrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3749 as_fn_executable_p "$ac_path_GREP" || continue
3750 # Check for GNU ac_path_GREP and select it if it is found.
3751 # Check for GNU $ac_path_GREP
3752 case `"$ac_path_GREP" --version 2>&1` in
3753 *GNU*)
3754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3756 ac_count=0
3757 $as_echo_n 0123456789 >"conftest.in"
3758 while :
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 $as_echo 'GREP' >> "conftest.nl"
3764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 as_fn_arith $ac_count + 1 && ac_count=$as_val
3767 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_GREP="$ac_path_GREP"
3770 ac_path_GREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3778 $ac_path_GREP_found && break 3
3779 done
3780 done
3781 done
3782 IFS=$as_save_IFS
3783 if test -z "$ac_cv_path_GREP"; then
3784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3786 else
3787 ac_cv_path_GREP=$GREP
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3792 $as_echo "$ac_cv_path_GREP" >&6; }
3793 GREP="$ac_cv_path_GREP"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3797 $as_echo_n "checking for egrep... " >&6; }
3798 if ${ac_cv_path_EGREP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3802 then ac_cv_path_EGREP="$GREP -E"
3803 else
3804 if test -z "$EGREP"; then
3805 ac_path_EGREP_found=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in egrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3815 as_fn_executable_p "$ac_path_EGREP" || continue
3816 # Check for GNU ac_path_EGREP and select it if it is found.
3817 # Check for GNU $ac_path_EGREP
3818 case `"$ac_path_EGREP" --version 2>&1` in
3819 *GNU*)
3820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3822 ac_count=0
3823 $as_echo_n 0123456789 >"conftest.in"
3824 while :
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 $as_echo 'EGREP' >> "conftest.nl"
3830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 as_fn_arith $ac_count + 1 && ac_count=$as_val
3833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_EGREP="$ac_path_EGREP"
3836 ac_path_EGREP_max=$ac_count
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3840 done
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3844 $ac_path_EGREP_found && break 3
3845 done
3846 done
3847 done
3848 IFS=$as_save_IFS
3849 if test -z "$ac_cv_path_EGREP"; then
3850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3852 else
3853 ac_cv_path_EGREP=$EGREP
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3859 $as_echo "$ac_cv_path_EGREP" >&6; }
3860 EGREP="$ac_cv_path_EGREP"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3864 $as_echo_n "checking for ANSI C header files... " >&6; }
3865 if ${ac_cv_header_stdc+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #include <stdlib.h>
3871 #include <stdarg.h>
3872 #include <string.h>
3873 #include <float.h>
3876 main ()
3880 return 0;
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_header_stdc=yes
3885 else
3886 ac_cv_header_stdc=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 if test $ac_cv_header_stdc = yes; then
3891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894 #include <string.h>
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "memchr" >/dev/null 2>&1; then :
3900 else
3901 ac_cv_header_stdc=no
3903 rm -f conftest*
3907 if test $ac_cv_header_stdc = yes; then
3908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911 #include <stdlib.h>
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then :
3917 else
3918 ac_cv_header_stdc=no
3920 rm -f conftest*
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then :
3928 else
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #include <ctype.h>
3932 #include <stdlib.h>
3933 #if ((' ' & 0x0FF) == 0x020)
3934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 #else
3937 # define ISLOWER(c) \
3938 (('a' <= (c) && (c) <= 'i') \
3939 || ('j' <= (c) && (c) <= 'r') \
3940 || ('s' <= (c) && (c) <= 'z'))
3941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #endif
3944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 main ()
3948 int i;
3949 for (i = 0; i < 256; i++)
3950 if (XOR (islower (i), ISLOWER (i))
3951 || toupper (i) != TOUPPER (i))
3952 return 2;
3953 return 0;
3955 _ACEOF
3956 if ac_fn_c_try_run "$LINENO"; then :
3958 else
3959 ac_cv_header_stdc=no
3961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3962 conftest.$ac_objext conftest.beam conftest.$ac_ext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3968 $as_echo "$ac_cv_header_stdc" >&6; }
3969 if test $ac_cv_header_stdc = yes; then
3971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3978 do :
3979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3983 cat >>confdefs.h <<_ACEOF
3984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985 _ACEOF
3989 done
3993 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3994 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3995 MINIX=yes
3996 else
3997 MINIX=
4001 if test "$MINIX" = yes; then
4003 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4006 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4009 $as_echo "#define _MINIX 1" >>confdefs.h
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4015 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4016 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4022 # define __EXTENSIONS__ 1
4023 $ac_includes_default
4025 main ()
4029 return 0;
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_safe_to_define___extensions__=yes
4034 else
4035 ac_cv_safe_to_define___extensions__=no
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4040 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4041 test $ac_cv_safe_to_define___extensions__ = yes &&
4042 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4044 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4054 libtool_VERSION=1:0:0
4057 # 1.11.1: Require that version of automake.
4058 # foreign: Don't require README, INSTALL, NEWS, etc.
4059 # no-define: Don't define PACKAGE and VERSION.
4060 # no-dependencies: Don't generate automatic dependencies.
4061 # (because it breaks when using bootstrap-lean, since some of the
4062 # headers are gone at "make install" time).
4063 # -Wall: Issue all automake warnings.
4064 # -Wno-portability: Don't warn about constructs supported by GNU make.
4065 # (because GCC requires GNU make anyhow).
4066 am__api_version='1.15'
4068 # Find a good install program. We prefer a C program (faster),
4069 # so one script is as good as another. But avoid the broken or
4070 # incompatible versions:
4071 # SysV /etc/install, /usr/sbin/install
4072 # SunOS /usr/etc/install
4073 # IRIX /sbin/install
4074 # AIX /bin/install
4075 # AmigaOS /C/install, which installs bootblocks on floppy discs
4076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4079 # OS/2's system install, which has a completely different semantic
4080 # ./install, which can be erroneously created by make from ./install.sh.
4081 # Reject install programs that cannot install multiple files.
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4084 if test -z "$INSTALL"; then
4085 if ${ac_cv_path_install+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 # Account for people who put trailing slashes in PATH elements.
4094 case $as_dir/ in #((
4095 ./ | .// | /[cC]/* | \
4096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4098 /usr/ucb/* ) ;;
4100 # OSF1 and SCO ODT 3.0 have their own names for install.
4101 # Don't use installbsd from OSF since it installs stuff as root
4102 # by default.
4103 for ac_prog in ginstall scoinst install; do
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4106 if test $ac_prog = install &&
4107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4108 # AIX install. It has an incompatible calling convention.
4110 elif test $ac_prog = install &&
4111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4112 # program-specific install script used by HP pwplus--don't use.
4114 else
4115 rm -rf conftest.one conftest.two conftest.dir
4116 echo one > conftest.one
4117 echo two > conftest.two
4118 mkdir conftest.dir
4119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4120 test -s conftest.one && test -s conftest.two &&
4121 test -s conftest.dir/conftest.one &&
4122 test -s conftest.dir/conftest.two
4123 then
4124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4125 break 3
4129 done
4130 done
4132 esac
4134 done
4135 IFS=$as_save_IFS
4137 rm -rf conftest.one conftest.two conftest.dir
4140 if test "${ac_cv_path_install+set}" = set; then
4141 INSTALL=$ac_cv_path_install
4142 else
4143 # As a last resort, use the slow shell script. Don't cache a
4144 # value for INSTALL within a source directory, because that will
4145 # break other packages using the cache if that directory is
4146 # removed, or if the value is a relative name.
4147 INSTALL=$ac_install_sh
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4151 $as_echo "$INSTALL" >&6; }
4153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4154 # It thinks the first close brace ends the variable substitution.
4155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4162 $as_echo_n "checking whether build environment is sane... " >&6; }
4163 # Reject unsafe characters in $srcdir or the absolute working directory
4164 # name. Accept space and tab only in the latter.
4165 am_lf='
4167 case `pwd` in
4168 *[\\\"\#\$\&\'\`$am_lf]*)
4169 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4170 esac
4171 case $srcdir in
4172 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4173 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4174 esac
4176 # Do 'set' in a subshell so we don't clobber the current shell's
4177 # arguments. Must try -L first in case configure is actually a
4178 # symlink; some systems play weird games with the mod time of symlinks
4179 # (eg FreeBSD returns the mod time of the symlink's containing
4180 # directory).
4181 if (
4182 am_has_slept=no
4183 for am_try in 1 2; do
4184 echo "timestamp, slept: $am_has_slept" > conftest.file
4185 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4186 if test "$*" = "X"; then
4187 # -L didn't work.
4188 set X `ls -t "$srcdir/configure" conftest.file`
4190 if test "$*" != "X $srcdir/configure conftest.file" \
4191 && test "$*" != "X conftest.file $srcdir/configure"; then
4193 # If neither matched, then we have a broken ls. This can happen
4194 # if, for instance, CONFIG_SHELL is bash and it inherits a
4195 # broken ls alias from the environment. This has actually
4196 # happened. Such a system could not be considered "sane".
4197 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4198 alias in your environment" "$LINENO" 5
4200 if test "$2" = conftest.file || test $am_try -eq 2; then
4201 break
4203 # Just in case.
4204 sleep 1
4205 am_has_slept=yes
4206 done
4207 test "$2" = conftest.file
4209 then
4210 # Ok.
4212 else
4213 as_fn_error $? "newly created file is older than distributed files!
4214 Check your system clock" "$LINENO" 5
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4217 $as_echo "yes" >&6; }
4218 # If we didn't sleep, we still need to ensure time stamps of config.status and
4219 # generated files are strictly newer.
4220 am_sleep_pid=
4221 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4222 ( sleep 1 ) &
4223 am_sleep_pid=$!
4226 rm -f conftest.file
4228 test "$program_prefix" != NONE &&
4229 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4230 # Use a double $ so make ignores it.
4231 test "$program_suffix" != NONE &&
4232 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4233 # Double any \ or $.
4234 # By default was `s,x,x', remove it if useless.
4235 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4236 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4238 if test x"${MISSING+set}" != xset; then
4239 case $am_aux_dir in
4240 *\ * | *\ *)
4241 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4243 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4244 esac
4246 # Use eval to expand $SHELL
4247 if eval "$MISSING --is-lightweight"; then
4248 am_missing_run="$MISSING "
4249 else
4250 am_missing_run=
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4252 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4255 if test x"${install_sh+set}" != xset; then
4256 case $am_aux_dir in
4257 *\ * | *\ *)
4258 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4260 install_sh="\${SHELL} $am_aux_dir/install-sh"
4261 esac
4264 # Installed binaries are usually stripped using 'strip' when the user
4265 # run "make install-strip". However 'strip' might not be the right
4266 # tool to use in cross-compilation environments, therefore Automake
4267 # will honor the 'STRIP' environment variable to overrule this program.
4268 if test "$cross_compiling" != no; then
4269 if test -n "$ac_tool_prefix"; then
4270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4271 set dummy ${ac_tool_prefix}strip; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_STRIP+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$STRIP"; then
4278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 STRIP=$ac_cv_prog_STRIP
4298 if test -n "$STRIP"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4300 $as_echo "$STRIP" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4308 if test -z "$ac_cv_prog_STRIP"; then
4309 ac_ct_STRIP=$STRIP
4310 # Extract the first word of "strip", so it can be a program name with args.
4311 set dummy strip; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$ac_ct_STRIP"; then
4318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_STRIP="strip"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4338 if test -n "$ac_ct_STRIP"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4340 $as_echo "$ac_ct_STRIP" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4346 if test "x$ac_ct_STRIP" = x; then
4347 STRIP=":"
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 STRIP=$ac_ct_STRIP
4357 else
4358 STRIP="$ac_cv_prog_STRIP"
4362 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4365 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4366 if test -z "$MKDIR_P"; then
4367 if ${ac_cv_path_mkdir+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in mkdir gmkdir; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4378 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4379 'mkdir (GNU coreutils) '* | \
4380 'mkdir (coreutils) '* | \
4381 'mkdir (fileutils) '4.1*)
4382 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4383 break 3;;
4384 esac
4385 done
4386 done
4387 done
4388 IFS=$as_save_IFS
4392 test -d ./--version && rmdir ./--version
4393 if test "${ac_cv_path_mkdir+set}" = set; then
4394 MKDIR_P="$ac_cv_path_mkdir -p"
4395 else
4396 # As a last resort, use the slow shell script. Don't cache a
4397 # value for MKDIR_P within a source directory, because that will
4398 # break other packages using the cache if that directory is
4399 # removed, or if the value is a relative name.
4400 MKDIR_P="$ac_install_sh -d"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4404 $as_echo "$MKDIR_P" >&6; }
4406 for ac_prog in gawk mawk nawk awk
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_AWK+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$AWK"; then
4416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_AWK="$ac_prog"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 AWK=$ac_cv_prog_AWK
4436 if test -n "$AWK"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4438 $as_echo "$AWK" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4445 test -n "$AWK" && break
4446 done
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4449 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4450 set x ${MAKE-make}
4451 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4452 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 cat >conftest.make <<\_ACEOF
4456 SHELL = /bin/sh
4457 all:
4458 @echo '@@@%%%=$(MAKE)=@@@%%%'
4459 _ACEOF
4460 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4461 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4462 *@@@%%%=?*=@@@%%%*)
4463 eval ac_cv_prog_make_${ac_make}_set=yes;;
4465 eval ac_cv_prog_make_${ac_make}_set=no;;
4466 esac
4467 rm -f conftest.make
4469 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 SET_MAKE=
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 SET_MAKE="MAKE=${MAKE-make}"
4479 rm -rf .tst 2>/dev/null
4480 mkdir .tst 2>/dev/null
4481 if test -d .tst; then
4482 am__leading_dot=.
4483 else
4484 am__leading_dot=_
4486 rmdir .tst 2>/dev/null
4488 # Check whether --enable-silent-rules was given.
4489 if test "${enable_silent_rules+set}" = set; then :
4490 enableval=$enable_silent_rules;
4493 case $enable_silent_rules in # (((
4494 yes) AM_DEFAULT_VERBOSITY=0;;
4495 no) AM_DEFAULT_VERBOSITY=1;;
4496 *) AM_DEFAULT_VERBOSITY=1;;
4497 esac
4498 am_make=${MAKE-make}
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4500 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4501 if ${am_cv_make_support_nested_variables+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if $as_echo 'TRUE=$(BAR$(V))
4505 BAR0=false
4506 BAR1=true
4508 am__doit:
4509 @$(TRUE)
4510 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4511 am_cv_make_support_nested_variables=yes
4512 else
4513 am_cv_make_support_nested_variables=no
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4517 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4518 if test $am_cv_make_support_nested_variables = yes; then
4519 AM_V='$(V)'
4520 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4521 else
4522 AM_V=$AM_DEFAULT_VERBOSITY
4523 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4525 AM_BACKSLASH='\'
4527 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4528 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4529 # is not polluted with repeated "-I."
4530 am__isrc=' -I$(srcdir)'
4531 # test to see if srcdir already configured
4532 if test -f $srcdir/config.status; then
4533 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4537 # test whether we have cygpath
4538 if test -z "$CYGPATH_W"; then
4539 if (cygpath --version) >/dev/null 2>/dev/null; then
4540 CYGPATH_W='cygpath -w'
4541 else
4542 CYGPATH_W=echo
4547 # Define the identity of the package.
4548 PACKAGE='libbacktrace'
4549 VERSION='version-unused'
4552 # Some tools Automake needs.
4554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4568 # For better backward compatibility. To be removed once Automake 1.9.x
4569 # dies out for good. For more background, see:
4570 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4571 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4572 mkdir_p='$(MKDIR_P)'
4574 # We need awk for the "check" target (and possibly the TAP driver). The
4575 # system "awk" is bad on some platforms.
4576 # Always define AMTAR for backward compatibility. Yes, it's still used
4577 # in the wild :-( We should find a proper way to deprecate it ...
4578 AMTAR='$${TAR-tar}'
4581 # We'll loop over all known methods to create a tar archive until one works.
4582 _am_tools='gnutar pax cpio none'
4584 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4591 # POSIX will say in a future version that running "rm -f" with no argument
4592 # is OK; and we want to be able to make that assumption in our Makefile
4593 # recipes. So use an aggressive probe to check that the usage we want is
4594 # actually supported "in the wild" to an acceptable degree.
4595 # See automake bug#10828.
4596 # To make any issue more visible, cause the running configure to be aborted
4597 # by default if the 'rm' program in use doesn't match our expectations; the
4598 # user can still override this though.
4599 if rm -f && rm -fr && rm -rf; then : OK; else
4600 cat >&2 <<'END'
4601 Oops!
4603 Your 'rm' program seems unable to run without file operands specified
4604 on the command line, even when the '-f' option is present. This is contrary
4605 to the behaviour of most rm programs out there, and not conforming with
4606 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4608 Please tell bug-automake@gnu.org about your system, including the value
4609 of your $PATH and any error possibly output before this message. This
4610 can help us improve future automake versions.
4613 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4614 echo 'Configuration will proceed anyway, since you have set the' >&2
4615 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4616 echo >&2
4617 else
4618 cat >&2 <<'END'
4619 Aborting the configuration process, to ensure you take notice of the issue.
4621 You can download and install GNU coreutils to get an 'rm' implementation
4622 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4624 If you want to complete the configuration process using your problematic
4625 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4626 to "yes", and re-run configure.
4629 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4636 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4637 # Check whether --enable-maintainer-mode was given.
4638 if test "${enable_maintainer_mode+set}" = set; then :
4639 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4640 else
4641 USE_MAINTAINER_MODE=no
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4645 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4646 if test $USE_MAINTAINER_MODE = yes; then
4647 MAINTAINER_MODE_TRUE=
4648 MAINTAINER_MODE_FALSE='#'
4649 else
4650 MAINTAINER_MODE_TRUE='#'
4651 MAINTAINER_MODE_FALSE=
4654 MAINT=$MAINTAINER_MODE_TRUE
4659 # Check whether --with-target-subdir was given.
4660 if test "${with_target_subdir+set}" = set; then :
4661 withval=$with_target_subdir;
4665 # We must force CC to /not/ be precious variables; otherwise
4666 # the wrong, non-multilib-adjusted value will be used in multilibs.
4667 # As a side effect, we have to subst CFLAGS ourselves.
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4706 $as_echo "$CC" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4714 if test -z "$ac_cv_prog_CC"; then
4715 ac_ct_CC=$CC
4716 # Extract the first word of "gcc", so it can be a program name with args.
4717 set dummy gcc; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_CC"; then
4724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_CC="gcc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4752 if test "x$ac_ct_CC" = x; then
4753 CC=""
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761 CC=$ac_ct_CC
4763 else
4764 CC="$ac_cv_prog_CC"
4767 if test -z "$CC"; then
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}cc; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_CC+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_CC="${ac_tool_prefix}cc"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4808 if test -z "$CC"; then
4809 # Extract the first word of "cc", so it can be a program name with args.
4810 set dummy cc; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_CC+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$CC"; then
4817 ac_cv_prog_CC="$CC" # Let the user override the test.
4818 else
4819 ac_prog_rejected=no
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4828 ac_prog_rejected=yes
4829 continue
4831 ac_cv_prog_CC="cc"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4839 if test $ac_prog_rejected = yes; then
4840 # We found a bogon in the path, so make sure we never use it.
4841 set dummy $ac_cv_prog_CC
4842 shift
4843 if test $# != 0; then
4844 # We chose a different compiler from the bogus one.
4845 # However, it has the same basename, so the bogon will be chosen
4846 # first if we set CC to just the basename; use the full file name.
4847 shift
4848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4853 CC=$ac_cv_prog_CC
4854 if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$CC"; then
4865 if test -n "$ac_tool_prefix"; then
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_CC+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC="$CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 $as_echo "$CC" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 test -n "$CC" && break
4906 done
4908 if test -z "$CC"; then
4909 ac_ct_CC=$CC
4910 for ac_prog in cl.exe
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$ac_ct_CC"; then
4920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_ac_ct_CC="$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4940 if test -n "$ac_ct_CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4942 $as_echo "$ac_ct_CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 test -n "$ac_ct_CC" && break
4950 done
4952 if test "x$ac_ct_CC" = x; then
4953 CC=""
4954 else
4955 case $cross_compiling:$ac_tool_warned in
4956 yes:)
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned=yes ;;
4960 esac
4961 CC=$ac_ct_CC
4968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error $? "no acceptable C compiler found in \$PATH
4971 See \`config.log' for more details" "$LINENO" 5; }
4973 # Provide some information about the compiler.
4974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4975 set X $ac_compile
4976 ac_compiler=$2
4977 for ac_option in --version -v -V -qversion; do
4978 { { ac_try="$ac_compiler $ac_option >&5"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4986 ac_status=$?
4987 if test -s conftest.err; then
4988 sed '10a\
4989 ... rest of stderr output deleted ...
4990 10q' conftest.err >conftest.er1
4991 cat conftest.er1 >&5
4993 rm -f conftest.er1 conftest.err
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }
4996 done
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5000 if ${ac_cv_c_compiler_gnu+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5009 #ifndef __GNUC__
5010 choke me
5011 #endif
5014 return 0;
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_compiler_gnu=yes
5019 else
5020 ac_compiler_gnu=no
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5029 GCC=yes
5030 else
5031 GCC=
5033 ac_test_CFLAGS=${CFLAGS+set}
5034 ac_save_CFLAGS=$CFLAGS
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5037 if ${ac_cv_prog_cc_g+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_save_c_werror_flag=$ac_c_werror_flag
5041 ac_c_werror_flag=yes
5042 ac_cv_prog_cc_g=no
5043 CFLAGS="-g"
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5048 main ()
5052 return 0;
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_cv_prog_cc_g=yes
5057 else
5058 CFLAGS=""
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5072 else
5073 ac_c_werror_flag=$ac_save_c_werror_flag
5074 CFLAGS="-g"
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5079 main ()
5083 return 0;
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_cv_prog_cc_g=yes
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_c_werror_flag=$ac_save_c_werror_flag
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5097 $as_echo "$ac_cv_prog_cc_g" >&6; }
5098 if test "$ac_test_CFLAGS" = set; then
5099 CFLAGS=$ac_save_CFLAGS
5100 elif test $ac_cv_prog_cc_g = yes; then
5101 if test "$GCC" = yes; then
5102 CFLAGS="-g -O2"
5103 else
5104 CFLAGS="-g"
5106 else
5107 if test "$GCC" = yes; then
5108 CFLAGS="-O2"
5109 else
5110 CFLAGS=
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5115 if ${ac_cv_prog_cc_c89+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 ac_cv_prog_cc_c89=no
5119 ac_save_CC=$CC
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdarg.h>
5123 #include <stdio.h>
5124 struct stat;
5125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5126 struct buf { int x; };
5127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5128 static char *e (p, i)
5129 char **p;
5130 int i;
5132 return p[i];
5134 static char *f (char * (*g) (char **, int), char **p, ...)
5136 char *s;
5137 va_list v;
5138 va_start (v,p);
5139 s = g (p, va_arg (v,int));
5140 va_end (v);
5141 return s;
5144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5145 function prototypes and stuff, but not '\xHH' hex character constants.
5146 These don't provoke an error unfortunately, instead are silently treated
5147 as 'x'. The following induces an error, until -std is added to get
5148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5149 array size at least. It's necessary to write '\x00'==0 to get something
5150 that's true only with -std. */
5151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5154 inside strings and character constants. */
5155 #define FOO(x) 'x'
5156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5158 int test (int i, double x);
5159 struct s1 {int (*f) (int a);};
5160 struct s2 {int (*f) (double a);};
5161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 int argc;
5163 char **argv;
5165 main ()
5167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5169 return 0;
5171 _ACEOF
5172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5175 CC="$ac_save_CC $ac_arg"
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_prog_cc_c89=$ac_arg
5179 rm -f core conftest.err conftest.$ac_objext
5180 test "x$ac_cv_prog_cc_c89" != "xno" && break
5181 done
5182 rm -f conftest.$ac_ext
5183 CC=$ac_save_CC
5186 # AC_CACHE_VAL
5187 case "x$ac_cv_prog_cc_c89" in
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5190 $as_echo "none needed" >&6; } ;;
5191 xno)
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5193 $as_echo "unsupported" >&6; } ;;
5195 CC="$CC $ac_cv_prog_cc_c89"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5198 esac
5199 if test "x$ac_cv_prog_cc_c89" != xno; then :
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5215 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5216 if ${am_cv_prog_cc_c_o+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5223 main ()
5227 return 0;
5229 _ACEOF
5230 # Make sure it works both with $CC and with simple cc.
5231 # Following AC_PROG_CC_C_O, we do the test twice because some
5232 # compilers refuse to overwrite an existing .o file with -o,
5233 # though they will create one.
5234 am_cv_prog_cc_c_o=yes
5235 for am_i in 1 2; do
5236 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5237 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } \
5241 && test -f conftest2.$ac_objext; then
5242 : OK
5243 else
5244 am_cv_prog_cc_c_o=no
5245 break
5247 done
5248 rm -f core conftest*
5249 unset am_i
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5252 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5253 if test "$am_cv_prog_cc_c_o" != yes; then
5254 # Losing compiler, so override with the script.
5255 # FIXME: It is wrong to rewrite CC.
5256 # But if we don't then we get into trouble of one sort or another.
5257 # A longer-term fix would be to have automake use am__CC in this case,
5258 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5259 CC="$am_aux_dir/compile $CC"
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_RANLIB+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$RANLIB"; then
5281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 RANLIB=$ac_cv_prog_RANLIB
5301 if test -n "$RANLIB"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5303 $as_echo "$RANLIB" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test -z "$ac_cv_prog_RANLIB"; then
5312 ac_ct_RANLIB=$RANLIB
5313 # Extract the first word of "ranlib", so it can be a program name with args.
5314 set dummy ranlib; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$ac_ct_RANLIB"; then
5321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_RANLIB="ranlib"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5341 if test -n "$ac_ct_RANLIB"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5343 $as_echo "$ac_ct_RANLIB" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_RANLIB" = x; then
5350 RANLIB=":"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 RANLIB=$ac_ct_RANLIB
5360 else
5361 RANLIB="$ac_cv_prog_RANLIB"
5365 for ac_prog in gawk mawk nawk awk
5367 # Extract the first word of "$ac_prog", so it can be a program name with args.
5368 set dummy $ac_prog; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_AWK+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$AWK"; then
5375 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_AWK="$ac_prog"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 AWK=$ac_cv_prog_AWK
5395 if test -n "$AWK"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5397 $as_echo "$AWK" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 test -n "$AWK" && break
5405 done
5407 case "$AWK" in
5408 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5409 esac
5411 # Extract the first word of "dwz", so it can be a program name with args.
5412 set dummy dwz; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_DWZ+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$DWZ"; then
5419 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_prog_DWZ="dwz"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5432 done
5433 done
5434 IFS=$as_save_IFS
5438 DWZ=$ac_cv_prog_DWZ
5439 if test -n "$DWZ"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5441 $as_echo "$DWZ" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5448 if test "$DWZ" != ""; then
5449 HAVE_DWZ_TRUE=
5450 HAVE_DWZ_FALSE='#'
5451 else
5452 HAVE_DWZ_TRUE='#'
5453 HAVE_DWZ_FALSE=
5457 case `pwd` in
5458 *\ * | *\ *)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5460 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5461 esac
5465 macro_version='2.2.7a'
5466 macro_revision='1.3134'
5480 ltmain="$ac_aux_dir/ltmain.sh"
5482 # Backslashify metacharacters that are still active within
5483 # double-quoted strings.
5484 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5486 # Same as above, but do not quote variable references.
5487 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5489 # Sed substitution to delay expansion of an escaped shell variable in a
5490 # double_quote_subst'ed string.
5491 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5493 # Sed substitution to delay expansion of an escaped single quote.
5494 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5496 # Sed substitution to avoid accidental globbing in evaled expressions
5497 no_glob_subst='s/\*/\\\*/g'
5499 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5500 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5504 $as_echo_n "checking how to print strings... " >&6; }
5505 # Test print first, because it will be a builtin if present.
5506 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5507 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5508 ECHO='print -r --'
5509 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5510 ECHO='printf %s\n'
5511 else
5512 # Use this function as a fallback that always works.
5513 func_fallback_echo ()
5515 eval 'cat <<_LTECHO_EOF
5517 _LTECHO_EOF'
5519 ECHO='func_fallback_echo'
5522 # func_echo_all arg...
5523 # Invoke $ECHO with all args, space-separated.
5524 func_echo_all ()
5526 $ECHO ""
5529 case "$ECHO" in
5530 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5531 $as_echo "printf" >&6; } ;;
5532 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5533 $as_echo "print -r" >&6; } ;;
5534 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5535 $as_echo "cat" >&6; } ;;
5536 esac
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5552 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5553 if ${ac_cv_path_SED+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5557 for ac_i in 1 2 3 4 5 6 7; do
5558 ac_script="$ac_script$as_nl$ac_script"
5559 done
5560 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5561 { ac_script=; unset ac_script;}
5562 if test -z "$SED"; then
5563 ac_path_SED_found=false
5564 # Loop through the user's path and test for each of PROGNAME-LIST
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_prog in sed gsed; do
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5573 as_fn_executable_p "$ac_path_SED" || continue
5574 # Check for GNU ac_path_SED and select it if it is found.
5575 # Check for GNU $ac_path_SED
5576 case `"$ac_path_SED" --version 2>&1` in
5577 *GNU*)
5578 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5580 ac_count=0
5581 $as_echo_n 0123456789 >"conftest.in"
5582 while :
5584 cat "conftest.in" "conftest.in" >"conftest.tmp"
5585 mv "conftest.tmp" "conftest.in"
5586 cp "conftest.in" "conftest.nl"
5587 $as_echo '' >> "conftest.nl"
5588 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590 as_fn_arith $ac_count + 1 && ac_count=$as_val
5591 if test $ac_count -gt ${ac_path_SED_max-0}; then
5592 # Best one so far, save it but keep looking for a better one
5593 ac_cv_path_SED="$ac_path_SED"
5594 ac_path_SED_max=$ac_count
5596 # 10*(2^10) chars as input seems more than enough
5597 test $ac_count -gt 10 && break
5598 done
5599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600 esac
5602 $ac_path_SED_found && break 3
5603 done
5604 done
5605 done
5606 IFS=$as_save_IFS
5607 if test -z "$ac_cv_path_SED"; then
5608 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5610 else
5611 ac_cv_path_SED=$SED
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5616 $as_echo "$ac_cv_path_SED" >&6; }
5617 SED="$ac_cv_path_SED"
5618 rm -f conftest.sed
5620 test -z "$SED" && SED=sed
5621 Xsed="$SED -e 1s/^X//"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5634 $as_echo_n "checking for fgrep... " >&6; }
5635 if ${ac_cv_path_FGREP+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5639 then ac_cv_path_FGREP="$GREP -F"
5640 else
5641 if test -z "$FGREP"; then
5642 ac_path_FGREP_found=false
5643 # Loop through the user's path and test for each of PROGNAME-LIST
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_prog in fgrep; do
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5652 as_fn_executable_p "$ac_path_FGREP" || continue
5653 # Check for GNU ac_path_FGREP and select it if it is found.
5654 # Check for GNU $ac_path_FGREP
5655 case `"$ac_path_FGREP" --version 2>&1` in
5656 *GNU*)
5657 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5659 ac_count=0
5660 $as_echo_n 0123456789 >"conftest.in"
5661 while :
5663 cat "conftest.in" "conftest.in" >"conftest.tmp"
5664 mv "conftest.tmp" "conftest.in"
5665 cp "conftest.in" "conftest.nl"
5666 $as_echo 'FGREP' >> "conftest.nl"
5667 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5669 as_fn_arith $ac_count + 1 && ac_count=$as_val
5670 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5671 # Best one so far, save it but keep looking for a better one
5672 ac_cv_path_FGREP="$ac_path_FGREP"
5673 ac_path_FGREP_max=$ac_count
5675 # 10*(2^10) chars as input seems more than enough
5676 test $ac_count -gt 10 && break
5677 done
5678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 esac
5681 $ac_path_FGREP_found && break 3
5682 done
5683 done
5684 done
5685 IFS=$as_save_IFS
5686 if test -z "$ac_cv_path_FGREP"; then
5687 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5689 else
5690 ac_cv_path_FGREP=$FGREP
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5696 $as_echo "$ac_cv_path_FGREP" >&6; }
5697 FGREP="$ac_cv_path_FGREP"
5700 test -z "$GREP" && GREP=grep
5720 # Check whether --with-gnu-ld was given.
5721 if test "${with_gnu_ld+set}" = set; then :
5722 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5723 else
5724 with_gnu_ld=no
5727 ac_prog=ld
5728 if test "$GCC" = yes; then
5729 # Check if gcc -print-prog-name=ld gives a path.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5731 $as_echo_n "checking for ld used by $CC... " >&6; }
5732 case $host in
5733 *-*-mingw*)
5734 # gcc leaves a trailing carriage return which upsets mingw
5735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5738 esac
5739 case $ac_prog in
5740 # Accept absolute paths.
5741 [\\/]* | ?:[\\/]*)
5742 re_direlt='/[^/][^/]*/\.\./'
5743 # Canonicalize the pathname of ld
5744 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5745 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5746 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5747 done
5748 test -z "$LD" && LD="$ac_prog"
5751 # If it fails, then pretend we aren't using GCC.
5752 ac_prog=ld
5755 # If it is relative, then search for the first ld in PATH.
5756 with_gnu_ld=unknown
5758 esac
5759 elif test "$with_gnu_ld" = yes; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5761 $as_echo_n "checking for GNU ld... " >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5764 $as_echo_n "checking for non-GNU ld... " >&6; }
5766 if ${lt_cv_path_LD+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -z "$LD"; then
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH; do
5772 IFS="$lt_save_ifs"
5773 test -z "$ac_dir" && ac_dir=.
5774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5775 lt_cv_path_LD="$ac_dir/$ac_prog"
5776 # Check to see if the program is GNU ld. I'd rather use --version,
5777 # but apparently some variants of GNU ld only accept -v.
5778 # Break only if it was the GNU/non-GNU ld that we prefer.
5779 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5780 *GNU* | *'with BFD'*)
5781 test "$with_gnu_ld" != no && break
5784 test "$with_gnu_ld" != yes && break
5786 esac
5788 done
5789 IFS="$lt_save_ifs"
5790 else
5791 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5795 LD="$lt_cv_path_LD"
5796 if test -n "$LD"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5798 $as_echo "$LD" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5803 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5805 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5806 if ${lt_cv_prog_gnu_ld+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5810 case `$LD -v 2>&1 </dev/null` in
5811 *GNU* | *'with BFD'*)
5812 lt_cv_prog_gnu_ld=yes
5815 lt_cv_prog_gnu_ld=no
5817 esac
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5820 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5821 with_gnu_ld=$lt_cv_prog_gnu_ld
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5832 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5833 if ${lt_cv_path_NM+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -n "$NM"; then
5837 # Let the user override the nm to test.
5838 lt_nm_to_check="$NM"
5839 else
5840 lt_nm_to_check="${ac_tool_prefix}nm"
5841 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5842 lt_nm_to_check="$lt_nm_to_check nm"
5845 for lt_tmp_nm in "$lt_nm_to_check"; do
5846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5847 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5848 IFS="$lt_save_ifs"
5849 test -z "$ac_dir" && ac_dir=.
5850 # Strip out any user-provided options from the nm to test twice,
5851 # the first time to test to see if nm (rather than its options) has
5852 # an explicit path, the second time to yield a file which can be
5853 # nm'ed itself.
5854 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5855 case "$tmp_nm_path" in
5856 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5857 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5858 esac
5859 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5860 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5861 # Check to see if the nm accepts a BSD-compat flag.
5862 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5863 # nm: unknown option "B" ignored
5864 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5865 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5866 break
5869 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5870 *$tmp_nm*)
5871 lt_cv_path_NM="$tmp_nm -p"
5872 break
5875 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5876 continue # so that we can try to find one that supports BSD flags
5878 esac
5880 esac
5882 done
5883 IFS="$lt_save_ifs"
5884 done
5885 : ${lt_cv_path_NM=no}
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5888 $as_echo "$lt_cv_path_NM" >&6; }
5889 if test "$lt_cv_path_NM" != "no"; then
5890 NM="$lt_cv_path_NM"
5891 else
5892 # Didn't find any BSD compatible name lister, look for dumpbin.
5893 if test -n "$DUMPBIN"; then :
5894 # Let the user override the test.
5895 else
5896 if test -n "$ac_tool_prefix"; then
5897 for ac_prog in dumpbin "link -dump"
5899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_DUMPBIN+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$DUMPBIN"; then
5907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5922 IFS=$as_save_IFS
5926 DUMPBIN=$ac_cv_prog_DUMPBIN
5927 if test -n "$DUMPBIN"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5929 $as_echo "$DUMPBIN" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5936 test -n "$DUMPBIN" && break
5937 done
5939 if test -z "$DUMPBIN"; then
5940 ac_ct_DUMPBIN=$DUMPBIN
5941 for ac_prog in dumpbin "link -dump"
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$ac_ct_DUMPBIN"; then
5951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971 if test -n "$ac_ct_DUMPBIN"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5973 $as_echo "$ac_ct_DUMPBIN" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5980 test -n "$ac_ct_DUMPBIN" && break
5981 done
5983 if test "x$ac_ct_DUMPBIN" = x; then
5984 DUMPBIN=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 DUMPBIN=$ac_ct_DUMPBIN
5996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5997 *COFF*)
5998 DUMPBIN="$DUMPBIN -symbols"
6001 DUMPBIN=:
6003 esac
6006 if test "$DUMPBIN" != ":"; then
6007 NM="$DUMPBIN"
6010 test -z "$NM" && NM=nm
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6018 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6019 if ${lt_cv_nm_interface+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 lt_cv_nm_interface="BSD nm"
6023 echo "int some_variable = 0;" > conftest.$ac_ext
6024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6025 (eval "$ac_compile" 2>conftest.err)
6026 cat conftest.err >&5
6027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029 cat conftest.err >&5
6030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6031 cat conftest.out >&5
6032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033 lt_cv_nm_interface="MS dumpbin"
6035 rm -f conftest*
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6038 $as_echo "$lt_cv_nm_interface" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6041 $as_echo_n "checking whether ln -s works... " >&6; }
6042 LN_S=$as_ln_s
6043 if test "$LN_S" = "ln -s"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045 $as_echo "yes" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6048 $as_echo "no, using $LN_S" >&6; }
6051 # find the maximum length of command line arguments
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6053 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6054 if ${lt_cv_sys_max_cmd_len+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6058 teststring="ABCD"
6060 case $build_os in
6061 msdosdjgpp*)
6062 # On DJGPP, this test can blow up pretty badly due to problems in libc
6063 # (any single argument exceeding 2000 bytes causes a buffer overrun
6064 # during glob expansion). Even if it were fixed, the result of this
6065 # check would be larger than it should be.
6066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6069 gnu*)
6070 # Under GNU Hurd, this test is not required because there is
6071 # no limit to the length of command line arguments.
6072 # Libtool will interpret -1 as no limit whatsoever
6073 lt_cv_sys_max_cmd_len=-1;
6076 cygwin* | mingw* | cegcc*)
6077 # On Win9x/ME, this test blows up -- it succeeds, but takes
6078 # about 5 minutes as the teststring grows exponentially.
6079 # Worse, since 9x/ME are not pre-emptively multitasking,
6080 # you end up with a "frozen" computer, even though with patience
6081 # the test eventually succeeds (with a max line length of 256k).
6082 # Instead, let's just punt: use the minimum linelength reported by
6083 # all of the supported platforms: 8192 (on NT/2K/XP).
6084 lt_cv_sys_max_cmd_len=8192;
6087 mint*)
6088 # On MiNT this can take a long time and run out of memory.
6089 lt_cv_sys_max_cmd_len=8192;
6092 amigaos*)
6093 # On AmigaOS with pdksh, this test takes hours, literally.
6094 # So we just punt and use a minimum line length of 8192.
6095 lt_cv_sys_max_cmd_len=8192;
6098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6099 # This has been around since 386BSD, at least. Likely further.
6100 if test -x /sbin/sysctl; then
6101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6102 elif test -x /usr/sbin/sysctl; then
6103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6104 else
6105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6107 # And add a safety zone
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112 interix*)
6113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6114 lt_cv_sys_max_cmd_len=196608
6117 osf*)
6118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6120 # nice to cause kernel panics so lets avoid the loop below.
6121 # First set a reasonable default.
6122 lt_cv_sys_max_cmd_len=16384
6124 if test -x /sbin/sysconfig; then
6125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6127 esac
6130 sco3.2v5*)
6131 lt_cv_sys_max_cmd_len=102400
6133 sysv5* | sco5v6* | sysv4.2uw2*)
6134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6135 if test -n "$kargmax"; then
6136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6137 else
6138 lt_cv_sys_max_cmd_len=32768
6142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6143 if test -n "$lt_cv_sys_max_cmd_len"; then
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6146 else
6147 # Make teststring a little bigger before we do anything with it.
6148 # a 1K string should be a reasonable start.
6149 for i in 1 2 3 4 5 6 7 8 ; do
6150 teststring=$teststring$teststring
6151 done
6152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153 # If test is not a shell built-in, we'll probably end up computing a
6154 # maximum length that is only half of the actual maximum length, but
6155 # we can't tell.
6156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6158 test $i != 17 # 1/2 MB should be enough
6160 i=`expr $i + 1`
6161 teststring=$teststring$teststring
6162 done
6163 # Only check the string length outside the loop.
6164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6165 teststring=
6166 # Add a significant safety factor because C++ compilers can tack on
6167 # massive amounts of additional arguments before passing them to the
6168 # linker. It appears as though 1/2 is a usable value.
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6172 esac
6176 if test -n $lt_cv_sys_max_cmd_len ; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6181 $as_echo "none" >&6; }
6183 max_cmd_len=$lt_cv_sys_max_cmd_len
6190 : ${CP="cp -f"}
6191 : ${MV="mv -f"}
6192 : ${RM="rm -f"}
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6195 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6196 # Try some XSI features
6197 xsi_shell=no
6198 ( _lt_dummy="a/b/c"
6199 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6200 = c,a/b,, \
6201 && eval 'test $(( 1 + 1 )) -eq 2 \
6202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6203 && xsi_shell=yes
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6205 $as_echo "$xsi_shell" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6209 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6210 lt_shell_append=no
6211 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6212 >/dev/null 2>&1 \
6213 && lt_shell_append=yes
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6215 $as_echo "$lt_shell_append" >&6; }
6218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6219 lt_unset=unset
6220 else
6221 lt_unset=false
6228 # test EBCDIC or ASCII
6229 case `echo X|tr X '\101'` in
6230 A) # ASCII based system
6231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6232 lt_SP2NL='tr \040 \012'
6233 lt_NL2SP='tr \015\012 \040\040'
6235 *) # EBCDIC based system
6236 lt_SP2NL='tr \100 \n'
6237 lt_NL2SP='tr \r\n \100\100'
6239 esac
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6250 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6251 if ${lt_cv_ld_reload_flag+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 lt_cv_ld_reload_flag='-r'
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6257 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6258 reload_flag=$lt_cv_ld_reload_flag
6259 case $reload_flag in
6260 "" | " "*) ;;
6261 *) reload_flag=" $reload_flag" ;;
6262 esac
6263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6264 case $host_os in
6265 darwin*)
6266 if test "$GCC" = yes; then
6267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6268 else
6269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6272 esac
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_OBJDUMP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$OBJDUMP"; then
6291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 OBJDUMP=$ac_cv_prog_OBJDUMP
6311 if test -n "$OBJDUMP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6313 $as_echo "$OBJDUMP" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6321 if test -z "$ac_cv_prog_OBJDUMP"; then
6322 ac_ct_OBJDUMP=$OBJDUMP
6323 # Extract the first word of "objdump", so it can be a program name with args.
6324 set dummy objdump; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_OBJDUMP"; then
6331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6344 done
6345 done
6346 IFS=$as_save_IFS
6350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6351 if test -n "$ac_ct_OBJDUMP"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6353 $as_echo "$ac_ct_OBJDUMP" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6359 if test "x$ac_ct_OBJDUMP" = x; then
6360 OBJDUMP="false"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 OBJDUMP=$ac_ct_OBJDUMP
6370 else
6371 OBJDUMP="$ac_cv_prog_OBJDUMP"
6374 test -z "$OBJDUMP" && OBJDUMP=objdump
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6386 if ${lt_cv_deplibs_check_method+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 lt_cv_file_magic_cmd='$MAGIC_CMD'
6390 lt_cv_file_magic_test_file=
6391 lt_cv_deplibs_check_method='unknown'
6392 # Need to set the preceding variable on all platforms that support
6393 # interlibrary dependencies.
6394 # 'none' -- dependencies not supported.
6395 # `unknown' -- same as none, but documents that we really don't know.
6396 # 'pass_all' -- all dependencies passed with no checks.
6397 # 'test_compile' -- check by making test program.
6398 # 'file_magic [[regex]]' -- check by looking for files in library path
6399 # which responds to the $file_magic_cmd with a given extended regex.
6400 # If you have `file' or equivalent on your system and you're not sure
6401 # whether `pass_all' will *always* work, you probably want this one.
6403 case $host_os in
6404 aix[4-9]*)
6405 lt_cv_deplibs_check_method=pass_all
6408 beos*)
6409 lt_cv_deplibs_check_method=pass_all
6412 bsdi[45]*)
6413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6414 lt_cv_file_magic_cmd='/usr/bin/file -L'
6415 lt_cv_file_magic_test_file=/shlib/libc.so
6418 cygwin*)
6419 # func_win32_libid is a shell function defined in ltmain.sh
6420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6421 lt_cv_file_magic_cmd='func_win32_libid'
6424 mingw* | pw32*)
6425 # Base MSYS/MinGW do not provide the 'file' command needed by
6426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6427 # unless we find 'file', for example because we are cross-compiling.
6428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6431 lt_cv_file_magic_cmd='func_win32_libid'
6432 else
6433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6434 lt_cv_file_magic_cmd='$OBJDUMP -f'
6438 cegcc*)
6439 # use the weaker test based on 'objdump'. See mingw*.
6440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6441 lt_cv_file_magic_cmd='$OBJDUMP -f'
6444 darwin* | rhapsody*)
6445 lt_cv_deplibs_check_method=pass_all
6448 freebsd* | dragonfly*)
6449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6450 case $host_cpu in
6451 i*86 )
6452 # Not sure whether the presence of OpenBSD here was a mistake.
6453 # Let's accept both of them until this is cleared up.
6454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6455 lt_cv_file_magic_cmd=/usr/bin/file
6456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6458 esac
6459 else
6460 lt_cv_deplibs_check_method=pass_all
6464 gnu*)
6465 lt_cv_deplibs_check_method=pass_all
6468 haiku*)
6469 lt_cv_deplibs_check_method=pass_all
6472 hpux10.20* | hpux11*)
6473 lt_cv_file_magic_cmd=/usr/bin/file
6474 case $host_cpu in
6475 ia64*)
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6477 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6479 hppa*64*)
6480 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]'
6481 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6485 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6487 esac
6490 interix[3-9]*)
6491 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6495 irix5* | irix6* | nonstopux*)
6496 case $LD in
6497 *-32|*"-32 ") libmagic=32-bit;;
6498 *-n32|*"-n32 ") libmagic=N32;;
6499 *-64|*"-64 ") libmagic=64-bit;;
6500 *) libmagic=never-match;;
6501 esac
6502 lt_cv_deplibs_check_method=pass_all
6505 # This must be Linux ELF.
6506 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6507 lt_cv_deplibs_check_method=pass_all
6510 netbsd*)
6511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513 else
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6518 newos6*)
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6520 lt_cv_file_magic_cmd=/usr/bin/file
6521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6524 *nto* | *qnx*)
6525 lt_cv_deplibs_check_method=pass_all
6528 openbsd*)
6529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6531 else
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6536 osf3* | osf4* | osf5*)
6537 lt_cv_deplibs_check_method=pass_all
6540 rdos*)
6541 lt_cv_deplibs_check_method=pass_all
6544 solaris*)
6545 lt_cv_deplibs_check_method=pass_all
6548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6549 lt_cv_deplibs_check_method=pass_all
6552 sysv4 | sysv4.3*)
6553 case $host_vendor in
6554 motorola)
6555 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]'
6556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6558 ncr)
6559 lt_cv_deplibs_check_method=pass_all
6561 sequent)
6562 lt_cv_file_magic_cmd='/bin/file'
6563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6565 sni)
6566 lt_cv_file_magic_cmd='/bin/file'
6567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6568 lt_cv_file_magic_test_file=/lib/libc.so
6570 siemens)
6571 lt_cv_deplibs_check_method=pass_all
6574 lt_cv_deplibs_check_method=pass_all
6576 esac
6579 tpf*)
6580 lt_cv_deplibs_check_method=pass_all
6582 vxworks*)
6583 # Assume VxWorks cross toolchains are built on Linux, possibly
6584 # as canadian for Windows hosts.
6585 lt_cv_deplibs_check_method=pass_all
6587 esac
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6591 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6592 file_magic_cmd=$lt_cv_file_magic_cmd
6593 deplibs_check_method=$lt_cv_deplibs_check_method
6594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6607 plugin_option=
6608 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6609 for plugin in $plugin_names; do
6610 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6611 if test x$plugin_so = x$plugin; then
6612 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6614 if test x$plugin_so != x$plugin; then
6615 plugin_option="--plugin $plugin_so"
6616 break
6618 done
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}ar; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_AR+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 if test -n "$AR"; then
6629 ac_cv_prog_AR="$AR" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_AR="${ac_tool_prefix}ar"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6648 AR=$ac_cv_prog_AR
6649 if test -n "$AR"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6651 $as_echo "$AR" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 if test -z "$ac_cv_prog_AR"; then
6660 ac_ct_AR=$AR
6661 # Extract the first word of "ar", so it can be a program name with args.
6662 set dummy ar; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$ac_ct_AR"; then
6669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_ac_ct_AR="ar"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6682 done
6683 done
6684 IFS=$as_save_IFS
6688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6689 if test -n "$ac_ct_AR"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6691 $as_echo "$ac_ct_AR" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6697 if test "x$ac_ct_AR" = x; then
6698 AR="false"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6705 esac
6706 AR=$ac_ct_AR
6708 else
6709 AR="$ac_cv_prog_AR"
6712 test -z "$AR" && AR=ar
6713 if test -n "$plugin_option"; then
6714 if $AR --help 2>&1 | grep -q "\--plugin"; then
6715 touch conftest.c
6716 $AR $plugin_option rc conftest.a conftest.c
6717 if test "$?" != 0; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6719 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6720 else
6721 AR="$AR $plugin_option"
6723 rm -f conftest.*
6726 test -z "$AR_FLAGS" && AR_FLAGS=cru
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}strip; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_STRIP+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$STRIP"; then
6747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 STRIP=$ac_cv_prog_STRIP
6767 if test -n "$STRIP"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6769 $as_echo "$STRIP" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6777 if test -z "$ac_cv_prog_STRIP"; then
6778 ac_ct_STRIP=$STRIP
6779 # Extract the first word of "strip", so it can be a program name with args.
6780 set dummy strip; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$ac_ct_STRIP"; then
6787 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_STRIP="strip"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6807 if test -n "$ac_ct_STRIP"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6809 $as_echo "$ac_ct_STRIP" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_ct_STRIP" = x; then
6816 STRIP=":"
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 STRIP=$ac_ct_STRIP
6826 else
6827 STRIP="$ac_cv_prog_STRIP"
6830 test -z "$STRIP" && STRIP=:
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_RANLIB+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$RANLIB"; then
6846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6865 RANLIB=$ac_cv_prog_RANLIB
6866 if test -n "$RANLIB"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6868 $as_echo "$RANLIB" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6876 if test -z "$ac_cv_prog_RANLIB"; then
6877 ac_ct_RANLIB=$RANLIB
6878 # Extract the first word of "ranlib", so it can be a program name with args.
6879 set dummy ranlib; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 if test -n "$ac_ct_RANLIB"; then
6886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_ac_ct_RANLIB="ranlib"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6899 done
6900 done
6901 IFS=$as_save_IFS
6905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6906 if test -n "$ac_ct_RANLIB"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6908 $as_echo "$ac_ct_RANLIB" >&6; }
6909 else
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6914 if test "x$ac_ct_RANLIB" = x; then
6915 RANLIB=":"
6916 else
6917 case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923 RANLIB=$ac_ct_RANLIB
6925 else
6926 RANLIB="$ac_cv_prog_RANLIB"
6929 test -z "$RANLIB" && RANLIB=:
6930 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6931 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6932 RANLIB="$RANLIB $plugin_option"
6941 # Determine commands to create old-style static archives.
6942 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6943 old_postinstall_cmds='chmod 644 $oldlib'
6944 old_postuninstall_cmds=
6946 if test -n "$RANLIB"; then
6947 case $host_os in
6948 openbsd*)
6949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6954 esac
6955 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6958 case $host_os in
6959 darwin*)
6960 lock_old_archive_extraction=yes ;;
6962 lock_old_archive_extraction=no ;;
6963 esac
7003 # If no C compiler was specified, use CC.
7004 LTCC=${LTCC-"$CC"}
7006 # If no C compiler flags were specified, use CFLAGS.
7007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7009 # Allow CC to be a program name with arguments.
7010 compiler=$CC
7013 # Check for command to grab the raw symbol name followed by C symbol from nm.
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7015 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7016 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7020 # These are sane defaults that work on at least a few old systems.
7021 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7023 # Character class describing NM global symbol codes.
7024 symcode='[BCDEGRST]'
7026 # Regexp to match symbols that can be accessed directly from C.
7027 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7029 # Define system-specific variables.
7030 case $host_os in
7031 aix*)
7032 symcode='[BCDT]'
7034 cygwin* | mingw* | pw32* | cegcc*)
7035 symcode='[ABCDGISTW]'
7037 hpux*)
7038 if test "$host_cpu" = ia64; then
7039 symcode='[ABCDEGRST]'
7042 irix* | nonstopux*)
7043 symcode='[BCDEGRST]'
7045 osf*)
7046 symcode='[BCDEGQRST]'
7048 solaris*)
7049 symcode='[BCDRT]'
7051 sco3.2v5*)
7052 symcode='[DT]'
7054 sysv4.2uw2*)
7055 symcode='[DT]'
7057 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7058 symcode='[ABDT]'
7060 sysv4)
7061 symcode='[DFNSTU]'
7063 esac
7065 # If we're using GNU nm, then use its standard symbol codes.
7066 case `$NM -V 2>&1` in
7067 *GNU* | *'with BFD'*)
7068 symcode='[ABCDGIRSTW]' ;;
7069 esac
7071 # Transform an extracted symbol line into a proper C declaration.
7072 # Some systems (esp. on ia64) link data and code symbols differently,
7073 # so use this general approach.
7074 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7076 # Transform an extracted symbol line into symbol name and symbol address
7077 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7078 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'"
7080 # Handle CRLF in mingw tool chain
7081 opt_cr=
7082 case $build_os in
7083 mingw*)
7084 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7086 esac
7088 # Try without a prefix underscore, then with it.
7089 for ac_symprfx in "" "_"; do
7091 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7092 symxfrm="\\1 $ac_symprfx\\2 \\2"
7094 # Write the raw and C identifiers.
7095 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7096 # Fake it for dumpbin and say T for any non-static function
7097 # and D for any global variable.
7098 # Also find C++ and __fastcall symbols from MSVC++,
7099 # which start with @ or ?.
7100 lt_cv_sys_global_symbol_pipe="$AWK '"\
7101 " {last_section=section; section=\$ 3};"\
7102 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7103 " \$ 0!~/External *\|/{next};"\
7104 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7105 " {if(hide[section]) next};"\
7106 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7107 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7108 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7109 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7110 " ' prfx=^$ac_symprfx"
7111 else
7112 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7115 # Check to see that the pipe works correctly.
7116 pipe_works=no
7118 rm -f conftest*
7119 cat > conftest.$ac_ext <<_LT_EOF
7120 #ifdef __cplusplus
7121 extern "C" {
7122 #endif
7123 char nm_test_var;
7124 void nm_test_func(void);
7125 void nm_test_func(void){}
7126 #ifdef __cplusplus
7128 #endif
7129 int main(){nm_test_var='a';nm_test_func();return(0);}
7130 _LT_EOF
7132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7133 (eval $ac_compile) 2>&5
7134 ac_status=$?
7135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136 test $ac_status = 0; }; then
7137 # Now try to grab the symbols.
7138 nlist=conftest.nm
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7140 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; } && test -s "$nlist"; then
7144 # Try sorting and uniquifying the output.
7145 if sort "$nlist" | uniq > "$nlist"T; then
7146 mv -f "$nlist"T "$nlist"
7147 else
7148 rm -f "$nlist"T
7151 # Make sure that we snagged all the symbols we need.
7152 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7153 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7154 cat <<_LT_EOF > conftest.$ac_ext
7155 #ifdef __cplusplus
7156 extern "C" {
7157 #endif
7159 _LT_EOF
7160 # Now generate the symbol file.
7161 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7163 cat <<_LT_EOF >> conftest.$ac_ext
7165 /* The mapping between symbol names and symbols. */
7166 const struct {
7167 const char *name;
7168 void *address;
7170 lt__PROGRAM__LTX_preloaded_symbols[] =
7172 { "@PROGRAM@", (void *) 0 },
7173 _LT_EOF
7174 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7175 cat <<\_LT_EOF >> conftest.$ac_ext
7176 {0, (void *) 0}
7179 /* This works around a problem in FreeBSD linker */
7180 #ifdef FREEBSD_WORKAROUND
7181 static const void *lt_preloaded_setup() {
7182 return lt__PROGRAM__LTX_preloaded_symbols;
7184 #endif
7186 #ifdef __cplusplus
7188 #endif
7189 _LT_EOF
7190 # Now try linking the two files.
7191 mv conftest.$ac_objext conftstm.$ac_objext
7192 lt_save_LIBS="$LIBS"
7193 lt_save_CFLAGS="$CFLAGS"
7194 LIBS="conftstm.$ac_objext"
7195 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7197 (eval $ac_link) 2>&5
7198 ac_status=$?
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7201 pipe_works=yes
7203 LIBS="$lt_save_LIBS"
7204 CFLAGS="$lt_save_CFLAGS"
7205 else
7206 echo "cannot find nm_test_func in $nlist" >&5
7208 else
7209 echo "cannot find nm_test_var in $nlist" >&5
7211 else
7212 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7214 else
7215 echo "$progname: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7218 rm -rf conftest* conftst*
7220 # Do not use the global_symbol_pipe unless it works.
7221 if test "$pipe_works" = yes; then
7222 break
7223 else
7224 lt_cv_sys_global_symbol_pipe=
7226 done
7230 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7231 lt_cv_sys_global_symbol_to_cdecl=
7233 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7235 $as_echo "failed" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7238 $as_echo "ok" >&6; }
7262 # Check whether --enable-libtool-lock was given.
7263 if test "${enable_libtool_lock+set}" = set; then :
7264 enableval=$enable_libtool_lock;
7267 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7269 # Some flags need to be propagated to the compiler or linker for good
7270 # libtool support.
7271 case $host in
7272 ia64-*-hpux*)
7273 # Find out which ABI we are using.
7274 echo 'int i;' > conftest.$ac_ext
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276 (eval $ac_compile) 2>&5
7277 ac_status=$?
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; }; then
7280 case `/usr/bin/file conftest.$ac_objext` in
7281 *ELF-32*)
7282 HPUX_IA64_MODE="32"
7284 *ELF-64*)
7285 HPUX_IA64_MODE="64"
7287 esac
7289 rm -rf conftest*
7291 *-*-irix6*)
7292 # Find out which ABI we are using.
7293 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7295 (eval $ac_compile) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; }; then
7299 if test "$lt_cv_prog_gnu_ld" = yes; then
7300 case `/usr/bin/file conftest.$ac_objext` in
7301 *32-bit*)
7302 LD="${LD-ld} -melf32bsmip"
7304 *N32*)
7305 LD="${LD-ld} -melf32bmipn32"
7307 *64-bit*)
7308 LD="${LD-ld} -melf64bmip"
7310 esac
7311 else
7312 case `/usr/bin/file conftest.$ac_objext` in
7313 *32-bit*)
7314 LD="${LD-ld} -32"
7316 *N32*)
7317 LD="${LD-ld} -n32"
7319 *64-bit*)
7320 LD="${LD-ld} -64"
7322 esac
7325 rm -rf conftest*
7328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7329 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7330 # Find out which ABI we are using.
7331 echo 'int i;' > conftest.$ac_ext
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 case `/usr/bin/file conftest.o` in
7338 *32-bit*)
7339 case $host in
7340 x86_64-*kfreebsd*-gnu)
7341 LD="${LD-ld} -m elf_i386_fbsd"
7343 x86_64-*linux*)
7344 case `/usr/bin/file conftest.o` in
7345 *x86-64*)
7346 LD="${LD-ld} -m elf32_x86_64"
7349 LD="${LD-ld} -m elf_i386"
7351 esac
7353 powerpc64le-*linux*)
7354 LD="${LD-ld} -m elf32lppclinux"
7356 powerpc64-*linux*)
7357 LD="${LD-ld} -m elf32ppclinux"
7359 s390x-*linux*)
7360 LD="${LD-ld} -m elf_s390"
7362 sparc64-*linux*)
7363 LD="${LD-ld} -m elf32_sparc"
7365 esac
7367 *64-bit*)
7368 case $host in
7369 x86_64-*kfreebsd*-gnu)
7370 LD="${LD-ld} -m elf_x86_64_fbsd"
7372 x86_64-*linux*)
7373 LD="${LD-ld} -m elf_x86_64"
7375 powerpcle-*linux*)
7376 LD="${LD-ld} -m elf64lppc"
7378 powerpc-*linux*)
7379 LD="${LD-ld} -m elf64ppc"
7381 s390*-*linux*|s390*-*tpf*)
7382 LD="${LD-ld} -m elf64_s390"
7384 sparc*-*linux*)
7385 LD="${LD-ld} -m elf64_sparc"
7387 esac
7389 esac
7391 rm -rf conftest*
7394 *-*-sco3.2v5*)
7395 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7396 SAVE_CFLAGS="$CFLAGS"
7397 CFLAGS="$CFLAGS -belf"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7399 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7400 if ${lt_cv_cc_needs_belf+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7413 main ()
7417 return 0;
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"; then :
7421 lt_cv_cc_needs_belf=yes
7422 else
7423 lt_cv_cc_needs_belf=no
7425 rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
7427 ac_ext=c
7428 ac_cpp='$CPP $CPPFLAGS'
7429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7435 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7438 CFLAGS="$SAVE_CFLAGS"
7441 sparc*-*solaris*)
7442 # Find out which ABI we are using.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.o` in
7450 *64-bit*)
7451 case $lt_cv_prog_gnu_ld in
7452 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7454 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7455 LD="${LD-ld} -64"
7458 esac
7460 esac
7462 rm -rf conftest*
7464 esac
7466 need_locks="$enable_libtool_lock"
7469 case $host_os in
7470 rhapsody* | darwin*)
7471 if test -n "$ac_tool_prefix"; then
7472 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 if test -n "$DSYMUTIL"; then
7480 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 break 2
7493 done
7494 done
7495 IFS=$as_save_IFS
7499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7500 if test -n "$DSYMUTIL"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7502 $as_echo "$DSYMUTIL" >&6; }
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7510 if test -z "$ac_cv_prog_DSYMUTIL"; then
7511 ac_ct_DSYMUTIL=$DSYMUTIL
7512 # Extract the first word of "dsymutil", so it can be a program name with args.
7513 set dummy dsymutil; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$ac_ct_DSYMUTIL"; then
7520 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7533 done
7534 done
7535 IFS=$as_save_IFS
7539 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7540 if test -n "$ac_ct_DSYMUTIL"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7542 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7548 if test "x$ac_ct_DSYMUTIL" = x; then
7549 DSYMUTIL=":"
7550 else
7551 case $cross_compiling:$ac_tool_warned in
7552 yes:)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7556 esac
7557 DSYMUTIL=$ac_ct_DSYMUTIL
7559 else
7560 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_NMEDIT+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$NMEDIT"; then
7572 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7585 done
7586 done
7587 IFS=$as_save_IFS
7591 NMEDIT=$ac_cv_prog_NMEDIT
7592 if test -n "$NMEDIT"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7594 $as_echo "$NMEDIT" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7602 if test -z "$ac_cv_prog_NMEDIT"; then
7603 ac_ct_NMEDIT=$NMEDIT
7604 # Extract the first word of "nmedit", so it can be a program name with args.
7605 set dummy nmedit; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$ac_ct_NMEDIT"; then
7612 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7631 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7632 if test -n "$ac_ct_NMEDIT"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7634 $as_echo "$ac_ct_NMEDIT" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 if test "x$ac_ct_NMEDIT" = x; then
7641 NMEDIT=":"
7642 else
7643 case $cross_compiling:$ac_tool_warned in
7644 yes:)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649 NMEDIT=$ac_ct_NMEDIT
7651 else
7652 NMEDIT="$ac_cv_prog_NMEDIT"
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_LIPO+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 if test -n "$LIPO"; then
7664 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7677 done
7678 done
7679 IFS=$as_save_IFS
7683 LIPO=$ac_cv_prog_LIPO
7684 if test -n "$LIPO"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7686 $as_echo "$LIPO" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test -z "$ac_cv_prog_LIPO"; then
7695 ac_ct_LIPO=$LIPO
7696 # Extract the first word of "lipo", so it can be a program name with args.
7697 set dummy lipo; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$ac_ct_LIPO"; then
7704 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_ac_ct_LIPO="lipo"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7724 if test -n "$ac_ct_LIPO"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7726 $as_echo "$ac_ct_LIPO" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7732 if test "x$ac_ct_LIPO" = x; then
7733 LIPO=":"
7734 else
7735 case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7740 esac
7741 LIPO=$ac_ct_LIPO
7743 else
7744 LIPO="$ac_cv_prog_LIPO"
7747 if test -n "$ac_tool_prefix"; then
7748 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7749 set dummy ${ac_tool_prefix}otool; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_OTOOL+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$OTOOL"; then
7756 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7775 OTOOL=$ac_cv_prog_OTOOL
7776 if test -n "$OTOOL"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7778 $as_echo "$OTOOL" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7786 if test -z "$ac_cv_prog_OTOOL"; then
7787 ac_ct_OTOOL=$OTOOL
7788 # Extract the first word of "otool", so it can be a program name with args.
7789 set dummy otool; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$ac_ct_OTOOL"; then
7796 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_ac_ct_OTOOL="otool"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7816 if test -n "$ac_ct_OTOOL"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7818 $as_echo "$ac_ct_OTOOL" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7824 if test "x$ac_ct_OTOOL" = x; then
7825 OTOOL=":"
7826 else
7827 case $cross_compiling:$ac_tool_warned in
7828 yes:)
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833 OTOOL=$ac_ct_OTOOL
7835 else
7836 OTOOL="$ac_cv_prog_OTOOL"
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_prog_OTOOL64+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 if test -n "$OTOOL64"; then
7848 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7861 done
7862 done
7863 IFS=$as_save_IFS
7867 OTOOL64=$ac_cv_prog_OTOOL64
7868 if test -n "$OTOOL64"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7870 $as_echo "$OTOOL64" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7878 if test -z "$ac_cv_prog_OTOOL64"; then
7879 ac_ct_OTOOL64=$OTOOL64
7880 # Extract the first word of "otool64", so it can be a program name with args.
7881 set dummy otool64; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$ac_ct_OTOOL64"; then
7888 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_ac_ct_OTOOL64="otool64"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7901 done
7902 done
7903 IFS=$as_save_IFS
7907 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7908 if test -n "$ac_ct_OTOOL64"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7910 $as_echo "$ac_ct_OTOOL64" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7916 if test "x$ac_ct_OTOOL64" = x; then
7917 OTOOL64=":"
7918 else
7919 case $cross_compiling:$ac_tool_warned in
7920 yes:)
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923 ac_tool_warned=yes ;;
7924 esac
7925 OTOOL64=$ac_ct_OTOOL64
7927 else
7928 OTOOL64="$ac_cv_prog_OTOOL64"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7958 $as_echo_n "checking for -single_module linker flag... " >&6; }
7959 if ${lt_cv_apple_cc_single_mod+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 lt_cv_apple_cc_single_mod=no
7963 if test -z "${LT_MULTI_MODULE}"; then
7964 # By default we will add the -single_module flag. You can override
7965 # by either setting the environment variable LT_MULTI_MODULE
7966 # non-empty at configure time, or by adding -multi_module to the
7967 # link flags.
7968 rm -rf libconftest.dylib*
7969 echo "int foo(void){return 1;}" > conftest.c
7970 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7971 -dynamiclib -Wl,-single_module conftest.c" >&5
7972 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7973 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7974 _lt_result=$?
7975 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7976 lt_cv_apple_cc_single_mod=yes
7977 else
7978 cat conftest.err >&5
7980 rm -rf libconftest.dylib*
7981 rm -f conftest.*
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7985 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7987 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7988 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 lt_cv_ld_exported_symbols_list=no
7992 save_LDFLAGS=$LDFLAGS
7993 echo "_main" > conftest.sym
7994 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7999 main ()
8003 return 0;
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 lt_cv_ld_exported_symbols_list=yes
8008 else
8009 lt_cv_ld_exported_symbols_list=no
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 LDFLAGS="$save_LDFLAGS"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8017 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8019 $as_echo_n "checking for -force_load linker flag... " >&6; }
8020 if ${lt_cv_ld_force_load+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 lt_cv_ld_force_load=no
8024 cat > conftest.c << _LT_EOF
8025 int forced_loaded() { return 2;}
8026 _LT_EOF
8027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8029 echo "$AR cru libconftest.a conftest.o" >&5
8030 $AR cru libconftest.a conftest.o 2>&5
8031 cat > conftest.c << _LT_EOF
8032 int main() { return 0;}
8033 _LT_EOF
8034 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8035 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8036 _lt_result=$?
8037 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8038 lt_cv_ld_force_load=yes
8039 else
8040 cat conftest.err >&5
8042 rm -f conftest.err libconftest.a conftest conftest.c
8043 rm -rf conftest.dSYM
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8047 $as_echo "$lt_cv_ld_force_load" >&6; }
8048 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8049 # build without first building modern cctools / linker.
8050 case $host_cpu-$host_os in
8051 *-rhapsody* | *-darwin1.[012])
8052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8053 *-darwin1.*)
8054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8055 *-darwin*)
8056 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8057 # deployment target is forced to an earlier version.
8058 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8059 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8061 10.[012][,.]*)
8062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8066 esac
8068 esac
8069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8070 _lt_dar_single_mod='$single_module'
8072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8074 else
8075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8077 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8078 _lt_dsymutil='~$DSYMUTIL $lib || :'
8079 else
8080 _lt_dsymutil=
8083 esac
8085 for ac_header in dlfcn.h
8086 do :
8087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DLFCN_H 1
8092 _ACEOF
8096 done
8102 # Set options
8106 enable_dlopen=no
8109 enable_win32_dll=no
8112 # Check whether --enable-shared was given.
8113 if test "${enable_shared+set}" = set; then :
8114 enableval=$enable_shared; p=${PACKAGE-default}
8115 case $enableval in
8116 yes) enable_shared=yes ;;
8117 no) enable_shared=no ;;
8119 enable_shared=no
8120 # Look at the argument we got. We use all the common list separators.
8121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122 for pkg in $enableval; do
8123 IFS="$lt_save_ifs"
8124 if test "X$pkg" = "X$p"; then
8125 enable_shared=yes
8127 done
8128 IFS="$lt_save_ifs"
8130 esac
8131 else
8132 enable_shared=yes
8143 # Check whether --enable-static was given.
8144 if test "${enable_static+set}" = set; then :
8145 enableval=$enable_static; p=${PACKAGE-default}
8146 case $enableval in
8147 yes) enable_static=yes ;;
8148 no) enable_static=no ;;
8150 enable_static=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_static=yes
8158 done
8159 IFS="$lt_save_ifs"
8161 esac
8162 else
8163 enable_static=yes
8175 # Check whether --with-pic was given.
8176 if test "${with_pic+set}" = set; then :
8177 withval=$with_pic; pic_mode="$withval"
8178 else
8179 pic_mode=default
8183 test -z "$pic_mode" && pic_mode=default
8191 # Check whether --enable-fast-install was given.
8192 if test "${enable_fast_install+set}" = set; then :
8193 enableval=$enable_fast_install; p=${PACKAGE-default}
8194 case $enableval in
8195 yes) enable_fast_install=yes ;;
8196 no) enable_fast_install=no ;;
8198 enable_fast_install=no
8199 # Look at the argument we got. We use all the common list separators.
8200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8201 for pkg in $enableval; do
8202 IFS="$lt_save_ifs"
8203 if test "X$pkg" = "X$p"; then
8204 enable_fast_install=yes
8206 done
8207 IFS="$lt_save_ifs"
8209 esac
8210 else
8211 enable_fast_install=yes
8224 # This can be used to rebuild libtool when needed
8225 LIBTOOL_DEPS="$ltmain"
8227 # Always use our own libtool.
8228 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8255 test -z "$LN_S" && LN_S="ln -s"
8270 if test -n "${ZSH_VERSION+set}" ; then
8271 setopt NO_GLOB_SUBST
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8275 $as_echo_n "checking for objdir... " >&6; }
8276 if ${lt_cv_objdir+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 rm -f .libs 2>/dev/null
8280 mkdir .libs 2>/dev/null
8281 if test -d .libs; then
8282 lt_cv_objdir=.libs
8283 else
8284 # MS-DOS does not allow filenames that begin with a dot.
8285 lt_cv_objdir=_libs
8287 rmdir .libs 2>/dev/null
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8290 $as_echo "$lt_cv_objdir" >&6; }
8291 objdir=$lt_cv_objdir
8297 cat >>confdefs.h <<_ACEOF
8298 #define LT_OBJDIR "$lt_cv_objdir/"
8299 _ACEOF
8304 case $host_os in
8305 aix3*)
8306 # AIX sometimes has problems with the GCC collect2 program. For some
8307 # reason, if we set the COLLECT_NAMES environment variable, the problems
8308 # vanish in a puff of smoke.
8309 if test "X${COLLECT_NAMES+set}" != Xset; then
8310 COLLECT_NAMES=
8311 export COLLECT_NAMES
8314 esac
8316 # Global variables:
8317 ofile=libtool
8318 can_build_shared=yes
8320 # All known linkers require a `.a' archive for static linking (except MSVC,
8321 # which needs '.lib').
8322 libext=a
8324 with_gnu_ld="$lt_cv_prog_gnu_ld"
8326 old_CC="$CC"
8327 old_CFLAGS="$CFLAGS"
8329 # Set sane defaults for various variables
8330 test -z "$CC" && CC=cc
8331 test -z "$LTCC" && LTCC=$CC
8332 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8333 test -z "$LD" && LD=ld
8334 test -z "$ac_objext" && ac_objext=o
8336 for cc_temp in $compiler""; do
8337 case $cc_temp in
8338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8340 \-*) ;;
8341 *) break;;
8342 esac
8343 done
8344 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8347 # Only perform the check for file, if the check method requires it
8348 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8349 case $deplibs_check_method in
8350 file_magic*)
8351 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8353 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8354 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 case $MAGIC_CMD in
8358 [\\/*] | ?:[\\/]*)
8359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8362 lt_save_MAGIC_CMD="$MAGIC_CMD"
8363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8365 for ac_dir in $ac_dummy; do
8366 IFS="$lt_save_ifs"
8367 test -z "$ac_dir" && ac_dir=.
8368 if test -f $ac_dir/${ac_tool_prefix}file; then
8369 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8370 if test -n "$file_magic_test_file"; then
8371 case $deplibs_check_method in
8372 "file_magic "*)
8373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8376 $EGREP "$file_magic_regex" > /dev/null; then
8378 else
8379 cat <<_LT_EOF 1>&2
8381 *** Warning: the command libtool uses to detect shared libraries,
8382 *** $file_magic_cmd, produces output that libtool cannot recognize.
8383 *** The result is that libtool may fail to recognize shared libraries
8384 *** as such. This will affect the creation of libtool libraries that
8385 *** depend on shared libraries, but programs linked with such libtool
8386 *** libraries will work regardless of this problem. Nevertheless, you
8387 *** may want to report the problem to your system manager and/or to
8388 *** bug-libtool@gnu.org
8390 _LT_EOF
8391 fi ;;
8392 esac
8394 break
8396 done
8397 IFS="$lt_save_ifs"
8398 MAGIC_CMD="$lt_save_MAGIC_CMD"
8400 esac
8403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8404 if test -n "$MAGIC_CMD"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8406 $as_echo "$MAGIC_CMD" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8416 if test -z "$lt_cv_path_MAGIC_CMD"; then
8417 if test -n "$ac_tool_prefix"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8419 $as_echo_n "checking for file... " >&6; }
8420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 case $MAGIC_CMD in
8424 [\\/*] | ?:[\\/]*)
8425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428 lt_save_MAGIC_CMD="$MAGIC_CMD"
8429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8431 for ac_dir in $ac_dummy; do
8432 IFS="$lt_save_ifs"
8433 test -z "$ac_dir" && ac_dir=.
8434 if test -f $ac_dir/file; then
8435 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8436 if test -n "$file_magic_test_file"; then
8437 case $deplibs_check_method in
8438 "file_magic "*)
8439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442 $EGREP "$file_magic_regex" > /dev/null; then
8444 else
8445 cat <<_LT_EOF 1>&2
8447 *** Warning: the command libtool uses to detect shared libraries,
8448 *** $file_magic_cmd, produces output that libtool cannot recognize.
8449 *** The result is that libtool may fail to recognize shared libraries
8450 *** as such. This will affect the creation of libtool libraries that
8451 *** depend on shared libraries, but programs linked with such libtool
8452 *** libraries will work regardless of this problem. Nevertheless, you
8453 *** may want to report the problem to your system manager and/or to
8454 *** bug-libtool@gnu.org
8456 _LT_EOF
8457 fi ;;
8458 esac
8460 break
8462 done
8463 IFS="$lt_save_ifs"
8464 MAGIC_CMD="$lt_save_MAGIC_CMD"
8466 esac
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if test -n "$MAGIC_CMD"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8472 $as_echo "$MAGIC_CMD" >&6; }
8473 else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8479 else
8480 MAGIC_CMD=:
8486 esac
8488 # Use C for the default configuration in the libtool script
8490 lt_save_CC="$CC"
8491 ac_ext=c
8492 ac_cpp='$CPP $CPPFLAGS'
8493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8498 # Source file extension for C test sources.
8499 ac_ext=c
8501 # Object file extension for compiled C test sources.
8502 objext=o
8503 objext=$objext
8505 # Code to be used in simple compile tests
8506 lt_simple_compile_test_code="int some_variable = 0;"
8508 # Code to be used in simple link tests
8509 lt_simple_link_test_code='int main(){return(0);}'
8517 # If no C compiler was specified, use CC.
8518 LTCC=${LTCC-"$CC"}
8520 # If no C compiler flags were specified, use CFLAGS.
8521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8523 # Allow CC to be a program name with arguments.
8524 compiler=$CC
8526 # Save the default compiler, since it gets overwritten when the other
8527 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8528 compiler_DEFAULT=$CC
8530 # save warnings/boilerplate of simple test code
8531 ac_outfile=conftest.$ac_objext
8532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8534 _lt_compiler_boilerplate=`cat conftest.err`
8535 $RM conftest*
8537 ac_outfile=conftest.$ac_objext
8538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8540 _lt_linker_boilerplate=`cat conftest.err`
8541 $RM -r conftest*
8544 ## CAVEAT EMPTOR:
8545 ## There is no encapsulation within the following macros, do not change
8546 ## the running order or otherwise move them around unless you know exactly
8547 ## what you are doing...
8548 if test -n "$compiler"; then
8550 lt_prog_compiler_no_builtin_flag=
8552 if test "$GCC" = yes; then
8553 case $cc_basename in
8554 nvcc*)
8555 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8557 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8558 esac
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8561 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8562 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_rtti_exceptions=no
8566 ac_outfile=conftest.$ac_objext
8567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568 lt_compiler_flag="-fno-rtti -fno-exceptions"
8569 # Insert the option either (1) after the last *FLAGS variable, or
8570 # (2) before a word containing "conftest.", or (3) at the end.
8571 # Note that $ac_compile itself does not contain backslashes and begins
8572 # with a dollar sign (not a hyphen), so the echo should work correctly.
8573 # The option is referenced via a variable to avoid confusing sed.
8574 lt_compile=`echo "$ac_compile" | $SED \
8575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8577 -e 's:$: $lt_compiler_flag:'`
8578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8579 (eval "$lt_compile" 2>conftest.err)
8580 ac_status=$?
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 if (exit $ac_status) && test -s "$ac_outfile"; then
8584 # The compiler can only warn and ignore the option if not recognized
8585 # So say no if there are warnings other than the usual output.
8586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8589 lt_cv_prog_compiler_rtti_exceptions=yes
8592 $RM conftest*
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8596 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8598 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8599 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8600 else
8611 lt_prog_compiler_wl=
8612 lt_prog_compiler_pic=
8613 lt_prog_compiler_static=
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8616 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8618 if test "$GCC" = yes; then
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_static='-static'
8622 case $host_os in
8623 aix*)
8624 # All AIX code is PIC.
8625 if test "$host_cpu" = ia64; then
8626 # AIX 5 now supports IA64 processor
8627 lt_prog_compiler_static='-Bstatic'
8629 lt_prog_compiler_pic='-fPIC'
8632 amigaos*)
8633 case $host_cpu in
8634 powerpc)
8635 # see comment about AmigaOS4 .so support
8636 lt_prog_compiler_pic='-fPIC'
8638 m68k)
8639 # FIXME: we need at least 68020 code to build shared libraries, but
8640 # adding the `-m68020' flag to GCC prevents building anything better,
8641 # like `-m68040'.
8642 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8644 esac
8647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8648 # PIC is the default for these OSes.
8651 mingw* | cygwin* | pw32* | os2* | cegcc*)
8652 # This hack is so that the source file can tell whether it is being
8653 # built for inclusion in a dll (and should export symbols for example).
8654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8655 # (--disable-auto-import) libraries
8656 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 darwin* | rhapsody*)
8660 # PIC is the default on this platform
8661 # Common symbols not allowed in MH_DYLIB files
8662 lt_prog_compiler_pic='-fno-common'
8665 haiku*)
8666 # PIC is the default for Haiku.
8667 # The "-static" flag exists, but is broken.
8668 lt_prog_compiler_static=
8671 hpux*)
8672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8674 # sets the default TLS model and affects inlining.
8675 case $host_cpu in
8676 hppa*64*)
8677 # +Z the default
8680 lt_prog_compiler_pic='-fPIC'
8682 esac
8685 interix[3-9]*)
8686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8687 # Instead, we relocate shared libraries at runtime.
8690 msdosdjgpp*)
8691 # Just because we use GCC doesn't mean we suddenly get shared libraries
8692 # on systems that don't support them.
8693 lt_prog_compiler_can_build_shared=no
8694 enable_shared=no
8697 *nto* | *qnx*)
8698 # QNX uses GNU C++, but need to define -shared option too, otherwise
8699 # it will coredump.
8700 lt_prog_compiler_pic='-fPIC -shared'
8703 sysv4*MP*)
8704 if test -d /usr/nec; then
8705 lt_prog_compiler_pic=-Kconform_pic
8710 lt_prog_compiler_pic='-fPIC'
8712 esac
8714 case $cc_basename in
8715 nvcc*) # Cuda Compiler Driver 2.2
8716 lt_prog_compiler_wl='-Xlinker '
8717 lt_prog_compiler_pic='-Xcompiler -fPIC'
8719 esac
8720 else
8721 # PORTME Check for flag to pass linker flags through the system compiler.
8722 case $host_os in
8723 aix*)
8724 lt_prog_compiler_wl='-Wl,'
8725 if test "$host_cpu" = ia64; then
8726 # AIX 5 now supports IA64 processor
8727 lt_prog_compiler_static='-Bstatic'
8728 else
8729 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8733 mingw* | cygwin* | pw32* | os2* | cegcc*)
8734 # This hack is so that the source file can tell whether it is being
8735 # built for inclusion in a dll (and should export symbols for example).
8736 lt_prog_compiler_pic='-DDLL_EXPORT'
8739 hpux9* | hpux10* | hpux11*)
8740 lt_prog_compiler_wl='-Wl,'
8741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8742 # not for PA HP-UX.
8743 case $host_cpu in
8744 hppa*64*|ia64*)
8745 # +Z the default
8748 lt_prog_compiler_pic='+Z'
8750 esac
8751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8752 lt_prog_compiler_static='${wl}-a ${wl}archive'
8755 irix5* | irix6* | nonstopux*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # PIC (with -KPIC) is the default.
8758 lt_prog_compiler_static='-non_shared'
8761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8762 case $cc_basename in
8763 # old Intel for x86_64 which still supported -KPIC.
8764 ecc*)
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-static'
8769 # icc used to be incompatible with GCC.
8770 # ICC 10 doesn't accept -KPIC any more.
8771 icc* | ifort*)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='-fPIC'
8774 lt_prog_compiler_static='-static'
8776 # Lahey Fortran 8.1.
8777 lf95*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='--shared'
8780 lt_prog_compiler_static='--static'
8782 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8783 # Portland Group compilers (*not* the Pentium gcc compiler,
8784 # which looks to be a dead project)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-fpic'
8787 lt_prog_compiler_static='-Bstatic'
8789 ccc*)
8790 lt_prog_compiler_wl='-Wl,'
8791 # All Alpha code is PIC.
8792 lt_prog_compiler_static='-non_shared'
8794 xl* | bgxl* | bgf* | mpixl*)
8795 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='-qpic'
8798 lt_prog_compiler_static='-qstaticlink'
8801 case `$CC -V 2>&1 | sed 5q` in
8802 *Sun\ F* | *Sun*Fortran*)
8803 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
8806 lt_prog_compiler_wl=''
8808 *Sun\ C*)
8809 # Sun C 5.9
8810 lt_prog_compiler_pic='-KPIC'
8811 lt_prog_compiler_static='-Bstatic'
8812 lt_prog_compiler_wl='-Wl,'
8814 esac
8816 esac
8819 newsos6)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8824 *nto* | *qnx*)
8825 # QNX uses GNU C++, but need to define -shared option too, otherwise
8826 # it will coredump.
8827 lt_prog_compiler_pic='-fPIC -shared'
8830 osf3* | osf4* | osf5*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # All OSF/1 code is PIC.
8833 lt_prog_compiler_static='-non_shared'
8836 rdos*)
8837 lt_prog_compiler_static='-non_shared'
8840 solaris*)
8841 lt_prog_compiler_pic='-KPIC'
8842 lt_prog_compiler_static='-Bstatic'
8843 case $cc_basename in
8844 f77* | f90* | f95*)
8845 lt_prog_compiler_wl='-Qoption ld ';;
8847 lt_prog_compiler_wl='-Wl,';;
8848 esac
8851 sunos4*)
8852 lt_prog_compiler_wl='-Qoption ld '
8853 lt_prog_compiler_pic='-PIC'
8854 lt_prog_compiler_static='-Bstatic'
8857 sysv4 | sysv4.2uw2* | sysv4.3*)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8863 sysv4*MP*)
8864 if test -d /usr/nec ;then
8865 lt_prog_compiler_pic='-Kconform_pic'
8866 lt_prog_compiler_static='-Bstatic'
8870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8876 unicos*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_can_build_shared=no
8881 uts4*)
8882 lt_prog_compiler_pic='-pic'
8883 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_can_build_shared=no
8889 esac
8892 case $host_os in
8893 # For platforms which do not support PIC, -DPIC is meaningless:
8894 *djgpp*)
8895 lt_prog_compiler_pic=
8898 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8900 esac
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8902 $as_echo "$lt_prog_compiler_pic" >&6; }
8910 # Check to make sure the PIC flag actually works.
8912 if test -n "$lt_prog_compiler_pic"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 lt_cv_prog_compiler_pic_works=no
8919 ac_outfile=conftest.$ac_objext
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 # The option is referenced via a variable to avoid confusing sed.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>conftest.err)
8933 ac_status=$?
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s "$ac_outfile"; then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings other than the usual output.
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_pic_works=yes
8945 $RM conftest*
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8951 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8952 case $lt_prog_compiler_pic in
8953 "" | " "*) ;;
8954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8955 esac
8956 else
8957 lt_prog_compiler_pic=
8958 lt_prog_compiler_can_build_shared=no
8969 # Check to make sure the static flag actually works.
8971 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8973 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8974 if ${lt_cv_prog_compiler_static_works+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 lt_cv_prog_compiler_static_works=no
8978 save_LDFLAGS="$LDFLAGS"
8979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8980 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8982 # The linker can only warn and ignore the option if not recognized
8983 # So say no if there are warnings
8984 if test -s conftest.err; then
8985 # Append any errors to the config.log.
8986 cat conftest.err 1>&5
8987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989 if diff conftest.exp conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_static_works=yes
8992 else
8993 lt_cv_prog_compiler_static_works=yes
8996 $RM -r conftest*
8997 LDFLAGS="$save_LDFLAGS"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9001 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9003 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9005 else
9006 lt_prog_compiler_static=
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9017 if ${lt_cv_prog_compiler_c_o+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 lt_cv_prog_compiler_c_o=no
9021 $RM -r conftest 2>/dev/null
9022 mkdir conftest
9023 cd conftest
9024 mkdir out
9025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027 lt_compiler_flag="-o out/conftest2.$ac_objext"
9028 # Insert the option either (1) after the last *FLAGS variable, or
9029 # (2) before a word containing "conftest.", or (3) at the end.
9030 # Note that $ac_compile itself does not contain backslashes and begins
9031 # with a dollar sign (not a hyphen), so the echo should work correctly.
9032 lt_compile=`echo "$ac_compile" | $SED \
9033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9035 -e 's:$: $lt_compiler_flag:'`
9036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9037 (eval "$lt_compile" 2>out/conftest.err)
9038 ac_status=$?
9039 cat out/conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9042 then
9043 # The compiler can only warn and ignore the option if not recognized
9044 # So say no if there are warnings
9045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9048 lt_cv_prog_compiler_c_o=yes
9051 chmod u+w . 2>&5
9052 $RM conftest*
9053 # SGI C++ compiler will create directory out/ii_files/ for
9054 # template instantiation
9055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9056 $RM out/* && rmdir out
9057 cd ..
9058 $RM -r conftest
9059 $RM conftest*
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9072 if ${lt_cv_prog_compiler_c_o+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 lt_cv_prog_compiler_c_o=no
9076 $RM -r conftest 2>/dev/null
9077 mkdir conftest
9078 cd conftest
9079 mkdir out
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082 lt_compiler_flag="-o out/conftest2.$ac_objext"
9083 # Insert the option either (1) after the last *FLAGS variable, or
9084 # (2) before a word containing "conftest.", or (3) at the end.
9085 # Note that $ac_compile itself does not contain backslashes and begins
9086 # with a dollar sign (not a hyphen), so the echo should work correctly.
9087 lt_compile=`echo "$ac_compile" | $SED \
9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090 -e 's:$: $lt_compiler_flag:'`
9091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092 (eval "$lt_compile" 2>out/conftest.err)
9093 ac_status=$?
9094 cat out/conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9097 then
9098 # The compiler can only warn and ignore the option if not recognized
9099 # So say no if there are warnings
9100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9103 lt_cv_prog_compiler_c_o=yes
9106 chmod u+w . 2>&5
9107 $RM conftest*
9108 # SGI C++ compiler will create directory out/ii_files/ for
9109 # template instantiation
9110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9111 $RM out/* && rmdir out
9112 cd ..
9113 $RM -r conftest
9114 $RM conftest*
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9123 hard_links="nottested"
9124 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9125 # do not overwrite the value of need_locks provided by the user
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9127 $as_echo_n "checking if we can lock with hard links... " >&6; }
9128 hard_links=yes
9129 $RM conftest*
9130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9131 touch conftest.a
9132 ln conftest.a conftest.b 2>&5 || hard_links=no
9133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9135 $as_echo "$hard_links" >&6; }
9136 if test "$hard_links" = no; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9138 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9139 need_locks=warn
9141 else
9142 need_locks=no
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9151 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9153 runpath_var=
9154 allow_undefined_flag=
9155 always_export_symbols=no
9156 archive_cmds=
9157 archive_expsym_cmds=
9158 compiler_needs_object=no
9159 enable_shared_with_static_runtimes=no
9160 export_dynamic_flag_spec=
9161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9162 hardcode_automatic=no
9163 hardcode_direct=no
9164 hardcode_direct_absolute=no
9165 hardcode_libdir_flag_spec=
9166 hardcode_libdir_flag_spec_ld=
9167 hardcode_libdir_separator=
9168 hardcode_minus_L=no
9169 hardcode_shlibpath_var=unsupported
9170 inherit_rpath=no
9171 link_all_deplibs=unknown
9172 module_cmds=
9173 module_expsym_cmds=
9174 old_archive_from_new_cmds=
9175 old_archive_from_expsyms_cmds=
9176 thread_safe_flag_spec=
9177 whole_archive_flag_spec=
9178 # include_expsyms should be a list of space-separated symbols to be *always*
9179 # included in the symbol list
9180 include_expsyms=
9181 # exclude_expsyms can be an extended regexp of symbols to exclude
9182 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9183 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9184 # as well as any symbol that contains `d'.
9185 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9186 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9187 # platforms (ab)use it in PIC code, but their linkers get confused if
9188 # the symbol is explicitly referenced. Since portable code cannot
9189 # rely on this symbol name, it's probably fine to never include it in
9190 # preloaded symbol tables.
9191 # Exclude shared library initialization/finalization symbols.
9192 extract_expsyms_cmds=
9194 case $host_os in
9195 cygwin* | mingw* | pw32* | cegcc*)
9196 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9197 # When not using gcc, we currently assume that we are using
9198 # Microsoft Visual C++.
9199 if test "$GCC" != yes; then
9200 with_gnu_ld=no
9203 interix*)
9204 # we just hope/assume this is gcc and not c89 (= MSVC++)
9205 with_gnu_ld=yes
9207 openbsd*)
9208 with_gnu_ld=no
9210 esac
9212 ld_shlibs=yes
9214 # On some targets, GNU ld is compatible enough with the native linker
9215 # that we're better off using the native interface for both.
9216 lt_use_gnu_ld_interface=no
9217 if test "$with_gnu_ld" = yes; then
9218 case $host_os in
9219 aix*)
9220 # The AIX port of GNU ld has always aspired to compatibility
9221 # with the native linker. However, as the warning in the GNU ld
9222 # block says, versions before 2.19.5* couldn't really create working
9223 # shared libraries, regardless of the interface used.
9224 case `$LD -v 2>&1` in
9225 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9226 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9227 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9229 lt_use_gnu_ld_interface=yes
9231 esac
9234 lt_use_gnu_ld_interface=yes
9236 esac
9239 if test "$lt_use_gnu_ld_interface" = yes; then
9240 # If archive_cmds runs LD, not CC, wlarc should be empty
9241 wlarc='${wl}'
9243 # Set some defaults for GNU ld with shared library support. These
9244 # are reset later if shared libraries are not supported. Putting them
9245 # here allows them to be overridden if necessary.
9246 runpath_var=LD_RUN_PATH
9247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248 export_dynamic_flag_spec='${wl}--export-dynamic'
9249 # ancient GNU ld didn't support --whole-archive et. al.
9250 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9251 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9252 else
9253 whole_archive_flag_spec=
9255 supports_anon_versioning=no
9256 case `$LD -v 2>&1` in
9257 *GNU\ gold*) supports_anon_versioning=yes ;;
9258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9261 *\ 2.11.*) ;; # other 2.11 versions
9262 *) supports_anon_versioning=yes ;;
9263 esac
9265 # See if GNU ld supports shared libraries.
9266 case $host_os in
9267 aix[3-9]*)
9268 # On AIX/PPC, the GNU linker is very broken
9269 if test "$host_cpu" != ia64; then
9270 ld_shlibs=no
9271 cat <<_LT_EOF 1>&2
9273 *** Warning: the GNU linker, at least up to release 2.19, is reported
9274 *** to be unable to reliably create shared libraries on AIX.
9275 *** Therefore, libtool is disabling shared libraries support. If you
9276 *** really care for shared libraries, you may want to install binutils
9277 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9278 *** You will then need to restart the configuration process.
9280 _LT_EOF
9284 amigaos*)
9285 case $host_cpu in
9286 powerpc)
9287 # see comment about AmigaOS4 .so support
9288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289 archive_expsym_cmds=''
9291 m68k)
9292 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)'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_minus_L=yes
9296 esac
9299 beos*)
9300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9301 allow_undefined_flag=unsupported
9302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9303 # support --undefined. This deserves some investigation. FIXME
9304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 else
9306 ld_shlibs=no
9310 cygwin* | mingw* | pw32* | cegcc*)
9311 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9312 # as there is no search path for DLLs.
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 export_dynamic_flag_spec='${wl}--export-all-symbols'
9315 allow_undefined_flag=unsupported
9316 always_export_symbols=no
9317 enable_shared_with_static_runtimes=yes
9318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9322 # If the export-symbols file already is a .def file (1st line
9323 # is EXPORTS), use it as is; otherwise, prepend...
9324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9325 cp $export_symbols $output_objdir/$soname.def;
9326 else
9327 echo EXPORTS > $output_objdir/$soname.def;
9328 cat $export_symbols >> $output_objdir/$soname.def;
9330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9331 else
9332 ld_shlibs=no
9336 haiku*)
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 link_all_deplibs=yes
9341 interix[3-9]*)
9342 hardcode_direct=no
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
9346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9347 # Instead, shared libraries are loaded at an image base (0x10000000 by
9348 # default) and relocated if they conflict, which is a slow very memory
9349 # consuming and fragmenting process. To avoid this, we pick a random,
9350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9353 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'
9356 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9357 tmp_diet=no
9358 if test "$host_os" = linux-dietlibc; then
9359 case $cc_basename in
9360 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9361 esac
9363 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9364 && test "$tmp_diet" = no
9365 then
9366 tmp_addflag=' $pic_flag'
9367 tmp_sharedflag='-shared'
9368 case $cc_basename,$host_cpu in
9369 pgcc*) # Portland Group C compiler
9370 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'
9371 tmp_addflag=' $pic_flag'
9373 pgf77* | pgf90* | pgf95* | pgfortran*)
9374 # Portland Group f77 and f90 compilers
9375 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'
9376 tmp_addflag=' $pic_flag -Mnomain' ;;
9377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9378 tmp_addflag=' -i_dynamic' ;;
9379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9380 tmp_addflag=' -i_dynamic -nofor_main' ;;
9381 ifc* | ifort*) # Intel Fortran compiler
9382 tmp_addflag=' -nofor_main' ;;
9383 lf95*) # Lahey Fortran 8.1
9384 whole_archive_flag_spec=
9385 tmp_sharedflag='--shared' ;;
9386 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9387 tmp_sharedflag='-qmkshrobj'
9388 tmp_addflag= ;;
9389 nvcc*) # Cuda Compiler Driver 2.2
9390 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'
9391 compiler_needs_object=yes
9393 esac
9394 case `$CC -V 2>&1 | sed 5q` in
9395 *Sun\ C*) # Sun C 5.9
9396 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'
9397 compiler_needs_object=yes
9398 tmp_sharedflag='-G' ;;
9399 *Sun\ F*) # Sun Fortran 8.3
9400 tmp_sharedflag='-G' ;;
9401 esac
9402 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 if test "x$supports_anon_versioning" = xyes; then
9405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9407 echo "local: *; };" >> $output_objdir/$libname.ver~
9408 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9411 case $cc_basename in
9412 xlf* | bgf* | bgxlf* | mpixlf*)
9413 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9414 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9415 hardcode_libdir_flag_spec=
9416 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9417 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9418 if test "x$supports_anon_versioning" = xyes; then
9419 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9420 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9421 echo "local: *; };" >> $output_objdir/$libname.ver~
9422 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9425 esac
9426 else
9427 ld_shlibs=no
9431 netbsd*)
9432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9433 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9434 wlarc=
9435 else
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'
9441 solaris*)
9442 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9443 ld_shlibs=no
9444 cat <<_LT_EOF 1>&2
9446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9447 *** create shared libraries on Solaris systems. Therefore, libtool
9448 *** is disabling shared libraries support. We urge you to upgrade GNU
9449 *** binutils to release 2.9.1 or newer. Another option is to modify
9450 *** your PATH or compiler configuration so that the native linker is
9451 *** used, and then restart.
9453 _LT_EOF
9454 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9457 else
9458 ld_shlibs=no
9462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9463 case `$LD -v 2>&1` in
9464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9465 ld_shlibs=no
9466 cat <<_LT_EOF 1>&2
9468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9469 *** reliably create shared libraries on SCO systems. Therefore, libtool
9470 *** is disabling shared libraries support. We urge you to upgrade GNU
9471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9472 *** your PATH or compiler configuration so that the native linker is
9473 *** used, and then restart.
9475 _LT_EOF
9478 # For security reasons, it is highly recommended that you always
9479 # use absolute paths for naming shared libraries, and exclude the
9480 # DT_RUNPATH tag from executables and libraries. But doing so
9481 # requires that you compile everything twice, which is a pain.
9482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9486 else
9487 ld_shlibs=no
9490 esac
9493 sunos4*)
9494 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 wlarc=
9496 hardcode_direct=yes
9497 hardcode_shlibpath_var=no
9501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 else
9505 ld_shlibs=no
9508 esac
9510 if test "$ld_shlibs" = no; then
9511 runpath_var=
9512 hardcode_libdir_flag_spec=
9513 export_dynamic_flag_spec=
9514 whole_archive_flag_spec=
9516 else
9517 # PORTME fill in a description of your system's linker (not GNU ld)
9518 case $host_os in
9519 aix3*)
9520 allow_undefined_flag=unsupported
9521 always_export_symbols=yes
9522 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'
9523 # Note: this linker hardcodes the directories in LIBPATH if there
9524 # are no directories specified by -L.
9525 hardcode_minus_L=yes
9526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9527 # Neither direct hardcoding nor static linking is supported with a
9528 # broken collect2.
9529 hardcode_direct=unsupported
9533 aix[4-9]*)
9534 if test "$host_cpu" = ia64; then
9535 # On IA64, the linker does run time linking by default, so we don't
9536 # have to do anything special.
9537 aix_use_runtimelinking=no
9538 exp_sym_flag='-Bexport'
9539 no_entry_flag=""
9540 else
9541 # If we're using GNU nm, then we don't want the "-C" option.
9542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9543 # Also, AIX nm treats weak defined symbols like other global
9544 # defined symbols, whereas GNU nm marks them as "W".
9545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9546 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'
9547 else
9548 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'
9550 aix_use_runtimelinking=no
9552 # Test if we are trying to use run time linking or normal
9553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9554 # need to do runtime linking.
9555 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9556 for ld_flag in $LDFLAGS; do
9557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9558 aix_use_runtimelinking=yes
9559 break
9561 done
9563 esac
9565 exp_sym_flag='-bexport'
9566 no_entry_flag='-bnoentry'
9569 # When large executables or shared objects are built, AIX ld can
9570 # have problems creating the table of contents. If linking a library
9571 # or program results in "error TOC overflow" add -mminimal-toc to
9572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9575 archive_cmds=''
9576 hardcode_direct=yes
9577 hardcode_direct_absolute=yes
9578 hardcode_libdir_separator=':'
9579 link_all_deplibs=yes
9580 file_list_spec='${wl}-f,'
9582 if test "$GCC" = yes; then
9583 case $host_os in aix4.[012]|aix4.[012].*)
9584 # We only want to do this on AIX 4.2 and lower, the check
9585 # below for broken collect2 doesn't work under 4.3+
9586 collect2name=`${CC} -print-prog-name=collect2`
9587 if test -f "$collect2name" &&
9588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9589 then
9590 # We have reworked collect2
9592 else
9593 # We have old collect2
9594 hardcode_direct=unsupported
9595 # It fails to find uninstalled libraries when the uninstalled
9596 # path is not listed in the libpath. Setting hardcode_minus_L
9597 # to unsupported forces relinking
9598 hardcode_minus_L=yes
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_libdir_separator=
9603 esac
9604 shared_flag='-shared'
9605 if test "$aix_use_runtimelinking" = yes; then
9606 shared_flag="$shared_flag "'${wl}-G'
9608 else
9609 # not using gcc
9610 if test "$host_cpu" = ia64; then
9611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9612 # chokes on -Wl,-G. The following line is correct:
9613 shared_flag='-G'
9614 else
9615 if test "$aix_use_runtimelinking" = yes; then
9616 shared_flag='${wl}-G'
9617 else
9618 shared_flag='${wl}-bM:SRE'
9623 export_dynamic_flag_spec='${wl}-bexpall'
9624 # It seems that -bexpall does not export symbols beginning with
9625 # underscore (_), so it is better to generate a list of symbols to export.
9626 always_export_symbols=yes
9627 if test "$aix_use_runtimelinking" = yes; then
9628 # Warning - without using the other runtime loading flags (-brtl),
9629 # -berok will link without error, but may produce a broken library.
9630 allow_undefined_flag='-berok'
9631 # Determine the default libpath from the value encoded in an
9632 # empty executable.
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9637 main ()
9641 return 0;
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 lt_aix_libpath_sed='
9647 /Import File Strings/,/^$/ {
9648 /^0/ {
9649 s/^0 *\(.*\)$/\1/
9653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 # Check for a 64-bit object if we didn't find anything.
9655 if test -z "$aix_libpath"; then
9656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9664 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"
9665 else
9666 if test "$host_cpu" = ia64; then
9667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9668 allow_undefined_flag="-z nodefs"
9669 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"
9670 else
9671 # Determine the default libpath from the value encoded in an
9672 # empty executable.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9677 main ()
9681 return 0;
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9686 lt_aix_libpath_sed='
9687 /Import File Strings/,/^$/ {
9688 /^0/ {
9689 s/^0 *\(.*\)$/\1/
9693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$aix_libpath"; then
9696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9703 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9704 # Warning - without using the other run time loading flags,
9705 # -berok will link without error, but may produce a broken library.
9706 no_undefined_flag=' ${wl}-bernotok'
9707 allow_undefined_flag=' ${wl}-berok'
9708 if test "$with_gnu_ld" = yes; then
9709 # We only use this code for GNU lds that support --whole-archive.
9710 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9711 else
9712 # Exported symbols can be pulled into shared objects from archives
9713 whole_archive_flag_spec='$convenience'
9715 archive_cmds_need_lc=yes
9716 # This is similar to how AIX traditionally builds its shared libraries.
9717 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'
9722 amigaos*)
9723 case $host_cpu in
9724 powerpc)
9725 # see comment about AmigaOS4 .so support
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds=''
9729 m68k)
9730 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)'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_minus_L=yes
9734 esac
9737 bsdi[45]*)
9738 export_dynamic_flag_spec=-rdynamic
9741 cygwin* | mingw* | pw32* | cegcc*)
9742 # When not using gcc, we currently assume that we are using
9743 # Microsoft Visual C++.
9744 # hardcode_libdir_flag_spec is actually meaningless, as there is
9745 # no search path for DLLs.
9746 hardcode_libdir_flag_spec=' '
9747 allow_undefined_flag=unsupported
9748 # Tell ltmain to make .lib files, not .a files.
9749 libext=lib
9750 # Tell ltmain to make .dll files, not .so files.
9751 shrext_cmds=".dll"
9752 # FIXME: Setting linknames here is a bad hack.
9753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9754 # The linker will automatically build a .lib file if we build a DLL.
9755 old_archive_from_new_cmds='true'
9756 # FIXME: Should let the user specify the lib program.
9757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9758 fix_srcfile_path='`cygpath -w "$srcfile"`'
9759 enable_shared_with_static_runtimes=yes
9762 darwin* | rhapsody*)
9766 # Publish an arg to allow the user to select that Darwin host (and target)
9767 # libraries should be given install-names like @rpath/libfoo.dylib. This
9768 # requires that the user of the library then adds an 'rpath' to the DSO that
9769 # needs access.
9770 # NOTE: there are defaults below, for systems that support rpaths. The person
9771 # configuring can override the defaults for any system version that supports
9772 # them - they are, however, forced off for system versions without support.
9773 # Check whether --enable-darwin-at-rpath was given.
9774 if test "${enable_darwin_at_rpath+set}" = set; then :
9775 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9776 # This is not supported before macOS 10.5 / Darwin9.
9777 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9778 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9780 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9781 enable_darwin_at_rpath=no
9783 esac
9785 else
9786 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9787 # As above, before 10.5 / Darwin9 this does not work.
9788 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9789 enable_darwin_at_rpath=no
9792 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9793 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9794 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9795 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9797 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9798 enable_darwin_at_rpath=yes
9800 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9801 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9803 esac
9808 archive_cmds_need_lc=no
9809 hardcode_direct=no
9810 hardcode_automatic=yes
9811 hardcode_shlibpath_var=unsupported
9812 if test "$lt_cv_ld_force_load" = "yes"; then
9813 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\"`'
9814 else
9815 whole_archive_flag_spec=''
9817 link_all_deplibs=yes
9818 allow_undefined_flag="$_lt_dar_allow_undefined"
9819 case $cc_basename in
9820 ifort*) _lt_dar_can_shared=yes ;;
9821 *) _lt_dar_can_shared=$GCC ;;
9822 esac
9823 if test "$_lt_dar_can_shared" = "yes"; then
9824 output_verbose_link_cmd=func_echo_all
9825 _lt_install_name='\$rpath/\$soname'
9826 if test "x$enable_darwin_at_rpath" = "xyes"; then
9827 _lt_install_name='@rpath/\$soname'
9829 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9830 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9831 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9832 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}"
9834 else
9835 ld_shlibs=no
9840 dgux*)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_shlibpath_var=no
9846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9847 # support. Future versions do this automatically, but an explicit c++rt0.o
9848 # does not break anything, and helps significantly (at the cost of a little
9849 # extra space).
9850 freebsd2.2*)
9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9852 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9858 freebsd2.*)
9859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_direct=yes
9861 hardcode_minus_L=yes
9862 hardcode_shlibpath_var=no
9865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9866 freebsd* | dragonfly*)
9867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9868 hardcode_libdir_flag_spec='-R$libdir'
9869 hardcode_direct=yes
9870 hardcode_shlibpath_var=no
9873 hpux9*)
9874 if test "$GCC" = yes; then
9875 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'
9876 else
9877 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'
9879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880 hardcode_libdir_separator=:
9881 hardcode_direct=yes
9883 # hardcode_minus_L: Not really in the search PATH,
9884 # but as the default location of the library.
9885 hardcode_minus_L=yes
9886 export_dynamic_flag_spec='${wl}-E'
9889 hpux10*)
9890 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892 else
9893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 if test "$with_gnu_ld" = no; then
9896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897 hardcode_libdir_flag_spec_ld='+b $libdir'
9898 hardcode_libdir_separator=:
9899 hardcode_direct=yes
9900 hardcode_direct_absolute=yes
9901 export_dynamic_flag_spec='${wl}-E'
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9908 hpux11*)
9909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9910 case $host_cpu in
9911 hppa*64*)
9912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9914 ia64*)
9915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 esac
9921 else
9922 case $host_cpu in
9923 hppa*64*)
9924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9926 ia64*)
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 # Older versions of the 11.00 compiler do not understand -b yet
9932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9934 $as_echo_n "checking if $CC understands -b... " >&6; }
9935 if ${lt_cv_prog_compiler__b+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 lt_cv_prog_compiler__b=no
9939 save_LDFLAGS="$LDFLAGS"
9940 LDFLAGS="$LDFLAGS -b"
9941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9943 # The linker can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 if test -s conftest.err; then
9946 # Append any errors to the config.log.
9947 cat conftest.err 1>&5
9948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9950 if diff conftest.exp conftest.er2 >/dev/null; then
9951 lt_cv_prog_compiler__b=yes
9953 else
9954 lt_cv_prog_compiler__b=yes
9957 $RM -r conftest*
9958 LDFLAGS="$save_LDFLAGS"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9962 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9964 if test x"$lt_cv_prog_compiler__b" = xyes; then
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 else
9967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971 esac
9973 if test "$with_gnu_ld" = no; then
9974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_separator=:
9977 case $host_cpu in
9978 hppa*64*|ia64*)
9979 hardcode_direct=no
9980 hardcode_shlibpath_var=no
9983 hardcode_direct=yes
9984 hardcode_direct_absolute=yes
9985 export_dynamic_flag_spec='${wl}-E'
9987 # hardcode_minus_L: Not really in the search PATH,
9988 # but as the default location of the library.
9989 hardcode_minus_L=yes
9991 esac
9995 irix5* | irix6* | nonstopux*)
9996 if test "$GCC" = yes; then
9997 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'
9998 # Try to use the -exported_symbol ld option, if it does not
9999 # work, assume that -exports_file does not work either and
10000 # implicitly export all symbols.
10001 save_LDFLAGS="$LDFLAGS"
10002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int foo(void) {}
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 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'
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LDFLAGS="$save_LDFLAGS"
10014 else
10015 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'
10016 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'
10018 archive_cmds_need_lc='no'
10019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10020 hardcode_libdir_separator=:
10021 inherit_rpath=yes
10022 link_all_deplibs=yes
10025 netbsd*)
10026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10028 else
10029 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10036 newsos6)
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator=:
10041 hardcode_shlibpath_var=no
10044 *nto* | *qnx*)
10047 openbsd*)
10048 if test -f /usr/libexec/ld.so; then
10049 hardcode_direct=yes
10050 hardcode_shlibpath_var=no
10051 hardcode_direct_absolute=yes
10052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10056 export_dynamic_flag_spec='${wl}-E'
10057 else
10058 case $host_os in
10059 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_libdir_flag_spec='-R$libdir'
10064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067 esac
10069 else
10070 ld_shlibs=no
10074 os2*)
10075 hardcode_libdir_flag_spec='-L$libdir'
10076 hardcode_minus_L=yes
10077 allow_undefined_flag=unsupported
10078 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'
10079 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 osf3*)
10083 if test "$GCC" = yes; then
10084 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10085 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'
10086 else
10087 allow_undefined_flag=' -expect_unresolved \*'
10088 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'
10090 archive_cmds_need_lc='no'
10091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10092 hardcode_libdir_separator=:
10095 osf4* | osf5*) # as osf3* with the addition of -msym flag
10096 if test "$GCC" = yes; then
10097 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10098 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'
10099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10100 else
10101 allow_undefined_flag=' -expect_unresolved \*'
10102 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'
10103 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~
10104 $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'
10106 # Both c and cxx compiler support -rpath directly
10107 hardcode_libdir_flag_spec='-rpath $libdir'
10109 archive_cmds_need_lc='no'
10110 hardcode_libdir_separator=:
10113 solaris*)
10114 no_undefined_flag=' -z defs'
10115 if test "$GCC" = yes; then
10116 wlarc='${wl}'
10117 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10119 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10120 else
10121 case `$CC -V 2>&1` in
10122 *"Compilers 5.0"*)
10123 wlarc=''
10124 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 wlarc='${wl}'
10130 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10132 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10134 esac
10136 hardcode_libdir_flag_spec='-R$libdir'
10137 hardcode_shlibpath_var=no
10138 case $host_os in
10139 solaris2.[0-5] | solaris2.[0-5].*) ;;
10141 # The compiler driver will combine and reorder linker options,
10142 # but understands `-z linker_flag'. GCC discards it without `$wl',
10143 # but is careful enough not to reorder.
10144 # Supported since Solaris 2.6 (maybe 2.5.1?)
10145 if test "$GCC" = yes; then
10146 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10147 else
10148 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 esac
10152 link_all_deplibs=yes
10155 sunos4*)
10156 if test "x$host_vendor" = xsequent; then
10157 # Use $CC to link under sequent, because it throws in some extra .o
10158 # files that make .init and .fini sections work.
10159 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_libdir_flag_spec='-L$libdir'
10164 hardcode_direct=yes
10165 hardcode_minus_L=yes
10166 hardcode_shlibpath_var=no
10169 sysv4)
10170 case $host_vendor in
10171 sni)
10172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_direct=yes # is this really true???
10175 siemens)
10176 ## LD is ld it makes a PLAMLIB
10177 ## CC just makes a GrossModule.
10178 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10179 reload_cmds='$CC -r -o $output$reload_objs'
10180 hardcode_direct=no
10182 motorola)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10186 esac
10187 runpath_var='LD_RUN_PATH'
10188 hardcode_shlibpath_var=no
10191 sysv4.3*)
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_shlibpath_var=no
10194 export_dynamic_flag_spec='-Bexport'
10197 sysv4*MP*)
10198 if test -d /usr/nec; then
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_shlibpath_var=no
10201 runpath_var=LD_RUN_PATH
10202 hardcode_runpath_var=yes
10203 ld_shlibs=yes
10207 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10208 no_undefined_flag='${wl}-z,text'
10209 archive_cmds_need_lc=no
10210 hardcode_shlibpath_var=no
10211 runpath_var='LD_RUN_PATH'
10213 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 sysv5* | sco3.2v5* | sco5v6*)
10223 # Note: We can NOT use -z defs as we might desire, because we do not
10224 # link with -lc, and that would cause any symbols used from libc to
10225 # always be unresolved, which means just about no library would
10226 # ever link correctly. If we're not using GNU ld we use -z text
10227 # though, which does catch some bad symbols but isn't as heavy-handed
10228 # as -z defs.
10229 no_undefined_flag='${wl}-z,text'
10230 allow_undefined_flag='${wl}-z,nodefs'
10231 archive_cmds_need_lc=no
10232 hardcode_shlibpath_var=no
10233 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10234 hardcode_libdir_separator=':'
10235 link_all_deplibs=yes
10236 export_dynamic_flag_spec='${wl}-Bexport'
10237 runpath_var='LD_RUN_PATH'
10239 if test "$GCC" = yes; then
10240 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 else
10243 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 uts4*)
10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_libdir_flag_spec='-L$libdir'
10251 hardcode_shlibpath_var=no
10255 ld_shlibs=no
10257 esac
10259 if test x$host_vendor = xsni; then
10260 case $host in
10261 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10262 export_dynamic_flag_spec='${wl}-Blargedynsym'
10264 esac
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10269 $as_echo "$ld_shlibs" >&6; }
10270 test "$ld_shlibs" = no && can_build_shared=no
10272 with_gnu_ld=$with_gnu_ld
10289 # Do we need to explicitly link libc?
10291 case "x$archive_cmds_need_lc" in
10292 x|xyes)
10293 # Assume -lc should be added
10294 archive_cmds_need_lc=yes
10296 if test "$enable_shared" = yes && test "$GCC" = yes; then
10297 case $archive_cmds in
10298 *'~'*)
10299 # FIXME: we may have to deal with multi-command sequences.
10301 '$CC '*)
10302 # Test whether the compiler implicitly links with -lc since on some
10303 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10304 # to ld, don't add -lc before -lgcc.
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10306 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10307 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 $RM conftest*
10311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10314 (eval $ac_compile) 2>&5
10315 ac_status=$?
10316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10317 test $ac_status = 0; } 2>conftest.err; then
10318 soname=conftest
10319 lib=conftest
10320 libobjs=conftest.$ac_objext
10321 deplibs=
10322 wl=$lt_prog_compiler_wl
10323 pic_flag=$lt_prog_compiler_pic
10324 compiler_flags=-v
10325 linker_flags=-v
10326 verstring=
10327 output_objdir=.
10328 libname=conftest
10329 lt_save_allow_undefined_flag=$allow_undefined_flag
10330 allow_undefined_flag=
10331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10332 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10333 ac_status=$?
10334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10335 test $ac_status = 0; }
10336 then
10337 lt_cv_archive_cmds_need_lc=no
10338 else
10339 lt_cv_archive_cmds_need_lc=yes
10341 allow_undefined_flag=$lt_save_allow_undefined_flag
10342 else
10343 cat conftest.err 1>&5
10345 $RM conftest*
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10349 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10350 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10352 esac
10355 esac
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10514 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10516 if test "$GCC" = yes; then
10517 case $host_os in
10518 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10519 *) lt_awk_arg="/^libraries:/" ;;
10520 esac
10521 case $host_os in
10522 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10523 *) lt_sed_strip_eq="s,=/,/,g" ;;
10524 esac
10525 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10526 case $lt_search_path_spec in
10527 *\;*)
10528 # if the path contains ";" then we assume it to be the separator
10529 # otherwise default to the standard path separator (i.e. ":") - it is
10530 # assumed that no part of a normal pathname contains ";" but that should
10531 # okay in the real world where ";" in dirpaths is itself problematic.
10532 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10537 esac
10538 # Ok, now we have the path, separated by spaces, we can step through it
10539 # and add multilib dir if necessary.
10540 lt_tmp_lt_search_path_spec=
10541 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10542 for lt_sys_path in $lt_search_path_spec; do
10543 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10544 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10545 else
10546 test -d "$lt_sys_path" && \
10547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10549 done
10550 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10551 BEGIN {RS=" "; FS="/|\n";} {
10552 lt_foo="";
10553 lt_count=0;
10554 for (lt_i = NF; lt_i > 0; lt_i--) {
10555 if ($lt_i != "" && $lt_i != ".") {
10556 if ($lt_i == "..") {
10557 lt_count++;
10558 } else {
10559 if (lt_count == 0) {
10560 lt_foo="/" $lt_i lt_foo;
10561 } else {
10562 lt_count--;
10567 if (lt_foo != "") { lt_freq[lt_foo]++; }
10568 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10570 # AWK program above erroneously prepends '/' to C:/dos/paths
10571 # for these hosts.
10572 case $host_os in
10573 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10574 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10575 esac
10576 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10577 else
10578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10580 library_names_spec=
10581 libname_spec='lib$name'
10582 soname_spec=
10583 shrext_cmds=".so"
10584 postinstall_cmds=
10585 postuninstall_cmds=
10586 finish_cmds=
10587 finish_eval=
10588 shlibpath_var=
10589 shlibpath_overrides_runpath=unknown
10590 version_type=none
10591 dynamic_linker="$host_os ld.so"
10592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10593 need_lib_prefix=unknown
10594 hardcode_into_libs=no
10596 # when you set need_version to no, make sure it does not cause -set_version
10597 # flags to be left without arguments
10598 need_version=unknown
10600 case $host_os in
10601 aix3*)
10602 version_type=linux
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10604 shlibpath_var=LIBPATH
10606 # AIX 3 has no versioning support, so we append a major version to the name.
10607 soname_spec='${libname}${release}${shared_ext}$major'
10610 aix[4-9]*)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 hardcode_into_libs=yes
10615 if test "$host_cpu" = ia64; then
10616 # AIX 5 supports IA64
10617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 else
10620 # With GCC up to 2.95.x, collect2 would create an import file
10621 # for dependence libraries. The import file would start with
10622 # the line `#! .'. This would cause the generated library to
10623 # depend on `.', always an invalid library. This was fixed in
10624 # development snapshots of GCC prior to 3.0.
10625 case $host_os in
10626 aix4 | aix4.[01] | aix4.[01].*)
10627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10628 echo ' yes '
10629 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10631 else
10632 can_build_shared=no
10635 esac
10636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10637 # soname into executable. Probably we can add versioning support to
10638 # collect2, so additional links can be useful in future.
10639 if test "$aix_use_runtimelinking" = yes; then
10640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10641 # instead of lib<name>.a to let people know that these are not
10642 # typical AIX shared libraries.
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 else
10645 # We preserve .a as extension for shared libraries through AIX4.2
10646 # and later when we are not doing run time linking.
10647 library_names_spec='${libname}${release}.a $libname.a'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LIBPATH
10654 amigaos*)
10655 case $host_cpu in
10656 powerpc)
10657 # Since July 2007 AmigaOS4 officially supports .so libraries.
10658 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 m68k)
10662 library_names_spec='$libname.ixlibrary $libname.a'
10663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10664 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'
10666 esac
10669 beos*)
10670 library_names_spec='${libname}${shared_ext}'
10671 dynamic_linker="$host_os ld.so"
10672 shlibpath_var=LIBRARY_PATH
10675 bsdi[45]*)
10676 version_type=linux
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10684 # the default ld.so.conf also contains /usr/contrib/lib and
10685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10686 # libtool to hard-code these into programs
10689 cygwin* | mingw* | pw32* | cegcc*)
10690 version_type=windows
10691 shrext_cmds=".dll"
10692 need_version=no
10693 need_lib_prefix=no
10695 case $GCC,$host_os in
10696 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10697 library_names_spec='$libname.dll.a'
10698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10699 postinstall_cmds='base_file=`basename \${file}`~
10700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10701 dldir=$destdir/`dirname \$dlpath`~
10702 test -d \$dldir || mkdir -p \$dldir~
10703 $install_prog $dir/$dlname \$dldir/$dlname~
10704 chmod a+x \$dldir/$dlname~
10705 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10706 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709 dlpath=$dir/\$dldll~
10710 $RM \$dlpath'
10711 shlibpath_overrides_runpath=yes
10713 case $host_os in
10714 cygwin*)
10715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10720 mingw* | cegcc*)
10721 # MinGW DLLs use traditional 'lib' prefix
10722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724 pw32*)
10725 # pw32 DLLs use 'pw' prefix rather than 'lib'
10726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 esac
10732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10734 esac
10735 dynamic_linker='Win32 ld.exe'
10736 # FIXME: first we should search . and the directory the executable is in
10737 shlibpath_var=PATH
10740 darwin* | rhapsody*)
10741 dynamic_linker="$host_os dyld"
10742 version_type=darwin
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746 soname_spec='${libname}${release}${major}$shared_ext'
10747 shlibpath_overrides_runpath=yes
10748 shlibpath_var=DYLD_LIBRARY_PATH
10749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10751 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 dgux*)
10756 version_type=linux
10757 need_lib_prefix=no
10758 need_version=no
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10764 freebsd* | dragonfly*)
10765 # DragonFly does not have aout. When/if they implement a new
10766 # versioning mechanism, adjust this.
10767 if test -x /usr/bin/objformat; then
10768 objformat=`/usr/bin/objformat`
10769 else
10770 case $host_os in
10771 freebsd[23].*) objformat=aout ;;
10772 *) objformat=elf ;;
10773 esac
10775 version_type=freebsd-$objformat
10776 case $version_type in
10777 freebsd-elf*)
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 need_version=no
10780 need_lib_prefix=no
10782 freebsd-*)
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10784 need_version=yes
10786 esac
10787 shlibpath_var=LD_LIBRARY_PATH
10788 case $host_os in
10789 freebsd2.*)
10790 shlibpath_overrides_runpath=yes
10792 freebsd3.[01]* | freebsdelf3.[01]*)
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10801 *) # from 4.6 on, and DragonFly
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10805 esac
10808 haiku*)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 dynamic_linker="$host_os runtime_loader"
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LIBRARY_PATH
10816 shlibpath_overrides_runpath=yes
10817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10818 hardcode_into_libs=yes
10821 hpux9* | hpux10* | hpux11*)
10822 # Give a soname corresponding to the major version so that dld.sl refuses to
10823 # link against other versions.
10824 version_type=sunos
10825 need_lib_prefix=no
10826 need_version=no
10827 case $host_cpu in
10828 ia64*)
10829 shrext_cmds='.so'
10830 hardcode_into_libs=yes
10831 dynamic_linker="$host_os dld.so"
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 if test "X$HPUX_IA64_MODE" = X32; then
10837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10838 else
10839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10843 hppa*64*)
10844 shrext_cmds='.sl'
10845 hardcode_into_libs=yes
10846 dynamic_linker="$host_os dld.sl"
10847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855 shrext_cmds='.sl'
10856 dynamic_linker="$host_os dld.sl"
10857 shlibpath_var=SHLIB_PATH
10858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10862 esac
10863 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10864 postinstall_cmds='chmod 555 $lib'
10865 # or fails outright, so override atomically:
10866 install_override_mode=555
10869 interix[3-9]*)
10870 version_type=linux
10871 need_lib_prefix=no
10872 need_version=no
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10881 irix5* | irix6* | nonstopux*)
10882 case $host_os in
10883 nonstopux*) version_type=nonstopux ;;
10885 if test "$lt_cv_prog_gnu_ld" = yes; then
10886 version_type=linux
10887 else
10888 version_type=irix
10889 fi ;;
10890 esac
10891 need_lib_prefix=no
10892 need_version=no
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 case $host_os in
10896 irix5* | nonstopux*)
10897 libsuff= shlibsuff=
10900 case $LD in # libtool.m4 will add one of these switches to LD
10901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10902 libsuff= shlibsuff= libmagic=32-bit;;
10903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10904 libsuff=32 shlibsuff=N32 libmagic=N32;;
10905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10907 *) libsuff= shlibsuff= libmagic=never-match;;
10908 esac
10910 esac
10911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10912 shlibpath_overrides_runpath=no
10913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10915 hardcode_into_libs=yes
10918 # No shared lib support for Linux oldld, aout, or coff.
10919 linux*oldld* | linux*aout* | linux*coff*)
10920 dynamic_linker=no
10923 # This must be Linux ELF.
10925 # uclinux* changes (here and below) have been submitted to the libtool
10926 # project, but have not yet been accepted: they are GCC-local changes
10927 # for the time being. (See
10928 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10929 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10930 version_type=linux
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10939 # Some binutils ld are patched to set DT_RUNPATH
10940 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 lt_cv_shlibpath_overrides_runpath=no
10944 save_LDFLAGS=$LDFLAGS
10945 save_libdir=$libdir
10946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10952 main ()
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10961 lt_cv_shlibpath_overrides_runpath=yes
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LDFLAGS=$save_LDFLAGS
10967 libdir=$save_libdir
10971 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10973 # This implies no fast_install, which is unacceptable.
10974 # Some rework will be needed to allow for fast_install
10975 # before this can be enabled.
10976 hardcode_into_libs=yes
10978 # Append ld.so.conf contents to the search path
10979 if test -f /etc/ld.so.conf; then
10980 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' ' '`
10981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10984 # We used to test for /lib/ld.so.1 and disable shared libraries on
10985 # powerpc, because MkLinux only supported shared libraries with the
10986 # GNU dynamic linker. Since this was broken with cross compilers,
10987 # most powerpc-linux boxes support dynamic linking these days and
10988 # people can always --disable-shared, the test was removed, and we
10989 # assume the GNU/Linux dynamic linker is in use.
10990 dynamic_linker='GNU/Linux ld.so'
10993 netbsd*)
10994 version_type=sunos
10995 need_lib_prefix=no
10996 need_version=no
10997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11000 dynamic_linker='NetBSD (a.out) ld.so'
11001 else
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 dynamic_linker='NetBSD ld.elf_so'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11011 newsos6)
11012 version_type=linux
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11018 *nto* | *qnx*)
11019 version_type=qnx
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026 hardcode_into_libs=yes
11027 dynamic_linker='ldqnx.so'
11030 openbsd*)
11031 version_type=sunos
11032 sys_lib_dlsearch_path_spec="/usr/lib"
11033 need_lib_prefix=no
11034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11035 case $host_os in
11036 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11037 *) need_version=no ;;
11038 esac
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11043 case $host_os in
11044 openbsd2.[89] | openbsd2.[89].*)
11045 shlibpath_overrides_runpath=no
11048 shlibpath_overrides_runpath=yes
11050 esac
11051 else
11052 shlibpath_overrides_runpath=yes
11056 os2*)
11057 libname_spec='$name'
11058 shrext_cmds=".dll"
11059 need_lib_prefix=no
11060 library_names_spec='$libname${shared_ext} $libname.a'
11061 dynamic_linker='OS/2 ld.exe'
11062 shlibpath_var=LIBPATH
11065 osf3* | osf4* | osf5*)
11066 version_type=osf
11067 need_lib_prefix=no
11068 need_version=no
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11076 rdos*)
11077 dynamic_linker=no
11080 solaris*)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 # ldd complains unless libraries are executable
11090 postinstall_cmds='chmod +x $lib'
11093 sunos4*)
11094 version_type=sunos
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 if test "$with_gnu_ld" = yes; then
11100 need_lib_prefix=no
11102 need_version=yes
11105 sysv4 | sysv4.3*)
11106 version_type=linux
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 case $host_vendor in
11111 sni)
11112 shlibpath_overrides_runpath=no
11113 need_lib_prefix=no
11114 runpath_var=LD_RUN_PATH
11116 siemens)
11117 need_lib_prefix=no
11119 motorola)
11120 need_lib_prefix=no
11121 need_version=no
11122 shlibpath_overrides_runpath=no
11123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11125 esac
11128 sysv4*MP*)
11129 if test -d /usr/nec ;then
11130 version_type=linux
11131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11132 soname_spec='$libname${shared_ext}.$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11138 version_type=freebsd-elf
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 if test "$with_gnu_ld" = yes; then
11147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11148 else
11149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11150 case $host_os in
11151 sco3.2v5*)
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11154 esac
11156 sys_lib_dlsearch_path_spec='/usr/lib'
11159 tpf*)
11160 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11161 version_type=linux
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11170 uts4*)
11171 version_type=linux
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11177 # Shared libraries for VwWorks, >= 7 only at this stage
11178 # and (fpic) still incompatible with "large" code models
11179 # in a few configurations. Only for RTP mode in any case,
11180 # and upon explicit request at configure time.
11181 vxworks7*)
11182 dynamic_linker=no
11183 case ${with_multisubdir}-${enable_shared} in
11184 *large*)
11186 *mrtp*-yes)
11187 version_type=linux
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 dynamic_linker="$host_os module_loader"
11194 esac
11197 dynamic_linker=no
11199 esac
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11201 $as_echo "$dynamic_linker" >&6; }
11202 test "$dynamic_linker" = no && can_build_shared=no
11204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11205 if test "$GCC" = yes; then
11206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11209 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11210 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11213 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11309 hardcode_action=
11310 if test -n "$hardcode_libdir_flag_spec" ||
11311 test -n "$runpath_var" ||
11312 test "X$hardcode_automatic" = "Xyes" ; then
11314 # We can hardcode non-existent directories.
11315 if test "$hardcode_direct" != no &&
11316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11317 # have to relink, otherwise we might link with an installed library
11318 # when we should be linking with a yet-to-be-installed one
11319 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11320 test "$hardcode_minus_L" != no; then
11321 # Linking always hardcodes the temporary library directory.
11322 hardcode_action=relink
11323 else
11324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11325 hardcode_action=immediate
11327 else
11328 # We cannot hardcode anything, or else we can only hardcode existing
11329 # directories.
11330 hardcode_action=unsupported
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11333 $as_echo "$hardcode_action" >&6; }
11335 if test "$hardcode_action" = relink ||
11336 test "$inherit_rpath" = yes; then
11337 # Fast installation is not supported
11338 enable_fast_install=no
11339 elif test "$shlibpath_overrides_runpath" = yes ||
11340 test "$enable_shared" = no; then
11341 # Fast installation is not necessary
11342 enable_fast_install=needless
11350 if test "x$enable_dlopen" != xyes; then
11351 enable_dlopen=unknown
11352 enable_dlopen_self=unknown
11353 enable_dlopen_self_static=unknown
11354 else
11355 lt_cv_dlopen=no
11356 lt_cv_dlopen_libs=
11358 case $host_os in
11359 beos*)
11360 lt_cv_dlopen="load_add_on"
11361 lt_cv_dlopen_libs=
11362 lt_cv_dlopen_self=yes
11365 mingw* | pw32* | cegcc*)
11366 lt_cv_dlopen="LoadLibrary"
11367 lt_cv_dlopen_libs=
11370 cygwin*)
11371 lt_cv_dlopen="dlopen"
11372 lt_cv_dlopen_libs=
11375 darwin*)
11376 # if libdl is installed we need to link against it
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11379 if ${ac_cv_lib_dl_dlopen+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-ldl $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char dlopen ();
11395 main ()
11397 return dlopen ();
11399 return 0;
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_dl_dlopen=yes
11404 else
11405 ac_cv_lib_dl_dlopen=no
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11413 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11415 else
11417 lt_cv_dlopen="dyld"
11418 lt_cv_dlopen_libs=
11419 lt_cv_dlopen_self=yes
11426 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11427 if test "x$ac_cv_func_shl_load" = xyes; then :
11428 lt_cv_dlopen="shl_load"
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11431 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11432 if ${ac_cv_lib_dld_shl_load+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-ldld $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char shl_load ();
11448 main ()
11450 return shl_load ();
11452 return 0;
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_dld_shl_load=yes
11457 else
11458 ac_cv_lib_dld_shl_load=no
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11465 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11466 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11468 else
11469 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11470 if test "x$ac_cv_func_dlopen" = xyes; then :
11471 lt_cv_dlopen="dlopen"
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-ldl $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char dlopen ();
11491 main ()
11493 return dlopen ();
11495 return 0;
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11500 else
11501 ac_cv_lib_dl_dlopen=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11513 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11514 if ${ac_cv_lib_svld_dlopen+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-lsvld $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char dlopen ();
11530 main ()
11532 return dlopen ();
11534 return 0;
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_svld_dlopen=yes
11539 else
11540 ac_cv_lib_svld_dlopen=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11547 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11548 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11552 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11553 if ${ac_cv_lib_dld_dld_link+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldld $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dld_link ();
11569 main ()
11571 return dld_link ();
11573 return 0;
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dld_dld_link=yes
11578 else
11579 ac_cv_lib_dld_dld_link=no
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11586 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11587 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11588 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11607 esac
11609 if test "x$lt_cv_dlopen" != xno; then
11610 enable_dlopen=yes
11611 else
11612 enable_dlopen=no
11615 case $lt_cv_dlopen in
11616 dlopen)
11617 save_CPPFLAGS="$CPPFLAGS"
11618 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620 save_LDFLAGS="$LDFLAGS"
11621 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623 save_LIBS="$LIBS"
11624 LIBS="$lt_cv_dlopen_libs $LIBS"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11627 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11628 if ${lt_cv_dlopen_self+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test "$cross_compiling" = yes; then :
11632 lt_cv_dlopen_self=cross
11633 else
11634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11635 lt_status=$lt_dlunknown
11636 cat > conftest.$ac_ext <<_LT_EOF
11637 #line 11637 "configure"
11638 #include "confdefs.h"
11640 #if HAVE_DLFCN_H
11641 #include <dlfcn.h>
11642 #endif
11644 #include <stdio.h>
11646 #ifdef RTLD_GLOBAL
11647 # define LT_DLGLOBAL RTLD_GLOBAL
11648 #else
11649 # ifdef DL_GLOBAL
11650 # define LT_DLGLOBAL DL_GLOBAL
11651 # else
11652 # define LT_DLGLOBAL 0
11653 # endif
11654 #endif
11656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11657 find out it does not work in some platform. */
11658 #ifndef LT_DLLAZY_OR_NOW
11659 # ifdef RTLD_LAZY
11660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11661 # else
11662 # ifdef DL_LAZY
11663 # define LT_DLLAZY_OR_NOW DL_LAZY
11664 # else
11665 # ifdef RTLD_NOW
11666 # define LT_DLLAZY_OR_NOW RTLD_NOW
11667 # else
11668 # ifdef DL_NOW
11669 # define LT_DLLAZY_OR_NOW DL_NOW
11670 # else
11671 # define LT_DLLAZY_OR_NOW 0
11672 # endif
11673 # endif
11674 # endif
11675 # endif
11676 #endif
11678 /* When -fvisbility=hidden is used, assume the code has been annotated
11679 correspondingly for the symbols needed. */
11680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11681 void fnord () __attribute__((visibility("default")));
11682 #endif
11684 void fnord () { int i=42; }
11685 int main ()
11687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688 int status = $lt_dlunknown;
11690 if (self)
11692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11693 else
11695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11696 else puts (dlerror ());
11698 /* dlclose (self); */
11700 else
11701 puts (dlerror ());
11703 return status;
11705 _LT_EOF
11706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707 (eval $ac_link) 2>&5
11708 ac_status=$?
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711 (./conftest; exit; ) >&5 2>/dev/null
11712 lt_status=$?
11713 case x$lt_status in
11714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11716 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11717 esac
11718 else :
11719 # compilation failed
11720 lt_cv_dlopen_self=no
11723 rm -fr conftest*
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11728 $as_echo "$lt_cv_dlopen_self" >&6; }
11730 if test "x$lt_cv_dlopen_self" = xyes; then
11731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11733 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11734 if ${lt_cv_dlopen_self_static+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test "$cross_compiling" = yes; then :
11738 lt_cv_dlopen_self_static=cross
11739 else
11740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11741 lt_status=$lt_dlunknown
11742 cat > conftest.$ac_ext <<_LT_EOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11746 #if HAVE_DLFCN_H
11747 #include <dlfcn.h>
11748 #endif
11750 #include <stdio.h>
11752 #ifdef RTLD_GLOBAL
11753 # define LT_DLGLOBAL RTLD_GLOBAL
11754 #else
11755 # ifdef DL_GLOBAL
11756 # define LT_DLGLOBAL DL_GLOBAL
11757 # else
11758 # define LT_DLGLOBAL 0
11759 # endif
11760 #endif
11762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11763 find out it does not work in some platform. */
11764 #ifndef LT_DLLAZY_OR_NOW
11765 # ifdef RTLD_LAZY
11766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11767 # else
11768 # ifdef DL_LAZY
11769 # define LT_DLLAZY_OR_NOW DL_LAZY
11770 # else
11771 # ifdef RTLD_NOW
11772 # define LT_DLLAZY_OR_NOW RTLD_NOW
11773 # else
11774 # ifdef DL_NOW
11775 # define LT_DLLAZY_OR_NOW DL_NOW
11776 # else
11777 # define LT_DLLAZY_OR_NOW 0
11778 # endif
11779 # endif
11780 # endif
11781 # endif
11782 #endif
11784 /* When -fvisbility=hidden is used, assume the code has been annotated
11785 correspondingly for the symbols needed. */
11786 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11787 void fnord () __attribute__((visibility("default")));
11788 #endif
11790 void fnord () { int i=42; }
11791 int main ()
11793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11794 int status = $lt_dlunknown;
11796 if (self)
11798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11799 else
11801 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11802 else puts (dlerror ());
11804 /* dlclose (self); */
11806 else
11807 puts (dlerror ());
11809 return status;
11811 _LT_EOF
11812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11813 (eval $ac_link) 2>&5
11814 ac_status=$?
11815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11816 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11817 (./conftest; exit; ) >&5 2>/dev/null
11818 lt_status=$?
11819 case x$lt_status in
11820 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11821 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11822 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11823 esac
11824 else :
11825 # compilation failed
11826 lt_cv_dlopen_self_static=no
11829 rm -fr conftest*
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11834 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11837 CPPFLAGS="$save_CPPFLAGS"
11838 LDFLAGS="$save_LDFLAGS"
11839 LIBS="$save_LIBS"
11841 esac
11843 case $lt_cv_dlopen_self in
11844 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11845 *) enable_dlopen_self=unknown ;;
11846 esac
11848 case $lt_cv_dlopen_self_static in
11849 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11850 *) enable_dlopen_self_static=unknown ;;
11851 esac
11870 striplib=
11871 old_striplib=
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11873 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11874 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11879 else
11880 # FIXME - insert some real tests, host_os isn't really good enough
11881 case $host_os in
11882 darwin*)
11883 if test -n "$STRIP" ; then
11884 striplib="$STRIP -x"
11885 old_striplib="$STRIP -S"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887 $as_echo "yes" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11897 esac
11911 # Report which library types will actually be built
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11913 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11915 $as_echo "$can_build_shared" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11918 $as_echo_n "checking whether to build shared libraries... " >&6; }
11919 test "$can_build_shared" = "no" && enable_shared=no
11921 # On AIX, shared libraries and static libraries use the same namespace, and
11922 # are all built from PIC.
11923 case $host_os in
11924 aix3*)
11925 test "$enable_shared" = yes && enable_static=no
11926 if test -n "$RANLIB"; then
11927 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11928 postinstall_cmds='$RANLIB $lib'
11932 aix[4-9]*)
11933 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11934 test "$enable_shared" = yes && enable_static=no
11937 esac
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11939 $as_echo "$enable_shared" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11942 $as_echo_n "checking whether to build static libraries... " >&6; }
11943 # Make sure either enable_shared or enable_static is yes.
11944 test "$enable_shared" = yes || enable_static=yes
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11946 $as_echo "$enable_static" >&6; }
11952 ac_ext=c
11953 ac_cpp='$CPP $CPPFLAGS'
11954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958 CC="$lt_save_CC"
11972 ac_config_commands="$ac_config_commands libtool"
11977 # Only expand once:
11982 if test x$enable_darwin_at_rpath = xyes; then
11983 ENABLE_DARWIN_AT_RPATH_TRUE=
11984 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11985 else
11986 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11987 ENABLE_DARWIN_AT_RPATH_FALSE=
11991 # Check whether --enable-largefile was given.
11992 if test "${enable_largefile+set}" = set; then :
11993 enableval=$enable_largefile;
11996 if test "$enable_largefile" != no; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11999 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12000 if ${ac_cv_sys_largefile_CC+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 ac_cv_sys_largefile_CC=no
12004 if test "$GCC" != yes; then
12005 ac_save_CC=$CC
12006 while :; do
12007 # IRIX 6.2 and later do not support large files by default,
12008 # so use the C compiler's -n32 option if that helps.
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <sys/types.h>
12012 /* Check that off_t can represent 2**63 - 1 correctly.
12013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12014 since some C++ compilers masquerading as C compilers
12015 incorrectly reject 9223372036854775807. */
12016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12018 && LARGE_OFF_T % 2147483647 == 1)
12019 ? 1 : -1];
12021 main ()
12025 return 0;
12027 _ACEOF
12028 if ac_fn_c_try_compile "$LINENO"; then :
12029 break
12031 rm -f core conftest.err conftest.$ac_objext
12032 CC="$CC -n32"
12033 if ac_fn_c_try_compile "$LINENO"; then :
12034 ac_cv_sys_largefile_CC=' -n32'; break
12036 rm -f core conftest.err conftest.$ac_objext
12037 break
12038 done
12039 CC=$ac_save_CC
12040 rm -f conftest.$ac_ext
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12044 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12045 if test "$ac_cv_sys_largefile_CC" != no; then
12046 CC=$CC$ac_cv_sys_largefile_CC
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12050 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12051 if ${ac_cv_sys_file_offset_bits+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 while :; do
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 #include <sys/types.h>
12058 /* Check that off_t can represent 2**63 - 1 correctly.
12059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12060 since some C++ compilers masquerading as C compilers
12061 incorrectly reject 9223372036854775807. */
12062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12064 && LARGE_OFF_T % 2147483647 == 1)
12065 ? 1 : -1];
12067 main ()
12071 return 0;
12073 _ACEOF
12074 if ac_fn_c_try_compile "$LINENO"; then :
12075 ac_cv_sys_file_offset_bits=no; break
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #define _FILE_OFFSET_BITS 64
12081 #include <sys/types.h>
12082 /* Check that off_t can represent 2**63 - 1 correctly.
12083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12084 since some C++ compilers masquerading as C compilers
12085 incorrectly reject 9223372036854775807. */
12086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12088 && LARGE_OFF_T % 2147483647 == 1)
12089 ? 1 : -1];
12091 main ()
12095 return 0;
12097 _ACEOF
12098 if ac_fn_c_try_compile "$LINENO"; then :
12099 ac_cv_sys_file_offset_bits=64; break
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 ac_cv_sys_file_offset_bits=unknown
12103 break
12104 done
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12107 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12108 case $ac_cv_sys_file_offset_bits in #(
12109 no | unknown) ;;
12111 cat >>confdefs.h <<_ACEOF
12112 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12113 _ACEOF
12115 esac
12116 rm -rf conftest*
12117 if test $ac_cv_sys_file_offset_bits = unknown; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12119 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12120 if ${ac_cv_sys_large_files+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 while :; do
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 #include <sys/types.h>
12127 /* Check that off_t can represent 2**63 - 1 correctly.
12128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12129 since some C++ compilers masquerading as C compilers
12130 incorrectly reject 9223372036854775807. */
12131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12133 && LARGE_OFF_T % 2147483647 == 1)
12134 ? 1 : -1];
12136 main ()
12140 return 0;
12142 _ACEOF
12143 if ac_fn_c_try_compile "$LINENO"; then :
12144 ac_cv_sys_large_files=no; break
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #define _LARGE_FILES 1
12150 #include <sys/types.h>
12151 /* Check that off_t can represent 2**63 - 1 correctly.
12152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12153 since some C++ compilers masquerading as C compilers
12154 incorrectly reject 9223372036854775807. */
12155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12157 && LARGE_OFF_T % 2147483647 == 1)
12158 ? 1 : -1];
12160 main ()
12164 return 0;
12166 _ACEOF
12167 if ac_fn_c_try_compile "$LINENO"; then :
12168 ac_cv_sys_large_files=1; break
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 ac_cv_sys_large_files=unknown
12172 break
12173 done
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12176 $as_echo "$ac_cv_sys_large_files" >&6; }
12177 case $ac_cv_sys_large_files in #(
12178 no | unknown) ;;
12180 cat >>confdefs.h <<_ACEOF
12181 #define _LARGE_FILES $ac_cv_sys_large_files
12182 _ACEOF
12184 esac
12185 rm -rf conftest*
12192 backtrace_supported=yes
12194 if test -n "${with_target_subdir}"; then
12195 # We are compiling a GCC library. We can assume that the unwind
12196 # library exists.
12197 BACKTRACE_FILE="backtrace.lo simple.lo"
12198 else
12199 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_unwind_h" = xyes; then :
12201 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12202 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12203 BACKTRACE_FILE="backtrace.lo simple.lo"
12204 else
12205 BACKTRACE_FILE="nounwind.lo"
12206 backtrace_supported=no
12209 else
12210 BACKTRACE_FILE="nounwind.lo"
12211 backtrace_supported=no
12218 EXTRA_FLAGS=
12219 if test -n "${with_target_subdir}"; then
12220 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12223 $as_echo_n "checking for -funwind-tables option... " >&6; }
12224 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 CFLAGS_hold="$CFLAGS"
12228 CFLAGS="$CFLAGS -funwind-tables"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 static int f() { return 0; }
12233 main ()
12235 return f();
12237 return 0;
12239 _ACEOF
12240 if ac_fn_c_try_compile "$LINENO"; then :
12241 libbacktrace_cv_c_unwind_tables=yes
12242 else
12243 libbacktrace_cv_c_unwind_tables=no
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 CFLAGS="$CFLAGS_hold"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12249 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12250 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12251 EXTRA_FLAGS=-funwind-tables
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12254 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12255 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 CFLAGS_hold="$CFLAGS"
12259 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12264 main ()
12266 return 0;
12268 return 0;
12270 _ACEOF
12271 if ac_fn_c_try_compile "$LINENO"; then :
12272 libbacktrace_cv_c_random_seed_string=yes
12273 else
12274 libbacktrace_cv_c_random_seed_string=no
12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 CFLAGS="$CFLAGS_hold"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12280 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12281 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12282 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12286 if test -n "${with_target_subdir}"; then
12287 # Add CET specific flags is Intel CET is enabled.
12288 # Check whether --enable-cet was given.
12289 if test "${enable_cet+set}" = set; then :
12290 enableval=$enable_cet;
12291 case "$enableval" in
12292 yes|no|auto) ;;
12293 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12294 esac
12296 else
12297 enable_cet=auto
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12302 $as_echo_n "checking for CET support... " >&6; }
12304 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12305 case "$host" in
12306 i[34567]86-*-linux* | x86_64-*-linux*)
12307 case "$enable_cet" in
12308 auto)
12309 # Check if target supports multi-byte NOPs
12310 # and if compiler and assembler support CET insn.
12311 cet_save_CFLAGS="$CFLAGS"
12312 CFLAGS="$CFLAGS -fcf-protection"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12317 main ()
12320 #if !defined(__SSE2__)
12321 #error target does not support multi-byte NOPs
12322 #else
12323 asm ("setssbsy");
12324 #endif
12327 return 0;
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 enable_cet=yes
12332 else
12333 enable_cet=no
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 CFLAGS="$cet_save_CFLAGS"
12338 yes)
12339 # Check if assembler supports CET.
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12344 main ()
12346 asm ("setssbsy");
12348 return 0;
12350 _ACEOF
12351 if ac_fn_c_try_compile "$LINENO"; then :
12353 else
12354 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 esac
12361 enable_cet=no
12363 esac
12364 if test x$enable_cet = xyes; then
12365 CET_FLAGS="-fcf-protection -mshstk"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367 $as_echo "yes" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12373 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12377 ac_ext=c
12378 ac_cpp='$CPP $CPPFLAGS'
12379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383 WARN_FLAGS=
12384 save_CFLAGS="$CFLAGS"
12385 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12386 -Wmissing-prototypes -Wold-style-definition \
12387 -Wmissing-format-attribute -Wcast-qual \
12388 -Wno-attributes -Wno-unknown-attributes; do
12389 # Do the check with the no- prefix removed since gcc silently
12390 # accepts any -Wno-* option on purpose
12391 case $real_option in
12392 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12393 *) option=$real_option ;;
12394 esac
12395 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12398 $as_echo_n "checking whether $CC supports $option... " >&6; }
12399 if eval \${$as_acx_Woption+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 CFLAGS="$option"
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12407 main ()
12411 return 0;
12413 _ACEOF
12414 if ac_fn_c_try_compile "$LINENO"; then :
12415 eval "$as_acx_Woption=yes"
12416 else
12417 eval "$as_acx_Woption=no"
12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 eval ac_res=\$$as_acx_Woption
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12424 $as_echo "$ac_res" >&6; }
12425 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12426 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12428 done
12429 CFLAGS="$save_CFLAGS"
12430 ac_ext=c
12431 ac_cpp='$CPP $CPPFLAGS'
12432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12438 # Check whether --enable-werror was given.
12439 if test "${enable_werror+set}" = set; then :
12440 enableval=$enable_werror;
12443 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12444 WARN_FLAGS="$WARN_FLAGS -Werror"
12448 if test -n "${with_target_subdir}"; then
12451 # Check whether --with-system-libunwind was given.
12452 if test "${with_system_libunwind+set}" = set; then :
12453 withval=$with_system_libunwind;
12456 # If system-libunwind was not specifically set, pick a default setting.
12457 if test x$with_system_libunwind = x; then
12458 case ${target} in
12459 ia64-*-hpux*) with_system_libunwind=yes ;;
12460 *) with_system_libunwind=no ;;
12461 esac
12463 # Based on system-libunwind and target, do we have ipinfo?
12464 if test x$with_system_libunwind = xyes; then
12465 case ${target} in
12466 ia64-*-*) have_unwind_getipinfo=no ;;
12467 *) have_unwind_getipinfo=yes ;;
12468 esac
12469 else
12470 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12472 case ${target} in
12473 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12474 *) have_unwind_getipinfo=yes ;;
12475 esac
12479 if test x$have_unwind_getipinfo = xyes; then
12481 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12485 else
12486 ac_save_CFFLAGS="$CFLAGS"
12487 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12489 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #include "unwind.h"
12493 struct _Unwind_Context *context;
12494 int ip_before_insn = 0;
12496 main ()
12498 return _Unwind_GetIPInfo (context, &ip_before_insn);
12500 return 0;
12502 _ACEOF
12503 if ac_fn_c_try_link "$LINENO"; then :
12504 have_unwind_getipinfo=yes
12505 else
12506 have_unwind_getipinfo=no
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 CFLAGS="$ac_save_CFLAGS"
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12512 $as_echo "$have_unwind_getipinfo" >&6; }
12513 if test "$have_unwind_getipinfo" = "yes"; then
12515 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12520 # Enable --enable-host-shared.
12521 # Check whether --enable-host-shared was given.
12522 if test "${enable_host_shared+set}" = set; then :
12523 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12524 else
12525 PIC_FLAG=
12530 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12531 # Check whether --enable-cet was given.
12532 if test "${enable_cet+set}" = set; then :
12533 enableval=$enable_cet;
12534 case "$enableval" in
12535 yes|no|auto) ;;
12536 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12537 esac
12539 else
12540 enable_cet=auto
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12545 $as_echo_n "checking for CET support... " >&6; }
12547 case "$host" in
12548 i[34567]86-*-linux* | x86_64-*-linux*)
12549 may_have_cet=yes
12550 cet_save_CFLAGS="$CFLAGS"
12551 CFLAGS="$CFLAGS -fcf-protection"
12552 case "$enable_cet" in
12553 auto)
12554 # Check if target supports multi-byte NOPs
12555 # and if compiler and assembler support CET.
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12560 main ()
12563 #if !defined(__SSE2__)
12564 #error target does not support multi-byte NOPs
12565 #else
12566 asm ("setssbsy");
12567 #endif
12570 return 0;
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 enable_cet=yes
12575 else
12576 enable_cet=no
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 yes)
12581 # Check if compiler and assembler support CET.
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12586 main ()
12588 asm ("setssbsy");
12590 return 0;
12592 _ACEOF
12593 if ac_fn_c_try_compile "$LINENO"; then :
12594 support_cet=yes
12595 else
12596 support_cet=no
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 if test $support_cet = "no"; then
12600 if test x$enable_bootstrap != xno \
12601 && test -z "${with_build_subdir}" \
12602 && (test ! -f ../stage_current \
12603 || test `cat ../stage_current` != "stage1"); then
12604 # Require CET support only for the final GCC build.
12605 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12606 else
12607 # Don't enable CET without CET support for non-bootstrap
12608 # build, in stage1 nor for build support.
12609 enable_cet=no
12613 esac
12614 CFLAGS="$cet_save_CFLAGS"
12617 may_have_cet=no
12618 enable_cet=no
12620 esac
12622 cet_save_CFLAGS="$CFLAGS"
12623 CFLAGS="$CFLAGS -fcf-protection=none"
12624 cet_save_LDFLAGS="$LDFLAGS"
12625 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12626 if test x$may_have_cet = xyes; then
12627 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12632 main ()
12634 return 0;
12636 return 0;
12638 _ACEOF
12639 if ac_fn_c_try_link "$LINENO"; then :
12640 may_have_cet=yes
12641 else
12642 may_have_cet=no
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12648 if test x$may_have_cet = xyes; then
12649 if test x$cross_compiling = xno; then
12650 if test "$cross_compiling" = yes; then :
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12653 as_fn_error $? "cannot run test program while cross compiling
12654 See \`config.log' for more details" "$LINENO" 5; }
12655 else
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12660 main ()
12662 asm ("endbr32");
12663 return 0;
12666 _ACEOF
12667 if ac_fn_c_try_run "$LINENO"; then :
12668 have_multi_byte_nop=yes
12669 else
12670 have_multi_byte_nop=no
12672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12673 conftest.$ac_objext conftest.beam conftest.$ac_ext
12676 have_cet=no
12677 if test x$have_multi_byte_nop = xyes; then
12678 if test "$cross_compiling" = yes; then :
12679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681 as_fn_error $? "cannot run test program while cross compiling
12682 See \`config.log' for more details" "$LINENO" 5; }
12683 else
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 static void
12688 foo (void)
12692 static void
12693 __attribute__ ((noinline, noclone))
12694 xxx (void (*f) (void))
12696 f ();
12699 static void
12700 __attribute__ ((noinline, noclone))
12701 bar (void)
12703 xxx (foo);
12707 main ()
12709 bar ();
12710 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_run "$LINENO"; then :
12715 have_cet=no
12716 else
12717 have_cet=yes
12719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12720 conftest.$ac_objext conftest.beam conftest.$ac_ext
12724 if test x$enable_cet = xno -a x$have_cet = xyes; then
12725 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12728 else
12729 # Enable CET in cross compiler if possible so that it will run on both
12730 # CET and non-CET hosts.
12731 have_cet=yes
12733 if test x$enable_cet = xyes; then
12734 CET_HOST_FLAGS="-fcf-protection"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12736 $as_echo "yes" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12741 CFLAGS="$cet_save_CFLAGS"
12742 LDFLAGS="$cet_save_LDFLAGS"
12744 case x$enable_languages in
12745 *jit*)
12748 CET_HOST_FLAGS=
12750 esac
12753 # Test for __sync support.
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12755 $as_echo_n "checking __sync extensions... " >&6; }
12756 if ${libbacktrace_cv_sys_sync+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test -n "${with_target_subdir}"; then
12760 case "${host}" in
12761 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12762 *) libbacktrace_cv_sys_sync=yes ;;
12763 esac
12764 else
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 int i;
12769 main ()
12771 __sync_bool_compare_and_swap (&i, i, i);
12772 __sync_lock_test_and_set (&i, 1);
12773 __sync_lock_release (&i);
12775 return 0;
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 libbacktrace_cv_sys_sync=yes
12780 else
12781 libbacktrace_cv_sys_sync=no
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12788 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12789 BACKTRACE_SUPPORTS_THREADS=0
12790 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12791 BACKTRACE_SUPPORTS_THREADS=1
12793 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12798 # Test for __atomic support.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12800 $as_echo_n "checking __atomic extensions... " >&6; }
12801 if ${libbacktrace_cv_sys_atomic+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test -n "${with_target_subdir}"; then
12805 libbacktrace_cv_sys_atomic=yes
12806 else
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809 int i;
12811 main ()
12813 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12814 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12816 return 0;
12818 _ACEOF
12819 if ac_fn_c_try_link "$LINENO"; then :
12820 libbacktrace_cv_sys_atomic=yes
12821 else
12822 libbacktrace_cv_sys_atomic=no
12824 rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12829 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12830 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12832 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12836 # The library needs to be able to read the executable itself. Compile
12837 # a file to determine the executable format. The awk script
12838 # filetype.awk prints out the file type.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12840 $as_echo_n "checking output filetype... " >&6; }
12841 if ${libbacktrace_cv_sys_filetype+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 filetype=
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 int i;
12849 main ()
12851 int j;
12853 return 0;
12855 _ACEOF
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12858 else
12859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12861 as_fn_error $? "compiler failed
12862 See \`config.log' for more details" "$LINENO" 5; }
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 libbacktrace_cv_sys_filetype=$filetype
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12868 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12870 # Match the file type to decide what files to compile.
12871 FORMAT_FILE=
12872 backtrace_supports_data=yes
12873 case "$libbacktrace_cv_sys_filetype" in
12874 elf*) FORMAT_FILE="elf.lo" ;;
12875 macho) FORMAT_FILE="macho.lo" ;;
12876 pecoff) FORMAT_FILE="pecoff.lo"
12877 backtrace_supports_data=no
12879 xcoff*) FORMAT_FILE="xcoff.lo"
12880 backtrace_supports_data=no
12882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12883 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12884 FORMAT_FILE="unknown.lo"
12885 backtrace_supported=no
12887 esac
12890 # ELF defines.
12891 elfsize=
12892 case "$libbacktrace_cv_sys_filetype" in
12893 elf32) elfsize=32 ;;
12894 elf64) elfsize=64 ;;
12895 *) elfsize=unused
12896 esac
12898 cat >>confdefs.h <<_ACEOF
12899 #define BACKTRACE_ELF_SIZE $elfsize
12900 _ACEOF
12902 if test "$FORMAT_FILE" = "elf.lo"; then
12903 HAVE_ELF_TRUE=
12904 HAVE_ELF_FALSE='#'
12905 else
12906 HAVE_ELF_TRUE='#'
12907 HAVE_ELF_FALSE=
12911 # XCOFF defines.
12912 xcoffsize=
12913 case "$libbacktrace_cv_sys_filetype" in
12914 xcoff32) xcoffsize=32 ;;
12915 xcoff64) xcoffsize=64 ;;
12916 *) xcoffsize=unused
12917 esac
12919 cat >>confdefs.h <<_ACEOF
12920 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12921 _ACEOF
12924 BACKTRACE_SUPPORTED=0
12925 if test "$backtrace_supported" = "yes"; then
12926 BACKTRACE_SUPPORTED=1
12930 BACKTRACE_SUPPORTS_DATA=0
12931 if test "$backtrace_supports_data" = "yes"; then
12932 BACKTRACE_SUPPORTS_DATA=1
12938 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12940 acx_cv_header_stdint=stddef.h
12941 acx_cv_header_stdint_kind="(already complete)"
12942 for i in stdint.h $inttype_headers; do
12943 unset ac_cv_type_uintptr_t
12944 unset ac_cv_type_uintmax_t
12945 unset ac_cv_type_int_least32_t
12946 unset ac_cv_type_int_fast32_t
12947 unset ac_cv_type_uint64_t
12948 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12949 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12950 #include <$i>
12952 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12953 acx_cv_header_stdint=$i
12954 else
12955 continue
12958 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12959 #include <$i>
12961 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12963 else
12964 acx_cv_header_stdint_kind="(mostly complete)"
12967 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12968 #include <$i>
12970 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12972 else
12973 acx_cv_header_stdint_kind="(mostly complete)"
12976 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12977 #include <$i>
12979 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12981 else
12982 acx_cv_header_stdint_kind="(mostly complete)"
12985 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12986 #include <$i>
12988 if test "x$ac_cv_type_uint64_t" = xyes; then :
12990 else
12991 acx_cv_header_stdint_kind="(lacks uint64_t)"
12994 break
12995 done
12996 if test "$acx_cv_header_stdint" = stddef.h; then
12997 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12998 for i in stdint.h $inttype_headers; do
12999 unset ac_cv_type_uintptr_t
13000 unset ac_cv_type_uint32_t
13001 unset ac_cv_type_uint64_t
13002 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13003 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13004 #include <$i>
13006 if test "x$ac_cv_type_uint32_t" = xyes; then :
13007 acx_cv_header_stdint=$i
13008 else
13009 continue
13012 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13013 #include <$i>
13015 if test "x$ac_cv_type_uint64_t" = xyes; then :
13019 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13020 #include <$i>
13022 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13026 break
13027 done
13029 if test "$acx_cv_header_stdint" = stddef.h; then
13030 acx_cv_header_stdint_kind="(u_intXX_t style)"
13031 for i in sys/types.h $inttype_headers; do
13032 unset ac_cv_type_u_int32_t
13033 unset ac_cv_type_u_int64_t
13034 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13035 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13036 #include <$i>
13038 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13039 acx_cv_header_stdint=$i
13040 else
13041 continue
13044 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13045 #include <$i>
13047 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13051 break
13052 done
13054 if test "$acx_cv_header_stdint" = stddef.h; then
13055 acx_cv_header_stdint_kind="(using manual detection)"
13058 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13059 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13060 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13061 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13062 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13064 # ----------------- Summarize what we found so far
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
13067 $as_echo_n "checking what to include in gstdint.h... " >&6; }
13069 case `$as_basename -- gstdint.h ||
13070 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
13071 Xgstdint.h : 'X\(//\)$' \| \
13072 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
13073 $as_echo X/gstdint.h |
13074 sed '/^.*\/\([^/][^/]*\)\/*$/{
13075 s//\1/
13078 /^X\/\(\/\/\)$/{
13079 s//\1/
13082 /^X\/\(\/\).*/{
13083 s//\1/
13086 s/.*/./; q'` in
13087 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13088 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13089 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13090 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13091 *) ;;
13092 esac
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13095 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13097 # ----------------- done included file, check C basic types --------
13099 # Lacking an uintptr_t? Test size of void *
13100 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13101 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13104 # This bug is HP SR number 8606223364.
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13106 $as_echo_n "checking size of void *... " >&6; }
13107 if ${ac_cv_sizeof_void_p+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13112 else
13113 if test "$ac_cv_type_void_p" = yes; then
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13116 as_fn_error 77 "cannot compute sizeof (void *)
13117 See \`config.log' for more details" "$LINENO" 5; }
13118 else
13119 ac_cv_sizeof_void_p=0
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13125 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13129 cat >>confdefs.h <<_ACEOF
13130 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13131 _ACEOF
13134 esac
13136 # Lacking an uint64_t? Test size of long
13137 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13138 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13141 # This bug is HP SR number 8606223364.
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13143 $as_echo_n "checking size of long... " >&6; }
13144 if ${ac_cv_sizeof_long+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13149 else
13150 if test "$ac_cv_type_long" = yes; then
13151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13153 as_fn_error 77 "cannot compute sizeof (long)
13154 See \`config.log' for more details" "$LINENO" 5; }
13155 else
13156 ac_cv_sizeof_long=0
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13162 $as_echo "$ac_cv_sizeof_long" >&6; }
13166 cat >>confdefs.h <<_ACEOF
13167 #define SIZEOF_LONG $ac_cv_sizeof_long
13168 _ACEOF
13171 esac
13173 if test $acx_cv_header_stdint = stddef.h; then
13174 # Lacking a good header? Test size of everything and deduce all types.
13175 # The cast to long int works around a bug in the HP C Compiler
13176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13178 # This bug is HP SR number 8606223364.
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13180 $as_echo_n "checking size of int... " >&6; }
13181 if ${ac_cv_sizeof_int+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13186 else
13187 if test "$ac_cv_type_int" = yes; then
13188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13190 as_fn_error 77 "cannot compute sizeof (int)
13191 See \`config.log' for more details" "$LINENO" 5; }
13192 else
13193 ac_cv_sizeof_int=0
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13199 $as_echo "$ac_cv_sizeof_int" >&6; }
13203 cat >>confdefs.h <<_ACEOF
13204 #define SIZEOF_INT $ac_cv_sizeof_int
13205 _ACEOF
13208 # The cast to long int works around a bug in the HP C Compiler
13209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13211 # This bug is HP SR number 8606223364.
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13213 $as_echo_n "checking size of short... " >&6; }
13214 if ${ac_cv_sizeof_short+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13219 else
13220 if test "$ac_cv_type_short" = yes; then
13221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13223 as_fn_error 77 "cannot compute sizeof (short)
13224 See \`config.log' for more details" "$LINENO" 5; }
13225 else
13226 ac_cv_sizeof_short=0
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13232 $as_echo "$ac_cv_sizeof_short" >&6; }
13236 cat >>confdefs.h <<_ACEOF
13237 #define SIZEOF_SHORT $ac_cv_sizeof_short
13238 _ACEOF
13241 # The cast to long int works around a bug in the HP C Compiler
13242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13244 # This bug is HP SR number 8606223364.
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13246 $as_echo_n "checking size of char... " >&6; }
13247 if ${ac_cv_sizeof_char+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13252 else
13253 if test "$ac_cv_type_char" = yes; then
13254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13256 as_fn_error 77 "cannot compute sizeof (char)
13257 See \`config.log' for more details" "$LINENO" 5; }
13258 else
13259 ac_cv_sizeof_char=0
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13265 $as_echo "$ac_cv_sizeof_char" >&6; }
13269 cat >>confdefs.h <<_ACEOF
13270 #define SIZEOF_CHAR $ac_cv_sizeof_char
13271 _ACEOF
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13276 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13277 case "$ac_cv_sizeof_char" in
13278 1) acx_cv_type_int8_t=char ;;
13279 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13280 esac
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13282 $as_echo "$acx_cv_type_int8_t" >&6; }
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13285 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13286 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13287 2:*) acx_cv_type_int16_t=int ;;
13288 *:2) acx_cv_type_int16_t=short ;;
13289 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13290 esac
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13292 $as_echo "$acx_cv_type_int16_t" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13295 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13296 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13297 4:*) acx_cv_type_int32_t=int ;;
13298 *:4) acx_cv_type_int32_t=long ;;
13299 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13300 esac
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13302 $as_echo "$acx_cv_type_int32_t" >&6; }
13305 # These tests are here to make the output prettier
13307 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13308 case "$ac_cv_sizeof_long" in
13309 8) acx_cv_type_int64_t=long ;;
13310 esac
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13312 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13314 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13317 # Now we can use the above types
13319 if test "$ac_cv_type_uintptr_t" != yes; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13321 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13322 case $ac_cv_sizeof_void_p in
13323 2) acx_cv_type_intptr_t=int16_t ;;
13324 4) acx_cv_type_intptr_t=int32_t ;;
13325 8) acx_cv_type_intptr_t=int64_t ;;
13326 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13327 esac
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13329 $as_echo "$acx_cv_type_intptr_t" >&6; }
13332 # ----------------- done all checks, emit header -------------
13333 ac_config_commands="$ac_config_commands gstdint.h"
13338 for ac_header in sys/mman.h
13339 do :
13340 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13341 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_SYS_MMAN_H 1
13344 _ACEOF
13348 done
13350 if test "$ac_cv_header_sys_mman_h" = "no"; then
13351 have_mmap=no
13352 else
13353 if test -n "${with_target_subdir}"; then
13354 # When built as a GCC target library, we can't do a link test. We
13355 # simply assume that if we have mman.h, we have mmap.
13356 have_mmap=yes
13357 case "${host}" in
13358 *-*-msdosdjgpp)
13359 # DJGPP has sys/man.h, but no mmap
13360 have_mmap=no ;;
13361 esac
13362 else
13363 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13364 if test "x$ac_cv_func_mmap" = xyes; then :
13365 have_mmap=yes
13366 else
13367 have_mmap=no
13372 if test "$have_mmap" = "no"; then
13373 VIEW_FILE=read.lo
13374 ALLOC_FILE=alloc.lo
13375 else
13376 VIEW_FILE=mmapio.lo
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13380 #include <sys/mman.h>
13381 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13382 #error no MAP_ANONYMOUS
13383 #endif
13385 _ACEOF
13386 if ac_fn_c_try_cpp "$LINENO"; then :
13387 ALLOC_FILE=mmap.lo
13388 else
13389 ALLOC_FILE=alloc.lo
13391 rm -f conftest.err conftest.i conftest.$ac_ext
13396 BACKTRACE_USES_MALLOC=0
13397 if test "$ALLOC_FILE" = "alloc.lo"; then
13398 BACKTRACE_USES_MALLOC=1
13402 # Check for dl_iterate_phdr.
13403 for ac_header in link.h sys/link.h
13404 do :
13405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13410 _ACEOF
13414 done
13416 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13417 have_dl_iterate_phdr=no
13418 else
13419 if test -n "${with_target_subdir}"; then
13420 link_h=link.h
13421 if test "$ac_cv_header_link_h" = "no"; then
13422 link_h=sys/link.h
13424 # When built as a GCC target library, we can't do a link test.
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #include <$link_h>
13429 _ACEOF
13430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13431 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13432 have_dl_iterate_phdr=yes
13433 else
13434 have_dl_iterate_phdr=no
13436 rm -f conftest*
13438 else
13439 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13440 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13441 have_dl_iterate_phdr=yes
13442 else
13443 have_dl_iterate_phdr=no
13448 if test "$have_dl_iterate_phdr" = "yes"; then
13450 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13454 # Check for header file for Mach-O image functions.
13455 for ac_header in mach-o/dyld.h
13456 do :
13457 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_MACH_O_DYLD_H 1
13461 _ACEOF
13465 done
13468 # Check for loadquery.
13469 for ac_header in sys/ldr.h
13470 do :
13471 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13472 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_SYS_LDR_H 1
13475 _ACEOF
13479 done
13481 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13482 have_loadquery=no
13483 else
13484 if test -n "${with_target_subdir}"; then
13485 # When built as a GCC target library, we can't do a link test.
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <sys/ldr.h>
13490 _ACEOF
13491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13492 $EGREP "loadquery" >/dev/null 2>&1; then :
13493 have_loadquery=yes
13494 else
13495 have_loadquery=no
13497 rm -f conftest*
13499 else
13500 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13501 if test "x$ac_cv_func_loadquery" = xyes; then :
13502 have_loadquery=yes
13503 else
13504 have_loadquery=no
13509 if test "$have_loadquery" = "yes"; then
13511 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13515 for ac_header in windows.h
13516 do :
13517 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13518 if test "x$ac_cv_header_windows_h" = xyes; then :
13519 cat >>confdefs.h <<_ACEOF
13520 #define HAVE_WINDOWS_H 1
13521 _ACEOF
13525 done
13527 for ac_header in tlhelp32.h
13528 do :
13529 ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
13530 # include <windows.h>
13531 #endif
13533 if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_TLHELP32_H 1
13536 _ACEOF
13540 done
13543 # Check for the fcntl function.
13544 if test -n "${with_target_subdir}"; then
13545 case "${host}" in
13546 *-*-mingw*) have_fcntl=no ;;
13547 *) have_fcntl=yes ;;
13548 esac
13549 else
13550 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13551 if test "x$ac_cv_func_fcntl" = xyes; then :
13552 have_fcntl=yes
13553 else
13554 have_fcntl=no
13558 if test "$have_fcntl" = "yes"; then
13560 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13564 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13565 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13566 ac_have_decl=1
13567 else
13568 ac_have_decl=0
13571 cat >>confdefs.h <<_ACEOF
13572 #define HAVE_DECL_STRNLEN $ac_have_decl
13573 _ACEOF
13574 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13575 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13576 ac_have_decl=1
13577 else
13578 ac_have_decl=0
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13583 _ACEOF
13585 for ac_func in lstat readlink
13586 do :
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13590 cat >>confdefs.h <<_ACEOF
13591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13592 _ACEOF
13595 done
13598 # Check for getexecname function.
13599 if test -n "${with_target_subdir}"; then
13600 case "${host}" in
13601 *-*-solaris2*) have_getexecname=yes ;;
13602 *) have_getexecname=no ;;
13603 esac
13604 else
13605 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13606 if test "x$ac_cv_func_getexecname" = xyes; then :
13607 have_getexecname=yes
13608 else
13609 have_getexecname=no
13613 if test "$have_getexecname" = "yes"; then
13615 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13619 # Check for _pgmptr variable, contains the executable filename on windows
13620 ac_fn_c_check_decl "$LINENO" "_pgmptr" "ac_cv_have_decl__pgmptr" "$ac_includes_default"
13621 if test "x$ac_cv_have_decl__pgmptr" = xyes; then :
13622 ac_have_decl=1
13623 else
13624 ac_have_decl=0
13627 cat >>confdefs.h <<_ACEOF
13628 #define HAVE_DECL__PGMPTR $ac_have_decl
13629 _ACEOF
13632 # Check for sysctl definitions.
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13635 $as_echo_n "checking for KERN_PROC... " >&6; }
13636 if ${libbacktrace_cv_proc+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 #include <sys/types.h>
13643 #include <sys/sysctl.h>
13646 main ()
13648 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13650 return 0;
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 libbacktrace_cv_proc=yes
13655 else
13656 libbacktrace_cv_proc=no
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13661 $as_echo "$libbacktrace_cv_proc" >&6; }
13662 if test "$libbacktrace_cv_proc" = "yes"; then
13664 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13669 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13670 if ${libbacktrace_cv_procargs+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 #include <sys/types.h>
13677 #include <sys/sysctl.h>
13680 main ()
13682 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13684 return 0;
13686 _ACEOF
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688 libbacktrace_cv_procargs=yes
13689 else
13690 libbacktrace_cv_procargs=no
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13695 $as_echo "$libbacktrace_cv_procargs" >&6; }
13696 if test "$libbacktrace_cv_procargs" = "yes"; then
13698 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13702 # Check for the clock_gettime function.
13703 for ac_func in clock_gettime
13704 do :
13705 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13706 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13707 cat >>confdefs.h <<_ACEOF
13708 #define HAVE_CLOCK_GETTIME 1
13709 _ACEOF
13712 done
13714 clock_gettime_link=
13715 # At least for glibc, clock_gettime is in librt. But don't
13716 # pull that in if it still doesn't give us the function we want. This
13717 # test is copied from libgomp, and modified to not link in -lrt as
13718 # we're using this for test timing only.
13719 if test "$ac_cv_func_clock_gettime" = no; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13721 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13722 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 ac_check_lib_save_LIBS=$LIBS
13726 LIBS="-lrt $LIBS"
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13730 /* Override any GCC internal prototype to avoid an error.
13731 Use char because int might match the return type of a GCC
13732 builtin and then its argument prototype would still apply. */
13733 #ifdef __cplusplus
13734 extern "C"
13735 #endif
13736 char clock_gettime ();
13738 main ()
13740 return clock_gettime ();
13742 return 0;
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 ac_cv_lib_rt_clock_gettime=yes
13747 else
13748 ac_cv_lib_rt_clock_gettime=no
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 LIBS=$ac_check_lib_save_LIBS
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13755 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13756 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13757 CLOCK_GETTIME_LINK=-lrt
13759 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13767 $as_echo_n "checking whether -pthread is supported... " >&6; }
13768 if ${libgo_cv_lib_pthread+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 CFLAGS_hold=$CFLAGS
13772 CFLAGS="$CFLAGS -pthread"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 int i;
13776 _ACEOF
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778 libgo_cv_lib_pthread=yes
13779 else
13780 libgo_cv_lib_pthread=no
13782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 CFLAGS=$CFLAGS_hold
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13786 $as_echo "$libgo_cv_lib_pthread" >&6; }
13787 PTHREAD_CFLAGS=
13788 if test "$libgo_cv_lib_pthread" = yes; then
13789 PTHREAD_CFLAGS=-pthread
13793 if test "$libgo_cv_lib_pthread" = yes; then
13794 HAVE_PTHREAD_TRUE=
13795 HAVE_PTHREAD_FALSE='#'
13796 else
13797 HAVE_PTHREAD_TRUE='#'
13798 HAVE_PTHREAD_FALSE=
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13803 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13804 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 CFLAGS_hold=$CFLAGS
13808 CFLAGS="$CFLAGS -gdwarf-5"
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 int i;
13813 main ()
13815 return 0;
13817 return 0;
13819 _ACEOF
13820 if ac_fn_c_try_link "$LINENO"; then :
13821 libbacktrace_cv_lib_dwarf5=yes
13822 else
13823 libbacktrace_cv_lib_dwarf5=no
13825 rm -f core conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13827 CFLAGS=$CFLAGS_hold
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13830 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13831 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13832 HAVE_DWARF5_TRUE=
13833 HAVE_DWARF5_FALSE='#'
13834 else
13835 HAVE_DWARF5_TRUE='#'
13836 HAVE_DWARF5_FALSE=
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13841 $as_echo_n "checking for compress in -lz... " >&6; }
13842 if ${ac_cv_lib_z_compress+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-lz $LIBS"
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char compress ();
13858 main ()
13860 return compress ();
13862 return 0;
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866 ac_cv_lib_z_compress=yes
13867 else
13868 ac_cv_lib_z_compress=no
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 LIBS=$ac_check_lib_save_LIBS
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13875 $as_echo "$ac_cv_lib_z_compress" >&6; }
13876 if test "x$ac_cv_lib_z_compress" = xyes; then :
13878 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13882 if test "$ac_cv_lib_z_compress" = yes; then
13883 HAVE_ZLIB_TRUE=
13884 HAVE_ZLIB_FALSE='#'
13885 else
13886 HAVE_ZLIB_TRUE='#'
13887 HAVE_ZLIB_FALSE=
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13892 $as_echo_n "checking whether --build-id is supported... " >&6; }
13893 if ${libbacktrace_cv_ld_buildid+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 LDFLAGS_hold=$LDFLAGS
13897 LDFLAGS="$LDFLAGS -Wl,--build-id"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13902 main ()
13906 return 0;
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 libbacktrace_cv_ld_buildid=yes
13911 else
13912 libbacktrace_cv_ld_buildid=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LDFLAGS=$LDFLAGS_hold
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13919 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13920 if test "$libbacktrace_cv_ld_buildid" = yes; then
13921 HAVE_BUILDID_TRUE=
13922 HAVE_BUILDID_FALSE='#'
13923 else
13924 HAVE_BUILDID_TRUE='#'
13925 HAVE_BUILDID_FALSE=
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gnu is supported" >&5
13930 $as_echo_n "checking whether --compress-debug-sections=zlib-gnu is supported... " >&6; }
13931 if ${libgo_cv_ld_compress_zlib_gnu+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 LDFLAGS_hold=$LDFLAGS
13935 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13940 main ()
13944 return 0;
13946 _ACEOF
13947 if ac_fn_c_try_link "$LINENO"; then :
13948 libgo_cv_ld_compress_zlib_gnu=yes
13949 else
13950 libgo_cv_ld_compress_zlib_gnu=no
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LDFLAGS=$LDFLAGS_hold
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gnu" >&5
13957 $as_echo "$libgo_cv_ld_compress_zlib_gnu" >&6; }
13958 if test "$libgo_cv_ld_compress_zlib_gnu" = yes; then
13959 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE=
13960 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE='#'
13961 else
13962 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE='#'
13963 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE=
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gabi is supported" >&5
13968 $as_echo_n "checking whether --compress-debug-sections=zlib-gabi is supported... " >&6; }
13969 if ${libgo_cv_ld_compress_zlib_gabi+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 LDFLAGS_hold=$LDFLAGS
13973 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gabi"
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13978 main ()
13982 return 0;
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"; then :
13986 libgo_cv_ld_compress_zlib_gabi=yes
13987 else
13988 libgo_cv_ld_compress_zlib_gabi=no
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LDFLAGS=$LDFLAGS_hold
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gabi" >&5
13995 $as_echo "$libgo_cv_ld_compress_zlib_gabi" >&6; }
13996 if test "$libgo_cv_ld_compress_zlib_gabi" = yes; then
13997 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE=
13998 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE='#'
13999 else
14000 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE='#'
14001 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE=
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
14006 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
14007 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-lzstd $LIBS"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char ZSTD_compress ();
14023 main ()
14025 return ZSTD_compress ();
14027 return 0;
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 ac_cv_lib_zstd_ZSTD_compress=yes
14032 else
14033 ac_cv_lib_zstd_ZSTD_compress=no
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 LIBS=$ac_check_lib_save_LIBS
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
14040 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
14041 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
14043 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
14047 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
14048 HAVE_ZSTD_TRUE=
14049 HAVE_ZSTD_FALSE='#'
14050 else
14051 HAVE_ZSTD_TRUE='#'
14052 HAVE_ZSTD_FALSE=
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
14057 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
14058 if ${libgo_cv_ld_compress_zstd+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 LDFLAGS_hold=$LDFLAGS
14062 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14067 main ()
14071 return 0;
14073 _ACEOF
14074 if ac_fn_c_try_link "$LINENO"; then :
14075 libgo_cv_ld_compress_zstd=yes
14076 else
14077 libgo_cv_ld_compress_zstd=no
14079 rm -f core conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14081 LDFLAGS=$LDFLAGS_hold
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
14084 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
14085 if test "$libgo_cv_ld_compress_zstd" = yes; then
14086 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
14087 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
14088 else
14089 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
14090 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
14095 # Extract the first word of "objcopy", so it can be a program name with args.
14096 set dummy objcopy; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if ${ac_cv_prog_OBJCOPY+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$OBJCOPY"; then
14103 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112 ac_cv_prog_OBJCOPY="objcopy"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14116 done
14117 done
14118 IFS=$as_save_IFS
14122 OBJCOPY=$ac_cv_prog_OBJCOPY
14123 if test -n "$OBJCOPY"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
14125 $as_echo "$OBJCOPY" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14132 # Extract the first word of "readelf", so it can be a program name with args.
14133 set dummy readelf; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if ${ac_cv_prog_READELF+:} false; then :
14137 $as_echo_n "(cached) " >&6
14138 else
14139 if test -n "$READELF"; then
14140 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_READELF="readelf"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14155 IFS=$as_save_IFS
14159 READELF=$ac_cv_prog_READELF
14160 if test -n "$READELF"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14162 $as_echo "$READELF" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
14170 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
14171 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "${with_target_subdir}"; then
14175 libbacktrace_cv_objcopy_debuglink=no
14176 elif ! test -n "${OBJCOPY}"; then
14177 libbacktrace_cv_objcopy_debuglink=no
14178 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
14179 libbacktrace_cv_objcopy_debuglink=yes
14180 else
14181 libbacktrace_cv_objcopy_debuglink=no
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14185 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14186 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14187 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14188 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14189 else
14190 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14191 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14196 # Extract the first word of "dsymutil", so it can be a program name with args.
14197 set dummy dsymutil; ac_word=$2
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14199 $as_echo_n "checking for $ac_word... " >&6; }
14200 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14201 $as_echo_n "(cached) " >&6
14202 else
14203 if test -n "$DSYMUTIL"; then
14204 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14205 else
14206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14209 IFS=$as_save_IFS
14210 test -z "$as_dir" && as_dir=.
14211 for ac_exec_ext in '' $ac_executable_extensions; do
14212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14213 ac_cv_prog_DSYMUTIL="dsymutil"
14214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14215 break 2
14217 done
14218 done
14219 IFS=$as_save_IFS
14223 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14224 if test -n "$DSYMUTIL"; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14226 $as_echo "$DSYMUTIL" >&6; }
14227 else
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 $as_echo "no" >&6; }
14233 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14234 USE_DSYMUTIL_TRUE=
14235 USE_DSYMUTIL_FALSE='#'
14236 else
14237 USE_DSYMUTIL_TRUE='#'
14238 USE_DSYMUTIL_FALSE=
14243 # Extract the first word of "nm", so it can be a program name with args.
14244 set dummy nm; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_NM+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$NM"; then
14251 ac_cv_prog_NM="$NM" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_NM="nm"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14264 done
14265 done
14266 IFS=$as_save_IFS
14270 NM=$ac_cv_prog_NM
14271 if test -n "$NM"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14273 $as_echo "$NM" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14281 # Extract the first word of "xz", so it can be a program name with args.
14282 set dummy xz; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_prog_XZ+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$XZ"; then
14289 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_XZ="xz"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14302 done
14303 done
14304 IFS=$as_save_IFS
14308 XZ=$ac_cv_prog_XZ
14309 if test -n "$XZ"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14311 $as_echo "$XZ" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14318 if test "$XZ" != ""; then
14319 HAVE_XZ_TRUE=
14320 HAVE_XZ_FALSE='#'
14321 else
14322 HAVE_XZ_TRUE='#'
14323 HAVE_XZ_FALSE=
14326 # Extract the first word of "comm", so it can be a program name with args.
14327 set dummy comm; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_COMM+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 if test -n "$COMM"; then
14334 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_COMM="comm"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14347 done
14348 done
14349 IFS=$as_save_IFS
14353 COMM=$ac_cv_prog_COMM
14354 if test -n "$COMM"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14356 $as_echo "$COMM" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14363 if test "$COMM" != ""; then
14364 HAVE_COMM_TRUE=
14365 HAVE_COMM_FALSE='#'
14366 else
14367 HAVE_COMM_TRUE='#'
14368 HAVE_COMM_FALSE=
14372 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14373 HAVE_MINIDEBUG_TRUE=
14374 HAVE_MINIDEBUG_FALSE='#'
14375 else
14376 HAVE_MINIDEBUG_TRUE='#'
14377 HAVE_MINIDEBUG_FALSE=
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14382 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14383 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-llzma $LIBS"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char lzma_auto_decoder ();
14399 main ()
14401 return lzma_auto_decoder ();
14403 return 0;
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"; then :
14407 ac_cv_lib_lzma_lzma_auto_decoder=yes
14408 else
14409 ac_cv_lib_lzma_lzma_auto_decoder=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14416 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14417 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14419 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14423 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14424 HAVE_LIBLZMA_TRUE=
14425 HAVE_LIBLZMA_FALSE='#'
14426 else
14427 HAVE_LIBLZMA_TRUE='#'
14428 HAVE_LIBLZMA_FALSE=
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14433 $as_echo_n "checking whether tests can run... " >&6; }
14434 if ${libbacktrace_cv_sys_native+:} false; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 if test "$cross_compiling" = yes; then :
14438 libbacktrace_cv_sys_native=no
14439 else
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14444 main ()
14446 return 0;
14448 return 0;
14450 _ACEOF
14451 if ac_fn_c_try_run "$LINENO"; then :
14452 libbacktrace_cv_sys_native=yes
14453 else
14454 libbacktrace_cv_sys_native=no
14456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14457 conftest.$ac_objext conftest.beam conftest.$ac_ext
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14462 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14463 if test "$libbacktrace_cv_sys_native" = "yes"; then
14464 NATIVE_TRUE=
14465 NATIVE_FALSE='#'
14466 else
14467 NATIVE_TRUE='#'
14468 NATIVE_FALSE=
14472 if test "${multilib}" = "yes"; then
14473 multilib_arg="--enable-multilib"
14474 else
14475 multilib_arg=
14478 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14480 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14483 # We need multilib support, but only if configuring for the target.
14484 ac_config_commands="$ac_config_commands default"
14487 cat >confcache <<\_ACEOF
14488 # This file is a shell script that caches the results of configure
14489 # tests run on this system so they can be shared between configure
14490 # scripts and configure runs, see configure's option --config-cache.
14491 # It is not useful on other systems. If it contains results you don't
14492 # want to keep, you may remove or edit it.
14494 # config.status only pays attention to the cache file if you give it
14495 # the --recheck option to rerun configure.
14497 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14498 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14499 # following values.
14501 _ACEOF
14503 # The following way of writing the cache mishandles newlines in values,
14504 # but we know of no workaround that is simple, portable, and efficient.
14505 # So, we kill variables containing newlines.
14506 # Ultrix sh set writes to stderr and can't be redirected directly,
14507 # and sets the high bit in the cache file unless we assign to the vars.
14509 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14510 eval ac_val=\$$ac_var
14511 case $ac_val in #(
14512 *${as_nl}*)
14513 case $ac_var in #(
14514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14516 esac
14517 case $ac_var in #(
14518 _ | IFS | as_nl) ;; #(
14519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14520 *) { eval $ac_var=; unset $ac_var;} ;;
14521 esac ;;
14522 esac
14523 done
14525 (set) 2>&1 |
14526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14527 *${as_nl}ac_space=\ *)
14528 # `set' does not quote correctly, so add quotes: double-quote
14529 # substitution turns \\\\ into \\, and sed turns \\ into \.
14530 sed -n \
14531 "s/'/'\\\\''/g;
14532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14533 ;; #(
14535 # `set' quotes correctly as required by POSIX, so do not add quotes.
14536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14538 esac |
14539 sort
14541 sed '
14542 /^ac_cv_env_/b end
14543 t clear
14544 :clear
14545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14546 t end
14547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14548 :end' >>confcache
14549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14550 if test -w "$cache_file"; then
14551 if test "x$cache_file" != "x/dev/null"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14553 $as_echo "$as_me: updating cache $cache_file" >&6;}
14554 if test ! -f "$cache_file" || test -h "$cache_file"; then
14555 cat confcache >"$cache_file"
14556 else
14557 case $cache_file in #(
14558 */* | ?:*)
14559 mv -f confcache "$cache_file"$$ &&
14560 mv -f "$cache_file"$$ "$cache_file" ;; #(
14562 mv -f confcache "$cache_file" ;;
14563 esac
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14571 rm -f confcache
14573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14574 # Let make expand exec_prefix.
14575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14577 DEFS=-DHAVE_CONFIG_H
14579 ac_libobjs=
14580 ac_ltlibobjs=
14582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14583 # 1. Remove the extension, and $U if already installed.
14584 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14585 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14586 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14587 # will be set to the directory where LIBOBJS objects are built.
14588 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14589 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14590 done
14591 LIBOBJS=$ac_libobjs
14593 LTLIBOBJS=$ac_ltlibobjs
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14597 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14598 if test -n "$am_sleep_pid"; then
14599 # Hide warnings about reused PIDs.
14600 wait $am_sleep_pid 2>/dev/null
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14603 $as_echo "done" >&6; }
14604 if test -n "$EXEEXT"; then
14605 am__EXEEXT_TRUE=
14606 am__EXEEXT_FALSE='#'
14607 else
14608 am__EXEEXT_TRUE='#'
14609 am__EXEEXT_FALSE=
14612 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14613 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14616 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14617 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14620 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
14621 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
14622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14624 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14625 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14628 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14629 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14632 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14633 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14636 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14637 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14640 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14641 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14644 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE}"; then
14645 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GNU\" was never defined.
14646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14648 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE}"; then
14649 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GABI\" was never defined.
14650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14652 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14653 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14656 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14657 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14660 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14661 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14664 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14665 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14669 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14672 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14673 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14677 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14680 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14681 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14684 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14685 as_fn_error $? "conditional \"NATIVE\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14689 : "${CONFIG_STATUS=./config.status}"
14690 ac_write_fail=0
14691 ac_clean_files_save=$ac_clean_files
14692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14695 as_write_fail=0
14696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14697 #! $SHELL
14698 # Generated by $as_me.
14699 # Run this file to recreate the current configuration.
14700 # Compiler output produced by configure, useful for debugging
14701 # configure, is in config.log if it exists.
14703 debug=false
14704 ac_cs_recheck=false
14705 ac_cs_silent=false
14707 SHELL=\${CONFIG_SHELL-$SHELL}
14708 export SHELL
14709 _ASEOF
14710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14711 ## -------------------- ##
14712 ## M4sh Initialization. ##
14713 ## -------------------- ##
14715 # Be more Bourne compatible
14716 DUALCASE=1; export DUALCASE # for MKS sh
14717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14718 emulate sh
14719 NULLCMD=:
14720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14721 # is contrary to our usage. Disable this feature.
14722 alias -g '${1+"$@"}'='"$@"'
14723 setopt NO_GLOB_SUBST
14724 else
14725 case `(set -o) 2>/dev/null` in #(
14726 *posix*) :
14727 set -o posix ;; #(
14728 *) :
14730 esac
14734 as_nl='
14736 export as_nl
14737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14741 # Prefer a ksh shell builtin over an external printf program on Solaris,
14742 # but without wasting forks for bash or zsh.
14743 if test -z "$BASH_VERSION$ZSH_VERSION" \
14744 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14745 as_echo='print -r --'
14746 as_echo_n='print -rn --'
14747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14748 as_echo='printf %s\n'
14749 as_echo_n='printf %s'
14750 else
14751 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14752 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14753 as_echo_n='/usr/ucb/echo -n'
14754 else
14755 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14756 as_echo_n_body='eval
14757 arg=$1;
14758 case $arg in #(
14759 *"$as_nl"*)
14760 expr "X$arg" : "X\\(.*\\)$as_nl";
14761 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14762 esac;
14763 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14765 export as_echo_n_body
14766 as_echo_n='sh -c $as_echo_n_body as_echo'
14768 export as_echo_body
14769 as_echo='sh -c $as_echo_body as_echo'
14772 # The user is always right.
14773 if test "${PATH_SEPARATOR+set}" != set; then
14774 PATH_SEPARATOR=:
14775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14776 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14777 PATH_SEPARATOR=';'
14782 # IFS
14783 # We need space, tab and new line, in precisely that order. Quoting is
14784 # there to prevent editors from complaining about space-tab.
14785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14786 # splitting by setting IFS to empty value.)
14787 IFS=" "" $as_nl"
14789 # Find who we are. Look in the path if we contain no directory separator.
14790 as_myself=
14791 case $0 in #((
14792 *[\\/]* ) as_myself=$0 ;;
14793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $PATH
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14799 done
14800 IFS=$as_save_IFS
14803 esac
14804 # We did not find ourselves, most probably we were run as `sh COMMAND'
14805 # in which case we are not to be found in the path.
14806 if test "x$as_myself" = x; then
14807 as_myself=$0
14809 if test ! -f "$as_myself"; then
14810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14811 exit 1
14814 # Unset variables that we do not need and which cause bugs (e.g. in
14815 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14816 # suppresses any "Segmentation fault" message there. '((' could
14817 # trigger a bug in pdksh 5.2.14.
14818 for as_var in BASH_ENV ENV MAIL MAILPATH
14819 do eval test x\${$as_var+set} = xset \
14820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14821 done
14822 PS1='$ '
14823 PS2='> '
14824 PS4='+ '
14826 # NLS nuisances.
14827 LC_ALL=C
14828 export LC_ALL
14829 LANGUAGE=C
14830 export LANGUAGE
14832 # CDPATH.
14833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14837 # ----------------------------------------
14838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14840 # script with STATUS, using 1 if that was 0.
14841 as_fn_error ()
14843 as_status=$1; test $as_status -eq 0 && as_status=1
14844 if test "$4"; then
14845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14848 $as_echo "$as_me: error: $2" >&2
14849 as_fn_exit $as_status
14850 } # as_fn_error
14853 # as_fn_set_status STATUS
14854 # -----------------------
14855 # Set $? to STATUS, without forking.
14856 as_fn_set_status ()
14858 return $1
14859 } # as_fn_set_status
14861 # as_fn_exit STATUS
14862 # -----------------
14863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14864 as_fn_exit ()
14866 set +e
14867 as_fn_set_status $1
14868 exit $1
14869 } # as_fn_exit
14871 # as_fn_unset VAR
14872 # ---------------
14873 # Portably unset VAR.
14874 as_fn_unset ()
14876 { eval $1=; unset $1;}
14878 as_unset=as_fn_unset
14879 # as_fn_append VAR VALUE
14880 # ----------------------
14881 # Append the text in VALUE to the end of the definition contained in VAR. Take
14882 # advantage of any shell optimizations that allow amortized linear growth over
14883 # repeated appends, instead of the typical quadratic growth present in naive
14884 # implementations.
14885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14886 eval 'as_fn_append ()
14888 eval $1+=\$2
14890 else
14891 as_fn_append ()
14893 eval $1=\$$1\$2
14895 fi # as_fn_append
14897 # as_fn_arith ARG...
14898 # ------------------
14899 # Perform arithmetic evaluation on the ARGs, and store the result in the
14900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14901 # must be portable across $(()) and expr.
14902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14903 eval 'as_fn_arith ()
14905 as_val=$(( $* ))
14907 else
14908 as_fn_arith ()
14910 as_val=`expr "$@" || test $? -eq 1`
14912 fi # as_fn_arith
14915 if expr a : '\(a\)' >/dev/null 2>&1 &&
14916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14917 as_expr=expr
14918 else
14919 as_expr=false
14922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14923 as_basename=basename
14924 else
14925 as_basename=false
14928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14929 as_dirname=dirname
14930 else
14931 as_dirname=false
14934 as_me=`$as_basename -- "$0" ||
14935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14936 X"$0" : 'X\(//\)$' \| \
14937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14938 $as_echo X/"$0" |
14939 sed '/^.*\/\([^/][^/]*\)\/*$/{
14940 s//\1/
14943 /^X\/\(\/\/\)$/{
14944 s//\1/
14947 /^X\/\(\/\).*/{
14948 s//\1/
14951 s/.*/./; q'`
14953 # Avoid depending upon Character Ranges.
14954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14957 as_cr_digits='0123456789'
14958 as_cr_alnum=$as_cr_Letters$as_cr_digits
14960 ECHO_C= ECHO_N= ECHO_T=
14961 case `echo -n x` in #(((((
14962 -n*)
14963 case `echo 'xy\c'` in
14964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14965 xy) ECHO_C='\c';;
14966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14967 ECHO_T=' ';;
14968 esac;;
14970 ECHO_N='-n';;
14971 esac
14973 rm -f conf$$ conf$$.exe conf$$.file
14974 if test -d conf$$.dir; then
14975 rm -f conf$$.dir/conf$$.file
14976 else
14977 rm -f conf$$.dir
14978 mkdir conf$$.dir 2>/dev/null
14980 if (echo >conf$$.file) 2>/dev/null; then
14981 if ln -s conf$$.file conf$$ 2>/dev/null; then
14982 as_ln_s='ln -s'
14983 # ... but there are two gotchas:
14984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14986 # In both cases, we have to default to `cp -pR'.
14987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14988 as_ln_s='cp -pR'
14989 elif ln conf$$.file conf$$ 2>/dev/null; then
14990 as_ln_s=ln
14991 else
14992 as_ln_s='cp -pR'
14994 else
14995 as_ln_s='cp -pR'
14997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14998 rmdir conf$$.dir 2>/dev/null
15001 # as_fn_mkdir_p
15002 # -------------
15003 # Create "$as_dir" as a directory, including parents if necessary.
15004 as_fn_mkdir_p ()
15007 case $as_dir in #(
15008 -*) as_dir=./$as_dir;;
15009 esac
15010 test -d "$as_dir" || eval $as_mkdir_p || {
15011 as_dirs=
15012 while :; do
15013 case $as_dir in #(
15014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15015 *) as_qdir=$as_dir;;
15016 esac
15017 as_dirs="'$as_qdir' $as_dirs"
15018 as_dir=`$as_dirname -- "$as_dir" ||
15019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15020 X"$as_dir" : 'X\(//\)[^/]' \| \
15021 X"$as_dir" : 'X\(//\)$' \| \
15022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15023 $as_echo X"$as_dir" |
15024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15025 s//\1/
15028 /^X\(\/\/\)[^/].*/{
15029 s//\1/
15032 /^X\(\/\/\)$/{
15033 s//\1/
15036 /^X\(\/\).*/{
15037 s//\1/
15040 s/.*/./; q'`
15041 test -d "$as_dir" && break
15042 done
15043 test -z "$as_dirs" || eval "mkdir $as_dirs"
15044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15047 } # as_fn_mkdir_p
15048 if mkdir -p . 2>/dev/null; then
15049 as_mkdir_p='mkdir -p "$as_dir"'
15050 else
15051 test -d ./-p && rmdir ./-p
15052 as_mkdir_p=false
15056 # as_fn_executable_p FILE
15057 # -----------------------
15058 # Test if FILE is an executable regular file.
15059 as_fn_executable_p ()
15061 test -f "$1" && test -x "$1"
15062 } # as_fn_executable_p
15063 as_test_x='test -x'
15064 as_executable_p=as_fn_executable_p
15066 # Sed expression to map a string onto a valid CPP name.
15067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15069 # Sed expression to map a string onto a valid variable name.
15070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15073 exec 6>&1
15074 ## ----------------------------------- ##
15075 ## Main body of $CONFIG_STATUS script. ##
15076 ## ----------------------------------- ##
15077 _ASEOF
15078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 # Save the log message, to keep $0 and so on meaningful, and to
15082 # report actual input values of CONFIG_FILES etc. instead of their
15083 # values after options handling.
15084 ac_log="
15085 This file was extended by package-unused $as_me version-unused, which was
15086 generated by GNU Autoconf 2.69. Invocation command line was
15088 CONFIG_FILES = $CONFIG_FILES
15089 CONFIG_HEADERS = $CONFIG_HEADERS
15090 CONFIG_LINKS = $CONFIG_LINKS
15091 CONFIG_COMMANDS = $CONFIG_COMMANDS
15092 $ $0 $@
15094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15097 _ACEOF
15099 case $ac_config_files in *"
15100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15101 esac
15103 case $ac_config_headers in *"
15104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15105 esac
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 # Files that config.status was made for.
15110 config_files="$ac_config_files"
15111 config_headers="$ac_config_headers"
15112 config_commands="$ac_config_commands"
15114 _ACEOF
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 ac_cs_usage="\
15118 \`$as_me' instantiates files and other configuration actions
15119 from templates according to the current configuration. Unless the files
15120 and actions are specified as TAGs, all are instantiated by default.
15122 Usage: $0 [OPTION]... [TAG]...
15124 -h, --help print this help, then exit
15125 -V, --version print version number and configuration settings, then exit
15126 --config print configuration, then exit
15127 -q, --quiet, --silent
15128 do not print progress messages
15129 -d, --debug don't remove temporary files
15130 --recheck update $as_me by reconfiguring in the same conditions
15131 --file=FILE[:TEMPLATE]
15132 instantiate the configuration file FILE
15133 --header=FILE[:TEMPLATE]
15134 instantiate the configuration header FILE
15136 Configuration files:
15137 $config_files
15139 Configuration headers:
15140 $config_headers
15142 Configuration commands:
15143 $config_commands
15145 Report bugs to the package provider."
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15150 ac_cs_version="\\
15151 package-unused config.status version-unused
15152 configured by $0, generated by GNU Autoconf 2.69,
15153 with options \\"\$ac_cs_config\\"
15155 Copyright (C) 2012 Free Software Foundation, Inc.
15156 This config.status script is free software; the Free Software Foundation
15157 gives unlimited permission to copy, distribute and modify it."
15159 ac_pwd='$ac_pwd'
15160 srcdir='$srcdir'
15161 INSTALL='$INSTALL'
15162 MKDIR_P='$MKDIR_P'
15163 AWK='$AWK'
15164 test -n "\$AWK" || AWK=awk
15165 _ACEOF
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # The default lists apply if the user does not specify any file.
15169 ac_need_defaults=:
15170 while test $# != 0
15172 case $1 in
15173 --*=?*)
15174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15176 ac_shift=:
15178 --*=)
15179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15180 ac_optarg=
15181 ac_shift=:
15184 ac_option=$1
15185 ac_optarg=$2
15186 ac_shift=shift
15188 esac
15190 case $ac_option in
15191 # Handling of the options.
15192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15193 ac_cs_recheck=: ;;
15194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15195 $as_echo "$ac_cs_version"; exit ;;
15196 --config | --confi | --conf | --con | --co | --c )
15197 $as_echo "$ac_cs_config"; exit ;;
15198 --debug | --debu | --deb | --de | --d | -d )
15199 debug=: ;;
15200 --file | --fil | --fi | --f )
15201 $ac_shift
15202 case $ac_optarg in
15203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15204 '') as_fn_error $? "missing file argument" ;;
15205 esac
15206 as_fn_append CONFIG_FILES " '$ac_optarg'"
15207 ac_need_defaults=false;;
15208 --header | --heade | --head | --hea )
15209 $ac_shift
15210 case $ac_optarg in
15211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15212 esac
15213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15214 ac_need_defaults=false;;
15215 --he | --h)
15216 # Conflict between --help and --header
15217 as_fn_error $? "ambiguous option: \`$1'
15218 Try \`$0 --help' for more information.";;
15219 --help | --hel | -h )
15220 $as_echo "$ac_cs_usage"; exit ;;
15221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15223 ac_cs_silent=: ;;
15225 # This is an error.
15226 -*) as_fn_error $? "unrecognized option: \`$1'
15227 Try \`$0 --help' for more information." ;;
15229 *) as_fn_append ac_config_targets " $1"
15230 ac_need_defaults=false ;;
15232 esac
15233 shift
15234 done
15236 ac_configure_extra_args=
15238 if $ac_cs_silent; then
15239 exec 6>/dev/null
15240 ac_configure_extra_args="$ac_configure_extra_args --silent"
15243 _ACEOF
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 if \$ac_cs_recheck; then
15246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15247 shift
15248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15249 CONFIG_SHELL='$SHELL'
15250 export CONFIG_SHELL
15251 exec "\$@"
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256 exec 5>>config.log
15258 echo
15259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15260 ## Running $as_me. ##
15261 _ASBOX
15262 $as_echo "$ac_log"
15263 } >&5
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15268 # INIT-COMMANDS
15271 srcdir="$srcdir"
15272 host="$host"
15273 target="$target"
15274 with_multisubdir="$with_multisubdir"
15275 with_multisrctop="$with_multisrctop"
15276 with_target_subdir="$with_target_subdir"
15277 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15278 multi_basedir="$multi_basedir"
15279 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15280 CC="$CC"
15281 CXX="$CXX"
15282 GFORTRAN="$GFORTRAN"
15283 GDC="$GDC"
15286 # The HP-UX ksh and POSIX shell print the target directory to stdout
15287 # if CDPATH is set.
15288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15290 sed_quote_subst='$sed_quote_subst'
15291 double_quote_subst='$double_quote_subst'
15292 delay_variable_subst='$delay_variable_subst'
15293 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15294 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15295 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15296 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15297 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15298 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15299 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15300 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15321 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15322 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15324 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15325 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15326 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15327 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15328 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15329 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15330 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15331 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15332 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15333 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15334 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15335 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15336 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15337 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15339 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15341 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"`'
15342 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15343 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15347 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15348 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15349 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15373 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15374 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15375 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15376 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15377 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15378 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15379 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15380 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15381 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15382 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15383 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15384 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15385 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15386 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15387 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15388 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15389 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15390 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15391 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15392 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15393 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15394 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15395 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15396 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15397 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15398 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15399 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15400 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15402 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15403 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15404 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15405 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15406 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15407 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15408 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15409 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15410 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15411 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15412 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15414 LTCC='$LTCC'
15415 LTCFLAGS='$LTCFLAGS'
15416 compiler='$compiler_DEFAULT'
15418 # A function that is used when there is no print builtin or printf.
15419 func_fallback_echo ()
15421 eval 'cat <<_LTECHO_EOF
15423 _LTECHO_EOF'
15426 # Quote evaled strings.
15427 for var in SHELL \
15428 ECHO \
15429 SED \
15430 GREP \
15431 EGREP \
15432 FGREP \
15433 LD \
15434 NM \
15435 LN_S \
15436 lt_SP2NL \
15437 lt_NL2SP \
15438 reload_flag \
15439 OBJDUMP \
15440 deplibs_check_method \
15441 file_magic_cmd \
15442 AR \
15443 AR_FLAGS \
15444 STRIP \
15445 RANLIB \
15446 CC \
15447 CFLAGS \
15448 compiler \
15449 lt_cv_sys_global_symbol_pipe \
15450 lt_cv_sys_global_symbol_to_cdecl \
15451 lt_cv_sys_global_symbol_to_c_name_address \
15452 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15453 lt_prog_compiler_no_builtin_flag \
15454 lt_prog_compiler_wl \
15455 lt_prog_compiler_pic \
15456 lt_prog_compiler_static \
15457 lt_cv_prog_compiler_c_o \
15458 need_locks \
15459 DSYMUTIL \
15460 NMEDIT \
15461 LIPO \
15462 OTOOL \
15463 OTOOL64 \
15464 shrext_cmds \
15465 export_dynamic_flag_spec \
15466 whole_archive_flag_spec \
15467 compiler_needs_object \
15468 with_gnu_ld \
15469 allow_undefined_flag \
15470 no_undefined_flag \
15471 hardcode_libdir_flag_spec \
15472 hardcode_libdir_flag_spec_ld \
15473 hardcode_libdir_separator \
15474 fix_srcfile_path \
15475 exclude_expsyms \
15476 include_expsyms \
15477 file_list_spec \
15478 variables_saved_for_relink \
15479 libname_spec \
15480 library_names_spec \
15481 soname_spec \
15482 install_override_mode \
15483 finish_eval \
15484 old_striplib \
15485 striplib; do
15486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15487 *[\\\\\\\`\\"\\\$]*)
15488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15493 esac
15494 done
15496 # Double-quote double-evaled strings.
15497 for var in reload_cmds \
15498 old_postinstall_cmds \
15499 old_postuninstall_cmds \
15500 old_archive_cmds \
15501 extract_expsyms_cmds \
15502 old_archive_from_new_cmds \
15503 old_archive_from_expsyms_cmds \
15504 archive_cmds \
15505 archive_expsym_cmds \
15506 module_cmds \
15507 module_expsym_cmds \
15508 export_symbols_cmds \
15509 prelink_cmds \
15510 postinstall_cmds \
15511 postuninstall_cmds \
15512 finish_cmds \
15513 sys_lib_search_path_spec \
15514 sys_lib_dlsearch_path_spec; do
15515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15516 *[\\\\\\\`\\"\\\$]*)
15517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15522 esac
15523 done
15525 ac_aux_dir='$ac_aux_dir'
15526 xsi_shell='$xsi_shell'
15527 lt_shell_append='$lt_shell_append'
15529 # See if we are running on zsh, and set the options which allow our
15530 # commands through without removal of \ escapes INIT.
15531 if test -n "\${ZSH_VERSION+set}" ; then
15532 setopt NO_GLOB_SUBST
15536 PACKAGE='$PACKAGE'
15537 VERSION='$VERSION'
15538 TIMESTAMP='$TIMESTAMP'
15539 RM='$RM'
15540 ofile='$ofile'
15545 GCC="$GCC"
15546 CC="$CC"
15547 acx_cv_header_stdint="$acx_cv_header_stdint"
15548 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15549 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15550 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15551 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15552 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15553 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15554 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15555 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15556 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15557 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15558 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15559 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15560 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15563 # Variables needed in config.status (file generation) which aren't already
15564 # passed by autoconf.
15565 SUBDIRS="$SUBDIRS"
15568 _ACEOF
15570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15572 # Handling of arguments.
15573 for ac_config_target in $ac_config_targets
15575 case $ac_config_target in
15576 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15577 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15578 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15579 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15580 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15581 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15582 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15583 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15585 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15586 esac
15587 done
15590 # If the user did not use the arguments to specify the items to instantiate,
15591 # then the envvar interface is used. Set only those that are not.
15592 # We use the long form for the default assignment because of an extremely
15593 # bizarre bug on SunOS 4.1.3.
15594 if $ac_need_defaults; then
15595 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15596 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15600 # Have a temporary directory for convenience. Make it in the build tree
15601 # simply because there is no reason against having it here, and in addition,
15602 # creating and moving files from /tmp can sometimes cause problems.
15603 # Hook for its removal unless debugging.
15604 # Note that there is a small window in which the directory will not be cleaned:
15605 # after its creation but before its name has been assigned to `$tmp'.
15606 $debug ||
15608 tmp= ac_tmp=
15609 trap 'exit_status=$?
15610 : "${ac_tmp:=$tmp}"
15611 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15613 trap 'as_fn_exit 1' 1 2 13 15
15615 # Create a (secure) tmp directory for tmp files.
15618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15619 test -d "$tmp"
15620 } ||
15622 tmp=./conf$$-$RANDOM
15623 (umask 077 && mkdir "$tmp")
15624 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15625 ac_tmp=$tmp
15627 # Set up the scripts for CONFIG_FILES section.
15628 # No need to generate them if there are no CONFIG_FILES.
15629 # This happens for instance with `./config.status config.h'.
15630 if test -n "$CONFIG_FILES"; then
15633 ac_cr=`echo X | tr X '\015'`
15634 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15635 # But we know of no other shell where ac_cr would be empty at this
15636 # point, so we can use a bashism as a fallback.
15637 if test "x$ac_cr" = x; then
15638 eval ac_cr=\$\'\\r\'
15640 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15641 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15642 ac_cs_awk_cr='\\r'
15643 else
15644 ac_cs_awk_cr=$ac_cr
15647 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15648 _ACEOF
15652 echo "cat >conf$$subs.awk <<_ACEOF" &&
15653 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15654 echo "_ACEOF"
15655 } >conf$$subs.sh ||
15656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15657 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15658 ac_delim='%!_!# '
15659 for ac_last_try in false false false false false :; do
15660 . ./conf$$subs.sh ||
15661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15663 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15664 if test $ac_delim_n = $ac_delim_num; then
15665 break
15666 elif $ac_last_try; then
15667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15668 else
15669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15671 done
15672 rm -f conf$$subs.sh
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15676 _ACEOF
15677 sed -n '
15679 s/^/S["/; s/!.*/"]=/
15682 s/^[^!]*!//
15683 :repl
15684 t repl
15685 s/'"$ac_delim"'$//
15686 t delim
15689 s/\(.\{148\}\)..*/\1/
15690 t more1
15691 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15694 b repl
15695 :more1
15696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15699 s/.\{148\}//
15700 t nl
15701 :delim
15703 s/\(.\{148\}\)..*/\1/
15704 t more2
15705 s/["\\]/\\&/g; s/^/"/; s/$/"/
15708 :more2
15709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15712 s/.\{148\}//
15713 t delim
15714 ' <conf$$subs.awk | sed '
15715 /^[^""]/{
15717 s/\n//
15719 ' >>$CONFIG_STATUS || ac_write_fail=1
15720 rm -f conf$$subs.awk
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 _ACAWK
15723 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15724 for (key in S) S_is_set[key] = 1
15725 FS = "\a"
15729 line = $ 0
15730 nfields = split(line, field, "@")
15731 substed = 0
15732 len = length(field[1])
15733 for (i = 2; i < nfields; i++) {
15734 key = field[i]
15735 keylen = length(key)
15736 if (S_is_set[key]) {
15737 value = S[key]
15738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15739 len += length(value) + length(field[++i])
15740 substed = 1
15741 } else
15742 len += 1 + keylen
15745 print line
15748 _ACAWK
15749 _ACEOF
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15752 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15753 else
15755 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15756 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15757 _ACEOF
15759 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15760 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15761 # trailing colons and then remove the whole line if VPATH becomes empty
15762 # (actually we leave an empty line to preserve line numbers).
15763 if test "x$srcdir" = x.; then
15764 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15766 s///
15767 s/^/:/
15768 s/[ ]*$/:/
15769 s/:\$(srcdir):/:/g
15770 s/:\${srcdir}:/:/g
15771 s/:@srcdir@:/:/g
15772 s/^:*//
15773 s/:*$//
15775 s/\(=[ ]*\).*/\1/
15777 s/\n//
15778 s/^[^=]*=[ ]*$//
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 fi # test -n "$CONFIG_FILES"
15785 # Set up the scripts for CONFIG_HEADERS section.
15786 # No need to generate them if there are no CONFIG_HEADERS.
15787 # This happens for instance with `./config.status Makefile'.
15788 if test -n "$CONFIG_HEADERS"; then
15789 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15790 BEGIN {
15791 _ACEOF
15793 # Transform confdefs.h into an awk script `defines.awk', embedded as
15794 # here-document in config.status, that substitutes the proper values into
15795 # config.h.in to produce config.h.
15797 # Create a delimiter string that does not exist in confdefs.h, to ease
15798 # handling of long lines.
15799 ac_delim='%!_!# '
15800 for ac_last_try in false false :; do
15801 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15802 if test -z "$ac_tt"; then
15803 break
15804 elif $ac_last_try; then
15805 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15806 else
15807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15809 done
15811 # For the awk script, D is an array of macro values keyed by name,
15812 # likewise P contains macro parameters if any. Preserve backslash
15813 # newline sequences.
15815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15816 sed -n '
15817 s/.\{148\}/&'"$ac_delim"'/g
15818 t rset
15819 :rset
15820 s/^[ ]*#[ ]*define[ ][ ]*/ /
15821 t def
15823 :def
15824 s/\\$//
15825 t bsnl
15826 s/["\\]/\\&/g
15827 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15828 D["\1"]=" \3"/p
15829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15831 :bsnl
15832 s/["\\]/\\&/g
15833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15834 D["\1"]=" \3\\\\\\n"\\/p
15835 t cont
15836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15837 t cont
15839 :cont
15841 s/.\{148\}/&'"$ac_delim"'/g
15842 t clear
15843 :clear
15844 s/\\$//
15845 t bsnlc
15846 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15848 :bsnlc
15849 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15850 b cont
15851 ' <confdefs.h | sed '
15852 s/'"$ac_delim"'/"\\\
15853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15856 for (key in D) D_is_set[key] = 1
15857 FS = "\a"
15859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15860 line = \$ 0
15861 split(line, arg, " ")
15862 if (arg[1] == "#") {
15863 defundef = arg[2]
15864 mac1 = arg[3]
15865 } else {
15866 defundef = substr(arg[1], 2)
15867 mac1 = arg[2]
15869 split(mac1, mac2, "(") #)
15870 macro = mac2[1]
15871 prefix = substr(line, 1, index(line, defundef) - 1)
15872 if (D_is_set[macro]) {
15873 # Preserve the white space surrounding the "#".
15874 print prefix "define", macro P[macro] D[macro]
15875 next
15876 } else {
15877 # Replace #undef with comments. This is necessary, for example,
15878 # in the case of _POSIX_SOURCE, which is predefined and required
15879 # on some systems where configure will not decide to define it.
15880 if (defundef == "undef") {
15881 print "/*", prefix defundef, macro, "*/"
15882 next
15886 { print }
15887 _ACAWK
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15890 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15891 fi # test -n "$CONFIG_HEADERS"
15894 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15895 shift
15896 for ac_tag
15898 case $ac_tag in
15899 :[FHLC]) ac_mode=$ac_tag; continue;;
15900 esac
15901 case $ac_mode$ac_tag in
15902 :[FHL]*:*);;
15903 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15904 :[FH]-) ac_tag=-:-;;
15905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15906 esac
15907 ac_save_IFS=$IFS
15908 IFS=:
15909 set x $ac_tag
15910 IFS=$ac_save_IFS
15911 shift
15912 ac_file=$1
15913 shift
15915 case $ac_mode in
15916 :L) ac_source=$1;;
15917 :[FH])
15918 ac_file_inputs=
15919 for ac_f
15921 case $ac_f in
15922 -) ac_f="$ac_tmp/stdin";;
15923 *) # Look for the file first in the build tree, then in the source tree
15924 # (if the path is not absolute). The absolute path cannot be DOS-style,
15925 # because $ac_f cannot contain `:'.
15926 test -f "$ac_f" ||
15927 case $ac_f in
15928 [\\/$]*) false;;
15929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15930 esac ||
15931 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15932 esac
15933 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15934 as_fn_append ac_file_inputs " '$ac_f'"
15935 done
15937 # Let's still pretend it is `configure' which instantiates (i.e., don't
15938 # use $as_me), people would be surprised to read:
15939 # /* config.h. Generated by config.status. */
15940 configure_input='Generated from '`
15941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15942 `' by configure.'
15943 if test x"$ac_file" != x-; then
15944 configure_input="$ac_file. $configure_input"
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15946 $as_echo "$as_me: creating $ac_file" >&6;}
15948 # Neutralize special characters interpreted by sed in replacement strings.
15949 case $configure_input in #(
15950 *\&* | *\|* | *\\* )
15951 ac_sed_conf_input=`$as_echo "$configure_input" |
15952 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15953 *) ac_sed_conf_input=$configure_input;;
15954 esac
15956 case $ac_tag in
15957 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15959 esac
15961 esac
15963 ac_dir=`$as_dirname -- "$ac_file" ||
15964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15965 X"$ac_file" : 'X\(//\)[^/]' \| \
15966 X"$ac_file" : 'X\(//\)$' \| \
15967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15968 $as_echo X"$ac_file" |
15969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15970 s//\1/
15973 /^X\(\/\/\)[^/].*/{
15974 s//\1/
15977 /^X\(\/\/\)$/{
15978 s//\1/
15981 /^X\(\/\).*/{
15982 s//\1/
15985 s/.*/./; q'`
15986 as_dir="$ac_dir"; as_fn_mkdir_p
15987 ac_builddir=.
15989 case "$ac_dir" in
15990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15993 # A ".." for each directory in $ac_dir_suffix.
15994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15995 case $ac_top_builddir_sub in
15996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15998 esac ;;
15999 esac
16000 ac_abs_top_builddir=$ac_pwd
16001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16002 # for backward compatibility:
16003 ac_top_builddir=$ac_top_build_prefix
16005 case $srcdir in
16006 .) # We are building in place.
16007 ac_srcdir=.
16008 ac_top_srcdir=$ac_top_builddir_sub
16009 ac_abs_top_srcdir=$ac_pwd ;;
16010 [\\/]* | ?:[\\/]* ) # Absolute name.
16011 ac_srcdir=$srcdir$ac_dir_suffix;
16012 ac_top_srcdir=$srcdir
16013 ac_abs_top_srcdir=$srcdir ;;
16014 *) # Relative name.
16015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16016 ac_top_srcdir=$ac_top_build_prefix$srcdir
16017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16018 esac
16019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16022 case $ac_mode in
16025 # CONFIG_FILE
16028 case $INSTALL in
16029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16031 esac
16032 ac_MKDIR_P=$MKDIR_P
16033 case $MKDIR_P in
16034 [\\/$]* | ?:[\\/]* ) ;;
16035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16036 esac
16037 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 # If the template does not know about datarootdir, expand it.
16041 # FIXME: This hack should be removed a few years after 2.60.
16042 ac_datarootdir_hack=; ac_datarootdir_seen=
16043 ac_sed_dataroot='
16044 /datarootdir/ {
16048 /@datadir@/p
16049 /@docdir@/p
16050 /@infodir@/p
16051 /@localedir@/p
16052 /@mandir@/p'
16053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16054 *datarootdir*) ac_datarootdir_seen=yes;;
16055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16057 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16058 _ACEOF
16059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16060 ac_datarootdir_hack='
16061 s&@datadir@&$datadir&g
16062 s&@docdir@&$docdir&g
16063 s&@infodir@&$infodir&g
16064 s&@localedir@&$localedir&g
16065 s&@mandir@&$mandir&g
16066 s&\\\${datarootdir}&$datarootdir&g' ;;
16067 esac
16068 _ACEOF
16070 # Neutralize VPATH when `$srcdir' = `.'.
16071 # Shell code in configure.ac might set extrasub.
16072 # FIXME: do we really want to maintain this feature?
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 ac_sed_extra="$ac_vpsub
16075 $extrasub
16076 _ACEOF
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16080 s|@configure_input@|$ac_sed_conf_input|;t t
16081 s&@top_builddir@&$ac_top_builddir_sub&;t t
16082 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16083 s&@srcdir@&$ac_srcdir&;t t
16084 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16085 s&@top_srcdir@&$ac_top_srcdir&;t t
16086 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16087 s&@builddir@&$ac_builddir&;t t
16088 s&@abs_builddir@&$ac_abs_builddir&;t t
16089 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16090 s&@INSTALL@&$ac_INSTALL&;t t
16091 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16092 $ac_datarootdir_hack
16094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16100 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16102 which seems to be undefined. Please make sure it is defined" >&5
16103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16104 which seems to be undefined. Please make sure it is defined" >&2;}
16106 rm -f "$ac_tmp/stdin"
16107 case $ac_file in
16108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16110 esac \
16111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16115 # CONFIG_HEADER
16117 if test x"$ac_file" != x-; then
16119 $as_echo "/* $configure_input */" \
16120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16121 } >"$ac_tmp/config.h" \
16122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16123 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16126 else
16127 rm -f "$ac_file"
16128 mv "$ac_tmp/config.h" "$ac_file" \
16129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16131 else
16132 $as_echo "/* $configure_input */" \
16133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16134 || as_fn_error $? "could not create -" "$LINENO" 5
16136 # Compute "$ac_file"'s index in $config_headers.
16137 _am_arg="$ac_file"
16138 _am_stamp_count=1
16139 for _am_header in $config_headers :; do
16140 case $_am_header in
16141 $_am_arg | $_am_arg:* )
16142 break ;;
16144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16145 esac
16146 done
16147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$_am_arg" : 'X\(//\)[^/]' \| \
16150 X"$_am_arg" : 'X\(//\)$' \| \
16151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16152 $as_echo X"$_am_arg" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16161 /^X\(\/\/\)$/{
16162 s//\1/
16165 /^X\(\/\).*/{
16166 s//\1/
16169 s/.*/./; q'`/stamp-h$_am_stamp_count
16172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16173 $as_echo "$as_me: executing $ac_file commands" >&6;}
16175 esac
16178 case $ac_file$ac_mode in
16179 "default-1":C)
16180 # Only add multilib support code if we just rebuilt the top-level
16181 # Makefile.
16182 case " $CONFIG_FILES " in
16183 *" Makefile "*)
16184 ac_file=Makefile . ${multi_basedir}/config-ml.in
16186 esac ;;
16187 "libtool":C)
16189 # See if we are running on zsh, and set the options which allow our
16190 # commands through without removal of \ escapes.
16191 if test -n "${ZSH_VERSION+set}" ; then
16192 setopt NO_GLOB_SUBST
16195 cfgfile="${ofile}T"
16196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16197 $RM "$cfgfile"
16199 cat <<_LT_EOF >> "$cfgfile"
16200 #! $SHELL
16202 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16203 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16208 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16209 # Written by Gordon Matzigkeit, 1996
16211 # This file is part of GNU Libtool.
16213 # GNU Libtool is free software; you can redistribute it and/or
16214 # modify it under the terms of the GNU General Public License as
16215 # published by the Free Software Foundation; either version 2 of
16216 # the License, or (at your option) any later version.
16218 # As a special exception to the GNU General Public License,
16219 # if you distribute this file as part of a program or library that
16220 # is built using GNU Libtool, you may include this file under the
16221 # same distribution terms that you use for the rest of that program.
16223 # GNU Libtool is distributed in the hope that it will be useful,
16224 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16226 # GNU General Public License for more details.
16228 # You should have received a copy of the GNU General Public License
16229 # along with GNU Libtool; see the file COPYING. If not, a copy
16230 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16231 # obtained by writing to the Free Software Foundation, Inc.,
16232 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16235 # The names of the tagged configurations supported by this script.
16236 available_tags=""
16238 # ### BEGIN LIBTOOL CONFIG
16240 # Which release of libtool.m4 was used?
16241 macro_version=$macro_version
16242 macro_revision=$macro_revision
16244 # Whether or not to build shared libraries.
16245 build_libtool_libs=$enable_shared
16247 # Whether or not to build static libraries.
16248 build_old_libs=$enable_static
16250 # What type of objects to build.
16251 pic_mode=$pic_mode
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16256 # Shell to use when invoking shell scripts.
16257 SHELL=$lt_SHELL
16259 # An echo program that protects backslashes.
16260 ECHO=$lt_ECHO
16262 # The host system.
16263 host_alias=$host_alias
16264 host=$host
16265 host_os=$host_os
16267 # The build system.
16268 build_alias=$build_alias
16269 build=$build
16270 build_os=$build_os
16272 # A sed program that does not truncate output.
16273 SED=$lt_SED
16275 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16276 Xsed="\$SED -e 1s/^X//"
16278 # A grep program that handles long lines.
16279 GREP=$lt_GREP
16281 # An ERE matcher.
16282 EGREP=$lt_EGREP
16284 # A literal string matcher.
16285 FGREP=$lt_FGREP
16287 # A BSD- or MS-compatible name lister.
16288 NM=$lt_NM
16290 # Whether we need soft or hard links.
16291 LN_S=$lt_LN_S
16293 # What is the maximum length of a command?
16294 max_cmd_len=$max_cmd_len
16296 # Object file suffix (normally "o").
16297 objext=$ac_objext
16299 # Executable file suffix (normally "").
16300 exeext=$exeext
16302 # whether the shell understands "unset".
16303 lt_unset=$lt_unset
16305 # turn spaces into newlines.
16306 SP2NL=$lt_lt_SP2NL
16308 # turn newlines into spaces.
16309 NL2SP=$lt_lt_NL2SP
16311 # An object symbol dumper.
16312 OBJDUMP=$lt_OBJDUMP
16314 # Method to check whether dependent libraries are shared objects.
16315 deplibs_check_method=$lt_deplibs_check_method
16317 # Command to use when deplibs_check_method == "file_magic".
16318 file_magic_cmd=$lt_file_magic_cmd
16320 # The archiver.
16321 AR=$lt_AR
16322 AR_FLAGS=$lt_AR_FLAGS
16324 # A symbol stripping program.
16325 STRIP=$lt_STRIP
16327 # Commands used to install an old-style archive.
16328 RANLIB=$lt_RANLIB
16329 old_postinstall_cmds=$lt_old_postinstall_cmds
16330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16332 # Whether to use a lock for old archive extraction.
16333 lock_old_archive_extraction=$lock_old_archive_extraction
16335 # A C compiler.
16336 LTCC=$lt_CC
16338 # LTCC compiler flags.
16339 LTCFLAGS=$lt_CFLAGS
16341 # Take the output of nm and produce a listing of raw symbols and C names.
16342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16344 # Transform the output of nm in a proper C declaration.
16345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16347 # Transform the output of nm in a C name address pair.
16348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16350 # Transform the output of nm in a C name address pair when lib prefix is needed.
16351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16353 # The name of the directory that contains temporary libtool files.
16354 objdir=$objdir
16356 # Used to examine libraries when file_magic_cmd begins with "file".
16357 MAGIC_CMD=$MAGIC_CMD
16359 # Must we lock files when doing compilation?
16360 need_locks=$lt_need_locks
16362 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16363 DSYMUTIL=$lt_DSYMUTIL
16365 # Tool to change global to local symbols on Mac OS X.
16366 NMEDIT=$lt_NMEDIT
16368 # Tool to manipulate fat objects and archives on Mac OS X.
16369 LIPO=$lt_LIPO
16371 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16372 OTOOL=$lt_OTOOL
16374 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16375 OTOOL64=$lt_OTOOL64
16377 # Old archive suffix (normally "a").
16378 libext=$libext
16380 # Shared library suffix (normally ".so").
16381 shrext_cmds=$lt_shrext_cmds
16383 # The commands to extract the exported symbol list from a shared archive.
16384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16386 # Variables whose values should be saved in libtool wrapper scripts and
16387 # restored at link time.
16388 variables_saved_for_relink=$lt_variables_saved_for_relink
16390 # Do we need the "lib" prefix for modules?
16391 need_lib_prefix=$need_lib_prefix
16393 # Do we need a version for libraries?
16394 need_version=$need_version
16396 # Library versioning type.
16397 version_type=$version_type
16399 # Shared library runtime path variable.
16400 runpath_var=$runpath_var
16402 # Shared library path variable.
16403 shlibpath_var=$shlibpath_var
16405 # Is shlibpath searched before the hard-coded library search path?
16406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408 # Format of library name prefix.
16409 libname_spec=$lt_libname_spec
16411 # List of archive names. First name is the real one, the rest are links.
16412 # The last name is the one that the linker finds with -lNAME
16413 library_names_spec=$lt_library_names_spec
16415 # The coded name of the library, if different from the real name.
16416 soname_spec=$lt_soname_spec
16418 # Permission mode override for installation of shared libraries.
16419 install_override_mode=$lt_install_override_mode
16421 # Command to use after installation of a shared archive.
16422 postinstall_cmds=$lt_postinstall_cmds
16424 # Command to use after uninstallation of a shared archive.
16425 postuninstall_cmds=$lt_postuninstall_cmds
16427 # Commands used to finish a libtool library installation in a directory.
16428 finish_cmds=$lt_finish_cmds
16430 # As "finish_cmds", except a single script fragment to be evaled but
16431 # not shown.
16432 finish_eval=$lt_finish_eval
16434 # Whether we should hardcode library paths into libraries.
16435 hardcode_into_libs=$hardcode_into_libs
16437 # Compile-time system search path for libraries.
16438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16440 # Run-time system search path for libraries.
16441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16443 # Whether dlopen is supported.
16444 dlopen_support=$enable_dlopen
16446 # Whether dlopen of programs is supported.
16447 dlopen_self=$enable_dlopen_self
16449 # Whether dlopen of statically linked programs is supported.
16450 dlopen_self_static=$enable_dlopen_self_static
16452 # Commands to strip libraries.
16453 old_striplib=$lt_old_striplib
16454 striplib=$lt_striplib
16457 # The linker used to build libraries.
16458 LD=$lt_LD
16460 # How to create reloadable object files.
16461 reload_flag=$lt_reload_flag
16462 reload_cmds=$lt_reload_cmds
16464 # Commands used to build an old-style archive.
16465 old_archive_cmds=$lt_old_archive_cmds
16467 # A language specific compiler.
16468 CC=$lt_compiler
16470 # Is the compiler the GNU compiler?
16471 with_gcc=$GCC
16473 # Compiler flag to turn off builtin functions.
16474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16476 # How to pass a linker flag through the compiler.
16477 wl=$lt_lt_prog_compiler_wl
16479 # Additional compiler flags for building library objects.
16480 pic_flag=$lt_lt_prog_compiler_pic
16482 # Compiler flag to prevent dynamic linking.
16483 link_static_flag=$lt_lt_prog_compiler_static
16485 # Does compiler simultaneously support -c and -o options?
16486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16488 # Whether or not to add -lc for building shared libraries.
16489 build_libtool_need_lc=$archive_cmds_need_lc
16491 # Whether or not to disallow shared libs when runtime libs are static.
16492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16494 # Compiler flag to allow reflexive dlopens.
16495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16497 # Compiler flag to generate shared objects directly from archives.
16498 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16500 # Whether the compiler copes with passing no objects directly.
16501 compiler_needs_object=$lt_compiler_needs_object
16503 # Create an old-style archive from a shared archive.
16504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16506 # Create a temporary old-style archive to link instead of a shared archive.
16507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16509 # Commands used to build a shared archive.
16510 archive_cmds=$lt_archive_cmds
16511 archive_expsym_cmds=$lt_archive_expsym_cmds
16513 # Commands used to build a loadable module if different from building
16514 # a shared archive.
16515 module_cmds=$lt_module_cmds
16516 module_expsym_cmds=$lt_module_expsym_cmds
16518 # Whether we are building with GNU ld or not.
16519 with_gnu_ld=$lt_with_gnu_ld
16521 # Flag that allows shared libraries with undefined symbols to be built.
16522 allow_undefined_flag=$lt_allow_undefined_flag
16524 # Flag that enforces no undefined symbols.
16525 no_undefined_flag=$lt_no_undefined_flag
16527 # Flag to hardcode \$libdir into a binary during linking.
16528 # This must work even if \$libdir does not exist
16529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16531 # If ld is used when linking, flag to hardcode \$libdir into a binary
16532 # during linking. This must work even if \$libdir does not exist.
16533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16535 # Whether we need a single "-rpath" flag with a separated argument.
16536 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16539 # DIR into the resulting binary.
16540 hardcode_direct=$hardcode_direct
16542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16543 # DIR into the resulting binary and the resulting library dependency is
16544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16545 # library is relocated.
16546 hardcode_direct_absolute=$hardcode_direct_absolute
16548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16549 # into the resulting binary.
16550 hardcode_minus_L=$hardcode_minus_L
16552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16553 # into the resulting binary.
16554 hardcode_shlibpath_var=$hardcode_shlibpath_var
16556 # Set to "yes" if building a shared library automatically hardcodes DIR
16557 # into the library and all subsequent libraries and executables linked
16558 # against it.
16559 hardcode_automatic=$hardcode_automatic
16561 # Set to yes if linker adds runtime paths of dependent libraries
16562 # to runtime path list.
16563 inherit_rpath=$inherit_rpath
16565 # Whether libtool must link a program against all its dependency libraries.
16566 link_all_deplibs=$link_all_deplibs
16568 # Fix the shell variable \$srcfile for the compiler.
16569 fix_srcfile_path=$lt_fix_srcfile_path
16571 # Set to "yes" if exported symbols are required.
16572 always_export_symbols=$always_export_symbols
16574 # The commands to list exported symbols.
16575 export_symbols_cmds=$lt_export_symbols_cmds
16577 # Symbols that should not be listed in the preloaded symbols.
16578 exclude_expsyms=$lt_exclude_expsyms
16580 # Symbols that must always be exported.
16581 include_expsyms=$lt_include_expsyms
16583 # Commands necessary for linking programs (against libraries) with templates.
16584 prelink_cmds=$lt_prelink_cmds
16586 # Specify filename containing input files.
16587 file_list_spec=$lt_file_list_spec
16589 # How to hardcode a shared library path into an executable.
16590 hardcode_action=$hardcode_action
16592 # ### END LIBTOOL CONFIG
16594 _LT_EOF
16596 case $host_os in
16597 aix3*)
16598 cat <<\_LT_EOF >> "$cfgfile"
16599 # AIX sometimes has problems with the GCC collect2 program. For some
16600 # reason, if we set the COLLECT_NAMES environment variable, the problems
16601 # vanish in a puff of smoke.
16602 if test "X${COLLECT_NAMES+set}" != Xset; then
16603 COLLECT_NAMES=
16604 export COLLECT_NAMES
16606 _LT_EOF
16608 esac
16611 ltmain="$ac_aux_dir/ltmain.sh"
16614 # We use sed instead of cat because bash on DJGPP gets confused if
16615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16616 # text mode, it properly converts lines to CR/LF. This bash problem
16617 # is reportedly fixed, but why not run on old versions too?
16618 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16619 || (rm -f "$cfgfile"; exit 1)
16621 case $xsi_shell in
16622 yes)
16623 cat << \_LT_EOF >> "$cfgfile"
16625 # func_dirname file append nondir_replacement
16626 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16627 # otherwise set result to NONDIR_REPLACEMENT.
16628 func_dirname ()
16630 case ${1} in
16631 */*) func_dirname_result="${1%/*}${2}" ;;
16632 * ) func_dirname_result="${3}" ;;
16633 esac
16636 # func_basename file
16637 func_basename ()
16639 func_basename_result="${1##*/}"
16642 # func_dirname_and_basename file append nondir_replacement
16643 # perform func_basename and func_dirname in a single function
16644 # call:
16645 # dirname: Compute the dirname of FILE. If nonempty,
16646 # add APPEND to the result, otherwise set result
16647 # to NONDIR_REPLACEMENT.
16648 # value returned in "$func_dirname_result"
16649 # basename: Compute filename of FILE.
16650 # value retuned in "$func_basename_result"
16651 # Implementation must be kept synchronized with func_dirname
16652 # and func_basename. For efficiency, we do not delegate to
16653 # those functions but instead duplicate the functionality here.
16654 func_dirname_and_basename ()
16656 case ${1} in
16657 */*) func_dirname_result="${1%/*}${2}" ;;
16658 * ) func_dirname_result="${3}" ;;
16659 esac
16660 func_basename_result="${1##*/}"
16663 # func_stripname prefix suffix name
16664 # strip PREFIX and SUFFIX off of NAME.
16665 # PREFIX and SUFFIX must not contain globbing or regex special
16666 # characters, hashes, percent signs, but SUFFIX may contain a leading
16667 # dot (in which case that matches only a dot).
16668 func_stripname ()
16670 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16671 # positional parameters, so assign one to ordinary parameter first.
16672 func_stripname_result=${3}
16673 func_stripname_result=${func_stripname_result#"${1}"}
16674 func_stripname_result=${func_stripname_result%"${2}"}
16677 # func_opt_split
16678 func_opt_split ()
16680 func_opt_split_opt=${1%%=*}
16681 func_opt_split_arg=${1#*=}
16684 # func_lo2o object
16685 func_lo2o ()
16687 case ${1} in
16688 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16689 *) func_lo2o_result=${1} ;;
16690 esac
16693 # func_xform libobj-or-source
16694 func_xform ()
16696 func_xform_result=${1%.*}.lo
16699 # func_arith arithmetic-term...
16700 func_arith ()
16702 func_arith_result=$(( $* ))
16705 # func_len string
16706 # STRING may not start with a hyphen.
16707 func_len ()
16709 func_len_result=${#1}
16712 _LT_EOF
16714 *) # Bourne compatible functions.
16715 cat << \_LT_EOF >> "$cfgfile"
16717 # func_dirname file append nondir_replacement
16718 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16719 # otherwise set result to NONDIR_REPLACEMENT.
16720 func_dirname ()
16722 # Extract subdirectory from the argument.
16723 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16724 if test "X$func_dirname_result" = "X${1}"; then
16725 func_dirname_result="${3}"
16726 else
16727 func_dirname_result="$func_dirname_result${2}"
16731 # func_basename file
16732 func_basename ()
16734 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16738 # func_stripname prefix suffix name
16739 # strip PREFIX and SUFFIX off of NAME.
16740 # PREFIX and SUFFIX must not contain globbing or regex special
16741 # characters, hashes, percent signs, but SUFFIX may contain a leading
16742 # dot (in which case that matches only a dot).
16743 # func_strip_suffix prefix name
16744 func_stripname ()
16746 case ${2} in
16747 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16748 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16749 esac
16752 # sed scripts:
16753 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16754 my_sed_long_arg='1s/^-[^=]*=//'
16756 # func_opt_split
16757 func_opt_split ()
16759 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16760 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16763 # func_lo2o object
16764 func_lo2o ()
16766 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16769 # func_xform libobj-or-source
16770 func_xform ()
16772 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16775 # func_arith arithmetic-term...
16776 func_arith ()
16778 func_arith_result=`expr "$@"`
16781 # func_len string
16782 # STRING may not start with a hyphen.
16783 func_len ()
16785 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16788 _LT_EOF
16789 esac
16791 case $lt_shell_append in
16792 yes)
16793 cat << \_LT_EOF >> "$cfgfile"
16795 # func_append var value
16796 # Append VALUE to the end of shell variable VAR.
16797 func_append ()
16799 eval "$1+=\$2"
16801 _LT_EOF
16804 cat << \_LT_EOF >> "$cfgfile"
16806 # func_append var value
16807 # Append VALUE to the end of shell variable VAR.
16808 func_append ()
16810 eval "$1=\$$1\$2"
16813 _LT_EOF
16815 esac
16818 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16819 || (rm -f "$cfgfile"; exit 1)
16821 mv -f "$cfgfile" "$ofile" ||
16822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16823 chmod +x "$ofile"
16826 "gstdint.h":C)
16827 if test "$GCC" = yes; then
16828 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16829 else
16830 echo "/* generated for $CC */" > tmp-stdint.h
16833 sed 's/^ *//' >> tmp-stdint.h <<EOF
16835 #ifndef GCC_GENERATED_STDINT_H
16836 #define GCC_GENERATED_STDINT_H 1
16838 #include <sys/types.h>
16841 if test "$acx_cv_header_stdint" != stdint.h; then
16842 echo "#include <stddef.h>" >> tmp-stdint.h
16844 if test "$acx_cv_header_stdint" != stddef.h; then
16845 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16848 sed 's/^ *//' >> tmp-stdint.h <<EOF
16849 /* glibc uses these symbols as guards to prevent redefinitions. */
16850 #ifdef __int8_t_defined
16851 #define _INT8_T
16852 #define _INT16_T
16853 #define _INT32_T
16854 #endif
16855 #ifdef __uint32_t_defined
16856 #define _UINT32_T
16857 #endif
16861 # ----------------- done header, emit basic int types -------------
16862 if test "$acx_cv_header_stdint" = stddef.h; then
16863 sed 's/^ *//' >> tmp-stdint.h <<EOF
16865 #ifndef _UINT8_T
16866 #define _UINT8_T
16867 #ifndef __uint8_t_defined
16868 #define __uint8_t_defined
16869 #ifndef uint8_t
16870 typedef unsigned $acx_cv_type_int8_t uint8_t;
16871 #endif
16872 #endif
16873 #endif
16875 #ifndef _UINT16_T
16876 #define _UINT16_T
16877 #ifndef __uint16_t_defined
16878 #define __uint16_t_defined
16879 #ifndef uint16_t
16880 typedef unsigned $acx_cv_type_int16_t uint16_t;
16881 #endif
16882 #endif
16883 #endif
16885 #ifndef _UINT32_T
16886 #define _UINT32_T
16887 #ifndef __uint32_t_defined
16888 #define __uint32_t_defined
16889 #ifndef uint32_t
16890 typedef unsigned $acx_cv_type_int32_t uint32_t;
16891 #endif
16892 #endif
16893 #endif
16895 #ifndef _INT8_T
16896 #define _INT8_T
16897 #ifndef __int8_t_defined
16898 #define __int8_t_defined
16899 #ifndef int8_t
16900 typedef $acx_cv_type_int8_t int8_t;
16901 #endif
16902 #endif
16903 #endif
16905 #ifndef _INT16_T
16906 #define _INT16_T
16907 #ifndef __int16_t_defined
16908 #define __int16_t_defined
16909 #ifndef int16_t
16910 typedef $acx_cv_type_int16_t int16_t;
16911 #endif
16912 #endif
16913 #endif
16915 #ifndef _INT32_T
16916 #define _INT32_T
16917 #ifndef __int32_t_defined
16918 #define __int32_t_defined
16919 #ifndef int32_t
16920 typedef $acx_cv_type_int32_t int32_t;
16921 #endif
16922 #endif
16923 #endif
16925 elif test "$ac_cv_type_u_int32_t" = yes; then
16926 sed 's/^ *//' >> tmp-stdint.h <<EOF
16928 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16929 #ifndef _INT8_T
16930 #define _INT8_T
16931 #endif
16932 #ifndef _INT16_T
16933 #define _INT16_T
16934 #endif
16935 #ifndef _INT32_T
16936 #define _INT32_T
16937 #endif
16939 #ifndef _UINT8_T
16940 #define _UINT8_T
16941 #ifndef __uint8_t_defined
16942 #define __uint8_t_defined
16943 #ifndef uint8_t
16944 typedef u_int8_t uint8_t;
16945 #endif
16946 #endif
16947 #endif
16949 #ifndef _UINT16_T
16950 #define _UINT16_T
16951 #ifndef __uint16_t_defined
16952 #define __uint16_t_defined
16953 #ifndef uint16_t
16954 typedef u_int16_t uint16_t;
16955 #endif
16956 #endif
16957 #endif
16959 #ifndef _UINT32_T
16960 #define _UINT32_T
16961 #ifndef __uint32_t_defined
16962 #define __uint32_t_defined
16963 #ifndef uint32_t
16964 typedef u_int32_t uint32_t;
16965 #endif
16966 #endif
16967 #endif
16969 else
16970 sed 's/^ *//' >> tmp-stdint.h <<EOF
16972 /* Some systems have guard macros to prevent redefinitions, define them. */
16973 #ifndef _INT8_T
16974 #define _INT8_T
16975 #endif
16976 #ifndef _INT16_T
16977 #define _INT16_T
16978 #endif
16979 #ifndef _INT32_T
16980 #define _INT32_T
16981 #endif
16982 #ifndef _UINT8_T
16983 #define _UINT8_T
16984 #endif
16985 #ifndef _UINT16_T
16986 #define _UINT16_T
16987 #endif
16988 #ifndef _UINT32_T
16989 #define _UINT32_T
16990 #endif
16994 # ------------- done basic int types, emit int64_t types ------------
16995 if test "$ac_cv_type_uint64_t" = yes; then
16996 sed 's/^ *//' >> tmp-stdint.h <<EOF
16998 /* system headers have good uint64_t and int64_t */
16999 #ifndef _INT64_T
17000 #define _INT64_T
17001 #endif
17002 #ifndef _UINT64_T
17003 #define _UINT64_T
17004 #endif
17006 elif test "$ac_cv_type_u_int64_t" = yes; then
17007 sed 's/^ *//' >> tmp-stdint.h <<EOF
17009 /* system headers have an u_int64_t (and int64_t) */
17010 #ifndef _INT64_T
17011 #define _INT64_T
17012 #endif
17013 #ifndef _UINT64_T
17014 #define _UINT64_T
17015 #ifndef __uint64_t_defined
17016 #define __uint64_t_defined
17017 #ifndef uint64_t
17018 typedef u_int64_t uint64_t;
17019 #endif
17020 #endif
17021 #endif
17023 elif test -n "$acx_cv_type_int64_t"; then
17024 sed 's/^ *//' >> tmp-stdint.h <<EOF
17026 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17027 #ifndef _INT64_T
17028 #define _INT64_T
17029 #ifndef int64_t
17030 typedef $acx_cv_type_int64_t int64_t;
17031 #endif
17032 #endif
17033 #ifndef _UINT64_T
17034 #define _UINT64_T
17035 #ifndef __uint64_t_defined
17036 #define __uint64_t_defined
17037 #ifndef uint64_t
17038 typedef unsigned $acx_cv_type_int64_t uint64_t;
17039 #endif
17040 #endif
17041 #endif
17043 else
17044 sed 's/^ *//' >> tmp-stdint.h <<EOF
17046 /* some common heuristics for int64_t, using compiler-specific tests */
17047 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17048 #ifndef _INT64_T
17049 #define _INT64_T
17050 #ifndef __int64_t_defined
17051 #ifndef int64_t
17052 typedef long long int64_t;
17053 #endif
17054 #endif
17055 #endif
17056 #ifndef _UINT64_T
17057 #define _UINT64_T
17058 #ifndef uint64_t
17059 typedef unsigned long long uint64_t;
17060 #endif
17061 #endif
17063 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17064 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17065 does not implement __extension__. But that compiler doesn't define
17066 __GNUC_MINOR__. */
17067 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17068 # define __extension__
17069 # endif
17071 # ifndef _INT64_T
17072 # define _INT64_T
17073 # ifndef int64_t
17074 __extension__ typedef long long int64_t;
17075 # endif
17076 # endif
17077 # ifndef _UINT64_T
17078 # define _UINT64_T
17079 # ifndef uint64_t
17080 __extension__ typedef unsigned long long uint64_t;
17081 # endif
17082 # endif
17084 #elif !defined __STRICT_ANSI__
17085 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17087 # ifndef _INT64_T
17088 # define _INT64_T
17089 # ifndef int64_t
17090 typedef __int64 int64_t;
17091 # endif
17092 # endif
17093 # ifndef _UINT64_T
17094 # define _UINT64_T
17095 # ifndef uint64_t
17096 typedef unsigned __int64 uint64_t;
17097 # endif
17098 # endif
17099 # endif /* compiler */
17101 #endif /* ANSI version */
17105 # ------------- done int64_t types, emit intptr types ------------
17106 if test "$ac_cv_type_uintptr_t" != yes; then
17107 sed 's/^ *//' >> tmp-stdint.h <<EOF
17109 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17110 #ifndef __uintptr_t_defined
17111 #ifndef uintptr_t
17112 typedef u$acx_cv_type_intptr_t uintptr_t;
17113 #endif
17114 #endif
17115 #ifndef __intptr_t_defined
17116 #ifndef intptr_t
17117 typedef $acx_cv_type_intptr_t intptr_t;
17118 #endif
17119 #endif
17123 # ------------- done intptr types, emit int_least types ------------
17124 if test "$ac_cv_type_int_least32_t" != yes; then
17125 sed 's/^ *//' >> tmp-stdint.h <<EOF
17127 /* Define int_least types */
17128 typedef int8_t int_least8_t;
17129 typedef int16_t int_least16_t;
17130 typedef int32_t int_least32_t;
17131 #ifdef _INT64_T
17132 typedef int64_t int_least64_t;
17133 #endif
17135 typedef uint8_t uint_least8_t;
17136 typedef uint16_t uint_least16_t;
17137 typedef uint32_t uint_least32_t;
17138 #ifdef _UINT64_T
17139 typedef uint64_t uint_least64_t;
17140 #endif
17144 # ------------- done intptr types, emit int_fast types ------------
17145 if test "$ac_cv_type_int_fast32_t" != yes; then
17146 sed 's/^ *//' >> tmp-stdint.h <<EOF
17148 /* Define int_fast types. short is often slow */
17149 typedef int8_t int_fast8_t;
17150 typedef int int_fast16_t;
17151 typedef int32_t int_fast32_t;
17152 #ifdef _INT64_T
17153 typedef int64_t int_fast64_t;
17154 #endif
17156 typedef uint8_t uint_fast8_t;
17157 typedef unsigned int uint_fast16_t;
17158 typedef uint32_t uint_fast32_t;
17159 #ifdef _UINT64_T
17160 typedef uint64_t uint_fast64_t;
17161 #endif
17165 if test "$ac_cv_type_uintmax_t" != yes; then
17166 sed 's/^ *//' >> tmp-stdint.h <<EOF
17168 /* Define intmax based on what we found */
17169 #ifndef intmax_t
17170 #ifdef _INT64_T
17171 typedef int64_t intmax_t;
17172 #else
17173 typedef long intmax_t;
17174 #endif
17175 #endif
17176 #ifndef uintmax_t
17177 #ifdef _UINT64_T
17178 typedef uint64_t uintmax_t;
17179 #else
17180 typedef unsigned long uintmax_t;
17181 #endif
17182 #endif
17186 sed 's/^ *//' >> tmp-stdint.h <<EOF
17188 #endif /* GCC_GENERATED_STDINT_H */
17191 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17192 rm -f tmp-stdint.h
17193 else
17194 mv -f tmp-stdint.h gstdint.h
17198 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17199 "default":C) if test -n "$CONFIG_FILES"; then
17200 if test -n "${with_target_subdir}"; then
17201 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17202 # that multilib installs will end up installed in the correct place.
17203 # The testsuite needs it for multilib-aware ABI baseline files.
17204 # To work around this not being passed down from config-ml.in ->
17205 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17206 # append it here. Only modify Makefiles that have just been created.
17208 # Also, get rid of this simulated-VPATH thing that automake does.
17209 cat > vpsed << \_EOF
17210 s!`test -f '$<' || echo '$(srcdir)/'`!!
17211 _EOF
17212 for i in $SUBDIRS; do
17213 case $CONFIG_FILES in
17214 *${i}/Makefile*)
17215 #echo "Adding MULTISUBDIR to $i/Makefile"
17216 sed -f vpsed $i/Makefile > tmp
17217 grep '^MULTISUBDIR =' Makefile >> tmp
17218 mv tmp $i/Makefile
17220 esac
17221 done
17222 rm vpsed
17227 esac
17228 done # for ac_tag
17231 as_fn_exit 0
17232 _ACEOF
17233 ac_clean_files=$ac_clean_files_save
17235 test $ac_write_fail = 0 ||
17236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17239 # configure is writing to config.log, and then calls config.status.
17240 # config.status does its own redirection, appending to config.log.
17241 # Unfortunately, on DOS this fails, as config.log is still kept open
17242 # by configure, so config.status won't be able to write to it; its
17243 # output is simply discarded. So we exec the FD to /dev/null,
17244 # effectively closing config.log, so it can be properly (re)opened and
17245 # appended to by config.status. When coming back to configure, we
17246 # need to make the FD available again.
17247 if test "$no_create" != yes; then
17248 ac_cs_success=:
17249 ac_config_status_args=
17250 test "$silent" = yes &&
17251 ac_config_status_args="$ac_config_status_args --quiet"
17252 exec 5>/dev/null
17253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17254 exec 5>>config.log
17255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17256 # would make configure fail if this is the last instruction.
17257 $ac_cs_success || as_fn_exit 1
17259 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17261 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}