Fortran: Unlimited polymorphic intrinsic function arguments [PR84006]
[official-gcc.git] / libbacktrace / configure
blobab94a85f45c1525a90bac2396a1a9885acb31f15
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; do
12388 # Do the check with the no- prefix removed since gcc silently
12389 # accepts any -Wno-* option on purpose
12390 case $real_option in
12391 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12392 *) option=$real_option ;;
12393 esac
12394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12397 $as_echo_n "checking whether $CC supports $option... " >&6; }
12398 if eval \${$as_acx_Woption+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 CFLAGS="$option"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12406 main ()
12410 return 0;
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414 eval "$as_acx_Woption=yes"
12415 else
12416 eval "$as_acx_Woption=no"
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 eval ac_res=\$$as_acx_Woption
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12423 $as_echo "$ac_res" >&6; }
12424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12425 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12427 done
12428 CFLAGS="$save_CFLAGS"
12429 ac_ext=c
12430 ac_cpp='$CPP $CPPFLAGS'
12431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12437 # Check whether --enable-werror was given.
12438 if test "${enable_werror+set}" = set; then :
12439 enableval=$enable_werror;
12442 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12443 WARN_FLAGS="$WARN_FLAGS -Werror"
12447 if test -n "${with_target_subdir}"; then
12450 # Check whether --with-system-libunwind was given.
12451 if test "${with_system_libunwind+set}" = set; then :
12452 withval=$with_system_libunwind;
12455 # If system-libunwind was not specifically set, pick a default setting.
12456 if test x$with_system_libunwind = x; then
12457 case ${target} in
12458 ia64-*-hpux*) with_system_libunwind=yes ;;
12459 *) with_system_libunwind=no ;;
12460 esac
12462 # Based on system-libunwind and target, do we have ipinfo?
12463 if test x$with_system_libunwind = xyes; then
12464 case ${target} in
12465 ia64-*-*) have_unwind_getipinfo=no ;;
12466 *) have_unwind_getipinfo=yes ;;
12467 esac
12468 else
12469 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12471 case ${target} in
12472 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12473 *) have_unwind_getipinfo=yes ;;
12474 esac
12478 if test x$have_unwind_getipinfo = xyes; then
12480 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12484 else
12485 ac_save_CFFLAGS="$CFLAGS"
12486 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12488 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 #include "unwind.h"
12492 struct _Unwind_Context *context;
12493 int ip_before_insn = 0;
12495 main ()
12497 return _Unwind_GetIPInfo (context, &ip_before_insn);
12499 return 0;
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 have_unwind_getipinfo=yes
12504 else
12505 have_unwind_getipinfo=no
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 CFLAGS="$ac_save_CFLAGS"
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12511 $as_echo "$have_unwind_getipinfo" >&6; }
12512 if test "$have_unwind_getipinfo" = "yes"; then
12514 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12519 # Enable --enable-host-shared.
12520 # Check whether --enable-host-shared was given.
12521 if test "${enable_host_shared+set}" = set; then :
12522 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12523 else
12524 PIC_FLAG=
12529 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12530 # Check whether --enable-cet was given.
12531 if test "${enable_cet+set}" = set; then :
12532 enableval=$enable_cet;
12533 case "$enableval" in
12534 yes|no|auto) ;;
12535 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12536 esac
12538 else
12539 enable_cet=auto
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12544 $as_echo_n "checking for CET support... " >&6; }
12546 case "$host" in
12547 i[34567]86-*-linux* | x86_64-*-linux*)
12548 may_have_cet=yes
12549 cet_save_CFLAGS="$CFLAGS"
12550 CFLAGS="$CFLAGS -fcf-protection"
12551 case "$enable_cet" in
12552 auto)
12553 # Check if target supports multi-byte NOPs
12554 # and if compiler and assembler support CET.
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12559 main ()
12562 #if !defined(__SSE2__)
12563 #error target does not support multi-byte NOPs
12564 #else
12565 asm ("setssbsy");
12566 #endif
12569 return 0;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 enable_cet=yes
12574 else
12575 enable_cet=no
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 yes)
12580 # Check if compiler and assembler support CET.
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 main ()
12587 asm ("setssbsy");
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_compile "$LINENO"; then :
12593 support_cet=yes
12594 else
12595 support_cet=no
12597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 if test $support_cet = "no"; then
12599 if test x$enable_bootstrap != xno \
12600 && test -z "${with_build_subdir}" \
12601 && (test ! -f ../stage_current \
12602 || test `cat ../stage_current` != "stage1"); then
12603 # Require CET support only for the final GCC build.
12604 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12605 else
12606 # Don't enable CET without CET support for non-bootstrap
12607 # build, in stage1 nor for build support.
12608 enable_cet=no
12612 esac
12613 CFLAGS="$cet_save_CFLAGS"
12616 may_have_cet=no
12617 enable_cet=no
12619 esac
12621 cet_save_CFLAGS="$CFLAGS"
12622 CFLAGS="$CFLAGS -fcf-protection=none"
12623 cet_save_LDFLAGS="$LDFLAGS"
12624 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12625 if test x$may_have_cet = xyes; then
12626 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12631 main ()
12633 return 0;
12635 return 0;
12637 _ACEOF
12638 if ac_fn_c_try_link "$LINENO"; then :
12639 may_have_cet=yes
12640 else
12641 may_have_cet=no
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12647 if test x$may_have_cet = xyes; then
12648 if test x$cross_compiling = xno; then
12649 if test "$cross_compiling" = yes; then :
12650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12652 as_fn_error $? "cannot run test program while cross compiling
12653 See \`config.log' for more details" "$LINENO" 5; }
12654 else
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12659 main ()
12661 asm ("endbr32");
12662 return 0;
12665 _ACEOF
12666 if ac_fn_c_try_run "$LINENO"; then :
12667 have_multi_byte_nop=yes
12668 else
12669 have_multi_byte_nop=no
12671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12672 conftest.$ac_objext conftest.beam conftest.$ac_ext
12675 have_cet=no
12676 if test x$have_multi_byte_nop = xyes; then
12677 if test "$cross_compiling" = yes; then :
12678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error $? "cannot run test program while cross compiling
12681 See \`config.log' for more details" "$LINENO" 5; }
12682 else
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12686 static void
12687 foo (void)
12691 static void
12692 __attribute__ ((noinline, noclone))
12693 xxx (void (*f) (void))
12695 f ();
12698 static void
12699 __attribute__ ((noinline, noclone))
12700 bar (void)
12702 xxx (foo);
12706 main ()
12708 bar ();
12709 return 0;
12712 _ACEOF
12713 if ac_fn_c_try_run "$LINENO"; then :
12714 have_cet=no
12715 else
12716 have_cet=yes
12718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12719 conftest.$ac_objext conftest.beam conftest.$ac_ext
12723 if test x$enable_cet = xno -a x$have_cet = xyes; then
12724 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12727 else
12728 # Enable CET in cross compiler if possible so that it will run on both
12729 # CET and non-CET hosts.
12730 have_cet=yes
12732 if test x$enable_cet = xyes; then
12733 CET_HOST_FLAGS="-fcf-protection"
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12735 $as_echo "yes" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12740 CFLAGS="$cet_save_CFLAGS"
12741 LDFLAGS="$cet_save_LDFLAGS"
12743 case x$enable_languages in
12744 *jit*)
12747 CET_HOST_FLAGS=
12749 esac
12752 # Test for __sync support.
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12754 $as_echo_n "checking __sync extensions... " >&6; }
12755 if ${libbacktrace_cv_sys_sync+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 if test -n "${with_target_subdir}"; then
12759 case "${host}" in
12760 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12761 *) libbacktrace_cv_sys_sync=yes ;;
12762 esac
12763 else
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 int i;
12768 main ()
12770 __sync_bool_compare_and_swap (&i, i, i);
12771 __sync_lock_test_and_set (&i, 1);
12772 __sync_lock_release (&i);
12774 return 0;
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 libbacktrace_cv_sys_sync=yes
12779 else
12780 libbacktrace_cv_sys_sync=no
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12787 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12788 BACKTRACE_SUPPORTS_THREADS=0
12789 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12790 BACKTRACE_SUPPORTS_THREADS=1
12792 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12797 # Test for __atomic support.
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12799 $as_echo_n "checking __atomic extensions... " >&6; }
12800 if ${libbacktrace_cv_sys_atomic+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "${with_target_subdir}"; then
12804 libbacktrace_cv_sys_atomic=yes
12805 else
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808 int i;
12810 main ()
12812 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12813 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12815 return 0;
12817 _ACEOF
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 libbacktrace_cv_sys_atomic=yes
12820 else
12821 libbacktrace_cv_sys_atomic=no
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12828 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12829 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12831 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12835 # The library needs to be able to read the executable itself. Compile
12836 # a file to determine the executable format. The awk script
12837 # filetype.awk prints out the file type.
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12839 $as_echo_n "checking output filetype... " >&6; }
12840 if ${libbacktrace_cv_sys_filetype+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 filetype=
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 int i;
12848 main ()
12850 int j;
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12857 else
12858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12860 as_fn_error $? "compiler failed
12861 See \`config.log' for more details" "$LINENO" 5; }
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 libbacktrace_cv_sys_filetype=$filetype
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12867 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12869 # Match the file type to decide what files to compile.
12870 FORMAT_FILE=
12871 backtrace_supports_data=yes
12872 case "$libbacktrace_cv_sys_filetype" in
12873 elf*) FORMAT_FILE="elf.lo" ;;
12874 macho) FORMAT_FILE="macho.lo" ;;
12875 pecoff) FORMAT_FILE="pecoff.lo"
12876 backtrace_supports_data=no
12878 xcoff*) FORMAT_FILE="xcoff.lo"
12879 backtrace_supports_data=no
12881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12882 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12883 FORMAT_FILE="unknown.lo"
12884 backtrace_supported=no
12886 esac
12889 # ELF defines.
12890 elfsize=
12891 case "$libbacktrace_cv_sys_filetype" in
12892 elf32) elfsize=32 ;;
12893 elf64) elfsize=64 ;;
12894 *) elfsize=unused
12895 esac
12897 cat >>confdefs.h <<_ACEOF
12898 #define BACKTRACE_ELF_SIZE $elfsize
12899 _ACEOF
12901 if test "$FORMAT_FILE" = "elf.lo"; then
12902 HAVE_ELF_TRUE=
12903 HAVE_ELF_FALSE='#'
12904 else
12905 HAVE_ELF_TRUE='#'
12906 HAVE_ELF_FALSE=
12910 # XCOFF defines.
12911 xcoffsize=
12912 case "$libbacktrace_cv_sys_filetype" in
12913 xcoff32) xcoffsize=32 ;;
12914 xcoff64) xcoffsize=64 ;;
12915 *) xcoffsize=unused
12916 esac
12918 cat >>confdefs.h <<_ACEOF
12919 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12920 _ACEOF
12923 BACKTRACE_SUPPORTED=0
12924 if test "$backtrace_supported" = "yes"; then
12925 BACKTRACE_SUPPORTED=1
12929 BACKTRACE_SUPPORTS_DATA=0
12930 if test "$backtrace_supports_data" = "yes"; then
12931 BACKTRACE_SUPPORTS_DATA=1
12937 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12939 acx_cv_header_stdint=stddef.h
12940 acx_cv_header_stdint_kind="(already complete)"
12941 for i in stdint.h $inttype_headers; do
12942 unset ac_cv_type_uintptr_t
12943 unset ac_cv_type_uintmax_t
12944 unset ac_cv_type_int_least32_t
12945 unset ac_cv_type_int_fast32_t
12946 unset ac_cv_type_uint64_t
12947 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12948 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12949 #include <$i>
12951 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12952 acx_cv_header_stdint=$i
12953 else
12954 continue
12957 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12958 #include <$i>
12960 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12962 else
12963 acx_cv_header_stdint_kind="(mostly complete)"
12966 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12967 #include <$i>
12969 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12971 else
12972 acx_cv_header_stdint_kind="(mostly complete)"
12975 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12976 #include <$i>
12978 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12980 else
12981 acx_cv_header_stdint_kind="(mostly complete)"
12984 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12985 #include <$i>
12987 if test "x$ac_cv_type_uint64_t" = xyes; then :
12989 else
12990 acx_cv_header_stdint_kind="(lacks uint64_t)"
12993 break
12994 done
12995 if test "$acx_cv_header_stdint" = stddef.h; then
12996 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12997 for i in stdint.h $inttype_headers; do
12998 unset ac_cv_type_uintptr_t
12999 unset ac_cv_type_uint32_t
13000 unset ac_cv_type_uint64_t
13001 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13002 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13003 #include <$i>
13005 if test "x$ac_cv_type_uint32_t" = xyes; then :
13006 acx_cv_header_stdint=$i
13007 else
13008 continue
13011 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13012 #include <$i>
13014 if test "x$ac_cv_type_uint64_t" = xyes; then :
13018 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13019 #include <$i>
13021 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13025 break
13026 done
13028 if test "$acx_cv_header_stdint" = stddef.h; then
13029 acx_cv_header_stdint_kind="(u_intXX_t style)"
13030 for i in sys/types.h $inttype_headers; do
13031 unset ac_cv_type_u_int32_t
13032 unset ac_cv_type_u_int64_t
13033 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13034 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13035 #include <$i>
13037 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13038 acx_cv_header_stdint=$i
13039 else
13040 continue
13043 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13044 #include <$i>
13046 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13050 break
13051 done
13053 if test "$acx_cv_header_stdint" = stddef.h; then
13054 acx_cv_header_stdint_kind="(using manual detection)"
13057 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13058 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13059 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13060 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13061 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13063 # ----------------- Summarize what we found so far
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
13066 $as_echo_n "checking what to include in gstdint.h... " >&6; }
13068 case `$as_basename -- gstdint.h ||
13069 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
13070 Xgstdint.h : 'X\(//\)$' \| \
13071 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
13072 $as_echo X/gstdint.h |
13073 sed '/^.*\/\([^/][^/]*\)\/*$/{
13074 s//\1/
13077 /^X\/\(\/\/\)$/{
13078 s//\1/
13081 /^X\/\(\/\).*/{
13082 s//\1/
13085 s/.*/./; q'` in
13086 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13087 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13088 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13089 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13090 *) ;;
13091 esac
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13094 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13096 # ----------------- done included file, check C basic types --------
13098 # Lacking an uintptr_t? Test size of void *
13099 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13100 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13103 # This bug is HP SR number 8606223364.
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13105 $as_echo_n "checking size of void *... " >&6; }
13106 if ${ac_cv_sizeof_void_p+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13111 else
13112 if test "$ac_cv_type_void_p" = yes; then
13113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13115 as_fn_error 77 "cannot compute sizeof (void *)
13116 See \`config.log' for more details" "$LINENO" 5; }
13117 else
13118 ac_cv_sizeof_void_p=0
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13124 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13128 cat >>confdefs.h <<_ACEOF
13129 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13130 _ACEOF
13133 esac
13135 # Lacking an uint64_t? Test size of long
13136 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13137 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13140 # This bug is HP SR number 8606223364.
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13142 $as_echo_n "checking size of long... " >&6; }
13143 if ${ac_cv_sizeof_long+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13148 else
13149 if test "$ac_cv_type_long" = yes; then
13150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13152 as_fn_error 77 "cannot compute sizeof (long)
13153 See \`config.log' for more details" "$LINENO" 5; }
13154 else
13155 ac_cv_sizeof_long=0
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13161 $as_echo "$ac_cv_sizeof_long" >&6; }
13165 cat >>confdefs.h <<_ACEOF
13166 #define SIZEOF_LONG $ac_cv_sizeof_long
13167 _ACEOF
13170 esac
13172 if test $acx_cv_header_stdint = stddef.h; then
13173 # Lacking a good header? Test size of everything and deduce all types.
13174 # The cast to long int works around a bug in the HP C Compiler
13175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13177 # This bug is HP SR number 8606223364.
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13179 $as_echo_n "checking size of int... " >&6; }
13180 if ${ac_cv_sizeof_int+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13185 else
13186 if test "$ac_cv_type_int" = yes; then
13187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13189 as_fn_error 77 "cannot compute sizeof (int)
13190 See \`config.log' for more details" "$LINENO" 5; }
13191 else
13192 ac_cv_sizeof_int=0
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13198 $as_echo "$ac_cv_sizeof_int" >&6; }
13202 cat >>confdefs.h <<_ACEOF
13203 #define SIZEOF_INT $ac_cv_sizeof_int
13204 _ACEOF
13207 # The cast to long int works around a bug in the HP C Compiler
13208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13210 # This bug is HP SR number 8606223364.
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13212 $as_echo_n "checking size of short... " >&6; }
13213 if ${ac_cv_sizeof_short+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13218 else
13219 if test "$ac_cv_type_short" = yes; then
13220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13222 as_fn_error 77 "cannot compute sizeof (short)
13223 See \`config.log' for more details" "$LINENO" 5; }
13224 else
13225 ac_cv_sizeof_short=0
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13231 $as_echo "$ac_cv_sizeof_short" >&6; }
13235 cat >>confdefs.h <<_ACEOF
13236 #define SIZEOF_SHORT $ac_cv_sizeof_short
13237 _ACEOF
13240 # The cast to long int works around a bug in the HP C Compiler
13241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13243 # This bug is HP SR number 8606223364.
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13245 $as_echo_n "checking size of char... " >&6; }
13246 if ${ac_cv_sizeof_char+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13251 else
13252 if test "$ac_cv_type_char" = yes; then
13253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13255 as_fn_error 77 "cannot compute sizeof (char)
13256 See \`config.log' for more details" "$LINENO" 5; }
13257 else
13258 ac_cv_sizeof_char=0
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13264 $as_echo "$ac_cv_sizeof_char" >&6; }
13268 cat >>confdefs.h <<_ACEOF
13269 #define SIZEOF_CHAR $ac_cv_sizeof_char
13270 _ACEOF
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13275 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13276 case "$ac_cv_sizeof_char" in
13277 1) acx_cv_type_int8_t=char ;;
13278 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13279 esac
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13281 $as_echo "$acx_cv_type_int8_t" >&6; }
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13284 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13285 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13286 2:*) acx_cv_type_int16_t=int ;;
13287 *:2) acx_cv_type_int16_t=short ;;
13288 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13289 esac
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13291 $as_echo "$acx_cv_type_int16_t" >&6; }
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13294 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13295 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13296 4:*) acx_cv_type_int32_t=int ;;
13297 *:4) acx_cv_type_int32_t=long ;;
13298 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13299 esac
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13301 $as_echo "$acx_cv_type_int32_t" >&6; }
13304 # These tests are here to make the output prettier
13306 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13307 case "$ac_cv_sizeof_long" in
13308 8) acx_cv_type_int64_t=long ;;
13309 esac
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13311 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13313 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13316 # Now we can use the above types
13318 if test "$ac_cv_type_uintptr_t" != yes; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13320 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13321 case $ac_cv_sizeof_void_p in
13322 2) acx_cv_type_intptr_t=int16_t ;;
13323 4) acx_cv_type_intptr_t=int32_t ;;
13324 8) acx_cv_type_intptr_t=int64_t ;;
13325 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13326 esac
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13328 $as_echo "$acx_cv_type_intptr_t" >&6; }
13331 # ----------------- done all checks, emit header -------------
13332 ac_config_commands="$ac_config_commands gstdint.h"
13337 for ac_header in sys/mman.h
13338 do :
13339 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13340 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13341 cat >>confdefs.h <<_ACEOF
13342 #define HAVE_SYS_MMAN_H 1
13343 _ACEOF
13347 done
13349 if test "$ac_cv_header_sys_mman_h" = "no"; then
13350 have_mmap=no
13351 else
13352 if test -n "${with_target_subdir}"; then
13353 # When built as a GCC target library, we can't do a link test. We
13354 # simply assume that if we have mman.h, we have mmap.
13355 have_mmap=yes
13356 case "${host}" in
13357 *-*-msdosdjgpp)
13358 # DJGPP has sys/man.h, but no mmap
13359 have_mmap=no ;;
13360 esac
13361 else
13362 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13363 if test "x$ac_cv_func_mmap" = xyes; then :
13364 have_mmap=yes
13365 else
13366 have_mmap=no
13371 if test "$have_mmap" = "no"; then
13372 VIEW_FILE=read.lo
13373 ALLOC_FILE=alloc.lo
13374 else
13375 VIEW_FILE=mmapio.lo
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13379 #include <sys/mman.h>
13380 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13381 #error no MAP_ANONYMOUS
13382 #endif
13384 _ACEOF
13385 if ac_fn_c_try_cpp "$LINENO"; then :
13386 ALLOC_FILE=mmap.lo
13387 else
13388 ALLOC_FILE=alloc.lo
13390 rm -f conftest.err conftest.i conftest.$ac_ext
13395 BACKTRACE_USES_MALLOC=0
13396 if test "$ALLOC_FILE" = "alloc.lo"; then
13397 BACKTRACE_USES_MALLOC=1
13401 # Check for dl_iterate_phdr.
13402 for ac_header in link.h sys/link.h
13403 do :
13404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13407 cat >>confdefs.h <<_ACEOF
13408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13409 _ACEOF
13413 done
13415 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13416 have_dl_iterate_phdr=no
13417 else
13418 if test -n "${with_target_subdir}"; then
13419 link_h=link.h
13420 if test "$ac_cv_header_link_h" = "no"; then
13421 link_h=sys/link.h
13423 # When built as a GCC target library, we can't do a link test.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <$link_h>
13428 _ACEOF
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13431 have_dl_iterate_phdr=yes
13432 else
13433 have_dl_iterate_phdr=no
13435 rm -f conftest*
13437 else
13438 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13439 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13440 have_dl_iterate_phdr=yes
13441 else
13442 have_dl_iterate_phdr=no
13447 if test "$have_dl_iterate_phdr" = "yes"; then
13449 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13453 # Check for header file for Mach-O image functions.
13454 for ac_header in mach-o/dyld.h
13455 do :
13456 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13457 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13458 cat >>confdefs.h <<_ACEOF
13459 #define HAVE_MACH_O_DYLD_H 1
13460 _ACEOF
13464 done
13467 # Check for loadquery.
13468 for ac_header in sys/ldr.h
13469 do :
13470 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13471 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13472 cat >>confdefs.h <<_ACEOF
13473 #define HAVE_SYS_LDR_H 1
13474 _ACEOF
13478 done
13480 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13481 have_loadquery=no
13482 else
13483 if test -n "${with_target_subdir}"; then
13484 # When built as a GCC target library, we can't do a link test.
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 #include <sys/ldr.h>
13489 _ACEOF
13490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13491 $EGREP "loadquery" >/dev/null 2>&1; then :
13492 have_loadquery=yes
13493 else
13494 have_loadquery=no
13496 rm -f conftest*
13498 else
13499 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13500 if test "x$ac_cv_func_loadquery" = xyes; then :
13501 have_loadquery=yes
13502 else
13503 have_loadquery=no
13508 if test "$have_loadquery" = "yes"; then
13510 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13514 for ac_header in windows.h
13515 do :
13516 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13517 if test "x$ac_cv_header_windows_h" = xyes; then :
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_WINDOWS_H 1
13520 _ACEOF
13524 done
13526 for ac_header in tlhelp32.h
13527 do :
13528 ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
13529 # include <windows.h>
13530 #endif
13532 if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
13533 cat >>confdefs.h <<_ACEOF
13534 #define HAVE_TLHELP32_H 1
13535 _ACEOF
13539 done
13542 # Check for the fcntl function.
13543 if test -n "${with_target_subdir}"; then
13544 case "${host}" in
13545 *-*-mingw*) have_fcntl=no ;;
13546 *) have_fcntl=yes ;;
13547 esac
13548 else
13549 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13550 if test "x$ac_cv_func_fcntl" = xyes; then :
13551 have_fcntl=yes
13552 else
13553 have_fcntl=no
13557 if test "$have_fcntl" = "yes"; then
13559 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13563 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13564 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13565 ac_have_decl=1
13566 else
13567 ac_have_decl=0
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_DECL_STRNLEN $ac_have_decl
13572 _ACEOF
13573 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13574 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13575 ac_have_decl=1
13576 else
13577 ac_have_decl=0
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13582 _ACEOF
13584 for ac_func in lstat readlink
13585 do :
13586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13589 cat >>confdefs.h <<_ACEOF
13590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13591 _ACEOF
13594 done
13597 # Check for getexecname function.
13598 if test -n "${with_target_subdir}"; then
13599 case "${host}" in
13600 *-*-solaris2*) have_getexecname=yes ;;
13601 *) have_getexecname=no ;;
13602 esac
13603 else
13604 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13605 if test "x$ac_cv_func_getexecname" = xyes; then :
13606 have_getexecname=yes
13607 else
13608 have_getexecname=no
13612 if test "$have_getexecname" = "yes"; then
13614 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13618 # Check for _pgmptr variable, contains the executable filename on windows
13619 ac_fn_c_check_decl "$LINENO" "_pgmptr" "ac_cv_have_decl__pgmptr" "$ac_includes_default"
13620 if test "x$ac_cv_have_decl__pgmptr" = xyes; then :
13621 ac_have_decl=1
13622 else
13623 ac_have_decl=0
13626 cat >>confdefs.h <<_ACEOF
13627 #define HAVE_DECL__PGMPTR $ac_have_decl
13628 _ACEOF
13631 # Check for sysctl definitions.
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13634 $as_echo_n "checking for KERN_PROC... " >&6; }
13635 if ${libbacktrace_cv_proc+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13641 #include <sys/types.h>
13642 #include <sys/sysctl.h>
13645 main ()
13647 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13649 return 0;
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 libbacktrace_cv_proc=yes
13654 else
13655 libbacktrace_cv_proc=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13660 $as_echo "$libbacktrace_cv_proc" >&6; }
13661 if test "$libbacktrace_cv_proc" = "yes"; then
13663 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13668 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13669 if ${libbacktrace_cv_procargs+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13675 #include <sys/types.h>
13676 #include <sys/sysctl.h>
13679 main ()
13681 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13683 return 0;
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 libbacktrace_cv_procargs=yes
13688 else
13689 libbacktrace_cv_procargs=no
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13694 $as_echo "$libbacktrace_cv_procargs" >&6; }
13695 if test "$libbacktrace_cv_procargs" = "yes"; then
13697 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13701 # Check for the clock_gettime function.
13702 for ac_func in clock_gettime
13703 do :
13704 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13705 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13706 cat >>confdefs.h <<_ACEOF
13707 #define HAVE_CLOCK_GETTIME 1
13708 _ACEOF
13711 done
13713 clock_gettime_link=
13714 # At least for glibc, clock_gettime is in librt. But don't
13715 # pull that in if it still doesn't give us the function we want. This
13716 # test is copied from libgomp, and modified to not link in -lrt as
13717 # we're using this for test timing only.
13718 if test "$ac_cv_func_clock_gettime" = no; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13720 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13721 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 ac_check_lib_save_LIBS=$LIBS
13725 LIBS="-lrt $LIBS"
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 char clock_gettime ();
13737 main ()
13739 return clock_gettime ();
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 ac_cv_lib_rt_clock_gettime=yes
13746 else
13747 ac_cv_lib_rt_clock_gettime=no
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13754 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13755 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13756 CLOCK_GETTIME_LINK=-lrt
13758 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13766 $as_echo_n "checking whether -pthread is supported... " >&6; }
13767 if ${libgo_cv_lib_pthread+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 CFLAGS_hold=$CFLAGS
13771 CFLAGS="$CFLAGS -pthread"
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 int i;
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 libgo_cv_lib_pthread=yes
13778 else
13779 libgo_cv_lib_pthread=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 CFLAGS=$CFLAGS_hold
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13785 $as_echo "$libgo_cv_lib_pthread" >&6; }
13786 PTHREAD_CFLAGS=
13787 if test "$libgo_cv_lib_pthread" = yes; then
13788 PTHREAD_CFLAGS=-pthread
13792 if test "$libgo_cv_lib_pthread" = yes; then
13793 HAVE_PTHREAD_TRUE=
13794 HAVE_PTHREAD_FALSE='#'
13795 else
13796 HAVE_PTHREAD_TRUE='#'
13797 HAVE_PTHREAD_FALSE=
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13802 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13803 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 CFLAGS_hold=$CFLAGS
13807 CFLAGS="$CFLAGS -gdwarf-5"
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 int i;
13812 main ()
13814 return 0;
13816 return 0;
13818 _ACEOF
13819 if ac_fn_c_try_link "$LINENO"; then :
13820 libbacktrace_cv_lib_dwarf5=yes
13821 else
13822 libbacktrace_cv_lib_dwarf5=no
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 CFLAGS=$CFLAGS_hold
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13829 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13830 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13831 HAVE_DWARF5_TRUE=
13832 HAVE_DWARF5_FALSE='#'
13833 else
13834 HAVE_DWARF5_TRUE='#'
13835 HAVE_DWARF5_FALSE=
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13840 $as_echo_n "checking for compress in -lz... " >&6; }
13841 if ${ac_cv_lib_z_compress+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lz $LIBS"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char compress ();
13857 main ()
13859 return compress ();
13861 return 0;
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 ac_cv_lib_z_compress=yes
13866 else
13867 ac_cv_lib_z_compress=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13874 $as_echo "$ac_cv_lib_z_compress" >&6; }
13875 if test "x$ac_cv_lib_z_compress" = xyes; then :
13877 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13881 if test "$ac_cv_lib_z_compress" = yes; then
13882 HAVE_ZLIB_TRUE=
13883 HAVE_ZLIB_FALSE='#'
13884 else
13885 HAVE_ZLIB_TRUE='#'
13886 HAVE_ZLIB_FALSE=
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13891 $as_echo_n "checking whether --build-id is supported... " >&6; }
13892 if ${libbacktrace_cv_ld_buildid+:} false; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 LDFLAGS_hold=$LDFLAGS
13896 LDFLAGS="$LDFLAGS -Wl,--build-id"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13901 main ()
13905 return 0;
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 libbacktrace_cv_ld_buildid=yes
13910 else
13911 libbacktrace_cv_ld_buildid=no
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 LDFLAGS=$LDFLAGS_hold
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13918 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13919 if test "$libbacktrace_cv_ld_buildid" = yes; then
13920 HAVE_BUILDID_TRUE=
13921 HAVE_BUILDID_FALSE='#'
13922 else
13923 HAVE_BUILDID_TRUE='#'
13924 HAVE_BUILDID_FALSE=
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gnu is supported" >&5
13929 $as_echo_n "checking whether --compress-debug-sections=zlib-gnu is supported... " >&6; }
13930 if ${libgo_cv_ld_compress_zlib_gnu+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 LDFLAGS_hold=$LDFLAGS
13934 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13939 main ()
13943 return 0;
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 libgo_cv_ld_compress_zlib_gnu=yes
13948 else
13949 libgo_cv_ld_compress_zlib_gnu=no
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 LDFLAGS=$LDFLAGS_hold
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gnu" >&5
13956 $as_echo "$libgo_cv_ld_compress_zlib_gnu" >&6; }
13957 if test "$libgo_cv_ld_compress_zlib_gnu" = yes; then
13958 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE=
13959 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE='#'
13960 else
13961 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE='#'
13962 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE=
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gabi is supported" >&5
13967 $as_echo_n "checking whether --compress-debug-sections=zlib-gabi is supported... " >&6; }
13968 if ${libgo_cv_ld_compress_zlib_gabi+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 LDFLAGS_hold=$LDFLAGS
13972 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gabi"
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13977 main ()
13981 return 0;
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985 libgo_cv_ld_compress_zlib_gabi=yes
13986 else
13987 libgo_cv_ld_compress_zlib_gabi=no
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LDFLAGS=$LDFLAGS_hold
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gabi" >&5
13994 $as_echo "$libgo_cv_ld_compress_zlib_gabi" >&6; }
13995 if test "$libgo_cv_ld_compress_zlib_gabi" = yes; then
13996 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE=
13997 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE='#'
13998 else
13999 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE='#'
14000 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE=
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
14005 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
14006 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-lzstd $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char ZSTD_compress ();
14022 main ()
14024 return ZSTD_compress ();
14026 return 0;
14028 _ACEOF
14029 if ac_fn_c_try_link "$LINENO"; then :
14030 ac_cv_lib_zstd_ZSTD_compress=yes
14031 else
14032 ac_cv_lib_zstd_ZSTD_compress=no
14034 rm -f core conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
14039 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
14040 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
14042 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
14046 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
14047 HAVE_ZSTD_TRUE=
14048 HAVE_ZSTD_FALSE='#'
14049 else
14050 HAVE_ZSTD_TRUE='#'
14051 HAVE_ZSTD_FALSE=
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
14056 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
14057 if ${libgo_cv_ld_compress_zstd+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 LDFLAGS_hold=$LDFLAGS
14061 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14066 main ()
14070 return 0;
14072 _ACEOF
14073 if ac_fn_c_try_link "$LINENO"; then :
14074 libgo_cv_ld_compress_zstd=yes
14075 else
14076 libgo_cv_ld_compress_zstd=no
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LDFLAGS=$LDFLAGS_hold
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
14083 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
14084 if test "$libgo_cv_ld_compress_zstd" = yes; then
14085 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
14086 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
14087 else
14088 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
14089 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
14094 # Extract the first word of "objcopy", so it can be a program name with args.
14095 set dummy objcopy; ac_word=$2
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14097 $as_echo_n "checking for $ac_word... " >&6; }
14098 if ${ac_cv_prog_OBJCOPY+:} false; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 if test -n "$OBJCOPY"; then
14102 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111 ac_cv_prog_OBJCOPY="objcopy"
14112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 break 2
14115 done
14116 done
14117 IFS=$as_save_IFS
14121 OBJCOPY=$ac_cv_prog_OBJCOPY
14122 if test -n "$OBJCOPY"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
14124 $as_echo "$OBJCOPY" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14131 # Extract the first word of "readelf", so it can be a program name with args.
14132 set dummy readelf; ac_word=$2
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134 $as_echo_n "checking for $ac_word... " >&6; }
14135 if ${ac_cv_prog_READELF+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 if test -n "$READELF"; then
14139 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14140 else
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_prog_READELF="readelf"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14152 done
14153 done
14154 IFS=$as_save_IFS
14158 READELF=$ac_cv_prog_READELF
14159 if test -n "$READELF"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14161 $as_echo "$READELF" >&6; }
14162 else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164 $as_echo "no" >&6; }
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
14169 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
14170 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "${with_target_subdir}"; then
14174 libbacktrace_cv_objcopy_debuglink=no
14175 elif ! test -n "${OBJCOPY}"; then
14176 libbacktrace_cv_objcopy_debuglink=no
14177 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
14178 libbacktrace_cv_objcopy_debuglink=yes
14179 else
14180 libbacktrace_cv_objcopy_debuglink=no
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14184 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14185 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14186 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14187 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14188 else
14189 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14190 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14195 # Extract the first word of "dsymutil", so it can be a program name with args.
14196 set dummy dsymutil; ac_word=$2
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14198 $as_echo_n "checking for $ac_word... " >&6; }
14199 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 if test -n "$DSYMUTIL"; then
14203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14204 else
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14208 IFS=$as_save_IFS
14209 test -z "$as_dir" && as_dir=.
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14212 ac_cv_prog_DSYMUTIL="dsymutil"
14213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14214 break 2
14216 done
14217 done
14218 IFS=$as_save_IFS
14222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14223 if test -n "$DSYMUTIL"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14225 $as_echo "$DSYMUTIL" >&6; }
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14232 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14233 USE_DSYMUTIL_TRUE=
14234 USE_DSYMUTIL_FALSE='#'
14235 else
14236 USE_DSYMUTIL_TRUE='#'
14237 USE_DSYMUTIL_FALSE=
14242 # Extract the first word of "nm", so it can be a program name with args.
14243 set dummy nm; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 $as_echo_n "checking for $ac_word... " >&6; }
14246 if ${ac_cv_prog_NM+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -n "$NM"; then
14250 ac_cv_prog_NM="$NM" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_NM="nm"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14263 done
14264 done
14265 IFS=$as_save_IFS
14269 NM=$ac_cv_prog_NM
14270 if test -n "$NM"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14272 $as_echo "$NM" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14280 # Extract the first word of "xz", so it can be a program name with args.
14281 set dummy xz; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if ${ac_cv_prog_XZ+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$XZ"; then
14288 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_XZ="xz"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14301 done
14302 done
14303 IFS=$as_save_IFS
14307 XZ=$ac_cv_prog_XZ
14308 if test -n "$XZ"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14310 $as_echo "$XZ" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14317 if test "$XZ" != ""; then
14318 HAVE_XZ_TRUE=
14319 HAVE_XZ_FALSE='#'
14320 else
14321 HAVE_XZ_TRUE='#'
14322 HAVE_XZ_FALSE=
14325 # Extract the first word of "comm", so it can be a program name with args.
14326 set dummy comm; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if ${ac_cv_prog_COMM+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 if test -n "$COMM"; then
14333 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342 ac_cv_prog_COMM="comm"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14346 done
14347 done
14348 IFS=$as_save_IFS
14352 COMM=$ac_cv_prog_COMM
14353 if test -n "$COMM"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14355 $as_echo "$COMM" >&6; }
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14362 if test "$COMM" != ""; then
14363 HAVE_COMM_TRUE=
14364 HAVE_COMM_FALSE='#'
14365 else
14366 HAVE_COMM_TRUE='#'
14367 HAVE_COMM_FALSE=
14371 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14372 HAVE_MINIDEBUG_TRUE=
14373 HAVE_MINIDEBUG_FALSE='#'
14374 else
14375 HAVE_MINIDEBUG_TRUE='#'
14376 HAVE_MINIDEBUG_FALSE=
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14381 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14382 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 ac_check_lib_save_LIBS=$LIBS
14386 LIBS="-llzma $LIBS"
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14390 /* Override any GCC internal prototype to avoid an error.
14391 Use char because int might match the return type of a GCC
14392 builtin and then its argument prototype would still apply. */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char lzma_auto_decoder ();
14398 main ()
14400 return lzma_auto_decoder ();
14402 return 0;
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"; then :
14406 ac_cv_lib_lzma_lzma_auto_decoder=yes
14407 else
14408 ac_cv_lib_lzma_lzma_auto_decoder=no
14410 rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14415 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14416 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14418 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14422 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14423 HAVE_LIBLZMA_TRUE=
14424 HAVE_LIBLZMA_FALSE='#'
14425 else
14426 HAVE_LIBLZMA_TRUE='#'
14427 HAVE_LIBLZMA_FALSE=
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14432 $as_echo_n "checking whether tests can run... " >&6; }
14433 if ${libbacktrace_cv_sys_native+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 if test "$cross_compiling" = yes; then :
14437 libbacktrace_cv_sys_native=no
14438 else
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14443 main ()
14445 return 0;
14447 return 0;
14449 _ACEOF
14450 if ac_fn_c_try_run "$LINENO"; then :
14451 libbacktrace_cv_sys_native=yes
14452 else
14453 libbacktrace_cv_sys_native=no
14455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14456 conftest.$ac_objext conftest.beam conftest.$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14461 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14462 if test "$libbacktrace_cv_sys_native" = "yes"; then
14463 NATIVE_TRUE=
14464 NATIVE_FALSE='#'
14465 else
14466 NATIVE_TRUE='#'
14467 NATIVE_FALSE=
14471 if test "${multilib}" = "yes"; then
14472 multilib_arg="--enable-multilib"
14473 else
14474 multilib_arg=
14477 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14479 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14482 # We need multilib support, but only if configuring for the target.
14483 ac_config_commands="$ac_config_commands default"
14486 cat >confcache <<\_ACEOF
14487 # This file is a shell script that caches the results of configure
14488 # tests run on this system so they can be shared between configure
14489 # scripts and configure runs, see configure's option --config-cache.
14490 # It is not useful on other systems. If it contains results you don't
14491 # want to keep, you may remove or edit it.
14493 # config.status only pays attention to the cache file if you give it
14494 # the --recheck option to rerun configure.
14496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14498 # following values.
14500 _ACEOF
14502 # The following way of writing the cache mishandles newlines in values,
14503 # but we know of no workaround that is simple, portable, and efficient.
14504 # So, we kill variables containing newlines.
14505 # Ultrix sh set writes to stderr and can't be redirected directly,
14506 # and sets the high bit in the cache file unless we assign to the vars.
14508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14509 eval ac_val=\$$ac_var
14510 case $ac_val in #(
14511 *${as_nl}*)
14512 case $ac_var in #(
14513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14515 esac
14516 case $ac_var in #(
14517 _ | IFS | as_nl) ;; #(
14518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14519 *) { eval $ac_var=; unset $ac_var;} ;;
14520 esac ;;
14521 esac
14522 done
14524 (set) 2>&1 |
14525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14526 *${as_nl}ac_space=\ *)
14527 # `set' does not quote correctly, so add quotes: double-quote
14528 # substitution turns \\\\ into \\, and sed turns \\ into \.
14529 sed -n \
14530 "s/'/'\\\\''/g;
14531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14532 ;; #(
14534 # `set' quotes correctly as required by POSIX, so do not add quotes.
14535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14537 esac |
14538 sort
14540 sed '
14541 /^ac_cv_env_/b end
14542 t clear
14543 :clear
14544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14545 t end
14546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14547 :end' >>confcache
14548 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14549 if test -w "$cache_file"; then
14550 if test "x$cache_file" != "x/dev/null"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14552 $as_echo "$as_me: updating cache $cache_file" >&6;}
14553 if test ! -f "$cache_file" || test -h "$cache_file"; then
14554 cat confcache >"$cache_file"
14555 else
14556 case $cache_file in #(
14557 */* | ?:*)
14558 mv -f confcache "$cache_file"$$ &&
14559 mv -f "$cache_file"$$ "$cache_file" ;; #(
14561 mv -f confcache "$cache_file" ;;
14562 esac
14565 else
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14570 rm -f confcache
14572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14573 # Let make expand exec_prefix.
14574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14576 DEFS=-DHAVE_CONFIG_H
14578 ac_libobjs=
14579 ac_ltlibobjs=
14581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14582 # 1. Remove the extension, and $U if already installed.
14583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14586 # will be set to the directory where LIBOBJS objects are built.
14587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14589 done
14590 LIBOBJS=$ac_libobjs
14592 LTLIBOBJS=$ac_ltlibobjs
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14596 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14597 if test -n "$am_sleep_pid"; then
14598 # Hide warnings about reused PIDs.
14599 wait $am_sleep_pid 2>/dev/null
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14602 $as_echo "done" >&6; }
14603 if test -n "$EXEEXT"; then
14604 am__EXEEXT_TRUE=
14605 am__EXEEXT_FALSE='#'
14606 else
14607 am__EXEEXT_TRUE='#'
14608 am__EXEEXT_FALSE=
14611 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14612 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14615 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14616 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
14620 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
14621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14624 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14627 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14628 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14631 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14632 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14635 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14636 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14639 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14640 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14643 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE}"; then
14644 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GNU\" was never defined.
14645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14647 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE}"; then
14648 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GABI\" was never defined.
14649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14651 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14652 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14655 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14656 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14660 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14664 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14668 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14672 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14676 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14680 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14684 as_fn_error $? "conditional \"NATIVE\" was never defined.
14685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14688 : "${CONFIG_STATUS=./config.status}"
14689 ac_write_fail=0
14690 ac_clean_files_save=$ac_clean_files
14691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14694 as_write_fail=0
14695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14696 #! $SHELL
14697 # Generated by $as_me.
14698 # Run this file to recreate the current configuration.
14699 # Compiler output produced by configure, useful for debugging
14700 # configure, is in config.log if it exists.
14702 debug=false
14703 ac_cs_recheck=false
14704 ac_cs_silent=false
14706 SHELL=\${CONFIG_SHELL-$SHELL}
14707 export SHELL
14708 _ASEOF
14709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14710 ## -------------------- ##
14711 ## M4sh Initialization. ##
14712 ## -------------------- ##
14714 # Be more Bourne compatible
14715 DUALCASE=1; export DUALCASE # for MKS sh
14716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14717 emulate sh
14718 NULLCMD=:
14719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14720 # is contrary to our usage. Disable this feature.
14721 alias -g '${1+"$@"}'='"$@"'
14722 setopt NO_GLOB_SUBST
14723 else
14724 case `(set -o) 2>/dev/null` in #(
14725 *posix*) :
14726 set -o posix ;; #(
14727 *) :
14729 esac
14733 as_nl='
14735 export as_nl
14736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14737 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14740 # Prefer a ksh shell builtin over an external printf program on Solaris,
14741 # but without wasting forks for bash or zsh.
14742 if test -z "$BASH_VERSION$ZSH_VERSION" \
14743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14744 as_echo='print -r --'
14745 as_echo_n='print -rn --'
14746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14747 as_echo='printf %s\n'
14748 as_echo_n='printf %s'
14749 else
14750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14751 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14752 as_echo_n='/usr/ucb/echo -n'
14753 else
14754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14755 as_echo_n_body='eval
14756 arg=$1;
14757 case $arg in #(
14758 *"$as_nl"*)
14759 expr "X$arg" : "X\\(.*\\)$as_nl";
14760 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14761 esac;
14762 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14764 export as_echo_n_body
14765 as_echo_n='sh -c $as_echo_n_body as_echo'
14767 export as_echo_body
14768 as_echo='sh -c $as_echo_body as_echo'
14771 # The user is always right.
14772 if test "${PATH_SEPARATOR+set}" != set; then
14773 PATH_SEPARATOR=:
14774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14775 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14776 PATH_SEPARATOR=';'
14781 # IFS
14782 # We need space, tab and new line, in precisely that order. Quoting is
14783 # there to prevent editors from complaining about space-tab.
14784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14785 # splitting by setting IFS to empty value.)
14786 IFS=" "" $as_nl"
14788 # Find who we are. Look in the path if we contain no directory separator.
14789 as_myself=
14790 case $0 in #((
14791 *[\\/]* ) as_myself=$0 ;;
14792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $PATH
14795 IFS=$as_save_IFS
14796 test -z "$as_dir" && as_dir=.
14797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14798 done
14799 IFS=$as_save_IFS
14802 esac
14803 # We did not find ourselves, most probably we were run as `sh COMMAND'
14804 # in which case we are not to be found in the path.
14805 if test "x$as_myself" = x; then
14806 as_myself=$0
14808 if test ! -f "$as_myself"; then
14809 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14810 exit 1
14813 # Unset variables that we do not need and which cause bugs (e.g. in
14814 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14815 # suppresses any "Segmentation fault" message there. '((' could
14816 # trigger a bug in pdksh 5.2.14.
14817 for as_var in BASH_ENV ENV MAIL MAILPATH
14818 do eval test x\${$as_var+set} = xset \
14819 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14820 done
14821 PS1='$ '
14822 PS2='> '
14823 PS4='+ '
14825 # NLS nuisances.
14826 LC_ALL=C
14827 export LC_ALL
14828 LANGUAGE=C
14829 export LANGUAGE
14831 # CDPATH.
14832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14836 # ----------------------------------------
14837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14839 # script with STATUS, using 1 if that was 0.
14840 as_fn_error ()
14842 as_status=$1; test $as_status -eq 0 && as_status=1
14843 if test "$4"; then
14844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14845 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14847 $as_echo "$as_me: error: $2" >&2
14848 as_fn_exit $as_status
14849 } # as_fn_error
14852 # as_fn_set_status STATUS
14853 # -----------------------
14854 # Set $? to STATUS, without forking.
14855 as_fn_set_status ()
14857 return $1
14858 } # as_fn_set_status
14860 # as_fn_exit STATUS
14861 # -----------------
14862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14863 as_fn_exit ()
14865 set +e
14866 as_fn_set_status $1
14867 exit $1
14868 } # as_fn_exit
14870 # as_fn_unset VAR
14871 # ---------------
14872 # Portably unset VAR.
14873 as_fn_unset ()
14875 { eval $1=; unset $1;}
14877 as_unset=as_fn_unset
14878 # as_fn_append VAR VALUE
14879 # ----------------------
14880 # Append the text in VALUE to the end of the definition contained in VAR. Take
14881 # advantage of any shell optimizations that allow amortized linear growth over
14882 # repeated appends, instead of the typical quadratic growth present in naive
14883 # implementations.
14884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14885 eval 'as_fn_append ()
14887 eval $1+=\$2
14889 else
14890 as_fn_append ()
14892 eval $1=\$$1\$2
14894 fi # as_fn_append
14896 # as_fn_arith ARG...
14897 # ------------------
14898 # Perform arithmetic evaluation on the ARGs, and store the result in the
14899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14900 # must be portable across $(()) and expr.
14901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14902 eval 'as_fn_arith ()
14904 as_val=$(( $* ))
14906 else
14907 as_fn_arith ()
14909 as_val=`expr "$@" || test $? -eq 1`
14911 fi # as_fn_arith
14914 if expr a : '\(a\)' >/dev/null 2>&1 &&
14915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14916 as_expr=expr
14917 else
14918 as_expr=false
14921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14922 as_basename=basename
14923 else
14924 as_basename=false
14927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14928 as_dirname=dirname
14929 else
14930 as_dirname=false
14933 as_me=`$as_basename -- "$0" ||
14934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14935 X"$0" : 'X\(//\)$' \| \
14936 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14937 $as_echo X/"$0" |
14938 sed '/^.*\/\([^/][^/]*\)\/*$/{
14939 s//\1/
14942 /^X\/\(\/\/\)$/{
14943 s//\1/
14946 /^X\/\(\/\).*/{
14947 s//\1/
14950 s/.*/./; q'`
14952 # Avoid depending upon Character Ranges.
14953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14956 as_cr_digits='0123456789'
14957 as_cr_alnum=$as_cr_Letters$as_cr_digits
14959 ECHO_C= ECHO_N= ECHO_T=
14960 case `echo -n x` in #(((((
14961 -n*)
14962 case `echo 'xy\c'` in
14963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14964 xy) ECHO_C='\c';;
14965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14966 ECHO_T=' ';;
14967 esac;;
14969 ECHO_N='-n';;
14970 esac
14972 rm -f conf$$ conf$$.exe conf$$.file
14973 if test -d conf$$.dir; then
14974 rm -f conf$$.dir/conf$$.file
14975 else
14976 rm -f conf$$.dir
14977 mkdir conf$$.dir 2>/dev/null
14979 if (echo >conf$$.file) 2>/dev/null; then
14980 if ln -s conf$$.file conf$$ 2>/dev/null; then
14981 as_ln_s='ln -s'
14982 # ... but there are two gotchas:
14983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14985 # In both cases, we have to default to `cp -pR'.
14986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14987 as_ln_s='cp -pR'
14988 elif ln conf$$.file conf$$ 2>/dev/null; then
14989 as_ln_s=ln
14990 else
14991 as_ln_s='cp -pR'
14993 else
14994 as_ln_s='cp -pR'
14996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14997 rmdir conf$$.dir 2>/dev/null
15000 # as_fn_mkdir_p
15001 # -------------
15002 # Create "$as_dir" as a directory, including parents if necessary.
15003 as_fn_mkdir_p ()
15006 case $as_dir in #(
15007 -*) as_dir=./$as_dir;;
15008 esac
15009 test -d "$as_dir" || eval $as_mkdir_p || {
15010 as_dirs=
15011 while :; do
15012 case $as_dir in #(
15013 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15014 *) as_qdir=$as_dir;;
15015 esac
15016 as_dirs="'$as_qdir' $as_dirs"
15017 as_dir=`$as_dirname -- "$as_dir" ||
15018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15019 X"$as_dir" : 'X\(//\)[^/]' \| \
15020 X"$as_dir" : 'X\(//\)$' \| \
15021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15022 $as_echo X"$as_dir" |
15023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15024 s//\1/
15027 /^X\(\/\/\)[^/].*/{
15028 s//\1/
15031 /^X\(\/\/\)$/{
15032 s//\1/
15035 /^X\(\/\).*/{
15036 s//\1/
15039 s/.*/./; q'`
15040 test -d "$as_dir" && break
15041 done
15042 test -z "$as_dirs" || eval "mkdir $as_dirs"
15043 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15046 } # as_fn_mkdir_p
15047 if mkdir -p . 2>/dev/null; then
15048 as_mkdir_p='mkdir -p "$as_dir"'
15049 else
15050 test -d ./-p && rmdir ./-p
15051 as_mkdir_p=false
15055 # as_fn_executable_p FILE
15056 # -----------------------
15057 # Test if FILE is an executable regular file.
15058 as_fn_executable_p ()
15060 test -f "$1" && test -x "$1"
15061 } # as_fn_executable_p
15062 as_test_x='test -x'
15063 as_executable_p=as_fn_executable_p
15065 # Sed expression to map a string onto a valid CPP name.
15066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15068 # Sed expression to map a string onto a valid variable name.
15069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15072 exec 6>&1
15073 ## ----------------------------------- ##
15074 ## Main body of $CONFIG_STATUS script. ##
15075 ## ----------------------------------- ##
15076 _ASEOF
15077 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15080 # Save the log message, to keep $0 and so on meaningful, and to
15081 # report actual input values of CONFIG_FILES etc. instead of their
15082 # values after options handling.
15083 ac_log="
15084 This file was extended by package-unused $as_me version-unused, which was
15085 generated by GNU Autoconf 2.69. Invocation command line was
15087 CONFIG_FILES = $CONFIG_FILES
15088 CONFIG_HEADERS = $CONFIG_HEADERS
15089 CONFIG_LINKS = $CONFIG_LINKS
15090 CONFIG_COMMANDS = $CONFIG_COMMANDS
15091 $ $0 $@
15093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15096 _ACEOF
15098 case $ac_config_files in *"
15099 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15100 esac
15102 case $ac_config_headers in *"
15103 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15104 esac
15107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15108 # Files that config.status was made for.
15109 config_files="$ac_config_files"
15110 config_headers="$ac_config_headers"
15111 config_commands="$ac_config_commands"
15113 _ACEOF
15115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15116 ac_cs_usage="\
15117 \`$as_me' instantiates files and other configuration actions
15118 from templates according to the current configuration. Unless the files
15119 and actions are specified as TAGs, all are instantiated by default.
15121 Usage: $0 [OPTION]... [TAG]...
15123 -h, --help print this help, then exit
15124 -V, --version print version number and configuration settings, then exit
15125 --config print configuration, then exit
15126 -q, --quiet, --silent
15127 do not print progress messages
15128 -d, --debug don't remove temporary files
15129 --recheck update $as_me by reconfiguring in the same conditions
15130 --file=FILE[:TEMPLATE]
15131 instantiate the configuration file FILE
15132 --header=FILE[:TEMPLATE]
15133 instantiate the configuration header FILE
15135 Configuration files:
15136 $config_files
15138 Configuration headers:
15139 $config_headers
15141 Configuration commands:
15142 $config_commands
15144 Report bugs to the package provider."
15146 _ACEOF
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15149 ac_cs_version="\\
15150 package-unused config.status version-unused
15151 configured by $0, generated by GNU Autoconf 2.69,
15152 with options \\"\$ac_cs_config\\"
15154 Copyright (C) 2012 Free Software Foundation, Inc.
15155 This config.status script is free software; the Free Software Foundation
15156 gives unlimited permission to copy, distribute and modify it."
15158 ac_pwd='$ac_pwd'
15159 srcdir='$srcdir'
15160 INSTALL='$INSTALL'
15161 MKDIR_P='$MKDIR_P'
15162 AWK='$AWK'
15163 test -n "\$AWK" || AWK=awk
15164 _ACEOF
15166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167 # The default lists apply if the user does not specify any file.
15168 ac_need_defaults=:
15169 while test $# != 0
15171 case $1 in
15172 --*=?*)
15173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15175 ac_shift=:
15177 --*=)
15178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15179 ac_optarg=
15180 ac_shift=:
15183 ac_option=$1
15184 ac_optarg=$2
15185 ac_shift=shift
15187 esac
15189 case $ac_option in
15190 # Handling of the options.
15191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15192 ac_cs_recheck=: ;;
15193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15194 $as_echo "$ac_cs_version"; exit ;;
15195 --config | --confi | --conf | --con | --co | --c )
15196 $as_echo "$ac_cs_config"; exit ;;
15197 --debug | --debu | --deb | --de | --d | -d )
15198 debug=: ;;
15199 --file | --fil | --fi | --f )
15200 $ac_shift
15201 case $ac_optarg in
15202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15203 '') as_fn_error $? "missing file argument" ;;
15204 esac
15205 as_fn_append CONFIG_FILES " '$ac_optarg'"
15206 ac_need_defaults=false;;
15207 --header | --heade | --head | --hea )
15208 $ac_shift
15209 case $ac_optarg in
15210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15211 esac
15212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15213 ac_need_defaults=false;;
15214 --he | --h)
15215 # Conflict between --help and --header
15216 as_fn_error $? "ambiguous option: \`$1'
15217 Try \`$0 --help' for more information.";;
15218 --help | --hel | -h )
15219 $as_echo "$ac_cs_usage"; exit ;;
15220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15222 ac_cs_silent=: ;;
15224 # This is an error.
15225 -*) as_fn_error $? "unrecognized option: \`$1'
15226 Try \`$0 --help' for more information." ;;
15228 *) as_fn_append ac_config_targets " $1"
15229 ac_need_defaults=false ;;
15231 esac
15232 shift
15233 done
15235 ac_configure_extra_args=
15237 if $ac_cs_silent; then
15238 exec 6>/dev/null
15239 ac_configure_extra_args="$ac_configure_extra_args --silent"
15242 _ACEOF
15243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244 if \$ac_cs_recheck; then
15245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15246 shift
15247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15248 CONFIG_SHELL='$SHELL'
15249 export CONFIG_SHELL
15250 exec "\$@"
15253 _ACEOF
15254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255 exec 5>>config.log
15257 echo
15258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15259 ## Running $as_me. ##
15260 _ASBOX
15261 $as_echo "$ac_log"
15262 } >&5
15264 _ACEOF
15265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15267 # INIT-COMMANDS
15270 srcdir="$srcdir"
15271 host="$host"
15272 target="$target"
15273 with_multisubdir="$with_multisubdir"
15274 with_multisrctop="$with_multisrctop"
15275 with_target_subdir="$with_target_subdir"
15276 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15277 multi_basedir="$multi_basedir"
15278 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15279 CC="$CC"
15280 CXX="$CXX"
15281 GFORTRAN="$GFORTRAN"
15282 GDC="$GDC"
15285 # The HP-UX ksh and POSIX shell print the target directory to stdout
15286 # if CDPATH is set.
15287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15289 sed_quote_subst='$sed_quote_subst'
15290 double_quote_subst='$double_quote_subst'
15291 delay_variable_subst='$delay_variable_subst'
15292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15321 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15322 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15323 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15324 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15325 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15326 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15327 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15328 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15329 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15330 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15331 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15332 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15333 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15334 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15335 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15336 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15337 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15339 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15340 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"`'
15341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15345 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15350 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15351 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15352 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15353 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15354 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15355 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15356 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15357 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15358 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15359 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15360 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15361 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15362 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15363 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15364 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15365 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15366 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15367 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15368 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15369 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15381 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15382 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15383 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15384 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15385 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15386 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15413 LTCC='$LTCC'
15414 LTCFLAGS='$LTCFLAGS'
15415 compiler='$compiler_DEFAULT'
15417 # A function that is used when there is no print builtin or printf.
15418 func_fallback_echo ()
15420 eval 'cat <<_LTECHO_EOF
15422 _LTECHO_EOF'
15425 # Quote evaled strings.
15426 for var in SHELL \
15427 ECHO \
15428 SED \
15429 GREP \
15430 EGREP \
15431 FGREP \
15432 LD \
15433 NM \
15434 LN_S \
15435 lt_SP2NL \
15436 lt_NL2SP \
15437 reload_flag \
15438 OBJDUMP \
15439 deplibs_check_method \
15440 file_magic_cmd \
15441 AR \
15442 AR_FLAGS \
15443 STRIP \
15444 RANLIB \
15445 CC \
15446 CFLAGS \
15447 compiler \
15448 lt_cv_sys_global_symbol_pipe \
15449 lt_cv_sys_global_symbol_to_cdecl \
15450 lt_cv_sys_global_symbol_to_c_name_address \
15451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15452 lt_prog_compiler_no_builtin_flag \
15453 lt_prog_compiler_wl \
15454 lt_prog_compiler_pic \
15455 lt_prog_compiler_static \
15456 lt_cv_prog_compiler_c_o \
15457 need_locks \
15458 DSYMUTIL \
15459 NMEDIT \
15460 LIPO \
15461 OTOOL \
15462 OTOOL64 \
15463 shrext_cmds \
15464 export_dynamic_flag_spec \
15465 whole_archive_flag_spec \
15466 compiler_needs_object \
15467 with_gnu_ld \
15468 allow_undefined_flag \
15469 no_undefined_flag \
15470 hardcode_libdir_flag_spec \
15471 hardcode_libdir_flag_spec_ld \
15472 hardcode_libdir_separator \
15473 fix_srcfile_path \
15474 exclude_expsyms \
15475 include_expsyms \
15476 file_list_spec \
15477 variables_saved_for_relink \
15478 libname_spec \
15479 library_names_spec \
15480 soname_spec \
15481 install_override_mode \
15482 finish_eval \
15483 old_striplib \
15484 striplib; do
15485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15486 *[\\\\\\\`\\"\\\$]*)
15487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15492 esac
15493 done
15495 # Double-quote double-evaled strings.
15496 for var in reload_cmds \
15497 old_postinstall_cmds \
15498 old_postuninstall_cmds \
15499 old_archive_cmds \
15500 extract_expsyms_cmds \
15501 old_archive_from_new_cmds \
15502 old_archive_from_expsyms_cmds \
15503 archive_cmds \
15504 archive_expsym_cmds \
15505 module_cmds \
15506 module_expsym_cmds \
15507 export_symbols_cmds \
15508 prelink_cmds \
15509 postinstall_cmds \
15510 postuninstall_cmds \
15511 finish_cmds \
15512 sys_lib_search_path_spec \
15513 sys_lib_dlsearch_path_spec; do
15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15515 *[\\\\\\\`\\"\\\$]*)
15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15521 esac
15522 done
15524 ac_aux_dir='$ac_aux_dir'
15525 xsi_shell='$xsi_shell'
15526 lt_shell_append='$lt_shell_append'
15528 # See if we are running on zsh, and set the options which allow our
15529 # commands through without removal of \ escapes INIT.
15530 if test -n "\${ZSH_VERSION+set}" ; then
15531 setopt NO_GLOB_SUBST
15535 PACKAGE='$PACKAGE'
15536 VERSION='$VERSION'
15537 TIMESTAMP='$TIMESTAMP'
15538 RM='$RM'
15539 ofile='$ofile'
15544 GCC="$GCC"
15545 CC="$CC"
15546 acx_cv_header_stdint="$acx_cv_header_stdint"
15547 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15548 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15549 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15550 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15551 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15552 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15553 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15554 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15555 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15556 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15557 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15558 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15559 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15562 # Variables needed in config.status (file generation) which aren't already
15563 # passed by autoconf.
15564 SUBDIRS="$SUBDIRS"
15567 _ACEOF
15569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571 # Handling of arguments.
15572 for ac_config_target in $ac_config_targets
15574 case $ac_config_target in
15575 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15576 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15577 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15578 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15579 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15580 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15581 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15582 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15584 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15585 esac
15586 done
15589 # If the user did not use the arguments to specify the items to instantiate,
15590 # then the envvar interface is used. Set only those that are not.
15591 # We use the long form for the default assignment because of an extremely
15592 # bizarre bug on SunOS 4.1.3.
15593 if $ac_need_defaults; then
15594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15599 # Have a temporary directory for convenience. Make it in the build tree
15600 # simply because there is no reason against having it here, and in addition,
15601 # creating and moving files from /tmp can sometimes cause problems.
15602 # Hook for its removal unless debugging.
15603 # Note that there is a small window in which the directory will not be cleaned:
15604 # after its creation but before its name has been assigned to `$tmp'.
15605 $debug ||
15607 tmp= ac_tmp=
15608 trap 'exit_status=$?
15609 : "${ac_tmp:=$tmp}"
15610 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15612 trap 'as_fn_exit 1' 1 2 13 15
15614 # Create a (secure) tmp directory for tmp files.
15617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15618 test -d "$tmp"
15619 } ||
15621 tmp=./conf$$-$RANDOM
15622 (umask 077 && mkdir "$tmp")
15623 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15624 ac_tmp=$tmp
15626 # Set up the scripts for CONFIG_FILES section.
15627 # No need to generate them if there are no CONFIG_FILES.
15628 # This happens for instance with `./config.status config.h'.
15629 if test -n "$CONFIG_FILES"; then
15632 ac_cr=`echo X | tr X '\015'`
15633 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15634 # But we know of no other shell where ac_cr would be empty at this
15635 # point, so we can use a bashism as a fallback.
15636 if test "x$ac_cr" = x; then
15637 eval ac_cr=\$\'\\r\'
15639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15641 ac_cs_awk_cr='\\r'
15642 else
15643 ac_cs_awk_cr=$ac_cr
15646 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15647 _ACEOF
15651 echo "cat >conf$$subs.awk <<_ACEOF" &&
15652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15653 echo "_ACEOF"
15654 } >conf$$subs.sh ||
15655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15656 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15657 ac_delim='%!_!# '
15658 for ac_last_try in false false false false false :; do
15659 . ./conf$$subs.sh ||
15660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15663 if test $ac_delim_n = $ac_delim_num; then
15664 break
15665 elif $ac_last_try; then
15666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15667 else
15668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15670 done
15671 rm -f conf$$subs.sh
15673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15674 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15675 _ACEOF
15676 sed -n '
15678 s/^/S["/; s/!.*/"]=/
15681 s/^[^!]*!//
15682 :repl
15683 t repl
15684 s/'"$ac_delim"'$//
15685 t delim
15688 s/\(.\{148\}\)..*/\1/
15689 t more1
15690 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15693 b repl
15694 :more1
15695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15698 s/.\{148\}//
15699 t nl
15700 :delim
15702 s/\(.\{148\}\)..*/\1/
15703 t more2
15704 s/["\\]/\\&/g; s/^/"/; s/$/"/
15707 :more2
15708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15711 s/.\{148\}//
15712 t delim
15713 ' <conf$$subs.awk | sed '
15714 /^[^""]/{
15716 s/\n//
15718 ' >>$CONFIG_STATUS || ac_write_fail=1
15719 rm -f conf$$subs.awk
15720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15721 _ACAWK
15722 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15723 for (key in S) S_is_set[key] = 1
15724 FS = "\a"
15728 line = $ 0
15729 nfields = split(line, field, "@")
15730 substed = 0
15731 len = length(field[1])
15732 for (i = 2; i < nfields; i++) {
15733 key = field[i]
15734 keylen = length(key)
15735 if (S_is_set[key]) {
15736 value = S[key]
15737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15738 len += length(value) + length(field[++i])
15739 substed = 1
15740 } else
15741 len += 1 + keylen
15744 print line
15747 _ACAWK
15748 _ACEOF
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15751 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15752 else
15754 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15755 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15756 _ACEOF
15758 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15759 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15760 # trailing colons and then remove the whole line if VPATH becomes empty
15761 # (actually we leave an empty line to preserve line numbers).
15762 if test "x$srcdir" = x.; then
15763 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15765 s///
15766 s/^/:/
15767 s/[ ]*$/:/
15768 s/:\$(srcdir):/:/g
15769 s/:\${srcdir}:/:/g
15770 s/:@srcdir@:/:/g
15771 s/^:*//
15772 s/:*$//
15774 s/\(=[ ]*\).*/\1/
15776 s/\n//
15777 s/^[^=]*=[ ]*$//
15781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15782 fi # test -n "$CONFIG_FILES"
15784 # Set up the scripts for CONFIG_HEADERS section.
15785 # No need to generate them if there are no CONFIG_HEADERS.
15786 # This happens for instance with `./config.status Makefile'.
15787 if test -n "$CONFIG_HEADERS"; then
15788 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15789 BEGIN {
15790 _ACEOF
15792 # Transform confdefs.h into an awk script `defines.awk', embedded as
15793 # here-document in config.status, that substitutes the proper values into
15794 # config.h.in to produce config.h.
15796 # Create a delimiter string that does not exist in confdefs.h, to ease
15797 # handling of long lines.
15798 ac_delim='%!_!# '
15799 for ac_last_try in false false :; do
15800 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15801 if test -z "$ac_tt"; then
15802 break
15803 elif $ac_last_try; then
15804 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15805 else
15806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15808 done
15810 # For the awk script, D is an array of macro values keyed by name,
15811 # likewise P contains macro parameters if any. Preserve backslash
15812 # newline sequences.
15814 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15815 sed -n '
15816 s/.\{148\}/&'"$ac_delim"'/g
15817 t rset
15818 :rset
15819 s/^[ ]*#[ ]*define[ ][ ]*/ /
15820 t def
15822 :def
15823 s/\\$//
15824 t bsnl
15825 s/["\\]/\\&/g
15826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15827 D["\1"]=" \3"/p
15828 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15830 :bsnl
15831 s/["\\]/\\&/g
15832 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15833 D["\1"]=" \3\\\\\\n"\\/p
15834 t cont
15835 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15836 t cont
15838 :cont
15840 s/.\{148\}/&'"$ac_delim"'/g
15841 t clear
15842 :clear
15843 s/\\$//
15844 t bsnlc
15845 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15847 :bsnlc
15848 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15849 b cont
15850 ' <confdefs.h | sed '
15851 s/'"$ac_delim"'/"\\\
15852 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15855 for (key in D) D_is_set[key] = 1
15856 FS = "\a"
15858 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15859 line = \$ 0
15860 split(line, arg, " ")
15861 if (arg[1] == "#") {
15862 defundef = arg[2]
15863 mac1 = arg[3]
15864 } else {
15865 defundef = substr(arg[1], 2)
15866 mac1 = arg[2]
15868 split(mac1, mac2, "(") #)
15869 macro = mac2[1]
15870 prefix = substr(line, 1, index(line, defundef) - 1)
15871 if (D_is_set[macro]) {
15872 # Preserve the white space surrounding the "#".
15873 print prefix "define", macro P[macro] D[macro]
15874 next
15875 } else {
15876 # Replace #undef with comments. This is necessary, for example,
15877 # in the case of _POSIX_SOURCE, which is predefined and required
15878 # on some systems where configure will not decide to define it.
15879 if (defundef == "undef") {
15880 print "/*", prefix defundef, macro, "*/"
15881 next
15885 { print }
15886 _ACAWK
15887 _ACEOF
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15890 fi # test -n "$CONFIG_HEADERS"
15893 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15894 shift
15895 for ac_tag
15897 case $ac_tag in
15898 :[FHLC]) ac_mode=$ac_tag; continue;;
15899 esac
15900 case $ac_mode$ac_tag in
15901 :[FHL]*:*);;
15902 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15903 :[FH]-) ac_tag=-:-;;
15904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15905 esac
15906 ac_save_IFS=$IFS
15907 IFS=:
15908 set x $ac_tag
15909 IFS=$ac_save_IFS
15910 shift
15911 ac_file=$1
15912 shift
15914 case $ac_mode in
15915 :L) ac_source=$1;;
15916 :[FH])
15917 ac_file_inputs=
15918 for ac_f
15920 case $ac_f in
15921 -) ac_f="$ac_tmp/stdin";;
15922 *) # Look for the file first in the build tree, then in the source tree
15923 # (if the path is not absolute). The absolute path cannot be DOS-style,
15924 # because $ac_f cannot contain `:'.
15925 test -f "$ac_f" ||
15926 case $ac_f in
15927 [\\/$]*) false;;
15928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15929 esac ||
15930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15931 esac
15932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15933 as_fn_append ac_file_inputs " '$ac_f'"
15934 done
15936 # Let's still pretend it is `configure' which instantiates (i.e., don't
15937 # use $as_me), people would be surprised to read:
15938 # /* config.h. Generated by config.status. */
15939 configure_input='Generated from '`
15940 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15941 `' by configure.'
15942 if test x"$ac_file" != x-; then
15943 configure_input="$ac_file. $configure_input"
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15945 $as_echo "$as_me: creating $ac_file" >&6;}
15947 # Neutralize special characters interpreted by sed in replacement strings.
15948 case $configure_input in #(
15949 *\&* | *\|* | *\\* )
15950 ac_sed_conf_input=`$as_echo "$configure_input" |
15951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15952 *) ac_sed_conf_input=$configure_input;;
15953 esac
15955 case $ac_tag in
15956 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15958 esac
15960 esac
15962 ac_dir=`$as_dirname -- "$ac_file" ||
15963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15964 X"$ac_file" : 'X\(//\)[^/]' \| \
15965 X"$ac_file" : 'X\(//\)$' \| \
15966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15967 $as_echo X"$ac_file" |
15968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15969 s//\1/
15972 /^X\(\/\/\)[^/].*/{
15973 s//\1/
15976 /^X\(\/\/\)$/{
15977 s//\1/
15980 /^X\(\/\).*/{
15981 s//\1/
15984 s/.*/./; q'`
15985 as_dir="$ac_dir"; as_fn_mkdir_p
15986 ac_builddir=.
15988 case "$ac_dir" in
15989 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15992 # A ".." for each directory in $ac_dir_suffix.
15993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15994 case $ac_top_builddir_sub in
15995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15997 esac ;;
15998 esac
15999 ac_abs_top_builddir=$ac_pwd
16000 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16001 # for backward compatibility:
16002 ac_top_builddir=$ac_top_build_prefix
16004 case $srcdir in
16005 .) # We are building in place.
16006 ac_srcdir=.
16007 ac_top_srcdir=$ac_top_builddir_sub
16008 ac_abs_top_srcdir=$ac_pwd ;;
16009 [\\/]* | ?:[\\/]* ) # Absolute name.
16010 ac_srcdir=$srcdir$ac_dir_suffix;
16011 ac_top_srcdir=$srcdir
16012 ac_abs_top_srcdir=$srcdir ;;
16013 *) # Relative name.
16014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16015 ac_top_srcdir=$ac_top_build_prefix$srcdir
16016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16017 esac
16018 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16021 case $ac_mode in
16024 # CONFIG_FILE
16027 case $INSTALL in
16028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16030 esac
16031 ac_MKDIR_P=$MKDIR_P
16032 case $MKDIR_P in
16033 [\\/$]* | ?:[\\/]* ) ;;
16034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16035 esac
16036 _ACEOF
16038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16039 # If the template does not know about datarootdir, expand it.
16040 # FIXME: This hack should be removed a few years after 2.60.
16041 ac_datarootdir_hack=; ac_datarootdir_seen=
16042 ac_sed_dataroot='
16043 /datarootdir/ {
16047 /@datadir@/p
16048 /@docdir@/p
16049 /@infodir@/p
16050 /@localedir@/p
16051 /@mandir@/p'
16052 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16053 *datarootdir*) ac_datarootdir_seen=yes;;
16054 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16056 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16057 _ACEOF
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 ac_datarootdir_hack='
16060 s&@datadir@&$datadir&g
16061 s&@docdir@&$docdir&g
16062 s&@infodir@&$infodir&g
16063 s&@localedir@&$localedir&g
16064 s&@mandir@&$mandir&g
16065 s&\\\${datarootdir}&$datarootdir&g' ;;
16066 esac
16067 _ACEOF
16069 # Neutralize VPATH when `$srcdir' = `.'.
16070 # Shell code in configure.ac might set extrasub.
16071 # FIXME: do we really want to maintain this feature?
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 ac_sed_extra="$ac_vpsub
16074 $extrasub
16075 _ACEOF
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16079 s|@configure_input@|$ac_sed_conf_input|;t t
16080 s&@top_builddir@&$ac_top_builddir_sub&;t t
16081 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16082 s&@srcdir@&$ac_srcdir&;t t
16083 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16084 s&@top_srcdir@&$ac_top_srcdir&;t t
16085 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16086 s&@builddir@&$ac_builddir&;t t
16087 s&@abs_builddir@&$ac_abs_builddir&;t t
16088 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16089 s&@INSTALL@&$ac_INSTALL&;t t
16090 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16091 $ac_datarootdir_hack
16093 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16094 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16096 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16097 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16099 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16101 which seems to be undefined. Please make sure it is defined" >&5
16102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16103 which seems to be undefined. Please make sure it is defined" >&2;}
16105 rm -f "$ac_tmp/stdin"
16106 case $ac_file in
16107 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16108 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16109 esac \
16110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16114 # CONFIG_HEADER
16116 if test x"$ac_file" != x-; then
16118 $as_echo "/* $configure_input */" \
16119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16120 } >"$ac_tmp/config.h" \
16121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16122 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16124 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16125 else
16126 rm -f "$ac_file"
16127 mv "$ac_tmp/config.h" "$ac_file" \
16128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16130 else
16131 $as_echo "/* $configure_input */" \
16132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16133 || as_fn_error $? "could not create -" "$LINENO" 5
16135 # Compute "$ac_file"'s index in $config_headers.
16136 _am_arg="$ac_file"
16137 _am_stamp_count=1
16138 for _am_header in $config_headers :; do
16139 case $_am_header in
16140 $_am_arg | $_am_arg:* )
16141 break ;;
16143 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16144 esac
16145 done
16146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16148 X"$_am_arg" : 'X\(//\)[^/]' \| \
16149 X"$_am_arg" : 'X\(//\)$' \| \
16150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16151 $as_echo X"$_am_arg" |
16152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16153 s//\1/
16156 /^X\(\/\/\)[^/].*/{
16157 s//\1/
16160 /^X\(\/\/\)$/{
16161 s//\1/
16164 /^X\(\/\).*/{
16165 s//\1/
16168 s/.*/./; q'`/stamp-h$_am_stamp_count
16171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16172 $as_echo "$as_me: executing $ac_file commands" >&6;}
16174 esac
16177 case $ac_file$ac_mode in
16178 "default-1":C)
16179 # Only add multilib support code if we just rebuilt the top-level
16180 # Makefile.
16181 case " $CONFIG_FILES " in
16182 *" Makefile "*)
16183 ac_file=Makefile . ${multi_basedir}/config-ml.in
16185 esac ;;
16186 "libtool":C)
16188 # See if we are running on zsh, and set the options which allow our
16189 # commands through without removal of \ escapes.
16190 if test -n "${ZSH_VERSION+set}" ; then
16191 setopt NO_GLOB_SUBST
16194 cfgfile="${ofile}T"
16195 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16196 $RM "$cfgfile"
16198 cat <<_LT_EOF >> "$cfgfile"
16199 #! $SHELL
16201 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16202 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16203 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16204 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16206 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16207 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16208 # Written by Gordon Matzigkeit, 1996
16210 # This file is part of GNU Libtool.
16212 # GNU Libtool is free software; you can redistribute it and/or
16213 # modify it under the terms of the GNU General Public License as
16214 # published by the Free Software Foundation; either version 2 of
16215 # the License, or (at your option) any later version.
16217 # As a special exception to the GNU General Public License,
16218 # if you distribute this file as part of a program or library that
16219 # is built using GNU Libtool, you may include this file under the
16220 # same distribution terms that you use for the rest of that program.
16222 # GNU Libtool is distributed in the hope that it will be useful,
16223 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16224 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16225 # GNU General Public License for more details.
16227 # You should have received a copy of the GNU General Public License
16228 # along with GNU Libtool; see the file COPYING. If not, a copy
16229 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16230 # obtained by writing to the Free Software Foundation, Inc.,
16231 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16234 # The names of the tagged configurations supported by this script.
16235 available_tags=""
16237 # ### BEGIN LIBTOOL CONFIG
16239 # Which release of libtool.m4 was used?
16240 macro_version=$macro_version
16241 macro_revision=$macro_revision
16243 # Whether or not to build shared libraries.
16244 build_libtool_libs=$enable_shared
16246 # Whether or not to build static libraries.
16247 build_old_libs=$enable_static
16249 # What type of objects to build.
16250 pic_mode=$pic_mode
16252 # Whether or not to optimize for fast installation.
16253 fast_install=$enable_fast_install
16255 # Shell to use when invoking shell scripts.
16256 SHELL=$lt_SHELL
16258 # An echo program that protects backslashes.
16259 ECHO=$lt_ECHO
16261 # The host system.
16262 host_alias=$host_alias
16263 host=$host
16264 host_os=$host_os
16266 # The build system.
16267 build_alias=$build_alias
16268 build=$build
16269 build_os=$build_os
16271 # A sed program that does not truncate output.
16272 SED=$lt_SED
16274 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16275 Xsed="\$SED -e 1s/^X//"
16277 # A grep program that handles long lines.
16278 GREP=$lt_GREP
16280 # An ERE matcher.
16281 EGREP=$lt_EGREP
16283 # A literal string matcher.
16284 FGREP=$lt_FGREP
16286 # A BSD- or MS-compatible name lister.
16287 NM=$lt_NM
16289 # Whether we need soft or hard links.
16290 LN_S=$lt_LN_S
16292 # What is the maximum length of a command?
16293 max_cmd_len=$max_cmd_len
16295 # Object file suffix (normally "o").
16296 objext=$ac_objext
16298 # Executable file suffix (normally "").
16299 exeext=$exeext
16301 # whether the shell understands "unset".
16302 lt_unset=$lt_unset
16304 # turn spaces into newlines.
16305 SP2NL=$lt_lt_SP2NL
16307 # turn newlines into spaces.
16308 NL2SP=$lt_lt_NL2SP
16310 # An object symbol dumper.
16311 OBJDUMP=$lt_OBJDUMP
16313 # Method to check whether dependent libraries are shared objects.
16314 deplibs_check_method=$lt_deplibs_check_method
16316 # Command to use when deplibs_check_method == "file_magic".
16317 file_magic_cmd=$lt_file_magic_cmd
16319 # The archiver.
16320 AR=$lt_AR
16321 AR_FLAGS=$lt_AR_FLAGS
16323 # A symbol stripping program.
16324 STRIP=$lt_STRIP
16326 # Commands used to install an old-style archive.
16327 RANLIB=$lt_RANLIB
16328 old_postinstall_cmds=$lt_old_postinstall_cmds
16329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16331 # Whether to use a lock for old archive extraction.
16332 lock_old_archive_extraction=$lock_old_archive_extraction
16334 # A C compiler.
16335 LTCC=$lt_CC
16337 # LTCC compiler flags.
16338 LTCFLAGS=$lt_CFLAGS
16340 # Take the output of nm and produce a listing of raw symbols and C names.
16341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16343 # Transform the output of nm in a proper C declaration.
16344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16346 # Transform the output of nm in a C name address pair.
16347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16349 # Transform the output of nm in a C name address pair when lib prefix is needed.
16350 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16352 # The name of the directory that contains temporary libtool files.
16353 objdir=$objdir
16355 # Used to examine libraries when file_magic_cmd begins with "file".
16356 MAGIC_CMD=$MAGIC_CMD
16358 # Must we lock files when doing compilation?
16359 need_locks=$lt_need_locks
16361 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16362 DSYMUTIL=$lt_DSYMUTIL
16364 # Tool to change global to local symbols on Mac OS X.
16365 NMEDIT=$lt_NMEDIT
16367 # Tool to manipulate fat objects and archives on Mac OS X.
16368 LIPO=$lt_LIPO
16370 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16371 OTOOL=$lt_OTOOL
16373 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16374 OTOOL64=$lt_OTOOL64
16376 # Old archive suffix (normally "a").
16377 libext=$libext
16379 # Shared library suffix (normally ".so").
16380 shrext_cmds=$lt_shrext_cmds
16382 # The commands to extract the exported symbol list from a shared archive.
16383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16385 # Variables whose values should be saved in libtool wrapper scripts and
16386 # restored at link time.
16387 variables_saved_for_relink=$lt_variables_saved_for_relink
16389 # Do we need the "lib" prefix for modules?
16390 need_lib_prefix=$need_lib_prefix
16392 # Do we need a version for libraries?
16393 need_version=$need_version
16395 # Library versioning type.
16396 version_type=$version_type
16398 # Shared library runtime path variable.
16399 runpath_var=$runpath_var
16401 # Shared library path variable.
16402 shlibpath_var=$shlibpath_var
16404 # Is shlibpath searched before the hard-coded library search path?
16405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16407 # Format of library name prefix.
16408 libname_spec=$lt_libname_spec
16410 # List of archive names. First name is the real one, the rest are links.
16411 # The last name is the one that the linker finds with -lNAME
16412 library_names_spec=$lt_library_names_spec
16414 # The coded name of the library, if different from the real name.
16415 soname_spec=$lt_soname_spec
16417 # Permission mode override for installation of shared libraries.
16418 install_override_mode=$lt_install_override_mode
16420 # Command to use after installation of a shared archive.
16421 postinstall_cmds=$lt_postinstall_cmds
16423 # Command to use after uninstallation of a shared archive.
16424 postuninstall_cmds=$lt_postuninstall_cmds
16426 # Commands used to finish a libtool library installation in a directory.
16427 finish_cmds=$lt_finish_cmds
16429 # As "finish_cmds", except a single script fragment to be evaled but
16430 # not shown.
16431 finish_eval=$lt_finish_eval
16433 # Whether we should hardcode library paths into libraries.
16434 hardcode_into_libs=$hardcode_into_libs
16436 # Compile-time system search path for libraries.
16437 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16439 # Run-time system search path for libraries.
16440 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16442 # Whether dlopen is supported.
16443 dlopen_support=$enable_dlopen
16445 # Whether dlopen of programs is supported.
16446 dlopen_self=$enable_dlopen_self
16448 # Whether dlopen of statically linked programs is supported.
16449 dlopen_self_static=$enable_dlopen_self_static
16451 # Commands to strip libraries.
16452 old_striplib=$lt_old_striplib
16453 striplib=$lt_striplib
16456 # The linker used to build libraries.
16457 LD=$lt_LD
16459 # How to create reloadable object files.
16460 reload_flag=$lt_reload_flag
16461 reload_cmds=$lt_reload_cmds
16463 # Commands used to build an old-style archive.
16464 old_archive_cmds=$lt_old_archive_cmds
16466 # A language specific compiler.
16467 CC=$lt_compiler
16469 # Is the compiler the GNU compiler?
16470 with_gcc=$GCC
16472 # Compiler flag to turn off builtin functions.
16473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16475 # How to pass a linker flag through the compiler.
16476 wl=$lt_lt_prog_compiler_wl
16478 # Additional compiler flags for building library objects.
16479 pic_flag=$lt_lt_prog_compiler_pic
16481 # Compiler flag to prevent dynamic linking.
16482 link_static_flag=$lt_lt_prog_compiler_static
16484 # Does compiler simultaneously support -c and -o options?
16485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16487 # Whether or not to add -lc for building shared libraries.
16488 build_libtool_need_lc=$archive_cmds_need_lc
16490 # Whether or not to disallow shared libs when runtime libs are static.
16491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16493 # Compiler flag to allow reflexive dlopens.
16494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16496 # Compiler flag to generate shared objects directly from archives.
16497 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16499 # Whether the compiler copes with passing no objects directly.
16500 compiler_needs_object=$lt_compiler_needs_object
16502 # Create an old-style archive from a shared archive.
16503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16505 # Create a temporary old-style archive to link instead of a shared archive.
16506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16508 # Commands used to build a shared archive.
16509 archive_cmds=$lt_archive_cmds
16510 archive_expsym_cmds=$lt_archive_expsym_cmds
16512 # Commands used to build a loadable module if different from building
16513 # a shared archive.
16514 module_cmds=$lt_module_cmds
16515 module_expsym_cmds=$lt_module_expsym_cmds
16517 # Whether we are building with GNU ld or not.
16518 with_gnu_ld=$lt_with_gnu_ld
16520 # Flag that allows shared libraries with undefined symbols to be built.
16521 allow_undefined_flag=$lt_allow_undefined_flag
16523 # Flag that enforces no undefined symbols.
16524 no_undefined_flag=$lt_no_undefined_flag
16526 # Flag to hardcode \$libdir into a binary during linking.
16527 # This must work even if \$libdir does not exist
16528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16530 # If ld is used when linking, flag to hardcode \$libdir into a binary
16531 # during linking. This must work even if \$libdir does not exist.
16532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16534 # Whether we need a single "-rpath" flag with a separated argument.
16535 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16538 # DIR into the resulting binary.
16539 hardcode_direct=$hardcode_direct
16541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16542 # DIR into the resulting binary and the resulting library dependency is
16543 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16544 # library is relocated.
16545 hardcode_direct_absolute=$hardcode_direct_absolute
16547 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16548 # into the resulting binary.
16549 hardcode_minus_L=$hardcode_minus_L
16551 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16552 # into the resulting binary.
16553 hardcode_shlibpath_var=$hardcode_shlibpath_var
16555 # Set to "yes" if building a shared library automatically hardcodes DIR
16556 # into the library and all subsequent libraries and executables linked
16557 # against it.
16558 hardcode_automatic=$hardcode_automatic
16560 # Set to yes if linker adds runtime paths of dependent libraries
16561 # to runtime path list.
16562 inherit_rpath=$inherit_rpath
16564 # Whether libtool must link a program against all its dependency libraries.
16565 link_all_deplibs=$link_all_deplibs
16567 # Fix the shell variable \$srcfile for the compiler.
16568 fix_srcfile_path=$lt_fix_srcfile_path
16570 # Set to "yes" if exported symbols are required.
16571 always_export_symbols=$always_export_symbols
16573 # The commands to list exported symbols.
16574 export_symbols_cmds=$lt_export_symbols_cmds
16576 # Symbols that should not be listed in the preloaded symbols.
16577 exclude_expsyms=$lt_exclude_expsyms
16579 # Symbols that must always be exported.
16580 include_expsyms=$lt_include_expsyms
16582 # Commands necessary for linking programs (against libraries) with templates.
16583 prelink_cmds=$lt_prelink_cmds
16585 # Specify filename containing input files.
16586 file_list_spec=$lt_file_list_spec
16588 # How to hardcode a shared library path into an executable.
16589 hardcode_action=$hardcode_action
16591 # ### END LIBTOOL CONFIG
16593 _LT_EOF
16595 case $host_os in
16596 aix3*)
16597 cat <<\_LT_EOF >> "$cfgfile"
16598 # AIX sometimes has problems with the GCC collect2 program. For some
16599 # reason, if we set the COLLECT_NAMES environment variable, the problems
16600 # vanish in a puff of smoke.
16601 if test "X${COLLECT_NAMES+set}" != Xset; then
16602 COLLECT_NAMES=
16603 export COLLECT_NAMES
16605 _LT_EOF
16607 esac
16610 ltmain="$ac_aux_dir/ltmain.sh"
16613 # We use sed instead of cat because bash on DJGPP gets confused if
16614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16615 # text mode, it properly converts lines to CR/LF. This bash problem
16616 # is reportedly fixed, but why not run on old versions too?
16617 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16618 || (rm -f "$cfgfile"; exit 1)
16620 case $xsi_shell in
16621 yes)
16622 cat << \_LT_EOF >> "$cfgfile"
16624 # func_dirname file append nondir_replacement
16625 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16626 # otherwise set result to NONDIR_REPLACEMENT.
16627 func_dirname ()
16629 case ${1} in
16630 */*) func_dirname_result="${1%/*}${2}" ;;
16631 * ) func_dirname_result="${3}" ;;
16632 esac
16635 # func_basename file
16636 func_basename ()
16638 func_basename_result="${1##*/}"
16641 # func_dirname_and_basename file append nondir_replacement
16642 # perform func_basename and func_dirname in a single function
16643 # call:
16644 # dirname: Compute the dirname of FILE. If nonempty,
16645 # add APPEND to the result, otherwise set result
16646 # to NONDIR_REPLACEMENT.
16647 # value returned in "$func_dirname_result"
16648 # basename: Compute filename of FILE.
16649 # value retuned in "$func_basename_result"
16650 # Implementation must be kept synchronized with func_dirname
16651 # and func_basename. For efficiency, we do not delegate to
16652 # those functions but instead duplicate the functionality here.
16653 func_dirname_and_basename ()
16655 case ${1} in
16656 */*) func_dirname_result="${1%/*}${2}" ;;
16657 * ) func_dirname_result="${3}" ;;
16658 esac
16659 func_basename_result="${1##*/}"
16662 # func_stripname prefix suffix name
16663 # strip PREFIX and SUFFIX off of NAME.
16664 # PREFIX and SUFFIX must not contain globbing or regex special
16665 # characters, hashes, percent signs, but SUFFIX may contain a leading
16666 # dot (in which case that matches only a dot).
16667 func_stripname ()
16669 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16670 # positional parameters, so assign one to ordinary parameter first.
16671 func_stripname_result=${3}
16672 func_stripname_result=${func_stripname_result#"${1}"}
16673 func_stripname_result=${func_stripname_result%"${2}"}
16676 # func_opt_split
16677 func_opt_split ()
16679 func_opt_split_opt=${1%%=*}
16680 func_opt_split_arg=${1#*=}
16683 # func_lo2o object
16684 func_lo2o ()
16686 case ${1} in
16687 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16688 *) func_lo2o_result=${1} ;;
16689 esac
16692 # func_xform libobj-or-source
16693 func_xform ()
16695 func_xform_result=${1%.*}.lo
16698 # func_arith arithmetic-term...
16699 func_arith ()
16701 func_arith_result=$(( $* ))
16704 # func_len string
16705 # STRING may not start with a hyphen.
16706 func_len ()
16708 func_len_result=${#1}
16711 _LT_EOF
16713 *) # Bourne compatible functions.
16714 cat << \_LT_EOF >> "$cfgfile"
16716 # func_dirname file append nondir_replacement
16717 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16718 # otherwise set result to NONDIR_REPLACEMENT.
16719 func_dirname ()
16721 # Extract subdirectory from the argument.
16722 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16723 if test "X$func_dirname_result" = "X${1}"; then
16724 func_dirname_result="${3}"
16725 else
16726 func_dirname_result="$func_dirname_result${2}"
16730 # func_basename file
16731 func_basename ()
16733 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16737 # func_stripname prefix suffix name
16738 # strip PREFIX and SUFFIX off of NAME.
16739 # PREFIX and SUFFIX must not contain globbing or regex special
16740 # characters, hashes, percent signs, but SUFFIX may contain a leading
16741 # dot (in which case that matches only a dot).
16742 # func_strip_suffix prefix name
16743 func_stripname ()
16745 case ${2} in
16746 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16747 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16748 esac
16751 # sed scripts:
16752 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16753 my_sed_long_arg='1s/^-[^=]*=//'
16755 # func_opt_split
16756 func_opt_split ()
16758 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16759 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16762 # func_lo2o object
16763 func_lo2o ()
16765 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16768 # func_xform libobj-or-source
16769 func_xform ()
16771 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16774 # func_arith arithmetic-term...
16775 func_arith ()
16777 func_arith_result=`expr "$@"`
16780 # func_len string
16781 # STRING may not start with a hyphen.
16782 func_len ()
16784 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16787 _LT_EOF
16788 esac
16790 case $lt_shell_append in
16791 yes)
16792 cat << \_LT_EOF >> "$cfgfile"
16794 # func_append var value
16795 # Append VALUE to the end of shell variable VAR.
16796 func_append ()
16798 eval "$1+=\$2"
16800 _LT_EOF
16803 cat << \_LT_EOF >> "$cfgfile"
16805 # func_append var value
16806 # Append VALUE to the end of shell variable VAR.
16807 func_append ()
16809 eval "$1=\$$1\$2"
16812 _LT_EOF
16814 esac
16817 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16818 || (rm -f "$cfgfile"; exit 1)
16820 mv -f "$cfgfile" "$ofile" ||
16821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16822 chmod +x "$ofile"
16825 "gstdint.h":C)
16826 if test "$GCC" = yes; then
16827 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16828 else
16829 echo "/* generated for $CC */" > tmp-stdint.h
16832 sed 's/^ *//' >> tmp-stdint.h <<EOF
16834 #ifndef GCC_GENERATED_STDINT_H
16835 #define GCC_GENERATED_STDINT_H 1
16837 #include <sys/types.h>
16840 if test "$acx_cv_header_stdint" != stdint.h; then
16841 echo "#include <stddef.h>" >> tmp-stdint.h
16843 if test "$acx_cv_header_stdint" != stddef.h; then
16844 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16847 sed 's/^ *//' >> tmp-stdint.h <<EOF
16848 /* glibc uses these symbols as guards to prevent redefinitions. */
16849 #ifdef __int8_t_defined
16850 #define _INT8_T
16851 #define _INT16_T
16852 #define _INT32_T
16853 #endif
16854 #ifdef __uint32_t_defined
16855 #define _UINT32_T
16856 #endif
16860 # ----------------- done header, emit basic int types -------------
16861 if test "$acx_cv_header_stdint" = stddef.h; then
16862 sed 's/^ *//' >> tmp-stdint.h <<EOF
16864 #ifndef _UINT8_T
16865 #define _UINT8_T
16866 #ifndef __uint8_t_defined
16867 #define __uint8_t_defined
16868 #ifndef uint8_t
16869 typedef unsigned $acx_cv_type_int8_t uint8_t;
16870 #endif
16871 #endif
16872 #endif
16874 #ifndef _UINT16_T
16875 #define _UINT16_T
16876 #ifndef __uint16_t_defined
16877 #define __uint16_t_defined
16878 #ifndef uint16_t
16879 typedef unsigned $acx_cv_type_int16_t uint16_t;
16880 #endif
16881 #endif
16882 #endif
16884 #ifndef _UINT32_T
16885 #define _UINT32_T
16886 #ifndef __uint32_t_defined
16887 #define __uint32_t_defined
16888 #ifndef uint32_t
16889 typedef unsigned $acx_cv_type_int32_t uint32_t;
16890 #endif
16891 #endif
16892 #endif
16894 #ifndef _INT8_T
16895 #define _INT8_T
16896 #ifndef __int8_t_defined
16897 #define __int8_t_defined
16898 #ifndef int8_t
16899 typedef $acx_cv_type_int8_t int8_t;
16900 #endif
16901 #endif
16902 #endif
16904 #ifndef _INT16_T
16905 #define _INT16_T
16906 #ifndef __int16_t_defined
16907 #define __int16_t_defined
16908 #ifndef int16_t
16909 typedef $acx_cv_type_int16_t int16_t;
16910 #endif
16911 #endif
16912 #endif
16914 #ifndef _INT32_T
16915 #define _INT32_T
16916 #ifndef __int32_t_defined
16917 #define __int32_t_defined
16918 #ifndef int32_t
16919 typedef $acx_cv_type_int32_t int32_t;
16920 #endif
16921 #endif
16922 #endif
16924 elif test "$ac_cv_type_u_int32_t" = yes; then
16925 sed 's/^ *//' >> tmp-stdint.h <<EOF
16927 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16928 #ifndef _INT8_T
16929 #define _INT8_T
16930 #endif
16931 #ifndef _INT16_T
16932 #define _INT16_T
16933 #endif
16934 #ifndef _INT32_T
16935 #define _INT32_T
16936 #endif
16938 #ifndef _UINT8_T
16939 #define _UINT8_T
16940 #ifndef __uint8_t_defined
16941 #define __uint8_t_defined
16942 #ifndef uint8_t
16943 typedef u_int8_t uint8_t;
16944 #endif
16945 #endif
16946 #endif
16948 #ifndef _UINT16_T
16949 #define _UINT16_T
16950 #ifndef __uint16_t_defined
16951 #define __uint16_t_defined
16952 #ifndef uint16_t
16953 typedef u_int16_t uint16_t;
16954 #endif
16955 #endif
16956 #endif
16958 #ifndef _UINT32_T
16959 #define _UINT32_T
16960 #ifndef __uint32_t_defined
16961 #define __uint32_t_defined
16962 #ifndef uint32_t
16963 typedef u_int32_t uint32_t;
16964 #endif
16965 #endif
16966 #endif
16968 else
16969 sed 's/^ *//' >> tmp-stdint.h <<EOF
16971 /* Some systems have guard macros to prevent redefinitions, define them. */
16972 #ifndef _INT8_T
16973 #define _INT8_T
16974 #endif
16975 #ifndef _INT16_T
16976 #define _INT16_T
16977 #endif
16978 #ifndef _INT32_T
16979 #define _INT32_T
16980 #endif
16981 #ifndef _UINT8_T
16982 #define _UINT8_T
16983 #endif
16984 #ifndef _UINT16_T
16985 #define _UINT16_T
16986 #endif
16987 #ifndef _UINT32_T
16988 #define _UINT32_T
16989 #endif
16993 # ------------- done basic int types, emit int64_t types ------------
16994 if test "$ac_cv_type_uint64_t" = yes; then
16995 sed 's/^ *//' >> tmp-stdint.h <<EOF
16997 /* system headers have good uint64_t and int64_t */
16998 #ifndef _INT64_T
16999 #define _INT64_T
17000 #endif
17001 #ifndef _UINT64_T
17002 #define _UINT64_T
17003 #endif
17005 elif test "$ac_cv_type_u_int64_t" = yes; then
17006 sed 's/^ *//' >> tmp-stdint.h <<EOF
17008 /* system headers have an u_int64_t (and int64_t) */
17009 #ifndef _INT64_T
17010 #define _INT64_T
17011 #endif
17012 #ifndef _UINT64_T
17013 #define _UINT64_T
17014 #ifndef __uint64_t_defined
17015 #define __uint64_t_defined
17016 #ifndef uint64_t
17017 typedef u_int64_t uint64_t;
17018 #endif
17019 #endif
17020 #endif
17022 elif test -n "$acx_cv_type_int64_t"; then
17023 sed 's/^ *//' >> tmp-stdint.h <<EOF
17025 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17026 #ifndef _INT64_T
17027 #define _INT64_T
17028 #ifndef int64_t
17029 typedef $acx_cv_type_int64_t int64_t;
17030 #endif
17031 #endif
17032 #ifndef _UINT64_T
17033 #define _UINT64_T
17034 #ifndef __uint64_t_defined
17035 #define __uint64_t_defined
17036 #ifndef uint64_t
17037 typedef unsigned $acx_cv_type_int64_t uint64_t;
17038 #endif
17039 #endif
17040 #endif
17042 else
17043 sed 's/^ *//' >> tmp-stdint.h <<EOF
17045 /* some common heuristics for int64_t, using compiler-specific tests */
17046 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17047 #ifndef _INT64_T
17048 #define _INT64_T
17049 #ifndef __int64_t_defined
17050 #ifndef int64_t
17051 typedef long long int64_t;
17052 #endif
17053 #endif
17054 #endif
17055 #ifndef _UINT64_T
17056 #define _UINT64_T
17057 #ifndef uint64_t
17058 typedef unsigned long long uint64_t;
17059 #endif
17060 #endif
17062 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17063 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17064 does not implement __extension__. But that compiler doesn't define
17065 __GNUC_MINOR__. */
17066 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17067 # define __extension__
17068 # endif
17070 # ifndef _INT64_T
17071 # define _INT64_T
17072 # ifndef int64_t
17073 __extension__ typedef long long int64_t;
17074 # endif
17075 # endif
17076 # ifndef _UINT64_T
17077 # define _UINT64_T
17078 # ifndef uint64_t
17079 __extension__ typedef unsigned long long uint64_t;
17080 # endif
17081 # endif
17083 #elif !defined __STRICT_ANSI__
17084 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17086 # ifndef _INT64_T
17087 # define _INT64_T
17088 # ifndef int64_t
17089 typedef __int64 int64_t;
17090 # endif
17091 # endif
17092 # ifndef _UINT64_T
17093 # define _UINT64_T
17094 # ifndef uint64_t
17095 typedef unsigned __int64 uint64_t;
17096 # endif
17097 # endif
17098 # endif /* compiler */
17100 #endif /* ANSI version */
17104 # ------------- done int64_t types, emit intptr types ------------
17105 if test "$ac_cv_type_uintptr_t" != yes; then
17106 sed 's/^ *//' >> tmp-stdint.h <<EOF
17108 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17109 #ifndef __uintptr_t_defined
17110 #ifndef uintptr_t
17111 typedef u$acx_cv_type_intptr_t uintptr_t;
17112 #endif
17113 #endif
17114 #ifndef __intptr_t_defined
17115 #ifndef intptr_t
17116 typedef $acx_cv_type_intptr_t intptr_t;
17117 #endif
17118 #endif
17122 # ------------- done intptr types, emit int_least types ------------
17123 if test "$ac_cv_type_int_least32_t" != yes; then
17124 sed 's/^ *//' >> tmp-stdint.h <<EOF
17126 /* Define int_least types */
17127 typedef int8_t int_least8_t;
17128 typedef int16_t int_least16_t;
17129 typedef int32_t int_least32_t;
17130 #ifdef _INT64_T
17131 typedef int64_t int_least64_t;
17132 #endif
17134 typedef uint8_t uint_least8_t;
17135 typedef uint16_t uint_least16_t;
17136 typedef uint32_t uint_least32_t;
17137 #ifdef _UINT64_T
17138 typedef uint64_t uint_least64_t;
17139 #endif
17143 # ------------- done intptr types, emit int_fast types ------------
17144 if test "$ac_cv_type_int_fast32_t" != yes; then
17145 sed 's/^ *//' >> tmp-stdint.h <<EOF
17147 /* Define int_fast types. short is often slow */
17148 typedef int8_t int_fast8_t;
17149 typedef int int_fast16_t;
17150 typedef int32_t int_fast32_t;
17151 #ifdef _INT64_T
17152 typedef int64_t int_fast64_t;
17153 #endif
17155 typedef uint8_t uint_fast8_t;
17156 typedef unsigned int uint_fast16_t;
17157 typedef uint32_t uint_fast32_t;
17158 #ifdef _UINT64_T
17159 typedef uint64_t uint_fast64_t;
17160 #endif
17164 if test "$ac_cv_type_uintmax_t" != yes; then
17165 sed 's/^ *//' >> tmp-stdint.h <<EOF
17167 /* Define intmax based on what we found */
17168 #ifndef intmax_t
17169 #ifdef _INT64_T
17170 typedef int64_t intmax_t;
17171 #else
17172 typedef long intmax_t;
17173 #endif
17174 #endif
17175 #ifndef uintmax_t
17176 #ifdef _UINT64_T
17177 typedef uint64_t uintmax_t;
17178 #else
17179 typedef unsigned long uintmax_t;
17180 #endif
17181 #endif
17185 sed 's/^ *//' >> tmp-stdint.h <<EOF
17187 #endif /* GCC_GENERATED_STDINT_H */
17190 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17191 rm -f tmp-stdint.h
17192 else
17193 mv -f tmp-stdint.h gstdint.h
17197 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17198 "default":C) if test -n "$CONFIG_FILES"; then
17199 if test -n "${with_target_subdir}"; then
17200 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17201 # that multilib installs will end up installed in the correct place.
17202 # The testsuite needs it for multilib-aware ABI baseline files.
17203 # To work around this not being passed down from config-ml.in ->
17204 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17205 # append it here. Only modify Makefiles that have just been created.
17207 # Also, get rid of this simulated-VPATH thing that automake does.
17208 cat > vpsed << \_EOF
17209 s!`test -f '$<' || echo '$(srcdir)/'`!!
17210 _EOF
17211 for i in $SUBDIRS; do
17212 case $CONFIG_FILES in
17213 *${i}/Makefile*)
17214 #echo "Adding MULTISUBDIR to $i/Makefile"
17215 sed -f vpsed $i/Makefile > tmp
17216 grep '^MULTISUBDIR =' Makefile >> tmp
17217 mv tmp $i/Makefile
17219 esac
17220 done
17221 rm vpsed
17226 esac
17227 done # for ac_tag
17230 as_fn_exit 0
17231 _ACEOF
17232 ac_clean_files=$ac_clean_files_save
17234 test $ac_write_fail = 0 ||
17235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17238 # configure is writing to config.log, and then calls config.status.
17239 # config.status does its own redirection, appending to config.log.
17240 # Unfortunately, on DOS this fails, as config.log is still kept open
17241 # by configure, so config.status won't be able to write to it; its
17242 # output is simply discarded. So we exec the FD to /dev/null,
17243 # effectively closing config.log, so it can be properly (re)opened and
17244 # appended to by config.status. When coming back to configure, we
17245 # need to make the FD available again.
17246 if test "$no_create" != yes; then
17247 ac_cs_success=:
17248 ac_config_status_args=
17249 test "$silent" = yes &&
17250 ac_config_status_args="$ac_config_status_args --quiet"
17251 exec 5>/dev/null
17252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17253 exec 5>>config.log
17254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17255 # would make configure fail if this is the last instruction.
17256 $ac_cs_success || as_fn_exit 1
17258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}