Debian Codegraph @

libbacktrace/configure

raw
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.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
200
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
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
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
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233 fi
234 fi
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
244
245
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
266 fi
267
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 [email protected] 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."
279 fi
280 exit 1
281 fi
282 fi
283 fi
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
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
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 ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
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"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
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 ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
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 ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
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 ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
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
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
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
444 fi
445
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/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
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
471
472
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
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; }
495
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
506 }
507
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;;
517 *)
518 ECHO_N='-n';;
519 esac
520
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
527 fi
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'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
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
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
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'"
560
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'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
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`
574
575 #
576 # Initializations.
577 #
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=
586
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=''
594
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"
631
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
647 XZ
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
693 AR
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 HAVE_DWZ_FALSE
704 HAVE_DWZ_TRUE
705 DWZ
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
719 AWK
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
740 CPP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
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_pie
818 enable_host_shared
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 CPP
829 OBJCOPY
830 DSYMUTIL
831 NM'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of package-unused version-unused:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-multilib build many library versions (default)
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-darwin-at-rpath
1463 install libraries with @rpath/library-name, requires
1464 rpaths to be added to executables
1465 --disable-largefile omit support for large files
1466 --enable-cet enable Intel CET in target libraries [default=auto]
1467 --disable-werror disable building with -Werror
1468 --enable-host-pie build host code as PIE
1469 --enable-host-shared build host code as shared libraries
1470 --enable-cet enable Intel CET in host libraries [default=auto]
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-system-libunwind use installed libunwind
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 OBJCOPY location of objcopy
1491 DSYMUTIL location of dsymutil
1492 NM location of nm
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to the package provider.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 package-unused configure version-unused
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_cpp ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_cpp
1648
1649 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652 # the include files in INCLUDES and setting the cache variable VAR
1653 # accordingly.
1654 ac_fn_c_check_header_mongrel ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if eval \${$3+:} false; then :
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 else
1667 # Is the header compilable?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669 $as_echo_n "checking $2 usability... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677 else
1678 ac_header_compiler=no
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682 $as_echo "$ac_header_compiler" >&6; }
1683
1684 # Is the header present?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686 $as_echo_n "checking $2 presence... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693 else
1694 ac_header_preproc=no
1695 fi
1696 rm -f conftest.err conftest.i conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698 $as_echo "$ac_header_preproc" >&6; }
1699
1700 # So? What about this header?
1701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ;;
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720 esac
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 eval "$3=\$ac_header_compiler"
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_mongrel
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists and can be compiled using the include files in
1781 # INCLUDES, setting the cache variable VAR accordingly.
1782 ac_fn_c_check_header_compile ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_try_link LINENO
1810 # -----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_link ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_link
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 eval "$3=no"
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof ($2))
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof (($2)))
1955 return 0;
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963 eval "$3=yes"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_type
1975
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0;
1994 return test_array [0];
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_lo=0 ac_mid=0
2002 while :; do
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 $4
2006 int
2007 main ()
2008 {
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010 test_array [0] = 0;
2011 return test_array [0];
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid; break
2019 else
2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021 if test $ac_lo -le $ac_mid; then
2022 ac_lo= ac_hi=
2023 break
2024 fi
2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 int
2034 main ()
2035 {
2036 static int test_array [1 - 2 * !(($2) < 0)];
2037 test_array [0] = 0;
2038 return test_array [0];
2039
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_hi=-1 ac_mid=-1
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 int
2051 main ()
2052 {
2053 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054 test_array [0] = 0;
2055 return test_array [0];
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_lo=$ac_mid; break
2063 else
2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2065 if test $ac_mid -le $ac_hi; then
2066 ac_lo= ac_hi=
2067 break
2068 fi
2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 else
2074 ac_lo= ac_hi=
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 # Binary search between lo and hi bounds.
2080 while test "x$ac_lo" != "x$ac_hi"; do
2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=$ac_mid
2098 else
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 case $ac_lo in #((
2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105 '') ac_retval=1 ;;
2106 esac
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 static long int longval () { return $2; }
2112 static unsigned long int ulongval () { return $2; }
2113 #include <stdio.h>
2114 #include <stdlib.h>
2115 int
2116 main ()
2117 {
2118
2119 FILE *f = fopen ("conftest.val", "w");
2120 if (! f)
2121 return 1;
2122 if (($2) < 0)
2123 {
2124 long int i = longval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%ld", i);
2128 }
2129 else
2130 {
2131 unsigned long int i = ulongval ();
2132 if (i != ($2))
2133 return 1;
2134 fprintf (f, "%lu", i);
2135 }
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_run "$LINENO"; then :
2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2146 else
2147 ac_retval=1
2148 fi
2149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2150 conftest.$ac_objext conftest.beam conftest.$ac_ext
2151 rm -f conftest.val
2152
2153 fi
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 as_fn_set_status $ac_retval
2156
2157 } # ac_fn_c_compute_int
2158
2159 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2160 # ---------------------------------------------
2161 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 # accordingly.
2163 ac_fn_c_check_decl ()
2164 {
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 as_decl_name=`echo $2|sed 's/ *(.*//'`
2167 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2169 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 int
2177 main ()
2178 {
2179 #ifndef $as_decl_name
2180 #ifdef __cplusplus
2181 (void) $as_decl_use;
2182 #else
2183 (void) $as_decl_name;
2184 #endif
2185 #endif
2186
2187 ;
2188 return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 eval "$3=yes"
2193 else
2194 eval "$3=no"
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203 } # ac_fn_c_check_decl
2204 cat >config.log <<_ACEOF
2205 This file contains any messages produced by compilers while
2206 running configure, to aid debugging if configure makes a mistake.
2207
2208 It was created by package-unused $as_me version-unused, which was
2209 generated by GNU Autoconf 2.69. Invocation command line was
2210
2211 $ $0 $@
2212
2213 _ACEOF
2214 exec 5>>config.log
2215 {
2216 cat <<_ASUNAME
2217 ## --------- ##
2218 ## Platform. ##
2219 ## --------- ##
2220
2221 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2222 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2223 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2224 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2225 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226
2227 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2228 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2229
2230 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2231 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2232 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2233 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2234 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2235 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2236 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237
2238 _ASUNAME
2239
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 $as_echo "PATH: $as_dir"
2246 done
2247 IFS=$as_save_IFS
2248
2249 } >&5
2250
2251 cat >&5 <<_ACEOF
2252
2253
2254 ## ----------- ##
2255 ## Core tests. ##
2256 ## ----------- ##
2257
2258 _ACEOF
2259
2260
2261 # Keep a trace of the command line.
2262 # Strip out --no-create and --no-recursion so they do not pile up.
2263 # Strip out --silent because we don't want to record it for future runs.
2264 # Also quote any args containing shell meta-characters.
2265 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_configure_args=
2267 ac_configure_args0=
2268 ac_configure_args1=
2269 ac_must_keep_next=false
2270 for ac_pass in 1 2
2271 do
2272 for ac_arg
2273 do
2274 case $ac_arg in
2275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2277 | -silent | --silent | --silen | --sile | --sil)
2278 continue ;;
2279 *\'*)
2280 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 esac
2282 case $ac_pass in
2283 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284 2)
2285 as_fn_append ac_configure_args1 " '$ac_arg'"
2286 if test $ac_must_keep_next = true; then
2287 ac_must_keep_next=false # Got value, back to normal.
2288 else
2289 case $ac_arg in
2290 *=* | --config-cache | -C | -disable-* | --disable-* \
2291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2293 | -with-* | --with-* | -without-* | --without-* | --x)
2294 case "$ac_configure_args0 " in
2295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2296 esac
2297 ;;
2298 -* ) ac_must_keep_next=true ;;
2299 esac
2300 fi
2301 as_fn_append ac_configure_args " '$ac_arg'"
2302 ;;
2303 esac
2304 done
2305 done
2306 { ac_configure_args0=; unset ac_configure_args0;}
2307 { ac_configure_args1=; unset ac_configure_args1;}
2308
2309 # When interrupted or exit'd, cleanup temporary files, and complete
2310 # config.log. We remove comments because anyway the quotes in there
2311 # would cause problems or look ugly.
2312 # WARNING: Use '\'' to represent an apostrophe within the trap.
2313 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2314 trap 'exit_status=$?
2315 # Save into config.log some information that might help in debugging.
2316 {
2317 echo
2318
2319 $as_echo "## ---------------- ##
2320 ## Cache variables. ##
2321 ## ---------------- ##"
2322 echo
2323 # The following way of writing the cache mishandles newlines in values,
2324 (
2325 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in #(
2328 *${as_nl}*)
2329 case $ac_var in #(
2330 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2332 esac
2333 case $ac_var in #(
2334 _ | IFS | as_nl) ;; #(
2335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2336 *) { eval $ac_var=; unset $ac_var;} ;;
2337 esac ;;
2338 esac
2339 done
2340 (set) 2>&1 |
2341 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2342 *${as_nl}ac_space=\ *)
2343 sed -n \
2344 "s/'\''/'\''\\\\'\'''\''/g;
2345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2346 ;; #(
2347 *)
2348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2349 ;;
2350 esac |
2351 sort
2352 )
2353 echo
2354
2355 $as_echo "## ----------------- ##
2356 ## Output variables. ##
2357 ## ----------------- ##"
2358 echo
2359 for ac_var in $ac_subst_vars
2360 do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 $as_echo "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2368
2369 if test -n "$ac_subst_files"; then
2370 $as_echo "## ------------------- ##
2371 ## File substitutions. ##
2372 ## ------------------- ##"
2373 echo
2374 for ac_var in $ac_subst_files
2375 do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 esac
2380 $as_echo "$ac_var='\''$ac_val'\''"
2381 done | sort
2382 echo
2383 fi
2384
2385 if test -s confdefs.h; then
2386 $as_echo "## ----------- ##
2387 ## confdefs.h. ##
2388 ## ----------- ##"
2389 echo
2390 cat confdefs.h
2391 echo
2392 fi
2393 test "$ac_signal" != 0 &&
2394 $as_echo "$as_me: caught signal $ac_signal"
2395 $as_echo "$as_me: exit $exit_status"
2396 } >&5
2397 rm -f core *.core core.conftest.* &&
2398 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399 exit $exit_status
2400 ' 0
2401 for ac_signal in 1 2 13 15; do
2402 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 done
2404 ac_signal=0
2405
2406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2407 rm -f -r conftest* confdefs.h
2408
2409 $as_echo "/* confdefs.h */" > confdefs.h
2410
2411 # Predefined preprocessor variables.
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_NAME "$PACKAGE_NAME"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_STRING "$PACKAGE_STRING"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_URL "$PACKAGE_URL"
2435 _ACEOF
2436
2437
2438 # Let the site file select an alternate cache file if it wants to.
2439 # Prefer an explicitly selected file to automatically selected ones.
2440 ac_site_file1=NONE
2441 ac_site_file2=NONE
2442 if test -n "$CONFIG_SITE"; then
2443 # We do not want a PATH search for config.site.
2444 case $CONFIG_SITE in #((
2445 -*) ac_site_file1=./$CONFIG_SITE;;
2446 */*) ac_site_file1=$CONFIG_SITE;;
2447 *) ac_site_file1=./$CONFIG_SITE;;
2448 esac
2449 elif test "x$prefix" != xNONE; then
2450 ac_site_file1=$prefix/share/config.site
2451 ac_site_file2=$prefix/etc/config.site
2452 else
2453 ac_site_file1=$ac_default_prefix/share/config.site
2454 ac_site_file2=$ac_default_prefix/etc/config.site
2455 fi
2456 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 do
2458 test "x$ac_site_file" = xNONE && continue
2459 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462 sed 's/^/| /' "$ac_site_file" >&5
2463 . "$ac_site_file" \
2464 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 as_fn_error $? "failed to load site script $ac_site_file
2467 See \`config.log' for more details" "$LINENO" 5; }
2468 fi
2469 done
2470
2471 if test -r "$cache_file"; then
2472 # Some versions of bash will fail to source /dev/null (special files
2473 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2474 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2476 $as_echo "$as_me: loading cache $cache_file" >&6;}
2477 case $cache_file in
2478 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2479 *) . "./$cache_file";;
2480 esac
2481 fi
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2484 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 >$cache_file
2486 fi
2487
2488 # Check that the precious variables saved in the cache have kept the same
2489 # value.
2490 ac_cache_corrupted=false
2491 for ac_var in $ac_precious_vars; do
2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493 eval ac_new_set=\$ac_env_${ac_var}_set
2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495 eval ac_new_val=\$ac_env_${ac_var}_value
2496 case $ac_old_set,$ac_new_set in
2497 set,)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,set)
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2505 ,);;
2506 *)
2507 if test "x$ac_old_val" != "x$ac_new_val"; then
2508 # differences in whitespace do not lead to failure.
2509 ac_old_val_w=`echo x $ac_old_val`
2510 ac_new_val_w=`echo x $ac_new_val`
2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514 ac_cache_corrupted=:
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518 eval $ac_var=\$ac_old_val
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2521 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2523 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2524 fi;;
2525 esac
2526 # Pass precious variables to config.status.
2527 if test "$ac_new_set" = set; then
2528 case $ac_new_val in
2529 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2530 *) ac_arg=$ac_var=$ac_new_val ;;
2531 esac
2532 case " $ac_configure_args " in
2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 esac
2536 fi
2537 done
2538 if $ac_cache_corrupted; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2543 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2544 fi
2545 ## -------------------- ##
2546 ## Main body of script. ##
2547 ## -------------------- ##
2548
2549 ac_ext=c
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555
2556
2557
2558
2559
2560 ac_config_headers="$ac_config_headers config.h"
2561
2562
2563 if test -n "${with_target_subdir}"; then
2564 # Default to --enable-multilib
2565 # Check whether --enable-multilib was given.
2566 if test "${enable_multilib+set}" = set; then :
2567 enableval=$enable_multilib; case "$enableval" in
2568 yes) multilib=yes ;;
2569 no) multilib=no ;;
2570 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2571 esac
2572 else
2573 multilib=yes
2574 fi
2575
2576
2577 # We may get other options which we leave undocumented:
2578 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2579 # See config-ml.in if you want the gory details.
2580
2581 if test "$srcdir" = "."; then
2582 if test "$with_target_subdir" != "."; then
2583 multi_basedir="$srcdir/$with_multisrctop../.."
2584 else
2585 multi_basedir="$srcdir/$with_multisrctop.."
2586 fi
2587 else
2588 multi_basedir="$srcdir/.."
2589 fi
2590
2591
2592 # Even if the default multilib is not a cross compilation,
2593 # it may be that some of the other multilibs are.
2594 if test $cross_compiling = no && test $multilib = yes \
2595 && test "x${with_multisubdir}" != x ; then
2596 cross_compiling=maybe
2597 fi
2598
2599 ac_config_commands="$ac_config_commands default-1"
2600
2601 fi
2602
2603 ac_aux_dir=
2604 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 if test -f "$ac_dir/install-sh"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/install-sh -c"
2608 break
2609 elif test -f "$ac_dir/install.sh"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/install.sh -c"
2612 break
2613 elif test -f "$ac_dir/shtool"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/shtool install -c"
2616 break
2617 fi
2618 done
2619 if test -z "$ac_aux_dir"; then
2620 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2621 fi
2622
2623 # These three variables are undocumented and unsupported,
2624 # and are intended to be withdrawn in a future Autoconf release.
2625 # They can cause serious problems if a builder's source tree is in a directory
2626 # whose full name contains unusual characters.
2627 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2628 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2629 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630
2631
2632 # Make sure we can run config.sub.
2633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2634 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2635
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2637 $as_echo_n "checking build system type... " >&6; }
2638 if ${ac_cv_build+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 ac_build_alias=$build_alias
2642 test "x$ac_build_alias" = x &&
2643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644 test "x$ac_build_alias" = x &&
2645 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2651 $as_echo "$ac_cv_build" >&6; }
2652 case $ac_cv_build in
2653 *-*-*) ;;
2654 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2655 esac
2656 build=$ac_cv_build
2657 ac_save_IFS=$IFS; IFS='-'
2658 set x $ac_cv_build
2659 shift
2660 build_cpu=$1
2661 build_vendor=$2
2662 shift; shift
2663 # Remember, the first character of IFS is used to create $*,
2664 # except with old shells:
2665 build_os=$*
2666 IFS=$ac_save_IFS
2667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2668
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2671 $as_echo_n "checking host system type... " >&6; }
2672 if ${ac_cv_host+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test "x$host_alias" = x; then
2676 ac_cv_host=$ac_cv_build
2677 else
2678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680 fi
2681
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2684 $as_echo "$ac_cv_host" >&6; }
2685 case $ac_cv_host in
2686 *-*-*) ;;
2687 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2688 esac
2689 host=$ac_cv_host
2690 ac_save_IFS=$IFS; IFS='-'
2691 set x $ac_cv_host
2692 shift
2693 host_cpu=$1
2694 host_vendor=$2
2695 shift; shift
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2698 host_os=$*
2699 IFS=$ac_save_IFS
2700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2701
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2704 $as_echo_n "checking target system type... " >&6; }
2705 if ${ac_cv_target+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test "x$target_alias" = x; then
2709 ac_cv_target=$ac_cv_host
2710 else
2711 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2713 fi
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2717 $as_echo "$ac_cv_target" >&6; }
2718 case $ac_cv_target in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2721 esac
2722 target=$ac_cv_target
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_target
2725 shift
2726 target_cpu=$1
2727 target_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 target_os=$*
2732 IFS=$ac_save_IFS
2733 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 # The aliases save the names the user supplied, while $host etc.
2737 # will get canonicalized.
2738 test -n "$target_alias" &&
2739 test "$program_prefix$program_suffix$program_transform_name" = \
2740 NONENONEs,x,x, &&
2741 program_prefix=${target_alias}-
2742
2743 target_alias=${target_alias-$host_alias}
2744
2745 # Expand $ac_aux_dir to an absolute path.
2746 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790
2791 fi
2792 if test -z "$ac_cv_prog_CC"; then
2793 ac_ct_CC=$CC
2794 # Extract the first word of "gcc", so it can be a program name with args.
2795 set dummy gcc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830 if test "x$ac_ct_CC" = x; then
2831 CC=""
2832 else
2833 case $cross_compiling:$ac_tool_warned in
2834 yes:)
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837 ac_tool_warned=yes ;;
2838 esac
2839 CC=$ac_ct_CC
2840 fi
2841 else
2842 CC="$ac_cv_prog_CC"
2843 fi
2844
2845 if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}cc; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_CC+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CC="${ac_tool_prefix}cc"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 fi
2886 if test -z "$CC"; then
2887 # Extract the first word of "cc", so it can be a program name with args.
2888 set dummy cc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 ac_prog_rejected=no
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2906 ac_prog_rejected=yes
2907 continue
2908 fi
2909 ac_cv_prog_CC="cc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy $ac_cv_prog_CC
2920 shift
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2925 shift
2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 fi
2928 fi
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940
2941 fi
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in cl.exe
2945 do
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 test -n "$CC" && break
2984 done
2985 fi
2986 if test -z "$CC"; then
2987 ac_ct_CC=$CC
2988 for ac_prog in cl.exe
2989 do
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_ac_ct_CC="$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020 $as_echo "$ac_ct_CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027 test -n "$ac_ct_CC" && break
3028 done
3029
3030 if test "x$ac_ct_CC" = x; then
3031 CC=""
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 CC=$ac_ct_CC
3040 fi
3041 fi
3042
3043 fi
3044
3045
3046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "no acceptable C compiler found in \$PATH
3049 See \`config.log' for more details" "$LINENO" 5; }
3050
3051 # Provide some information about the compiler.
3052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3053 set X $ac_compile
3054 ac_compiler=$2
3055 for ac_option in --version -v -V -qversion; do
3056 { { ac_try="$ac_compiler $ac_option >&5"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064 ac_status=$?
3065 if test -s conftest.err; then
3066 sed '10a\
3067 ... rest of stderr output deleted ...
3068 10q' conftest.err >conftest.er1
3069 cat conftest.er1 >&5
3070 fi
3071 rm -f conftest.er1 conftest.err
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3074 done
3075
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3078
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 ac_clean_files_save=$ac_clean_files
3088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3089 # Try to create an executable without -o first, disregard a.out.
3090 # It will help us diagnose broken compilers, and finding out an intuition
3091 # of exeext.
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3093 $as_echo_n "checking whether the C compiler works... " >&6; }
3094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095
3096 # The possible output files:
3097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098
3099 ac_rmfiles=
3100 for ac_file in $ac_files
3101 do
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 esac
3106 done
3107 rm -f $ac_rmfiles
3108
3109 if { { ac_try="$ac_link_default"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link_default") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; then :
3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3123 # so that the user can short-circuit this test for compilers unknown to
3124 # Autoconf.
3125 for ac_file in $ac_files ''
3126 do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130 ;;
3131 [ab].out )
3132 # We found the default executable, but exeext='' is most
3133 # certainly right.
3134 break;;
3135 *.* )
3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 then :; else
3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 fi
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3144 # actually working.
3145 break;;
3146 * )
3147 break;;
3148 esac
3149 done
3150 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152 else
3153 ac_file=''
3154 fi
3155 if test -z "$ac_file"; then :
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 $as_echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error 77 "C compiler cannot create executables
3164 See \`config.log' for more details" "$LINENO" 5; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170 $as_echo_n "checking for C compiler default output file name... " >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172 $as_echo "$ac_file" >&6; }
3173 ac_exeext=$ac_cv_exeext
3174
3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3176 ac_clean_files=$ac_clean_files_save
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3178 $as_echo_n "checking for suffix of executables... " >&6; }
3179 if { { ac_try="$ac_link"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_link") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; then :
3190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3192 # work properly (i.e., refer to `conftest.exe'), while it won't with
3193 # `rm'.
3194 for ac_file in conftest.exe conftest conftest.*; do
3195 test -f "$ac_file" || continue
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199 break;;
3200 * ) break;;
3201 esac
3202 done
3203 else
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 fi
3209 rm -f conftest conftest$ac_cv_exeext
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3211 $as_echo "$ac_cv_exeext" >&6; }
3212
3213 rm -f conftest.$ac_ext
3214 EXEEXT=$ac_cv_exeext
3215 ac_exeext=$EXEEXT
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218 #include <stdio.h>
3219 int
3220 main ()
3221 {
3222 FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 ac_clean_files="$ac_clean_files conftest.out"
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
3234 if test "$cross_compiling" != yes; then
3235 { { ac_try="$ac_link"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 if { ac_try='./conftest$ac_cv_exeext'
3247 { { case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_try") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; }; then
3257 cross_compiling=no
3258 else
3259 if test "$cross_compiling" = maybe; then
3260 cross_compiling=yes
3261 else
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error $? "cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 fi
3268 fi
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3271 $as_echo "$cross_compiling" >&6; }
3272
3273 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3274 ac_clean_files=$ac_clean_files_save
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276 $as_echo_n "checking for suffix of object files... " >&6; }
3277 if ${ac_cv_objext+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.o conftest.obj
3292 if { { ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compile") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 for ac_file in conftest.o conftest.obj conftest.*; do
3304 test -f "$ac_file" || continue;
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 break;;
3309 esac
3310 done
3311 else
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error $? "cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 fi
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323 $as_echo "$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3325 ac_objext=$OBJEXT
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3328 if ${ac_cv_c_compiler_gnu+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333
3334 int
3335 main ()
3336 {
3337 #ifndef __GNUC__
3338 choke me
3339 #endif
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_compiler_gnu=yes
3347 else
3348 ac_compiler_gnu=no
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356 if test $ac_compiler_gnu = yes; then
3357 GCC=yes
3358 else
3359 GCC=
3360 fi
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3365 if ${ac_cv_prog_cc_g+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3370 ac_cv_prog_cc_g=no
3371 CFLAGS="-g"
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374
3375 int
3376 main ()
3377 {
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_cv_prog_cc_g=yes
3385 else
3386 CFLAGS=""
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399
3400 else
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 fi
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3425 $as_echo "$ac_cv_prog_cc_g" >&6; }
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3430 CFLAGS="-g -O2"
3431 else
3432 CFLAGS="-g"
3433 fi
3434 else
3435 if test "$GCC" = yes; then
3436 CFLAGS="-O2"
3437 else
3438 CFLAGS=
3439 fi
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443 if ${ac_cv_prog_cc_c89+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 ac_cv_prog_cc_c89=no
3447 ac_save_CC=$CC
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 struct stat;
3453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3454 struct buf { int x; };
3455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3456 static char *e (p, i)
3457 char **p;
3458 int i;
3459 {
3460 return p[i];
3461 }
3462 static char *f (char * (*g) (char **, int), char **p, ...)
3463 {
3464 char *s;
3465 va_list v;
3466 va_start (v,p);
3467 s = g (p, va_arg (v,int));
3468 va_end (v);
3469 return s;
3470 }
3471
3472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3473 function prototypes and stuff, but not '\xHH' hex character constants.
3474 These don't provoke an error unfortunately, instead are silently treated
3475 as 'x'. The following induces an error, until -std is added to get
3476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3477 array size at least. It's necessary to write '\x00'==0 to get something
3478 that's true only with -std. */
3479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3480
3481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3482 inside strings and character constants. */
3483 #define FOO(x) 'x'
3484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3485
3486 int test (int i, double x);
3487 struct s1 {int (*f) (int a);};
3488 struct s2 {int (*f) (double a);};
3489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3490 int argc;
3491 char **argv;
3492 int
3493 main ()
3494 {
3495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3502 do
3503 CC="$ac_save_CC $ac_arg"
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505 ac_cv_prog_cc_c89=$ac_arg
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext
3508 test "x$ac_cv_prog_cc_c89" != "xno" && break
3509 done
3510 rm -f conftest.$ac_ext
3511 CC=$ac_save_CC
3512
3513 fi
3514 # AC_CACHE_VAL
3515 case "x$ac_cv_prog_cc_c89" in
3516 x)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3518 $as_echo "none needed" >&6; } ;;
3519 xno)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3521 $as_echo "unsupported" >&6; } ;;
3522 *)
3523 CC="$CC $ac_cv_prog_cc_c89"
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3526 esac
3527 if test "x$ac_cv_prog_cc_c89" != xno; then :
3528
3529 fi
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3543 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3544 if ${am_cv_prog_cc_c_o+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 # Make sure it works both with $CC and with simple cc.
3559 # Following AC_PROG_CC_C_O, we do the test twice because some
3560 # compilers refuse to overwrite an existing .o file with -o,
3561 # though they will create one.
3562 am_cv_prog_cc_c_o=yes
3563 for am_i in 1 2; do
3564 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3565 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } \
3569 && test -f conftest2.$ac_objext; then
3570 : OK
3571 else
3572 am_cv_prog_cc_c_o=no
3573 break
3574 fi
3575 done
3576 rm -f core conftest*
3577 unset am_i
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3580 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3581 if test "$am_cv_prog_cc_c_o" != yes; then
3582 # Losing compiler, so override with the script.
3583 # FIXME: It is wrong to rewrite CC.
3584 # But if we don't then we get into trouble of one sort or another.
3585 # A longer-term fix would be to have automake use am__CC in this case,
3586 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3587 CC="$am_aux_dir/compile $CC"
3588 fi
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3604 # On Suns, sometimes $CPP names a directory.
3605 if test -n "$CPP" && test -d "$CPP"; then
3606 CPP=
3607 fi
3608 if test -z "$CPP"; then
3609 if ${ac_cv_prog_CPP+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 # Double quotes because CPP needs to be expanded
3613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3614 do
3615 ac_preproc_ok=false
3616 for ac_c_preproc_warn_flag in '' yes
3617 do
3618 # Use a header file that comes with gcc, so configuring glibc
3619 # with a fresh cross-compiler works.
3620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621 # <limits.h> exists even on freestanding compilers.
3622 # On the NeXT, cc -E runs the code through the compiler's parser,
3623 # not just through cpp. "Syntax error" is here to catch this case.
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #ifdef __STDC__
3627 # include <limits.h>
3628 #else
3629 # include <assert.h>
3630 #endif
3631 Syntax error
3632 _ACEOF
3633 if ac_fn_c_try_cpp "$LINENO"; then :
3634
3635 else
3636 # Broken: fails on valid input.
3637 continue
3638 fi
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3640
3641 # OK, works on sane cases. Now check whether nonexistent headers
3642 # can be detected and how.
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <ac_nonexistent.h>
3646 _ACEOF
3647 if ac_fn_c_try_cpp "$LINENO"; then :
3648 # Broken: success on invalid input.
3649 continue
3650 else
3651 # Passes both tests.
3652 ac_preproc_ok=:
3653 break
3654 fi
3655 rm -f conftest.err conftest.i conftest.$ac_ext
3656
3657 done
3658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3659 rm -f conftest.i conftest.err conftest.$ac_ext
3660 if $ac_preproc_ok; then :
3661 break
3662 fi
3663
3664 done
3665 ac_cv_prog_CPP=$CPP
3666
3667 fi
3668 CPP=$ac_cv_prog_CPP
3669 else
3670 ac_cv_prog_CPP=$CPP
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3673 $as_echo "$CPP" >&6; }
3674 ac_preproc_ok=false
3675 for ac_c_preproc_warn_flag in '' yes
3676 do
3677 # Use a header file that comes with gcc, so configuring glibc
3678 # with a fresh cross-compiler works.
3679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680 # <limits.h> exists even on freestanding compilers.
3681 # On the NeXT, cc -E runs the code through the compiler's parser,
3682 # not just through cpp. "Syntax error" is here to catch this case.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #ifdef __STDC__
3686 # include <limits.h>
3687 #else
3688 # include <assert.h>
3689 #endif
3690 Syntax error
3691 _ACEOF
3692 if ac_fn_c_try_cpp "$LINENO"; then :
3693
3694 else
3695 # Broken: fails on valid input.
3696 continue
3697 fi
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3699
3700 # OK, works on sane cases. Now check whether nonexistent headers
3701 # can be detected and how.
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <ac_nonexistent.h>
3705 _ACEOF
3706 if ac_fn_c_try_cpp "$LINENO"; then :
3707 # Broken: success on invalid input.
3708 continue
3709 else
3710 # Passes both tests.
3711 ac_preproc_ok=:
3712 break
3713 fi
3714 rm -f conftest.err conftest.i conftest.$ac_ext
3715
3716 done
3717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3718 rm -f conftest.i conftest.err conftest.$ac_ext
3719 if $ac_preproc_ok; then :
3720
3721 else
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 fi
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3736 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3737 if ${ac_cv_path_GREP+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -z "$GREP"; then
3741 ac_path_GREP_found=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in grep ggrep; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3751 as_fn_executable_p "$ac_path_GREP" || continue
3752 # Check for GNU ac_path_GREP and select it if it is found.
3753 # Check for GNU $ac_path_GREP
3754 case `"$ac_path_GREP" --version 2>&1` in
3755 *GNU*)
3756 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3757 *)
3758 ac_count=0
3759 $as_echo_n 0123456789 >"conftest.in"
3760 while :
3761 do
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 $as_echo 'GREP' >> "conftest.nl"
3766 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768 as_fn_arith $ac_count + 1 && ac_count=$as_val
3769 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_GREP="$ac_path_GREP"
3772 ac_path_GREP_max=$ac_count
3773 fi
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3776 done
3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 esac
3779
3780 $ac_path_GREP_found && break 3
3781 done
3782 done
3783 done
3784 IFS=$as_save_IFS
3785 if test -z "$ac_cv_path_GREP"; then
3786 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3787 fi
3788 else
3789 ac_cv_path_GREP=$GREP
3790 fi
3791
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3794 $as_echo "$ac_cv_path_GREP" >&6; }
3795 GREP="$ac_cv_path_GREP"
3796
3797
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3799 $as_echo_n "checking for egrep... " >&6; }
3800 if ${ac_cv_path_EGREP+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3804 then ac_cv_path_EGREP="$GREP -E"
3805 else
3806 if test -z "$EGREP"; then
3807 ac_path_EGREP_found=false
3808 # Loop through the user's path and test for each of PROGNAME-LIST
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811 do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_prog in egrep; do
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3817 as_fn_executable_p "$ac_path_EGREP" || continue
3818 # Check for GNU ac_path_EGREP and select it if it is found.
3819 # Check for GNU $ac_path_EGREP
3820 case `"$ac_path_EGREP" --version 2>&1` in
3821 *GNU*)
3822 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3823 *)
3824 ac_count=0
3825 $as_echo_n 0123456789 >"conftest.in"
3826 while :
3827 do
3828 cat "conftest.in" "conftest.in" >"conftest.tmp"
3829 mv "conftest.tmp" "conftest.in"
3830 cp "conftest.in" "conftest.nl"
3831 $as_echo 'EGREP' >> "conftest.nl"
3832 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834 as_fn_arith $ac_count + 1 && ac_count=$as_val
3835 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3836 # Best one so far, save it but keep looking for a better one
3837 ac_cv_path_EGREP="$ac_path_EGREP"
3838 ac_path_EGREP_max=$ac_count
3839 fi
3840 # 10*(2^10) chars as input seems more than enough
3841 test $ac_count -gt 10 && break
3842 done
3843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844 esac
3845
3846 $ac_path_EGREP_found && break 3
3847 done
3848 done
3849 done
3850 IFS=$as_save_IFS
3851 if test -z "$ac_cv_path_EGREP"; then
3852 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3853 fi
3854 else
3855 ac_cv_path_EGREP=$EGREP
3856 fi
3857
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3861 $as_echo "$ac_cv_path_EGREP" >&6; }
3862 EGREP="$ac_cv_path_EGREP"
3863
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3866 $as_echo_n "checking for ANSI C header files... " >&6; }
3867 if ${ac_cv_header_stdc+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdlib.h>
3873 #include <stdarg.h>
3874 #include <string.h>
3875 #include <float.h>
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_header_stdc=yes
3887 else
3888 ac_cv_header_stdc=no
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891
3892 if test $ac_cv_header_stdc = yes; then
3893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <string.h>
3897
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev/null 2>&1; then :
3901
3902 else
3903 ac_cv_header_stdc=no
3904 fi
3905 rm -f conftest*
3906
3907 fi
3908
3909 if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <stdlib.h>
3914
3915 _ACEOF
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "free" >/dev/null 2>&1; then :
3918
3919 else
3920 ac_cv_header_stdc=no
3921 fi
3922 rm -f conftest*
3923
3924 fi
3925
3926 if test $ac_cv_header_stdc = yes; then
3927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3928 if test "$cross_compiling" = yes; then :
3929 :
3930 else
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <ctype.h>
3934 #include <stdlib.h>
3935 #if ((' ' & 0x0FF) == 0x020)
3936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938 #else
3939 # define ISLOWER(c) \
3940 (('a' <= (c) && (c) <= 'i') \
3941 || ('j' <= (c) && (c) <= 'r') \
3942 || ('s' <= (c) && (c) <= 'z'))
3943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3944 #endif
3945
3946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 int
3948 main ()
3949 {
3950 int i;
3951 for (i = 0; i < 256; i++)
3952 if (XOR (islower (i), ISLOWER (i))
3953 || toupper (i) != TOUPPER (i))
3954 return 2;
3955 return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_run "$LINENO"; then :
3959
3960 else
3961 ac_cv_header_stdc=no
3962 fi
3963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3964 conftest.$ac_objext conftest.beam conftest.$ac_ext
3965 fi
3966
3967 fi
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3970 $as_echo "$ac_cv_header_stdc" >&6; }
3971 if test $ac_cv_header_stdc = yes; then
3972
3973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3974
3975 fi
3976
3977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
3980 do :
3981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3983 "
3984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3985 cat >>confdefs.h <<_ACEOF
3986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3987 _ACEOF
3988
3989 fi
3990
3991 done
3992
3993
3994
3995 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3996 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3997 MINIX=yes
3998 else
3999 MINIX=
4000 fi
4001
4002
4003 if test "$MINIX" = yes; then
4004
4005 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4006
4007
4008 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4009
4010
4011 $as_echo "#define _MINIX 1" >>confdefs.h
4012
4013 fi
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4017 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4018 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023
4024 # define __EXTENSIONS__ 1
4025 $ac_includes_default
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_cv_safe_to_define___extensions__=yes
4036 else
4037 ac_cv_safe_to_define___extensions__=no
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4042 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4043 test $ac_cv_safe_to_define___extensions__ = yes &&
4044 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4045
4046 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4047
4048 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4049
4050 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4051
4052 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4053
4054
4055
4056 libtool_VERSION=1:0:0
4057
4058
4059 # 1.11.1: Require that version of automake.
4060 # foreign: Don't require README, INSTALL, NEWS, etc.
4061 # no-define: Don't define PACKAGE and VERSION.
4062 # no-dependencies: Don't generate automatic dependencies.
4063 # (because it breaks when using bootstrap-lean, since some of the
4064 # headers are gone at "make install" time).
4065 # -Wall: Issue all automake warnings.
4066 # -Wno-portability: Don't warn about constructs supported by GNU make.
4067 # (because GCC requires GNU make anyhow).
4068 am__api_version='1.15'
4069
4070 # Find a good install program. We prefer a C program (faster),
4071 # so one script is as good as another. But avoid the broken or
4072 # incompatible versions:
4073 # SysV /etc/install, /usr/sbin/install
4074 # SunOS /usr/etc/install
4075 # IRIX /sbin/install
4076 # AIX /bin/install
4077 # AmigaOS /C/install, which installs bootblocks on floppy discs
4078 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4081 # OS/2's system install, which has a completely different semantic
4082 # ./install, which can be erroneously created by make from ./install.sh.
4083 # Reject install programs that cannot install multiple files.
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4085 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4086 if test -z "$INSTALL"; then
4087 if ${ac_cv_path_install+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 # Account for people who put trailing slashes in PATH elements.
4096 case $as_dir/ in #((
4097 ./ | .// | /[cC]/* | \
4098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4099 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4100 /usr/ucb/* ) ;;
4101 *)
4102 # OSF1 and SCO ODT 3.0 have their own names for install.
4103 # Don't use installbsd from OSF since it installs stuff as root
4104 # by default.
4105 for ac_prog in ginstall scoinst install; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4108 if test $ac_prog = install &&
4109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110 # AIX install. It has an incompatible calling convention.
4111 :
4112 elif test $ac_prog = install &&
4113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4114 # program-specific install script used by HP pwplus--don't use.
4115 :
4116 else
4117 rm -rf conftest.one conftest.two conftest.dir
4118 echo one > conftest.one
4119 echo two > conftest.two
4120 mkdir conftest.dir
4121 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4122 test -s conftest.one && test -s conftest.two &&
4123 test -s conftest.dir/conftest.one &&
4124 test -s conftest.dir/conftest.two
4125 then
4126 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4127 break 3
4128 fi
4129 fi
4130 fi
4131 done
4132 done
4133 ;;
4134 esac
4135
4136 done
4137 IFS=$as_save_IFS
4138
4139 rm -rf conftest.one conftest.two conftest.dir
4140
4141 fi
4142 if test "${ac_cv_path_install+set}" = set; then
4143 INSTALL=$ac_cv_path_install
4144 else
4145 # As a last resort, use the slow shell script. Don't cache a
4146 # value for INSTALL within a source directory, because that will
4147 # break other packages using the cache if that directory is
4148 # removed, or if the value is a relative name.
4149 INSTALL=$ac_install_sh
4150 fi
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4153 $as_echo "$INSTALL" >&6; }
4154
4155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4156 # It thinks the first close brace ends the variable substitution.
4157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4158
4159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4160
4161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4164 $as_echo_n "checking whether build environment is sane... " >&6; }
4165 # Reject unsafe characters in $srcdir or the absolute working directory
4166 # name. Accept space and tab only in the latter.
4167 am_lf='
4168 '
4169 case `pwd` in
4170 *[\\\"\#\$\&\'\`$am_lf]*)
4171 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4172 esac
4173 case $srcdir in
4174 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4175 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4176 esac
4177
4178 # Do 'set' in a subshell so we don't clobber the current shell's
4179 # arguments. Must try -L first in case configure is actually a
4180 # symlink; some systems play weird games with the mod time of symlinks
4181 # (eg FreeBSD returns the mod time of the symlink's containing
4182 # directory).
4183 if (
4184 am_has_slept=no
4185 for am_try in 1 2; do
4186 echo "timestamp, slept: $am_has_slept" > conftest.file
4187 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4188 if test "$*" = "X"; then
4189 # -L didn't work.
4190 set X `ls -t "$srcdir/configure" conftest.file`
4191 fi
4192 if test "$*" != "X $srcdir/configure conftest.file" \
4193 && test "$*" != "X conftest.file $srcdir/configure"; then
4194
4195 # If neither matched, then we have a broken ls. This can happen
4196 # if, for instance, CONFIG_SHELL is bash and it inherits a
4197 # broken ls alias from the environment. This has actually
4198 # happened. Such a system could not be considered "sane".
4199 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4200 alias in your environment" "$LINENO" 5
4201 fi
4202 if test "$2" = conftest.file || test $am_try -eq 2; then
4203 break
4204 fi
4205 # Just in case.
4206 sleep 1
4207 am_has_slept=yes
4208 done
4209 test "$2" = conftest.file
4210 )
4211 then
4212 # Ok.
4213 :
4214 else
4215 as_fn_error $? "newly created file is older than distributed files!
4216 Check your system clock" "$LINENO" 5
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4219 $as_echo "yes" >&6; }
4220 # If we didn't sleep, we still need to ensure time stamps of config.status and
4221 # generated files are strictly newer.
4222 am_sleep_pid=
4223 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4224 ( sleep 1 ) &
4225 am_sleep_pid=$!
4226 fi
4227
4228 rm -f conftest.file
4229
4230 test "$program_prefix" != NONE &&
4231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4232 # Use a double $ so make ignores it.
4233 test "$program_suffix" != NONE &&
4234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4235 # Double any \ or $.
4236 # By default was `s,x,x', remove it if useless.
4237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4239
4240 if test x"${MISSING+set}" != xset; then
4241 case $am_aux_dir in
4242 *\ * | *\ *)
4243 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4244 *)
4245 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4246 esac
4247 fi
4248 # Use eval to expand $SHELL
4249 if eval "$MISSING --is-lightweight"; then
4250 am_missing_run="$MISSING "
4251 else
4252 am_missing_run=
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4254 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4255 fi
4256
4257 if test x"${install_sh+set}" != xset; then
4258 case $am_aux_dir in
4259 *\ * | *\ *)
4260 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4261 *)
4262 install_sh="\${SHELL} $am_aux_dir/install-sh"
4263 esac
4264 fi
4265
4266 # Installed binaries are usually stripped using 'strip' when the user
4267 # run "make install-strip". However 'strip' might not be the right
4268 # tool to use in cross-compilation environments, therefore Automake
4269 # will honor the 'STRIP' environment variable to overrule this program.
4270 if test "$cross_compiling" != no; then
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}strip; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_STRIP+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$STRIP"; then
4280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 STRIP=$ac_cv_prog_STRIP
4300 if test -n "$STRIP"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4302 $as_echo "$STRIP" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309 fi
4310 if test -z "$ac_cv_prog_STRIP"; then
4311 ac_ct_STRIP=$STRIP
4312 # Extract the first word of "strip", so it can be a program name with args.
4313 set dummy strip; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$ac_ct_STRIP"; then
4320 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_ac_ct_STRIP="strip"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333 done
4334 done
4335 IFS=$as_save_IFS
4336
4337 fi
4338 fi
4339 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4340 if test -n "$ac_ct_STRIP"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4342 $as_echo "$ac_ct_STRIP" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4346 fi
4347
4348 if test "x$ac_ct_STRIP" = x; then
4349 STRIP=":"
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352 yes:)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4356 esac
4357 STRIP=$ac_ct_STRIP
4358 fi
4359 else
4360 STRIP="$ac_cv_prog_STRIP"
4361 fi
4362
4363 fi
4364 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4367 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4368 if test -z "$MKDIR_P"; then
4369 if ${ac_cv_path_mkdir+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in mkdir gmkdir; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4380 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4381 'mkdir (GNU coreutils) '* | \
4382 'mkdir (coreutils) '* | \
4383 'mkdir (fileutils) '4.1*)
4384 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4385 break 3;;
4386 esac
4387 done
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 fi
4393
4394 test -d ./--version && rmdir ./--version
4395 if test "${ac_cv_path_mkdir+set}" = set; then
4396 MKDIR_P="$ac_cv_path_mkdir -p"
4397 else
4398 # As a last resort, use the slow shell script. Don't cache a
4399 # value for MKDIR_P within a source directory, because that will
4400 # break other packages using the cache if that directory is
4401 # removed, or if the value is a relative name.
4402 MKDIR_P="$ac_install_sh -d"
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4406 $as_echo "$MKDIR_P" >&6; }
4407
4408 for ac_prog in gawk mawk nawk awk
4409 do
4410 # Extract the first word of "$ac_prog", so it can be a program name with args.
4411 set dummy $ac_prog; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_prog_AWK+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$AWK"; then
4418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_AWK="$ac_prog"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 fi
4436 fi
4437 AWK=$ac_cv_prog_AWK
4438 if test -n "$AWK"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4440 $as_echo "$AWK" >&6; }
4441 else
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444 fi
4445
4446
4447 test -n "$AWK" && break
4448 done
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4452 set x ${MAKE-make}
4453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4454 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat >conftest.make <<\_ACEOF
4458 SHELL = /bin/sh
4459 all:
4460 @echo '@@@%%%=$(MAKE)=@@@%%%'
4461 _ACEOF
4462 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4463 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4464 *@@@%%%=?*=@@@%%%*)
4465 eval ac_cv_prog_make_${ac_make}_set=yes;;
4466 *)
4467 eval ac_cv_prog_make_${ac_make}_set=no;;
4468 esac
4469 rm -f conftest.make
4470 fi
4471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 $as_echo "yes" >&6; }
4474 SET_MAKE=
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 SET_MAKE="MAKE=${MAKE-make}"
4479 fi
4480
4481 rm -rf .tst 2>/dev/null
4482 mkdir .tst 2>/dev/null
4483 if test -d .tst; then
4484 am__leading_dot=.
4485 else
4486 am__leading_dot=_
4487 fi
4488 rmdir .tst 2>/dev/null
4489
4490 # Check whether --enable-silent-rules was given.
4491 if test "${enable_silent_rules+set}" = set; then :
4492 enableval=$enable_silent_rules;
4493 fi
4494
4495 case $enable_silent_rules in # (((
4496 yes) AM_DEFAULT_VERBOSITY=0;;
4497 no) AM_DEFAULT_VERBOSITY=1;;
4498 *) AM_DEFAULT_VERBOSITY=1;;
4499 esac
4500 am_make=${MAKE-make}
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4502 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4503 if ${am_cv_make_support_nested_variables+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if $as_echo 'TRUE=$(BAR$(V))
4507 BAR0=false
4508 BAR1=true
4509 V=1
4510 am__doit:
4511 @$(TRUE)
4512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4513 am_cv_make_support_nested_variables=yes
4514 else
4515 am_cv_make_support_nested_variables=no
4516 fi
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4519 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4520 if test $am_cv_make_support_nested_variables = yes; then
4521 AM_V='$(V)'
4522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4523 else
4524 AM_V=$AM_DEFAULT_VERBOSITY
4525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4526 fi
4527 AM_BACKSLASH='\'
4528
4529 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4530 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4531 # is not polluted with repeated "-I."
4532 am__isrc=' -I$(srcdir)'
4533 # test to see if srcdir already configured
4534 if test -f $srcdir/config.status; then
4535 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4536 fi
4537 fi
4538
4539 # test whether we have cygpath
4540 if test -z "$CYGPATH_W"; then
4541 if (cygpath --version) >/dev/null 2>/dev/null; then
4542 CYGPATH_W='cygpath -w'
4543 else
4544 CYGPATH_W=echo
4545 fi
4546 fi
4547
4548
4549 # Define the identity of the package.
4550 PACKAGE='libbacktrace'
4551 VERSION='version-unused'
4552
4553
4554 # Some tools Automake needs.
4555
4556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4557
4558
4559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4560
4561
4562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4563
4564
4565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4566
4567
4568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4569
4570 # For better backward compatibility. To be removed once Automake 1.9.x
4571 # dies out for good. For more background, see:
4572 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4573 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4574 mkdir_p='$(MKDIR_P)'
4575
4576 # We need awk for the "check" target (and possibly the TAP driver). The
4577 # system "awk" is bad on some platforms.
4578 # Always define AMTAR for backward compatibility. Yes, it's still used
4579 # in the wild :-( We should find a proper way to deprecate it ...
4580 AMTAR='$${TAR-tar}'
4581
4582
4583 # We'll loop over all known methods to create a tar archive until one works.
4584 _am_tools='gnutar pax cpio none'
4585
4586 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4587
4588
4589
4590
4591
4592
4593 # POSIX will say in a future version that running "rm -f" with no argument
4594 # is OK; and we want to be able to make that assumption in our Makefile
4595 # recipes. So use an aggressive probe to check that the usage we want is
4596 # actually supported "in the wild" to an acceptable degree.
4597 # See automake bug#10828.
4598 # To make any issue more visible, cause the running configure to be aborted
4599 # by default if the 'rm' program in use doesn't match our expectations; the
4600 # user can still override this though.
4601 if rm -f && rm -fr && rm -rf; then : OK; else
4602 cat >&2 <<'END'
4603 Oops!
4604
4605 Your 'rm' program seems unable to run without file operands specified
4606 on the command line, even when the '-f' option is present. This is contrary
4607 to the behaviour of most rm programs out there, and not conforming with
4608 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4609
4610 Please tell [email protected] about your system, including the value
4611 of your $PATH and any error possibly output before this message. This
4612 can help us improve future automake versions.
4613
4614 END
4615 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4616 echo 'Configuration will proceed anyway, since you have set the' >&2
4617 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4618 echo >&2
4619 else
4620 cat >&2 <<'END'
4621 Aborting the configuration process, to ensure you take notice of the issue.
4622
4623 You can download and install GNU coreutils to get an 'rm' implementation
4624 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4625
4626 If you want to complete the configuration process using your problematic
4627 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4628 to "yes", and re-run configure.
4629
4630 END
4631 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4632 fi
4633 fi
4634
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4638 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4639 # Check whether --enable-maintainer-mode was given.
4640 if test "${enable_maintainer_mode+set}" = set; then :
4641 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4642 else
4643 USE_MAINTAINER_MODE=no
4644 fi
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4647 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4648 if test $USE_MAINTAINER_MODE = yes; then
4649 MAINTAINER_MODE_TRUE=
4650 MAINTAINER_MODE_FALSE='#'
4651 else
4652 MAINTAINER_MODE_TRUE='#'
4653 MAINTAINER_MODE_FALSE=
4654 fi
4655
4656 MAINT=$MAINTAINER_MODE_TRUE
4657
4658
4659
4660
4661 # Check whether --with-target-subdir was given.
4662 if test "${with_target_subdir+set}" = set; then :
4663 withval=$with_target_subdir;
4664 fi
4665
4666
4667 # We must force CC to /not/ be precious variables; otherwise
4668 # the wrong, non-multilib-adjusted value will be used in multilibs.
4669 # As a side effect, we have to subst CFLAGS ourselves.
4670
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_prog_CC+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$CC"; then
4686 ac_cv_prog_CC="$CC" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 CC=$ac_cv_prog_CC
4706 if test -n "$CC"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4708 $as_echo "$CC" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714
4715 fi
4716 if test -z "$ac_cv_prog_CC"; then
4717 ac_ct_CC=$CC
4718 # Extract the first word of "gcc", so it can be a program name with args.
4719 set dummy gcc; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_CC"; then
4726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_ac_ct_CC="gcc"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4746 if test -n "$ac_ct_CC"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4748 $as_echo "$ac_ct_CC" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754 if test "x$ac_ct_CC" = x; then
4755 CC=""
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 CC=$ac_ct_CC
4764 fi
4765 else
4766 CC="$ac_cv_prog_CC"
4767 fi
4768
4769 if test -z "$CC"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}cc; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_CC+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$CC"; then
4779 ac_cv_prog_CC="$CC" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_CC="${ac_tool_prefix}cc"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 CC=$ac_cv_prog_CC
4799 if test -n "$CC"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4801 $as_echo "$CC" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 fi
4809 fi
4810 if test -z "$CC"; then
4811 # Extract the first word of "cc", so it can be a program name with args.
4812 set dummy cc; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_CC+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 ac_prog_rejected=no
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4830 ac_prog_rejected=yes
4831 continue
4832 fi
4833 ac_cv_prog_CC="cc"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 if test $ac_prog_rejected = yes; then
4842 # We found a bogon in the path, so make sure we never use it.
4843 set dummy $ac_cv_prog_CC
4844 shift
4845 if test $# != 0; then
4846 # We chose a different compiler from the bogus one.
4847 # However, it has the same basename, so the bogon will be chosen
4848 # first if we set CC to just the basename; use the full file name.
4849 shift
4850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4851 fi
4852 fi
4853 fi
4854 fi
4855 CC=$ac_cv_prog_CC
4856 if test -n "$CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858 $as_echo "$CC" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 fi
4866 if test -z "$CC"; then
4867 if test -n "$ac_tool_prefix"; then
4868 for ac_prog in cl.exe
4869 do
4870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_CC+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$CC"; then
4878 ac_cv_prog_CC="$CC" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 CC=$ac_cv_prog_CC
4898 if test -n "$CC"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4900 $as_echo "$CC" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907 test -n "$CC" && break
4908 done
4909 fi
4910 if test -z "$CC"; then
4911 ac_ct_CC=$CC
4912 for ac_prog in cl.exe
4913 do
4914 # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_CC"; then
4922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_CC="$ac_prog"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4942 if test -n "$ac_ct_CC"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4944 $as_echo "$ac_ct_CC" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 test -n "$ac_ct_CC" && break
4952 done
4953
4954 if test "x$ac_ct_CC" = x; then
4955 CC=""
4956 else
4957 case $cross_compiling:$ac_tool_warned in
4958 yes:)
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned=yes ;;
4962 esac
4963 CC=$ac_ct_CC
4964 fi
4965 fi
4966
4967 fi
4968
4969
4970 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error $? "no acceptable C compiler found in \$PATH
4973 See \`config.log' for more details" "$LINENO" 5; }
4974
4975 # Provide some information about the compiler.
4976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4977 set X $ac_compile
4978 ac_compiler=$2
4979 for ac_option in --version -v -V -qversion; do
4980 { { ac_try="$ac_compiler $ac_option >&5"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4986 $as_echo "$ac_try_echo"; } >&5
4987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4988 ac_status=$?
4989 if test -s conftest.err; then
4990 sed '10a\
4991 ... rest of stderr output deleted ...
4992 10q' conftest.err >conftest.er1
4993 cat conftest.er1 >&5
4994 fi
4995 rm -f conftest.er1 conftest.err
4996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997 test $ac_status = 0; }
4998 done
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5002 if ${ac_cv_c_compiler_gnu+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007
5008 int
5009 main ()
5010 {
5011 #ifndef __GNUC__
5012 choke me
5013 #endif
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_compiler_gnu=yes
5021 else
5022 ac_compiler_gnu=no
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5026
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5030 if test $ac_compiler_gnu = yes; then
5031 GCC=yes
5032 else
5033 GCC=
5034 fi
5035 ac_test_CFLAGS=${CFLAGS+set}
5036 ac_save_CFLAGS=$CFLAGS
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5039 if ${ac_cv_prog_cc_g+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 ac_save_c_werror_flag=$ac_c_werror_flag
5043 ac_c_werror_flag=yes
5044 ac_cv_prog_cc_g=no
5045 CFLAGS="-g"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 ac_cv_prog_cc_g=yes
5059 else
5060 CFLAGS=""
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063
5064 int
5065 main ()
5066 {
5067
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073
5074 else
5075 ac_c_werror_flag=$ac_save_c_werror_flag
5076 CFLAGS="-g"
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_prog_cc_g=yes
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 ac_c_werror_flag=$ac_save_c_werror_flag
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5099 $as_echo "$ac_cv_prog_cc_g" >&6; }
5100 if test "$ac_test_CFLAGS" = set; then
5101 CFLAGS=$ac_save_CFLAGS
5102 elif test $ac_cv_prog_cc_g = yes; then
5103 if test "$GCC" = yes; then
5104 CFLAGS="-g -O2"
5105 else
5106 CFLAGS="-g"
5107 fi
5108 else
5109 if test "$GCC" = yes; then
5110 CFLAGS="-O2"
5111 else
5112 CFLAGS=
5113 fi
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5117 if ${ac_cv_prog_cc_c89+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 ac_cv_prog_cc_c89=no
5121 ac_save_CC=$CC
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <stdarg.h>
5125 #include <stdio.h>
5126 struct stat;
5127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5128 struct buf { int x; };
5129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5130 static char *e (p, i)
5131 char **p;
5132 int i;
5133 {
5134 return p[i];
5135 }
5136 static char *f (char * (*g) (char **, int), char **p, ...)
5137 {
5138 char *s;
5139 va_list v;
5140 va_start (v,p);
5141 s = g (p, va_arg (v,int));
5142 va_end (v);
5143 return s;
5144 }
5145
5146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5147 function prototypes and stuff, but not '\xHH' hex character constants.
5148 These don't provoke an error unfortunately, instead are silently treated
5149 as 'x'. The following induces an error, until -std is added to get
5150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5151 array size at least. It's necessary to write '\x00'==0 to get something
5152 that's true only with -std. */
5153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5154
5155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5156 inside strings and character constants. */
5157 #define FOO(x) 'x'
5158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5159
5160 int test (int i, double x);
5161 struct s1 {int (*f) (int a);};
5162 struct s2 {int (*f) (double a);};
5163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5164 int argc;
5165 char **argv;
5166 int
5167 main ()
5168 {
5169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5176 do
5177 CC="$ac_save_CC $ac_arg"
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_prog_cc_c89=$ac_arg
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext
5182 test "x$ac_cv_prog_cc_c89" != "xno" && break
5183 done
5184 rm -f conftest.$ac_ext
5185 CC=$ac_save_CC
5186
5187 fi
5188 # AC_CACHE_VAL
5189 case "x$ac_cv_prog_cc_c89" in
5190 x)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5192 $as_echo "none needed" >&6; } ;;
5193 xno)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5195 $as_echo "unsupported" >&6; } ;;
5196 *)
5197 CC="$CC $ac_cv_prog_cc_c89"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5200 esac
5201 if test "x$ac_cv_prog_cc_c89" != xno; then :
5202
5203 fi
5204
5205 ac_ext=c
5206 ac_cpp='$CPP $CPPFLAGS'
5207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5217 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5218 if ${am_cv_prog_cc_c_o+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 # Make sure it works both with $CC and with simple cc.
5233 # Following AC_PROG_CC_C_O, we do the test twice because some
5234 # compilers refuse to overwrite an existing .o file with -o,
5235 # though they will create one.
5236 am_cv_prog_cc_c_o=yes
5237 for am_i in 1 2; do
5238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } \
5243 && test -f conftest2.$ac_objext; then
5244 : OK
5245 else
5246 am_cv_prog_cc_c_o=no
5247 break
5248 fi
5249 done
5250 rm -f core conftest*
5251 unset am_i
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5254 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5255 if test "$am_cv_prog_cc_c_o" != yes; then
5256 # Losing compiler, so override with the script.
5257 # FIXME: It is wrong to rewrite CC.
5258 # But if we don't then we get into trouble of one sort or another.
5259 # A longer-term fix would be to have automake use am__CC in this case,
5260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5261 CC="$am_aux_dir/compile $CC"
5262 fi
5263 ac_ext=c
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268
5269
5270
5271
5272
5273
5274 if test -n "$ac_tool_prefix"; then
5275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_RANLIB+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$RANLIB"; then
5283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 RANLIB=$ac_cv_prog_RANLIB
5303 if test -n "$RANLIB"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5305 $as_echo "$RANLIB" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 fi
5313 if test -z "$ac_cv_prog_RANLIB"; then
5314 ac_ct_RANLIB=$RANLIB
5315 # Extract the first word of "ranlib", so it can be a program name with args.
5316 set dummy ranlib; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$ac_ct_RANLIB"; then
5323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_ac_ct_RANLIB="ranlib"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5343 if test -n "$ac_ct_RANLIB"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5345 $as_echo "$ac_ct_RANLIB" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351 if test "x$ac_ct_RANLIB" = x; then
5352 RANLIB=":"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360 RANLIB=$ac_ct_RANLIB
5361 fi
5362 else
5363 RANLIB="$ac_cv_prog_RANLIB"
5364 fi
5365
5366
5367 for ac_prog in gawk mawk nawk awk
5368 do
5369 # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_AWK+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -n "$AWK"; then
5377 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_AWK="$ac_prog"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 AWK=$ac_cv_prog_AWK
5397 if test -n "$AWK"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5399 $as_echo "$AWK" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405
5406 test -n "$AWK" && break
5407 done
5408
5409 case "$AWK" in
5410 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5411 esac
5412
5413 # Extract the first word of "dwz", so it can be a program name with args.
5414 set dummy dwz; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_DWZ+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$DWZ"; then
5421 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_DWZ="dwz"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434 done
5435 done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 DWZ=$ac_cv_prog_DWZ
5441 if test -n "$DWZ"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5443 $as_echo "$DWZ" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 if test "$DWZ" != ""; then
5451 HAVE_DWZ_TRUE=
5452 HAVE_DWZ_FALSE='#'
5453 else
5454 HAVE_DWZ_TRUE='#'
5455 HAVE_DWZ_FALSE=
5456 fi
5457
5458
5459 case `pwd` in
5460 *\ * | *\ *)
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5463 esac
5464
5465
5466
5467 macro_version='2.2.7a'
5468 macro_revision='1.3134'
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 ltmain="$ac_aux_dir/ltmain.sh"
5483
5484 # Backslashify metacharacters that are still active within
5485 # double-quoted strings.
5486 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5487
5488 # Same as above, but do not quote variable references.
5489 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5490
5491 # Sed substitution to delay expansion of an escaped shell variable in a
5492 # double_quote_subst'ed string.
5493 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5494
5495 # Sed substitution to delay expansion of an escaped single quote.
5496 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5497
5498 # Sed substitution to avoid accidental globbing in evaled expressions
5499 no_glob_subst='s/\*/\\\*/g'
5500
5501 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5506 $as_echo_n "checking how to print strings... " >&6; }
5507 # Test print first, because it will be a builtin if present.
5508 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5509 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5510 ECHO='print -r --'
5511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5512 ECHO='printf %s\n'
5513 else
5514 # Use this function as a fallback that always works.
5515 func_fallback_echo ()
5516 {
5517 eval 'cat <<_LTECHO_EOF
5518 $1
5519 _LTECHO_EOF'
5520 }
5521 ECHO='func_fallback_echo'
5522 fi
5523
5524 # func_echo_all arg...
5525 # Invoke $ECHO with all args, space-separated.
5526 func_echo_all ()
5527 {
5528 $ECHO ""
5529 }
5530
5531 case "$ECHO" in
5532 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5533 $as_echo "printf" >&6; } ;;
5534 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5535 $as_echo "print -r" >&6; } ;;
5536 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5537 $as_echo "cat" >&6; } ;;
5538 esac
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5555 if ${ac_cv_path_SED+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5559 for ac_i in 1 2 3 4 5 6 7; do
5560 ac_script="$ac_script$as_nl$ac_script"
5561 done
5562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5563 { ac_script=; unset ac_script;}
5564 if test -z "$SED"; then
5565 ac_path_SED_found=false
5566 # Loop through the user's path and test for each of PROGNAME-LIST
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_prog in sed gsed; do
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5575 as_fn_executable_p "$ac_path_SED" || continue
5576 # Check for GNU ac_path_SED and select it if it is found.
5577 # Check for GNU $ac_path_SED
5578 case `"$ac_path_SED" --version 2>&1` in
5579 *GNU*)
5580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5581 *)
5582 ac_count=0
5583 $as_echo_n 0123456789 >"conftest.in"
5584 while :
5585 do
5586 cat "conftest.in" "conftest.in" >"conftest.tmp"
5587 mv "conftest.tmp" "conftest.in"
5588 cp "conftest.in" "conftest.nl"
5589 $as_echo '' >> "conftest.nl"
5590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592 as_fn_arith $ac_count + 1 && ac_count=$as_val
5593 if test $ac_count -gt ${ac_path_SED_max-0}; then
5594 # Best one so far, save it but keep looking for a better one
5595 ac_cv_path_SED="$ac_path_SED"
5596 ac_path_SED_max=$ac_count
5597 fi
5598 # 10*(2^10) chars as input seems more than enough
5599 test $ac_count -gt 10 && break
5600 done
5601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602 esac
5603
5604 $ac_path_SED_found && break 3
5605 done
5606 done
5607 done
5608 IFS=$as_save_IFS
5609 if test -z "$ac_cv_path_SED"; then
5610 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5611 fi
5612 else
5613 ac_cv_path_SED=$SED
5614 fi
5615
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5618 $as_echo "$ac_cv_path_SED" >&6; }
5619 SED="$ac_cv_path_SED"
5620 rm -f conftest.sed
5621
5622 test -z "$SED" && SED=sed
5623 Xsed="$SED -e 1s/^X//"
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5636 $as_echo_n "checking for fgrep... " >&6; }
5637 if ${ac_cv_path_FGREP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5641 then ac_cv_path_FGREP="$GREP -F"
5642 else
5643 if test -z "$FGREP"; then
5644 ac_path_FGREP_found=false
5645 # Loop through the user's path and test for each of PROGNAME-LIST
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5648 do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_prog in fgrep; do
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5654 as_fn_executable_p "$ac_path_FGREP" || continue
5655 # Check for GNU ac_path_FGREP and select it if it is found.
5656 # Check for GNU $ac_path_FGREP
5657 case `"$ac_path_FGREP" --version 2>&1` in
5658 *GNU*)
5659 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5660 *)
5661 ac_count=0
5662 $as_echo_n 0123456789 >"conftest.in"
5663 while :
5664 do
5665 cat "conftest.in" "conftest.in" >"conftest.tmp"
5666 mv "conftest.tmp" "conftest.in"
5667 cp "conftest.in" "conftest.nl"
5668 $as_echo 'FGREP' >> "conftest.nl"
5669 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5671 as_fn_arith $ac_count + 1 && ac_count=$as_val
5672 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5673 # Best one so far, save it but keep looking for a better one
5674 ac_cv_path_FGREP="$ac_path_FGREP"
5675 ac_path_FGREP_max=$ac_count
5676 fi
5677 # 10*(2^10) chars as input seems more than enough
5678 test $ac_count -gt 10 && break
5679 done
5680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5681 esac
5682
5683 $ac_path_FGREP_found && break 3
5684 done
5685 done
5686 done
5687 IFS=$as_save_IFS
5688 if test -z "$ac_cv_path_FGREP"; then
5689 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5690 fi
5691 else
5692 ac_cv_path_FGREP=$FGREP
5693 fi
5694
5695 fi
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5698 $as_echo "$ac_cv_path_FGREP" >&6; }
5699 FGREP="$ac_cv_path_FGREP"
5700
5701
5702 test -z "$GREP" && GREP=grep
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 # Check whether --with-gnu-ld was given.
5723 if test "${with_gnu_ld+set}" = set; then :
5724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5725 else
5726 with_gnu_ld=no
5727 fi
5728
5729 ac_prog=ld
5730 if test "$GCC" = yes; then
5731 # Check if gcc -print-prog-name=ld gives a path.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5733 $as_echo_n "checking for ld used by $CC... " >&6; }
5734 case $host in
5735 *-*-mingw*)
5736 # gcc leaves a trailing carriage return which upsets mingw
5737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5738 *)
5739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5740 esac
5741 case $ac_prog in
5742 # Accept absolute paths.
5743 [\\/]* | ?:[\\/]*)
5744 re_direlt='/[^/][^/]*/\.\./'
5745 # Canonicalize the pathname of ld
5746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5749 done
5750 test -z "$LD" && LD="$ac_prog"
5751 ;;
5752 "")
5753 # If it fails, then pretend we aren't using GCC.
5754 ac_prog=ld
5755 ;;
5756 *)
5757 # If it is relative, then search for the first ld in PATH.
5758 with_gnu_ld=unknown
5759 ;;
5760 esac
5761 elif test "$with_gnu_ld" = yes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5763 $as_echo_n "checking for GNU ld... " >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5766 $as_echo_n "checking for non-GNU ld... " >&6; }
5767 fi
5768 if ${lt_cv_path_LD+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -z "$LD"; then
5772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5773 for ac_dir in $PATH; do
5774 IFS="$lt_save_ifs"
5775 test -z "$ac_dir" && ac_dir=.
5776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5777 lt_cv_path_LD="$ac_dir/$ac_prog"
5778 # Check to see if the program is GNU ld. I'd rather use --version,
5779 # but apparently some variants of GNU ld only accept -v.
5780 # Break only if it was the GNU/non-GNU ld that we prefer.
5781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5782 *GNU* | *'with BFD'*)
5783 test "$with_gnu_ld" != no && break
5784 ;;
5785 *)
5786 test "$with_gnu_ld" != yes && break
5787 ;;
5788 esac
5789 fi
5790 done
5791 IFS="$lt_save_ifs"
5792 else
5793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5794 fi
5795 fi
5796
5797 LD="$lt_cv_path_LD"
5798 if test -n "$LD"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5800 $as_echo "$LD" >&6; }
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5808 if ${lt_cv_prog_gnu_ld+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5812 case `$LD -v 2>&1 </dev/null` in
5813 *GNU* | *'with BFD'*)
5814 lt_cv_prog_gnu_ld=yes
5815 ;;
5816 *)
5817 lt_cv_prog_gnu_ld=no
5818 ;;
5819 esac
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5823 with_gnu_ld=$lt_cv_prog_gnu_ld
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5834 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5835 if ${lt_cv_path_NM+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$NM"; then
5839 # Let the user override the nm to test.
5840 lt_nm_to_check="$NM"
5841 else
5842 lt_nm_to_check="${ac_tool_prefix}nm"
5843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5844 lt_nm_to_check="$lt_nm_to_check nm"
5845 fi
5846 fi
5847 for lt_tmp_nm in "$lt_nm_to_check"; do
5848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5850 IFS="$lt_save_ifs"
5851 test -z "$ac_dir" && ac_dir=.
5852 # Strip out any user-provided options from the nm to test twice,
5853 # the first time to test to see if nm (rather than its options) has
5854 # an explicit path, the second time to yield a file which can be
5855 # nm'ed itself.
5856 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5857 case "$tmp_nm_path" in
5858 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5859 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5860 esac
5861 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5862 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5863 # Check to see if the nm accepts a BSD-compat flag.
5864 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5865 # nm: unknown option "B" ignored
5866 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5867 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5868 break
5869 ;;
5870 *)
5871 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5872 *$tmp_nm*)
5873 lt_cv_path_NM="$tmp_nm -p"
5874 break
5875 ;;
5876 *)
5877 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5878 continue # so that we can try to find one that supports BSD flags
5879 ;;
5880 esac
5881 ;;
5882 esac
5883 fi
5884 done
5885 IFS="$lt_save_ifs"
5886 done
5887 : ${lt_cv_path_NM=no}
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5890 $as_echo "$lt_cv_path_NM" >&6; }
5891 if test "$lt_cv_path_NM" != "no"; then
5892 NM="$lt_cv_path_NM"
5893 else
5894 # Didn't find any BSD compatible name lister, look for dumpbin.
5895 if test -n "$DUMPBIN"; then :
5896 # Let the user override the test.
5897 else
5898 if test -n "$ac_tool_prefix"; then
5899 for ac_prog in dumpbin "link -dump"
5900 do
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_DUMPBIN+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test -n "$DUMPBIN"; then
5909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 DUMPBIN=$ac_cv_prog_DUMPBIN
5929 if test -n "$DUMPBIN"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5931 $as_echo "$DUMPBIN" >&6; }
5932 else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 test -n "$DUMPBIN" && break
5939 done
5940 fi
5941 if test -z "$DUMPBIN"; then
5942 ac_ct_DUMPBIN=$DUMPBIN
5943 for ac_prog in dumpbin "link -dump"
5944 do
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test -n "$ac_ct_DUMPBIN"; then
5953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5973 if test -n "$ac_ct_DUMPBIN"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5975 $as_echo "$ac_ct_DUMPBIN" >&6; }
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982 test -n "$ac_ct_DUMPBIN" && break
5983 done
5984
5985 if test "x$ac_ct_DUMPBIN" = x; then
5986 DUMPBIN=":"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994 DUMPBIN=$ac_ct_DUMPBIN
5995 fi
5996 fi
5997
5998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5999 *COFF*)
6000 DUMPBIN="$DUMPBIN -symbols"
6001 ;;
6002 *)
6003 DUMPBIN=:
6004 ;;
6005 esac
6006 fi
6007
6008 if test "$DUMPBIN" != ":"; then
6009 NM="$DUMPBIN"
6010 fi
6011 fi
6012 test -z "$NM" && NM=nm
6013
6014
6015
6016
6017
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6021 if ${lt_cv_nm_interface+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 lt_cv_nm_interface="BSD nm"
6025 echo "int some_variable = 0;" > conftest.$ac_ext
6026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6027 (eval "$ac_compile" 2>conftest.err)
6028 cat conftest.err >&5
6029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6031 cat conftest.err >&5
6032 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6033 cat conftest.out >&5
6034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6035 lt_cv_nm_interface="MS dumpbin"
6036 fi
6037 rm -f conftest*
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6040 $as_echo "$lt_cv_nm_interface" >&6; }
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6043 $as_echo_n "checking whether ln -s works... " >&6; }
6044 LN_S=$as_ln_s
6045 if test "$LN_S" = "ln -s"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6047 $as_echo "yes" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6050 $as_echo "no, using $LN_S" >&6; }
6051 fi
6052
6053 # find the maximum length of command line arguments
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6056 if ${lt_cv_sys_max_cmd_len+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 i=0
6060 teststring="ABCD"
6061
6062 case $build_os in
6063 msdosdjgpp*)
6064 # On DJGPP, this test can blow up pretty badly due to problems in libc
6065 # (any single argument exceeding 2000 bytes causes a buffer overrun
6066 # during glob expansion). Even if it were fixed, the result of this
6067 # check would be larger than it should be.
6068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6069 ;;
6070
6071 gnu*)
6072 # Under GNU Hurd, this test is not required because there is
6073 # no limit to the length of command line arguments.
6074 # Libtool will interpret -1 as no limit whatsoever
6075 lt_cv_sys_max_cmd_len=-1;
6076 ;;
6077
6078 cygwin* | mingw* | cegcc*)
6079 # On Win9x/ME, this test blows up -- it succeeds, but takes
6080 # about 5 minutes as the teststring grows exponentially.
6081 # Worse, since 9x/ME are not pre-emptively multitasking,
6082 # you end up with a "frozen" computer, even though with patience
6083 # the test eventually succeeds (with a max line length of 256k).
6084 # Instead, let's just punt: use the minimum linelength reported by
6085 # all of the supported platforms: 8192 (on NT/2K/XP).
6086 lt_cv_sys_max_cmd_len=8192;
6087 ;;
6088
6089 mint*)
6090 # On MiNT this can take a long time and run out of memory.
6091 lt_cv_sys_max_cmd_len=8192;
6092 ;;
6093
6094 amigaos*)
6095 # On AmigaOS with pdksh, this test takes hours, literally.
6096 # So we just punt and use a minimum line length of 8192.
6097 lt_cv_sys_max_cmd_len=8192;
6098 ;;
6099
6100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6101 # This has been around since 386BSD, at least. Likely further.
6102 if test -x /sbin/sysctl; then
6103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6104 elif test -x /usr/sbin/sysctl; then
6105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6106 else
6107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6108 fi
6109 # And add a safety zone
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112 ;;
6113
6114 interix*)
6115 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6116 lt_cv_sys_max_cmd_len=196608
6117 ;;
6118
6119 osf*)
6120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6122 # nice to cause kernel panics so lets avoid the loop below.
6123 # First set a reasonable default.
6124 lt_cv_sys_max_cmd_len=16384
6125 #
6126 if test -x /sbin/sysconfig; then
6127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6128 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6129 esac
6130 fi
6131 ;;
6132 sco3.2v5*)
6133 lt_cv_sys_max_cmd_len=102400
6134 ;;
6135 sysv5* | sco5v6* | sysv4.2uw2*)
6136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6137 if test -n "$kargmax"; then
6138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6139 else
6140 lt_cv_sys_max_cmd_len=32768
6141 fi
6142 ;;
6143 *)
6144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6145 if test -n "$lt_cv_sys_max_cmd_len"; then
6146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6148 else
6149 # Make teststring a little bigger before we do anything with it.
6150 # a 1K string should be a reasonable start.
6151 for i in 1 2 3 4 5 6 7 8 ; do
6152 teststring=$teststring$teststring
6153 done
6154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6155 # If test is not a shell built-in, we'll probably end up computing a
6156 # maximum length that is only half of the actual maximum length, but
6157 # we can't tell.
6158 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6159 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6160 test $i != 17 # 1/2 MB should be enough
6161 do
6162 i=`expr $i + 1`
6163 teststring=$teststring$teststring
6164 done
6165 # Only check the string length outside the loop.
6166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6167 teststring=
6168 # Add a significant safety factor because C++ compilers can tack on
6169 # massive amounts of additional arguments before passing them to the
6170 # linker. It appears as though 1/2 is a usable value.
6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6172 fi
6173 ;;
6174 esac
6175
6176 fi
6177
6178 if test -n $lt_cv_sys_max_cmd_len ; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6180 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6183 $as_echo "none" >&6; }
6184 fi
6185 max_cmd_len=$lt_cv_sys_max_cmd_len
6186
6187
6188
6189
6190
6191
6192 : ${CP="cp -f"}
6193 : ${MV="mv -f"}
6194 : ${RM="rm -f"}
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6197 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6198 # Try some XSI features
6199 xsi_shell=no
6200 ( _lt_dummy="a/b/c"
6201 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6202 = c,a/b,, \
6203 && eval 'test $(( 1 + 1 )) -eq 2 \
6204 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6205 && xsi_shell=yes
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6207 $as_echo "$xsi_shell" >&6; }
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6211 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6212 lt_shell_append=no
6213 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6214 >/dev/null 2>&1 \
6215 && lt_shell_append=yes
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6217 $as_echo "$lt_shell_append" >&6; }
6218
6219
6220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6221 lt_unset=unset
6222 else
6223 lt_unset=false
6224 fi
6225
6226
6227
6228
6229
6230 # test EBCDIC or ASCII
6231 case `echo X|tr X '\101'` in
6232 A) # ASCII based system
6233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6234 lt_SP2NL='tr \040 \012'
6235 lt_NL2SP='tr \015\012 \040\040'
6236 ;;
6237 *) # EBCDIC based system
6238 lt_SP2NL='tr \100 \n'
6239 lt_NL2SP='tr \r\n \100\100'
6240 ;;
6241 esac
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6253 if ${lt_cv_ld_reload_flag+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 lt_cv_ld_reload_flag='-r'
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6260 reload_flag=$lt_cv_ld_reload_flag
6261 case $reload_flag in
6262 "" | " "*) ;;
6263 *) reload_flag=" $reload_flag" ;;
6264 esac
6265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6266 case $host_os in
6267 darwin*)
6268 if test "$GCC" = yes; then
6269 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6270 else
6271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6272 fi
6273 ;;
6274 esac
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_OBJDUMP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$OBJDUMP"; then
6293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 OBJDUMP=$ac_cv_prog_OBJDUMP
6313 if test -n "$OBJDUMP"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6315 $as_echo "$OBJDUMP" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_OBJDUMP"; then
6324 ac_ct_OBJDUMP=$OBJDUMP
6325 # Extract the first word of "objdump", so it can be a program name with args.
6326 set dummy objdump; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_OBJDUMP"; then
6333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6353 if test -n "$ac_ct_OBJDUMP"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6355 $as_echo "$ac_ct_OBJDUMP" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361 if test "x$ac_ct_OBJDUMP" = x; then
6362 OBJDUMP="false"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 OBJDUMP=$ac_ct_OBJDUMP
6371 fi
6372 else
6373 OBJDUMP="$ac_cv_prog_OBJDUMP"
6374 fi
6375
6376 test -z "$OBJDUMP" && OBJDUMP=objdump
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6387 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6388 if ${lt_cv_deplibs_check_method+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 lt_cv_file_magic_cmd='$MAGIC_CMD'
6392 lt_cv_file_magic_test_file=
6393 lt_cv_deplibs_check_method='unknown'
6394 # Need to set the preceding variable on all platforms that support
6395 # interlibrary dependencies.
6396 # 'none' -- dependencies not supported.
6397 # `unknown' -- same as none, but documents that we really don't know.
6398 # 'pass_all' -- all dependencies passed with no checks.
6399 # 'test_compile' -- check by making test program.
6400 # 'file_magic [[regex]]' -- check by looking for files in library path
6401 # which responds to the $file_magic_cmd with a given extended regex.
6402 # If you have `file' or equivalent on your system and you're not sure
6403 # whether `pass_all' will *always* work, you probably want this one.
6404
6405 case $host_os in
6406 aix[4-9]*)
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409
6410 beos*)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413
6414 bsdi[45]*)
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6416 lt_cv_file_magic_cmd='/usr/bin/file -L'
6417 lt_cv_file_magic_test_file=/shlib/libc.so
6418 ;;
6419
6420 cygwin*)
6421 # func_win32_libid is a shell function defined in ltmain.sh
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6424 ;;
6425
6426 mingw* | pw32*)
6427 # Base MSYS/MinGW do not provide the 'file' command needed by
6428 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6429 # unless we find 'file', for example because we are cross-compiling.
6430 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6431 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6433 lt_cv_file_magic_cmd='func_win32_libid'
6434 else
6435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6436 lt_cv_file_magic_cmd='$OBJDUMP -f'
6437 fi
6438 ;;
6439
6440 cegcc*)
6441 # use the weaker test based on 'objdump'. See mingw*.
6442 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6443 lt_cv_file_magic_cmd='$OBJDUMP -f'
6444 ;;
6445
6446 darwin* | rhapsody*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449
6450 freebsd* | dragonfly*)
6451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6452 case $host_cpu in
6453 i*86 )
6454 # Not sure whether the presence of OpenBSD here was a mistake.
6455 # Let's accept both of them until this is cleared up.
6456 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6457 lt_cv_file_magic_cmd=/usr/bin/file
6458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6459 ;;
6460 esac
6461 else
6462 lt_cv_deplibs_check_method=pass_all
6463 fi
6464 ;;
6465
6466 gnu*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 haiku*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474 hpux10.20* | hpux11*)
6475 lt_cv_file_magic_cmd=/usr/bin/file
6476 case $host_cpu in
6477 ia64*)
6478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6480 ;;
6481 hppa*64*)
6482 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]'
6483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6484 ;;
6485 *)
6486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6488 ;;
6489 esac
6490 ;;
6491
6492 interix[3-9]*)
6493 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6495 ;;
6496
6497 irix5* | irix6* | nonstopux*)
6498 case $LD in
6499 *-32|*"-32 ") libmagic=32-bit;;
6500 *-n32|*"-n32 ") libmagic=N32;;
6501 *-64|*"-64 ") libmagic=64-bit;;
6502 *) libmagic=never-match;;
6503 esac
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507 # This must be Linux ELF.
6508 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 netbsd*)
6513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6515 else
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6517 fi
6518 ;;
6519
6520 newos6*)
6521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6522 lt_cv_file_magic_cmd=/usr/bin/file
6523 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6524 ;;
6525
6526 *nto* | *qnx*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 openbsd*)
6531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6533 else
6534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6535 fi
6536 ;;
6537
6538 osf3* | osf4* | osf5*)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541
6542 rdos*)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545
6546 solaris*)
6547 lt_cv_deplibs_check_method=pass_all
6548 ;;
6549
6550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553
6554 sysv4 | sysv4.3*)
6555 case $host_vendor in
6556 motorola)
6557 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]'
6558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6559 ;;
6560 ncr)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563 sequent)
6564 lt_cv_file_magic_cmd='/bin/file'
6565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6566 ;;
6567 sni)
6568 lt_cv_file_magic_cmd='/bin/file'
6569 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6570 lt_cv_file_magic_test_file=/lib/libc.so
6571 ;;
6572 siemens)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575 pc)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578 esac
6579 ;;
6580
6581 tpf*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584 vxworks*)
6585 # Assume VxWorks cross toolchains are built on Linux, possibly
6586 # as canadian for Windows hosts.
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 esac
6590
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6593 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6594 file_magic_cmd=$lt_cv_file_magic_cmd
6595 deplibs_check_method=$lt_cv_deplibs_check_method
6596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 plugin_option=
6610 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6611 for plugin in $plugin_names; do
6612 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6613 if test x$plugin_so = x$plugin; then
6614 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6615 fi
6616 if test x$plugin_so != x$plugin; then
6617 plugin_option="--plugin $plugin_so"
6618 break
6619 fi
6620 done
6621
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ar; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_AR+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test -n "$AR"; then
6631 ac_cv_prog_AR="$AR" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_AR="${ac_tool_prefix}ar"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 AR=$ac_cv_prog_AR
6651 if test -n "$AR"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6653 $as_echo "$AR" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_AR"; then
6662 ac_ct_AR=$AR
6663 # Extract the first word of "ar", so it can be a program name with args.
6664 set dummy ar; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ac_ct_AR"; then
6671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_AR="ar"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6691 if test -n "$ac_ct_AR"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6693 $as_echo "$ac_ct_AR" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699 if test "x$ac_ct_AR" = x; then
6700 AR="false"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708 AR=$ac_ct_AR
6709 fi
6710 else
6711 AR="$ac_cv_prog_AR"
6712 fi
6713
6714 test -z "$AR" && AR=ar
6715 if test -n "$plugin_option"; then
6716 if $AR --help 2>&1 | grep -q "\--plugin"; then
6717 touch conftest.c
6718 $AR $plugin_option rc conftest.a conftest.c
6719 if test "$?" != 0; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6721 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6722 else
6723 AR="$AR $plugin_option"
6724 fi
6725 rm -f conftest.*
6726 fi
6727 fi
6728 test -z "$AR_FLAGS" && AR_FLAGS=cru
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6742 set dummy ${ac_tool_prefix}strip; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_prog_STRIP+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$STRIP"; then
6749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 STRIP=$ac_cv_prog_STRIP
6769 if test -n "$STRIP"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6771 $as_echo "$STRIP" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777
6778 fi
6779 if test -z "$ac_cv_prog_STRIP"; then
6780 ac_ct_STRIP=$STRIP
6781 # Extract the first word of "strip", so it can be a program name with args.
6782 set dummy strip; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$ac_ct_STRIP"; then
6789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_ac_ct_STRIP="strip"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6809 if test -n "$ac_ct_STRIP"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6811 $as_echo "$ac_ct_STRIP" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817 if test "x$ac_ct_STRIP" = x; then
6818 STRIP=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 STRIP=$ac_ct_STRIP
6827 fi
6828 else
6829 STRIP="$ac_cv_prog_STRIP"
6830 fi
6831
6832 test -z "$STRIP" && STRIP=:
6833
6834
6835
6836
6837
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_RANLIB+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$RANLIB"; then
6848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 RANLIB=$ac_cv_prog_RANLIB
6868 if test -n "$RANLIB"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6870 $as_echo "$RANLIB" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 fi
6878 if test -z "$ac_cv_prog_RANLIB"; then
6879 ac_ct_RANLIB=$RANLIB
6880 # Extract the first word of "ranlib", so it can be a program name with args.
6881 set dummy ranlib; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_RANLIB"; then
6888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_RANLIB="ranlib"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6908 if test -n "$ac_ct_RANLIB"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6910 $as_echo "$ac_ct_RANLIB" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916 if test "x$ac_ct_RANLIB" = x; then
6917 RANLIB=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 RANLIB=$ac_ct_RANLIB
6926 fi
6927 else
6928 RANLIB="$ac_cv_prog_RANLIB"
6929 fi
6930
6931 test -z "$RANLIB" && RANLIB=:
6932 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6933 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6934 RANLIB="$RANLIB $plugin_option"
6935 fi
6936 fi
6937
6938
6939
6940
6941
6942
6943 # Determine commands to create old-style static archives.
6944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6945 old_postinstall_cmds='chmod 644 $oldlib'
6946 old_postuninstall_cmds=
6947
6948 if test -n "$RANLIB"; then
6949 case $host_os in
6950 openbsd*)
6951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6952 ;;
6953 *)
6954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6955 ;;
6956 esac
6957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6958 fi
6959
6960 case $host_os in
6961 darwin*)
6962 lock_old_archive_extraction=yes ;;
6963 *)
6964 lock_old_archive_extraction=no ;;
6965 esac
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 # If no C compiler was specified, use CC.
7006 LTCC=${LTCC-"$CC"}
7007
7008 # If no C compiler flags were specified, use CFLAGS.
7009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7010
7011 # Allow CC to be a program name with arguments.
7012 compiler=$CC
7013
7014
7015 # Check for command to grab the raw symbol name followed by C symbol from nm.
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7017 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7018 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021
7022 # These are sane defaults that work on at least a few old systems.
7023 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7024
7025 # Character class describing NM global symbol codes.
7026 symcode='[BCDEGRST]'
7027
7028 # Regexp to match symbols that can be accessed directly from C.
7029 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7030
7031 # Define system-specific variables.
7032 case $host_os in
7033 aix*)
7034 symcode='[BCDT]'
7035 ;;
7036 cygwin* | mingw* | pw32* | cegcc*)
7037 symcode='[ABCDGISTW]'
7038 ;;
7039 hpux*)
7040 if test "$host_cpu" = ia64; then
7041 symcode='[ABCDEGRST]'
7042 fi
7043 ;;
7044 irix* | nonstopux*)
7045 symcode='[BCDEGRST]'
7046 ;;
7047 osf*)
7048 symcode='[BCDEGQRST]'
7049 ;;
7050 solaris*)
7051 symcode='[BCDRT]'
7052 ;;
7053 sco3.2v5*)
7054 symcode='[DT]'
7055 ;;
7056 sysv4.2uw2*)
7057 symcode='[DT]'
7058 ;;
7059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7060 symcode='[ABDT]'
7061 ;;
7062 sysv4)
7063 symcode='[DFNSTU]'
7064 ;;
7065 esac
7066
7067 # If we're using GNU nm, then use its standard symbol codes.
7068 case `$NM -V 2>&1` in
7069 *GNU* | *'with BFD'*)
7070 symcode='[ABCDGIRSTW]' ;;
7071 esac
7072
7073 # Transform an extracted symbol line into a proper C declaration.
7074 # Some systems (esp. on ia64) link data and code symbols differently,
7075 # so use this general approach.
7076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7077
7078 # Transform an extracted symbol line into symbol name and symbol address
7079 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7080 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'"
7081
7082 # Handle CRLF in mingw tool chain
7083 opt_cr=
7084 case $build_os in
7085 mingw*)
7086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7087 ;;
7088 esac
7089
7090 # Try without a prefix underscore, then with it.
7091 for ac_symprfx in "" "_"; do
7092
7093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7094 symxfrm="\\1 $ac_symprfx\\2 \\2"
7095
7096 # Write the raw and C identifiers.
7097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7098 # Fake it for dumpbin and say T for any non-static function
7099 # and D for any global variable.
7100 # Also find C++ and __fastcall symbols from MSVC++,
7101 # which start with @ or ?.
7102 lt_cv_sys_global_symbol_pipe="$AWK '"\
7103 " {last_section=section; section=\$ 3};"\
7104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7105 " \$ 0!~/External *\|/{next};"\
7106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7107 " {if(hide[section]) next};"\
7108 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7109 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7110 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7111 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7112 " ' prfx=^$ac_symprfx"
7113 else
7114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7115 fi
7116
7117 # Check to see that the pipe works correctly.
7118 pipe_works=no
7119
7120 rm -f conftest*
7121 cat > conftest.$ac_ext <<_LT_EOF
7122 #ifdef __cplusplus
7123 extern "C" {
7124 #endif
7125 char nm_test_var;
7126 void nm_test_func(void);
7127 void nm_test_func(void){}
7128 #ifdef __cplusplus
7129 }
7130 #endif
7131 int main(){nm_test_var='a';nm_test_func();return(0);}
7132 _LT_EOF
7133
7134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7135 (eval $ac_compile) 2>&5
7136 ac_status=$?
7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; then
7139 # Now try to grab the symbols.
7140 nlist=conftest.nm
7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7142 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; } && test -s "$nlist"; then
7146 # Try sorting and uniquifying the output.
7147 if sort "$nlist" | uniq > "$nlist"T; then
7148 mv -f "$nlist"T "$nlist"
7149 else
7150 rm -f "$nlist"T
7151 fi
7152
7153 # Make sure that we snagged all the symbols we need.
7154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7156 cat <<_LT_EOF > conftest.$ac_ext
7157 #ifdef __cplusplus
7158 extern "C" {
7159 #endif
7160
7161 _LT_EOF
7162 # Now generate the symbol file.
7163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7164
7165 cat <<_LT_EOF >> conftest.$ac_ext
7166
7167 /* The mapping between symbol names and symbols. */
7168 const struct {
7169 const char *name;
7170 void *address;
7171 }
7172 lt__PROGRAM__LTX_preloaded_symbols[] =
7173 {
7174 { "@PROGRAM@", (void *) 0 },
7175 _LT_EOF
7176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7177 cat <<\_LT_EOF >> conftest.$ac_ext
7178 {0, (void *) 0}
7179 };
7180
7181 /* This works around a problem in FreeBSD linker */
7182 #ifdef FREEBSD_WORKAROUND
7183 static const void *lt_preloaded_setup() {
7184 return lt__PROGRAM__LTX_preloaded_symbols;
7185 }
7186 #endif
7187
7188 #ifdef __cplusplus
7189 }
7190 #endif
7191 _LT_EOF
7192 # Now try linking the two files.
7193 mv conftest.$ac_objext conftstm.$ac_objext
7194 lt_save_LIBS="$LIBS"
7195 lt_save_CFLAGS="$CFLAGS"
7196 LIBS="conftstm.$ac_objext"
7197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7199 (eval $ac_link) 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7203 pipe_works=yes
7204 fi
7205 LIBS="$lt_save_LIBS"
7206 CFLAGS="$lt_save_CFLAGS"
7207 else
7208 echo "cannot find nm_test_func in $nlist" >&5
7209 fi
7210 else
7211 echo "cannot find nm_test_var in $nlist" >&5
7212 fi
7213 else
7214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7215 fi
7216 else
7217 echo "$progname: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 fi
7220 rm -rf conftest* conftst*
7221
7222 # Do not use the global_symbol_pipe unless it works.
7223 if test "$pipe_works" = yes; then
7224 break
7225 else
7226 lt_cv_sys_global_symbol_pipe=
7227 fi
7228 done
7229
7230 fi
7231
7232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7233 lt_cv_sys_global_symbol_to_cdecl=
7234 fi
7235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7237 $as_echo "failed" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7240 $as_echo "ok" >&6; }
7241 fi
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264 # Check whether --enable-libtool-lock was given.
7265 if test "${enable_libtool_lock+set}" = set; then :
7266 enableval=$enable_libtool_lock;
7267 fi
7268
7269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7270
7271 # Some flags need to be propagated to the compiler or linker for good
7272 # libtool support.
7273 case $host in
7274 ia64-*-hpux*)
7275 # Find out which ABI we are using.
7276 echo 'int i;' > conftest.$ac_ext
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 case `/usr/bin/file conftest.$ac_objext` in
7283 *ELF-32*)
7284 HPUX_IA64_MODE="32"
7285 ;;
7286 *ELF-64*)
7287 HPUX_IA64_MODE="64"
7288 ;;
7289 esac
7290 fi
7291 rm -rf conftest*
7292 ;;
7293 *-*-irix6*)
7294 # Find out which ABI we are using.
7295 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7298 ac_status=$?
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 if test "$lt_cv_prog_gnu_ld" = yes; then
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *32-bit*)
7304 LD="${LD-ld} -melf32bsmip"
7305 ;;
7306 *N32*)
7307 LD="${LD-ld} -melf32bmipn32"
7308 ;;
7309 *64-bit*)
7310 LD="${LD-ld} -melf64bmip"
7311 ;;
7312 esac
7313 else
7314 case `/usr/bin/file conftest.$ac_objext` in
7315 *32-bit*)
7316 LD="${LD-ld} -32"
7317 ;;
7318 *N32*)
7319 LD="${LD-ld} -n32"
7320 ;;
7321 *64-bit*)
7322 LD="${LD-ld} -64"
7323 ;;
7324 esac
7325 fi
7326 fi
7327 rm -rf conftest*
7328 ;;
7329
7330 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7331 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.o` in
7340 *32-bit*)
7341 case $host in
7342 x86_64-*kfreebsd*-gnu)
7343 LD="${LD-ld} -m elf_i386_fbsd"
7344 ;;
7345 x86_64-*linux*)
7346 case `/usr/bin/file conftest.o` in
7347 *x86-64*)
7348 LD="${LD-ld} -m elf32_x86_64"
7349 ;;
7350 *)
7351 LD="${LD-ld} -m elf_i386"
7352 ;;
7353 esac
7354 ;;
7355 powerpc64le-*linux*)
7356 LD="${LD-ld} -m elf32lppclinux"
7357 ;;
7358 powerpc64-*linux*)
7359 LD="${LD-ld} -m elf32ppclinux"
7360 ;;
7361 s390x-*linux*)
7362 LD="${LD-ld} -m elf_s390"
7363 ;;
7364 sparc64-*linux*)
7365 LD="${LD-ld} -m elf32_sparc"
7366 ;;
7367 esac
7368 ;;
7369 *64-bit*)
7370 case $host in
7371 x86_64-*kfreebsd*-gnu)
7372 LD="${LD-ld} -m elf_x86_64_fbsd"
7373 ;;
7374 x86_64-*linux*)
7375 LD="${LD-ld} -m elf_x86_64"
7376 ;;
7377 powerpcle-*linux*)
7378 LD="${LD-ld} -m elf64lppc"
7379 ;;
7380 powerpc-*linux*)
7381 LD="${LD-ld} -m elf64ppc"
7382 ;;
7383 s390*-*linux*|s390*-*tpf*)
7384 LD="${LD-ld} -m elf64_s390"
7385 ;;
7386 sparc*-*linux*)
7387 LD="${LD-ld} -m elf64_sparc"
7388 ;;
7389 esac
7390 ;;
7391 esac
7392 fi
7393 rm -rf conftest*
7394 ;;
7395
7396 *-*-sco3.2v5*)
7397 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7398 SAVE_CFLAGS="$CFLAGS"
7399 CFLAGS="$CFLAGS -belf"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7401 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7402 if ${lt_cv_cc_needs_belf+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 ac_ext=c
7406 ac_cpp='$CPP $CPPFLAGS'
7407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 lt_cv_cc_needs_belf=yes
7424 else
7425 lt_cv_cc_needs_belf=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7429 ac_ext=c
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7437 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7440 CFLAGS="$SAVE_CFLAGS"
7441 fi
7442 ;;
7443 sparc*-*solaris*)
7444 # Find out which ABI we are using.
7445 echo 'int i;' > conftest.$ac_ext
7446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7447 (eval $ac_compile) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; }; then
7451 case `/usr/bin/file conftest.o` in
7452 *64-bit*)
7453 case $lt_cv_prog_gnu_ld in
7454 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7455 *)
7456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7457 LD="${LD-ld} -64"
7458 fi
7459 ;;
7460 esac
7461 ;;
7462 esac
7463 fi
7464 rm -rf conftest*
7465 ;;
7466 esac
7467
7468 need_locks="$enable_libtool_lock"
7469
7470
7471 case $host_os in
7472 rhapsody* | darwin*)
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 if test -n "$DSYMUTIL"; then
7482 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7502 if test -n "$DSYMUTIL"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7504 $as_echo "$DSYMUTIL" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_DSYMUTIL"; then
7513 ac_ct_DSYMUTIL=$DSYMUTIL
7514 # Extract the first word of "dsymutil", so it can be a program name with args.
7515 set dummy dsymutil; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$ac_ct_DSYMUTIL"; then
7522 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7542 if test -n "$ac_ct_DSYMUTIL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7544 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550 if test "x$ac_ct_DSYMUTIL" = x; then
7551 DSYMUTIL=":"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559 DSYMUTIL=$ac_ct_DSYMUTIL
7560 fi
7561 else
7562 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7563 fi
7564
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_NMEDIT+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 if test -n "$NMEDIT"; then
7574 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 NMEDIT=$ac_cv_prog_NMEDIT
7594 if test -n "$NMEDIT"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7596 $as_echo "$NMEDIT" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603 fi
7604 if test -z "$ac_cv_prog_NMEDIT"; then
7605 ac_ct_NMEDIT=$NMEDIT
7606 # Extract the first word of "nmedit", so it can be a program name with args.
7607 set dummy nmedit; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$ac_ct_NMEDIT"; then
7614 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7634 if test -n "$ac_ct_NMEDIT"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7636 $as_echo "$ac_ct_NMEDIT" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642 if test "x$ac_ct_NMEDIT" = x; then
7643 NMEDIT=":"
7644 else
7645 case $cross_compiling:$ac_tool_warned in
7646 yes:)
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7650 esac
7651 NMEDIT=$ac_ct_NMEDIT
7652 fi
7653 else
7654 NMEDIT="$ac_cv_prog_NMEDIT"
7655 fi
7656
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_LIPO+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$LIPO"; then
7666 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 LIPO=$ac_cv_prog_LIPO
7686 if test -n "$LIPO"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7688 $as_echo "$LIPO" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_LIPO"; then
7697 ac_ct_LIPO=$LIPO
7698 # Extract the first word of "lipo", so it can be a program name with args.
7699 set dummy lipo; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$ac_ct_LIPO"; then
7706 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_ac_ct_LIPO="lipo"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7726 if test -n "$ac_ct_LIPO"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7728 $as_echo "$ac_ct_LIPO" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734 if test "x$ac_ct_LIPO" = x; then
7735 LIPO=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 LIPO=$ac_ct_LIPO
7744 fi
7745 else
7746 LIPO="$ac_cv_prog_LIPO"
7747 fi
7748
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}otool; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_OTOOL+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$OTOOL"; then
7758 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 OTOOL=$ac_cv_prog_OTOOL
7778 if test -n "$OTOOL"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7780 $as_echo "$OTOOL" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_OTOOL"; then
7789 ac_ct_OTOOL=$OTOOL
7790 # Extract the first word of "otool", so it can be a program name with args.
7791 set dummy otool; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$ac_ct_OTOOL"; then
7798 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_ac_ct_OTOOL="otool"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7818 if test -n "$ac_ct_OTOOL"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7820 $as_echo "$ac_ct_OTOOL" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826 if test "x$ac_ct_OTOOL" = x; then
7827 OTOOL=":"
7828 else
7829 case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835 OTOOL=$ac_ct_OTOOL
7836 fi
7837 else
7838 OTOOL="$ac_cv_prog_OTOOL"
7839 fi
7840
7841 if test -n "$ac_tool_prefix"; then
7842 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if ${ac_cv_prog_OTOOL64+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$OTOOL64"; then
7850 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 OTOOL64=$ac_cv_prog_OTOOL64
7870 if test -n "$OTOOL64"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7872 $as_echo "$OTOOL64" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 fi
7880 if test -z "$ac_cv_prog_OTOOL64"; then
7881 ac_ct_OTOOL64=$OTOOL64
7882 # Extract the first word of "otool64", so it can be a program name with args.
7883 set dummy otool64; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$ac_ct_OTOOL64"; then
7890 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_ac_ct_OTOOL64="otool64"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7910 if test -n "$ac_ct_OTOOL64"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7912 $as_echo "$ac_ct_OTOOL64" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918 if test "x$ac_ct_OTOOL64" = x; then
7919 OTOOL64=":"
7920 else
7921 case $cross_compiling:$ac_tool_warned in
7922 yes:)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned=yes ;;
7926 esac
7927 OTOOL64=$ac_ct_OTOOL64
7928 fi
7929 else
7930 OTOOL64="$ac_cv_prog_OTOOL64"
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7960 $as_echo_n "checking for -single_module linker flag... " >&6; }
7961 if ${lt_cv_apple_cc_single_mod+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 lt_cv_apple_cc_single_mod=no
7965 if test -z "${LT_MULTI_MODULE}"; then
7966 # By default we will add the -single_module flag. You can override
7967 # by either setting the environment variable LT_MULTI_MODULE
7968 # non-empty at configure time, or by adding -multi_module to the
7969 # link flags.
7970 rm -rf libconftest.dylib*
7971 echo "int foo(void){return 1;}" > conftest.c
7972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7973 -dynamiclib -Wl,-single_module conftest.c" >&5
7974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7976 _lt_result=$?
7977 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7978 lt_cv_apple_cc_single_mod=yes
7979 else
7980 cat conftest.err >&5
7981 fi
7982 rm -rf libconftest.dylib*
7983 rm -f conftest.*
7984 fi
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7990 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 lt_cv_ld_exported_symbols_list=no
7994 save_LDFLAGS=$LDFLAGS
7995 echo "_main" > conftest.sym
7996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999
8000 int
8001 main ()
8002 {
8003
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 if ac_fn_c_try_link "$LINENO"; then :
8009 lt_cv_ld_exported_symbols_list=yes
8010 else
8011 lt_cv_ld_exported_symbols_list=no
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8015 LDFLAGS="$save_LDFLAGS"
8016
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8021 $as_echo_n "checking for -force_load linker flag... " >&6; }
8022 if ${lt_cv_ld_force_load+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_ld_force_load=no
8026 cat > conftest.c << _LT_EOF
8027 int forced_loaded() { return 2;}
8028 _LT_EOF
8029 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8030 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8031 echo "$AR cru libconftest.a conftest.o" >&5
8032 $AR cru libconftest.a conftest.o 2>&5
8033 cat > conftest.c << _LT_EOF
8034 int main() { return 0;}
8035 _LT_EOF
8036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8038 _lt_result=$?
8039 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8040 lt_cv_ld_force_load=yes
8041 else
8042 cat conftest.err >&5
8043 fi
8044 rm -f conftest.err libconftest.a conftest conftest.c
8045 rm -rf conftest.dSYM
8046
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8049 $as_echo "$lt_cv_ld_force_load" >&6; }
8050 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8051 # build without first building modern cctools / linker.
8052 case $host_cpu-$host_os in
8053 *-rhapsody* | *-darwin1.[012])
8054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8055 *-darwin1.*)
8056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8057 *-darwin*)
8058 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8059 # deployment target is forced to an earlier version.
8060 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8061 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8062 ;;
8063 10.[012][,.]*)
8064 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8065 ;;
8066 *)
8067 ;;
8068 esac
8069 ;;
8070 esac
8071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8072 _lt_dar_single_mod='$single_module'
8073 fi
8074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8076 else
8077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8078 fi
8079 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8080 _lt_dsymutil='~$DSYMUTIL $lib || :'
8081 else
8082 _lt_dsymutil=
8083 fi
8084 ;;
8085 esac
8086
8087 for ac_header in dlfcn.h
8088 do :
8089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8090 "
8091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_DLFCN_H 1
8094 _ACEOF
8095
8096 fi
8097
8098 done
8099
8100
8101
8102
8103
8104 # Set options
8105
8106
8107
8108 enable_dlopen=no
8109
8110
8111 enable_win32_dll=no
8112
8113
8114 # Check whether --enable-shared was given.
8115 if test "${enable_shared+set}" = set; then :
8116 enableval=$enable_shared; p=${PACKAGE-default}
8117 case $enableval in
8118 yes) enable_shared=yes ;;
8119 no) enable_shared=no ;;
8120 *)
8121 enable_shared=no
8122 # Look at the argument we got. We use all the common list separators.
8123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8124 for pkg in $enableval; do
8125 IFS="$lt_save_ifs"
8126 if test "X$pkg" = "X$p"; then
8127 enable_shared=yes
8128 fi
8129 done
8130 IFS="$lt_save_ifs"
8131 ;;
8132 esac
8133 else
8134 enable_shared=yes
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145 # Check whether --enable-static was given.
8146 if test "${enable_static+set}" = set; then :
8147 enableval=$enable_static; p=${PACKAGE-default}
8148 case $enableval in
8149 yes) enable_static=yes ;;
8150 no) enable_static=no ;;
8151 *)
8152 enable_static=no
8153 # Look at the argument we got. We use all the common list separators.
8154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8155 for pkg in $enableval; do
8156 IFS="$lt_save_ifs"
8157 if test "X$pkg" = "X$p"; then
8158 enable_static=yes
8159 fi
8160 done
8161 IFS="$lt_save_ifs"
8162 ;;
8163 esac
8164 else
8165 enable_static=yes
8166 fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 # Check whether --with-pic was given.
8178 if test "${with_pic+set}" = set; then :
8179 withval=$with_pic; pic_mode="$withval"
8180 else
8181 pic_mode=default
8182 fi
8183
8184
8185 test -z "$pic_mode" && pic_mode=default
8186
8187
8188
8189
8190
8191
8192
8193 # Check whether --enable-fast-install was given.
8194 if test "${enable_fast_install+set}" = set; then :
8195 enableval=$enable_fast_install; p=${PACKAGE-default}
8196 case $enableval in
8197 yes) enable_fast_install=yes ;;
8198 no) enable_fast_install=no ;;
8199 *)
8200 enable_fast_install=no
8201 # Look at the argument we got. We use all the common list separators.
8202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 for pkg in $enableval; do
8204 IFS="$lt_save_ifs"
8205 if test "X$pkg" = "X$p"; then
8206 enable_fast_install=yes
8207 fi
8208 done
8209 IFS="$lt_save_ifs"
8210 ;;
8211 esac
8212 else
8213 enable_fast_install=yes
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 # This can be used to rebuild libtool when needed
8227 LIBTOOL_DEPS="$ltmain"
8228
8229 # Always use our own libtool.
8230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 test -z "$LN_S" && LN_S="ln -s"
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 if test -n "${ZSH_VERSION+set}" ; then
8273 setopt NO_GLOB_SUBST
8274 fi
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8277 $as_echo_n "checking for objdir... " >&6; }
8278 if ${lt_cv_objdir+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 rm -f .libs 2>/dev/null
8282 mkdir .libs 2>/dev/null
8283 if test -d .libs; then
8284 lt_cv_objdir=.libs
8285 else
8286 # MS-DOS does not allow filenames that begin with a dot.
8287 lt_cv_objdir=_libs
8288 fi
8289 rmdir .libs 2>/dev/null
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8292 $as_echo "$lt_cv_objdir" >&6; }
8293 objdir=$lt_cv_objdir
8294
8295
8296
8297
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define LT_OBJDIR "$lt_cv_objdir/"
8301 _ACEOF
8302
8303
8304
8305
8306 case $host_os in
8307 aix3*)
8308 # AIX sometimes has problems with the GCC collect2 program. For some
8309 # reason, if we set the COLLECT_NAMES environment variable, the problems
8310 # vanish in a puff of smoke.
8311 if test "X${COLLECT_NAMES+set}" != Xset; then
8312 COLLECT_NAMES=
8313 export COLLECT_NAMES
8314 fi
8315 ;;
8316 esac
8317
8318 # Global variables:
8319 ofile=libtool
8320 can_build_shared=yes
8321
8322 # All known linkers require a `.a' archive for static linking (except MSVC,
8323 # which needs '.lib').
8324 libext=a
8325
8326 with_gnu_ld="$lt_cv_prog_gnu_ld"
8327
8328 old_CC="$CC"
8329 old_CFLAGS="$CFLAGS"
8330
8331 # Set sane defaults for various variables
8332 test -z "$CC" && CC=cc
8333 test -z "$LTCC" && LTCC=$CC
8334 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8335 test -z "$LD" && LD=ld
8336 test -z "$ac_objext" && ac_objext=o
8337
8338 for cc_temp in $compiler""; do
8339 case $cc_temp in
8340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8342 \-*) ;;
8343 *) break;;
8344 esac
8345 done
8346 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8347
8348
8349 # Only perform the check for file, if the check method requires it
8350 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8351 case $deplibs_check_method in
8352 file_magic*)
8353 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8355 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8356 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 case $MAGIC_CMD in
8360 [\\/*] | ?:[\\/]*)
8361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8362 ;;
8363 *)
8364 lt_save_MAGIC_CMD="$MAGIC_CMD"
8365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8367 for ac_dir in $ac_dummy; do
8368 IFS="$lt_save_ifs"
8369 test -z "$ac_dir" && ac_dir=.
8370 if test -f $ac_dir/${ac_tool_prefix}file; then
8371 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8372 if test -n "$file_magic_test_file"; then
8373 case $deplibs_check_method in
8374 "file_magic "*)
8375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8378 $EGREP "$file_magic_regex" > /dev/null; then
8379 :
8380 else
8381 cat <<_LT_EOF 1>&2
8382
8383 *** Warning: the command libtool uses to detect shared libraries,
8384 *** $file_magic_cmd, produces output that libtool cannot recognize.
8385 *** The result is that libtool may fail to recognize shared libraries
8386 *** as such. This will affect the creation of libtool libraries that
8387 *** depend on shared libraries, but programs linked with such libtool
8388 *** libraries will work regardless of this problem. Nevertheless, you
8389 *** may want to report the problem to your system manager and/or to
8390 *** [email protected]
8391
8392 _LT_EOF
8393 fi ;;
8394 esac
8395 fi
8396 break
8397 fi
8398 done
8399 IFS="$lt_save_ifs"
8400 MAGIC_CMD="$lt_save_MAGIC_CMD"
8401 ;;
8402 esac
8403 fi
8404
8405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8406 if test -n "$MAGIC_CMD"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8408 $as_echo "$MAGIC_CMD" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414
8415
8416
8417
8418 if test -z "$lt_cv_path_MAGIC_CMD"; then
8419 if test -n "$ac_tool_prefix"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8421 $as_echo_n "checking for file... " >&6; }
8422 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 case $MAGIC_CMD in
8426 [\\/*] | ?:[\\/]*)
8427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428 ;;
8429 *)
8430 lt_save_MAGIC_CMD="$MAGIC_CMD"
8431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433 for ac_dir in $ac_dummy; do
8434 IFS="$lt_save_ifs"
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/file; then
8437 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8438 if test -n "$file_magic_test_file"; then
8439 case $deplibs_check_method in
8440 "file_magic "*)
8441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444 $EGREP "$file_magic_regex" > /dev/null; then
8445 :
8446 else
8447 cat <<_LT_EOF 1>&2
8448
8449 *** Warning: the command libtool uses to detect shared libraries,
8450 *** $file_magic_cmd, produces output that libtool cannot recognize.
8451 *** The result is that libtool may fail to recognize shared libraries
8452 *** as such. This will affect the creation of libtool libraries that
8453 *** depend on shared libraries, but programs linked with such libtool
8454 *** libraries will work regardless of this problem. Nevertheless, you
8455 *** may want to report the problem to your system manager and/or to
8456 *** [email protected]
8457
8458 _LT_EOF
8459 fi ;;
8460 esac
8461 fi
8462 break
8463 fi
8464 done
8465 IFS="$lt_save_ifs"
8466 MAGIC_CMD="$lt_save_MAGIC_CMD"
8467 ;;
8468 esac
8469 fi
8470
8471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472 if test -n "$MAGIC_CMD"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8474 $as_echo "$MAGIC_CMD" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480
8481 else
8482 MAGIC_CMD=:
8483 fi
8484 fi
8485
8486 fi
8487 ;;
8488 esac
8489
8490 # Use C for the default configuration in the libtool script
8491
8492 lt_save_CC="$CC"
8493 ac_ext=c
8494 ac_cpp='$CPP $CPPFLAGS'
8495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8498
8499
8500 # Source file extension for C test sources.
8501 ac_ext=c
8502
8503 # Object file extension for compiled C test sources.
8504 objext=o
8505 objext=$objext
8506
8507 # Code to be used in simple compile tests
8508 lt_simple_compile_test_code="int some_variable = 0;"
8509
8510 # Code to be used in simple link tests
8511 lt_simple_link_test_code='int main(){return(0);}'
8512
8513
8514
8515
8516
8517
8518
8519 # If no C compiler was specified, use CC.
8520 LTCC=${LTCC-"$CC"}
8521
8522 # If no C compiler flags were specified, use CFLAGS.
8523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8524
8525 # Allow CC to be a program name with arguments.
8526 compiler=$CC
8527
8528 # Save the default compiler, since it gets overwritten when the other
8529 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8530 compiler_DEFAULT=$CC
8531
8532 # save warnings/boilerplate of simple test code
8533 ac_outfile=conftest.$ac_objext
8534 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8536 _lt_compiler_boilerplate=`cat conftest.err`
8537 $RM conftest*
8538
8539 ac_outfile=conftest.$ac_objext
8540 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8542 _lt_linker_boilerplate=`cat conftest.err`
8543 $RM -r conftest*
8544
8545
8546 ## CAVEAT EMPTOR:
8547 ## There is no encapsulation within the following macros, do not change
8548 ## the running order or otherwise move them around unless you know exactly
8549 ## what you are doing...
8550 if test -n "$compiler"; then
8551
8552 lt_prog_compiler_no_builtin_flag=
8553
8554 if test "$GCC" = yes; then
8555 case $cc_basename in
8556 nvcc*)
8557 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8558 *)
8559 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8560 esac
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8563 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8564 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_prog_compiler_rtti_exceptions=no
8568 ac_outfile=conftest.$ac_objext
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570 lt_compiler_flag="-fno-rtti -fno-exceptions"
8571 # Insert the option either (1) after the last *FLAGS variable, or
8572 # (2) before a word containing "conftest.", or (3) at the end.
8573 # Note that $ac_compile itself does not contain backslashes and begins
8574 # with a dollar sign (not a hyphen), so the echo should work correctly.
8575 # The option is referenced via a variable to avoid confusing sed.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581 (eval "$lt_compile" 2>conftest.err)
8582 ac_status=$?
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 if (exit $ac_status) && test -s "$ac_outfile"; then
8586 # The compiler can only warn and ignore the option if not recognized
8587 # So say no if there are warnings other than the usual output.
8588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8591 lt_cv_prog_compiler_rtti_exceptions=yes
8592 fi
8593 fi
8594 $RM conftest*
8595
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8598 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8599
8600 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8601 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8602 else
8603 :
8604 fi
8605
8606 fi
8607
8608
8609
8610
8611
8612
8613 lt_prog_compiler_wl=
8614 lt_prog_compiler_pic=
8615 lt_prog_compiler_static=
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8618 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8619
8620 if test "$GCC" = yes; then
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_static='-static'
8623
8624 case $host_os in
8625 aix*)
8626 # All AIX code is PIC.
8627 if test "$host_cpu" = ia64; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static='-Bstatic'
8630 fi
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633
8634 amigaos*)
8635 case $host_cpu in
8636 powerpc)
8637 # see comment about AmigaOS4 .so support
8638 lt_prog_compiler_pic='-fPIC'
8639 ;;
8640 m68k)
8641 # FIXME: we need at least 68020 code to build shared libraries, but
8642 # adding the `-m68020' flag to GCC prevents building anything better,
8643 # like `-m68040'.
8644 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8645 ;;
8646 esac
8647 ;;
8648
8649 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650 # PIC is the default for these OSes.
8651 ;;
8652
8653 mingw* | cygwin* | pw32* | os2* | cegcc*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8657 # (--disable-auto-import) libraries
8658 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 ;;
8660
8661 darwin* | rhapsody*)
8662 # PIC is the default on this platform
8663 # Common symbols not allowed in MH_DYLIB files
8664 lt_prog_compiler_pic='-fno-common'
8665 ;;
8666
8667 haiku*)
8668 # PIC is the default for Haiku.
8669 # The "-static" flag exists, but is broken.
8670 lt_prog_compiler_static=
8671 ;;
8672
8673 hpux*)
8674 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8675 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8676 # sets the default TLS model and affects inlining.
8677 case $host_cpu in
8678 hppa*64*)
8679 # +Z the default
8680 ;;
8681 *)
8682 lt_prog_compiler_pic='-fPIC'
8683 ;;
8684 esac
8685 ;;
8686
8687 interix[3-9]*)
8688 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8689 # Instead, we relocate shared libraries at runtime.
8690 ;;
8691
8692 msdosdjgpp*)
8693 # Just because we use GCC doesn't mean we suddenly get shared libraries
8694 # on systems that don't support them.
8695 lt_prog_compiler_can_build_shared=no
8696 enable_shared=no
8697 ;;
8698
8699 *nto* | *qnx*)
8700 # QNX uses GNU C++, but need to define -shared option too, otherwise
8701 # it will coredump.
8702 lt_prog_compiler_pic='-fPIC -shared'
8703 ;;
8704
8705 sysv4*MP*)
8706 if test -d /usr/nec; then
8707 lt_prog_compiler_pic=-Kconform_pic
8708 fi
8709 ;;
8710
8711 *)
8712 lt_prog_compiler_pic='-fPIC'
8713 ;;
8714 esac
8715
8716 case $cc_basename in
8717 nvcc*) # Cuda Compiler Driver 2.2
8718 lt_prog_compiler_wl='-Xlinker '
8719 lt_prog_compiler_pic='-Xcompiler -fPIC'
8720 ;;
8721 esac
8722 else
8723 # PORTME Check for flag to pass linker flags through the system compiler.
8724 case $host_os in
8725 aix*)
8726 lt_prog_compiler_wl='-Wl,'
8727 if test "$host_cpu" = ia64; then
8728 # AIX 5 now supports IA64 processor
8729 lt_prog_compiler_static='-Bstatic'
8730 else
8731 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8732 fi
8733 ;;
8734
8735 mingw* | cygwin* | pw32* | os2* | cegcc*)
8736 # This hack is so that the source file can tell whether it is being
8737 # built for inclusion in a dll (and should export symbols for example).
8738 lt_prog_compiler_pic='-DDLL_EXPORT'
8739 ;;
8740
8741 hpux9* | hpux10* | hpux11*)
8742 lt_prog_compiler_wl='-Wl,'
8743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8744 # not for PA HP-UX.
8745 case $host_cpu in
8746 hppa*64*|ia64*)
8747 # +Z the default
8748 ;;
8749 *)
8750 lt_prog_compiler_pic='+Z'
8751 ;;
8752 esac
8753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8754 lt_prog_compiler_static='${wl}-a ${wl}archive'
8755 ;;
8756
8757 irix5* | irix6* | nonstopux*)
8758 lt_prog_compiler_wl='-Wl,'
8759 # PIC (with -KPIC) is the default.
8760 lt_prog_compiler_static='-non_shared'
8761 ;;
8762
8763 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8764 case $cc_basename in
8765 # old Intel for x86_64 which still supported -KPIC.
8766 ecc*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-static'
8770 ;;
8771 # icc used to be incompatible with GCC.
8772 # ICC 10 doesn't accept -KPIC any more.
8773 icc* | ifort*)
8774 lt_prog_compiler_wl='-Wl,'
8775 lt_prog_compiler_pic='-fPIC'
8776 lt_prog_compiler_static='-static'
8777 ;;
8778 # Lahey Fortran 8.1.
8779 lf95*)
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='--shared'
8782 lt_prog_compiler_static='--static'
8783 ;;
8784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8785 # Portland Group compilers (*not* the Pentium gcc compiler,
8786 # which looks to be a dead project)
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-fpic'
8789 lt_prog_compiler_static='-Bstatic'
8790 ;;
8791 ccc*)
8792 lt_prog_compiler_wl='-Wl,'
8793 # All Alpha code is PIC.
8794 lt_prog_compiler_static='-non_shared'
8795 ;;
8796 xl* | bgxl* | bgf* | mpixl*)
8797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-qpic'
8800 lt_prog_compiler_static='-qstaticlink'
8801 ;;
8802 *)
8803 case `$CC -V 2>&1 | sed 5q` in
8804 *Sun\ F* | *Sun*Fortran*)
8805 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 lt_prog_compiler_wl=''
8809 ;;
8810 *Sun\ C*)
8811 # Sun C 5.9
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 lt_prog_compiler_wl='-Wl,'
8815 ;;
8816 esac
8817 ;;
8818 esac
8819 ;;
8820
8821 newsos6)
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 ;;
8825
8826 *nto* | *qnx*)
8827 # QNX uses GNU C++, but need to define -shared option too, otherwise
8828 # it will coredump.
8829 lt_prog_compiler_pic='-fPIC -shared'
8830 ;;
8831
8832 osf3* | osf4* | osf5*)
8833 lt_prog_compiler_wl='-Wl,'
8834 # All OSF/1 code is PIC.
8835 lt_prog_compiler_static='-non_shared'
8836 ;;
8837
8838 rdos*)
8839 lt_prog_compiler_static='-non_shared'
8840 ;;
8841
8842 solaris*)
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 case $cc_basename in
8846 f77* | f90* | f95*)
8847 lt_prog_compiler_wl='-Qoption ld ';;
8848 *)
8849 lt_prog_compiler_wl='-Wl,';;
8850 esac
8851 ;;
8852
8853 sunos4*)
8854 lt_prog_compiler_wl='-Qoption ld '
8855 lt_prog_compiler_pic='-PIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 ;;
8858
8859 sysv4 | sysv4.2uw2* | sysv4.3*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8863 ;;
8864
8865 sysv4*MP*)
8866 if test -d /usr/nec ;then
8867 lt_prog_compiler_pic='-Kconform_pic'
8868 lt_prog_compiler_static='-Bstatic'
8869 fi
8870 ;;
8871
8872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877
8878 unicos*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_can_build_shared=no
8881 ;;
8882
8883 uts4*)
8884 lt_prog_compiler_pic='-pic'
8885 lt_prog_compiler_static='-Bstatic'
8886 ;;
8887
8888 *)
8889 lt_prog_compiler_can_build_shared=no
8890 ;;
8891 esac
8892 fi
8893
8894 case $host_os in
8895 # For platforms which do not support PIC, -DPIC is meaningless:
8896 *djgpp*)
8897 lt_prog_compiler_pic=
8898 ;;
8899 *)
8900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8901 ;;
8902 esac
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8904 $as_echo "$lt_prog_compiler_pic" >&6; }
8905
8906
8907
8908
8909
8910
8911 #
8912 # Check to make sure the PIC flag actually works.
8913 #
8914 if test -n "$lt_prog_compiler_pic"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8916 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8917 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 lt_cv_prog_compiler_pic_works=no
8921 ac_outfile=conftest.$ac_objext
8922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8924 # Insert the option either (1) after the last *FLAGS variable, or
8925 # (2) before a word containing "conftest.", or (3) at the end.
8926 # Note that $ac_compile itself does not contain backslashes and begins
8927 # with a dollar sign (not a hyphen), so the echo should work correctly.
8928 # The option is referenced via a variable to avoid confusing sed.
8929 lt_compile=`echo "$ac_compile" | $SED \
8930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932 -e 's:$: $lt_compiler_flag:'`
8933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934 (eval "$lt_compile" 2>conftest.err)
8935 ac_status=$?
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 if (exit $ac_status) && test -s "$ac_outfile"; then
8939 # The compiler can only warn and ignore the option if not recognized
8940 # So say no if there are warnings other than the usual output.
8941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_pic_works=yes
8945 fi
8946 fi
8947 $RM conftest*
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8951 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8952
8953 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8954 case $lt_prog_compiler_pic in
8955 "" | " "*) ;;
8956 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8957 esac
8958 else
8959 lt_prog_compiler_pic=
8960 lt_prog_compiler_can_build_shared=no
8961 fi
8962
8963 fi
8964
8965
8966
8967
8968
8969
8970 #
8971 # Check to make sure the static flag actually works.
8972 #
8973 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8975 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8976 if ${lt_cv_prog_compiler_static_works+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 lt_cv_prog_compiler_static_works=no
8980 save_LDFLAGS="$LDFLAGS"
8981 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8984 # The linker can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 if test -s conftest.err; then
8987 # Append any errors to the config.log.
8988 cat conftest.err 1>&5
8989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_static_works=yes
8993 fi
8994 else
8995 lt_cv_prog_compiler_static_works=yes
8996 fi
8997 fi
8998 $RM -r conftest*
8999 LDFLAGS="$save_LDFLAGS"
9000
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9003 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9004
9005 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9006 :
9007 else
9008 lt_prog_compiler_static=
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9019 if ${lt_cv_prog_compiler_c_o+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 lt_cv_prog_compiler_c_o=no
9023 $RM -r conftest 2>/dev/null
9024 mkdir conftest
9025 cd conftest
9026 mkdir out
9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028
9029 lt_compiler_flag="-o out/conftest2.$ac_objext"
9030 # Insert the option either (1) after the last *FLAGS variable, or
9031 # (2) before a word containing "conftest.", or (3) at the end.
9032 # Note that $ac_compile itself does not contain backslashes and begins
9033 # with a dollar sign (not a hyphen), so the echo should work correctly.
9034 lt_compile=`echo "$ac_compile" | $SED \
9035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037 -e 's:$: $lt_compiler_flag:'`
9038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9039 (eval "$lt_compile" 2>out/conftest.err)
9040 ac_status=$?
9041 cat out/conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9044 then
9045 # The compiler can only warn and ignore the option if not recognized
9046 # So say no if there are warnings
9047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9050 lt_cv_prog_compiler_c_o=yes
9051 fi
9052 fi
9053 chmod u+w . 2>&5
9054 $RM conftest*
9055 # SGI C++ compiler will create directory out/ii_files/ for
9056 # template instantiation
9057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9058 $RM out/* && rmdir out
9059 cd ..
9060 $RM -r conftest
9061 $RM conftest*
9062
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9066
9067
9068
9069
9070
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9074 if ${lt_cv_prog_compiler_c_o+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 lt_cv_prog_compiler_c_o=no
9078 $RM -r conftest 2>/dev/null
9079 mkdir conftest
9080 cd conftest
9081 mkdir out
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083
9084 lt_compiler_flag="-o out/conftest2.$ac_objext"
9085 # Insert the option either (1) after the last *FLAGS variable, or
9086 # (2) before a word containing "conftest.", or (3) at the end.
9087 # Note that $ac_compile itself does not contain backslashes and begins
9088 # with a dollar sign (not a hyphen), so the echo should work correctly.
9089 lt_compile=`echo "$ac_compile" | $SED \
9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092 -e 's:$: $lt_compiler_flag:'`
9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9094 (eval "$lt_compile" 2>out/conftest.err)
9095 ac_status=$?
9096 cat out/conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9099 then
9100 # The compiler can only warn and ignore the option if not recognized
9101 # So say no if there are warnings
9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9105 lt_cv_prog_compiler_c_o=yes
9106 fi
9107 fi
9108 chmod u+w . 2>&5
9109 $RM conftest*
9110 # SGI C++ compiler will create directory out/ii_files/ for
9111 # template instantiation
9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9113 $RM out/* && rmdir out
9114 cd ..
9115 $RM -r conftest
9116 $RM conftest*
9117
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9120 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9121
9122
9123
9124
9125 hard_links="nottested"
9126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9127 # do not overwrite the value of need_locks provided by the user
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9129 $as_echo_n "checking if we can lock with hard links... " >&6; }
9130 hard_links=yes
9131 $RM conftest*
9132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9133 touch conftest.a
9134 ln conftest.a conftest.b 2>&5 || hard_links=no
9135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9137 $as_echo "$hard_links" >&6; }
9138 if test "$hard_links" = no; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9140 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9141 need_locks=warn
9142 fi
9143 else
9144 need_locks=no
9145 fi
9146
9147
9148
9149
9150
9151
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9154
9155 runpath_var=
9156 allow_undefined_flag=
9157 always_export_symbols=no
9158 archive_cmds=
9159 archive_expsym_cmds=
9160 compiler_needs_object=no
9161 enable_shared_with_static_runtimes=no
9162 export_dynamic_flag_spec=
9163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9164 hardcode_automatic=no
9165 hardcode_direct=no
9166 hardcode_direct_absolute=no
9167 hardcode_libdir_flag_spec=
9168 hardcode_libdir_flag_spec_ld=
9169 hardcode_libdir_separator=
9170 hardcode_minus_L=no
9171 hardcode_shlibpath_var=unsupported
9172 inherit_rpath=no
9173 link_all_deplibs=unknown
9174 module_cmds=
9175 module_expsym_cmds=
9176 old_archive_from_new_cmds=
9177 old_archive_from_expsyms_cmds=
9178 thread_safe_flag_spec=
9179 whole_archive_flag_spec=
9180 # include_expsyms should be a list of space-separated symbols to be *always*
9181 # included in the symbol list
9182 include_expsyms=
9183 # exclude_expsyms can be an extended regexp of symbols to exclude
9184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9186 # as well as any symbol that contains `d'.
9187 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9189 # platforms (ab)use it in PIC code, but their linkers get confused if
9190 # the symbol is explicitly referenced. Since portable code cannot
9191 # rely on this symbol name, it's probably fine to never include it in
9192 # preloaded symbol tables.
9193 # Exclude shared library initialization/finalization symbols.
9194 extract_expsyms_cmds=
9195
9196 case $host_os in
9197 cygwin* | mingw* | pw32* | cegcc*)
9198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9199 # When not using gcc, we currently assume that we are using
9200 # Microsoft Visual C++.
9201 if test "$GCC" != yes; then
9202 with_gnu_ld=no
9203 fi
9204 ;;
9205 interix*)
9206 # we just hope/assume this is gcc and not c89 (= MSVC++)
9207 with_gnu_ld=yes
9208 ;;
9209 openbsd*)
9210 with_gnu_ld=no
9211 ;;
9212 esac
9213
9214 ld_shlibs=yes
9215
9216 # On some targets, GNU ld is compatible enough with the native linker
9217 # that we're better off using the native interface for both.
9218 lt_use_gnu_ld_interface=no
9219 if test "$with_gnu_ld" = yes; then
9220 case $host_os in
9221 aix*)
9222 # The AIX port of GNU ld has always aspired to compatibility
9223 # with the native linker. However, as the warning in the GNU ld
9224 # block says, versions before 2.19.5* couldn't really create working
9225 # shared libraries, regardless of the interface used.
9226 case `$LD -v 2>&1` in
9227 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9228 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9229 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9230 *)
9231 lt_use_gnu_ld_interface=yes
9232 ;;
9233 esac
9234 ;;
9235 *)
9236 lt_use_gnu_ld_interface=yes
9237 ;;
9238 esac
9239 fi
9240
9241 if test "$lt_use_gnu_ld_interface" = yes; then
9242 # If archive_cmds runs LD, not CC, wlarc should be empty
9243 wlarc='${wl}'
9244
9245 # Set some defaults for GNU ld with shared library support. These
9246 # are reset later if shared libraries are not supported. Putting them
9247 # here allows them to be overridden if necessary.
9248 runpath_var=LD_RUN_PATH
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 export_dynamic_flag_spec='${wl}--export-dynamic'
9251 # ancient GNU ld didn't support --whole-archive et. al.
9252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9253 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9254 else
9255 whole_archive_flag_spec=
9256 fi
9257 supports_anon_versioning=no
9258 case `$LD -v 2>&1` in
9259 *GNU\ gold*) supports_anon_versioning=yes ;;
9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9263 *\ 2.11.*) ;; # other 2.11 versions
9264 *) supports_anon_versioning=yes ;;
9265 esac
9266
9267 # See if GNU ld supports shared libraries.
9268 case $host_os in
9269 aix[3-9]*)
9270 # On AIX/PPC, the GNU linker is very broken
9271 if test "$host_cpu" != ia64; then
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9274
9275 *** Warning: the GNU linker, at least up to release 2.19, is reported
9276 *** to be unable to reliably create shared libraries on AIX.
9277 *** Therefore, libtool is disabling shared libraries support. If you
9278 *** really care for shared libraries, you may want to install binutils
9279 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9280 *** You will then need to restart the configuration process.
9281
9282 _LT_EOF
9283 fi
9284 ;;
9285
9286 amigaos*)
9287 case $host_cpu in
9288 powerpc)
9289 # see comment about AmigaOS4 .so support
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds=''
9292 ;;
9293 m68k)
9294 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)'
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 hardcode_minus_L=yes
9297 ;;
9298 esac
9299 ;;
9300
9301 beos*)
9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9303 allow_undefined_flag=unsupported
9304 # Joseph Beckenbach <[email protected]> says some releases of gcc
9305 # support --undefined. This deserves some investigation. FIXME
9306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311
9312 cygwin* | mingw* | pw32* | cegcc*)
9313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9314 # as there is no search path for DLLs.
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 export_dynamic_flag_spec='${wl}--export-all-symbols'
9317 allow_undefined_flag=unsupported
9318 always_export_symbols=no
9319 enable_shared_with_static_runtimes=yes
9320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9321
9322 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 # If the export-symbols file already is a .def file (1st line
9325 # is EXPORTS), use it as is; otherwise, prepend...
9326 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9327 cp $export_symbols $output_objdir/$soname.def;
9328 else
9329 echo EXPORTS > $output_objdir/$soname.def;
9330 cat $export_symbols >> $output_objdir/$soname.def;
9331 fi~
9332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337
9338 haiku*)
9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340 link_all_deplibs=yes
9341 ;;
9342
9343 interix[3-9]*)
9344 hardcode_direct=no
9345 hardcode_shlibpath_var=no
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 export_dynamic_flag_spec='${wl}-E'
9348 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9349 # Instead, shared libraries are loaded at an image base (0x10000000 by
9350 # default) and relocated if they conflict, which is a slow very memory
9351 # consuming and fragmenting process. To avoid this, we pick a random,
9352 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9353 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9354 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9355 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 ;;
9357
9358 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9359 tmp_diet=no
9360 if test "$host_os" = linux-dietlibc; then
9361 case $cc_basename in
9362 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9363 esac
9364 fi
9365 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9366 && test "$tmp_diet" = no
9367 then
9368 tmp_addflag=' $pic_flag'
9369 tmp_sharedflag='-shared'
9370 case $cc_basename,$host_cpu in
9371 pgcc*) # Portland Group C compiler
9372 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'
9373 tmp_addflag=' $pic_flag'
9374 ;;
9375 pgf77* | pgf90* | pgf95* | pgfortran*)
9376 # Portland Group f77 and f90 compilers
9377 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'
9378 tmp_addflag=' $pic_flag -Mnomain' ;;
9379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9380 tmp_addflag=' -i_dynamic' ;;
9381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9382 tmp_addflag=' -i_dynamic -nofor_main' ;;
9383 ifc* | ifort*) # Intel Fortran compiler
9384 tmp_addflag=' -nofor_main' ;;
9385 lf95*) # Lahey Fortran 8.1
9386 whole_archive_flag_spec=
9387 tmp_sharedflag='--shared' ;;
9388 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9389 tmp_sharedflag='-qmkshrobj'
9390 tmp_addflag= ;;
9391 nvcc*) # Cuda Compiler Driver 2.2
9392 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'
9393 compiler_needs_object=yes
9394 ;;
9395 esac
9396 case `$CC -V 2>&1 | sed 5q` in
9397 *Sun\ C*) # Sun C 5.9
9398 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'
9399 compiler_needs_object=yes
9400 tmp_sharedflag='-G' ;;
9401 *Sun\ F*) # Sun Fortran 8.3
9402 tmp_sharedflag='-G' ;;
9403 esac
9404 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405
9406 if test "x$supports_anon_versioning" = xyes; then
9407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9409 echo "local: *; };" >> $output_objdir/$libname.ver~
9410 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9411 fi
9412
9413 case $cc_basename in
9414 xlf* | bgf* | bgxlf* | mpixlf*)
9415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9416 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9417 hardcode_libdir_flag_spec=
9418 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9419 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9420 if test "x$supports_anon_versioning" = xyes; then
9421 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9423 echo "local: *; };" >> $output_objdir/$libname.ver~
9424 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9425 fi
9426 ;;
9427 esac
9428 else
9429 ld_shlibs=no
9430 fi
9431 ;;
9432
9433 netbsd*)
9434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9435 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9436 wlarc=
9437 else
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 fi
9441 ;;
9442
9443 solaris*)
9444 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9445 ld_shlibs=no
9446 cat <<_LT_EOF 1>&2
9447
9448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9449 *** create shared libraries on Solaris systems. Therefore, libtool
9450 *** is disabling shared libraries support. We urge you to upgrade GNU
9451 *** binutils to release 2.9.1 or newer. Another option is to modify
9452 *** your PATH or compiler configuration so that the native linker is
9453 *** used, and then restart.
9454
9455 _LT_EOF
9456 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9459 else
9460 ld_shlibs=no
9461 fi
9462 ;;
9463
9464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9465 case `$LD -v 2>&1` in
9466 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9467 ld_shlibs=no
9468 cat <<_LT_EOF 1>&2
9469
9470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9471 *** reliably create shared libraries on SCO systems. Therefore, libtool
9472 *** is disabling shared libraries support. We urge you to upgrade GNU
9473 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9474 *** your PATH or compiler configuration so that the native linker is
9475 *** used, and then restart.
9476
9477 _LT_EOF
9478 ;;
9479 *)
9480 # For security reasons, it is highly recommended that you always
9481 # use absolute paths for naming shared libraries, and exclude the
9482 # DT_RUNPATH tag from executables and libraries. But doing so
9483 # requires that you compile everything twice, which is a pain.
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 else
9489 ld_shlibs=no
9490 fi
9491 ;;
9492 esac
9493 ;;
9494
9495 sunos4*)
9496 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497 wlarc=
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 *)
9503 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 else
9507 ld_shlibs=no
9508 fi
9509 ;;
9510 esac
9511
9512 if test "$ld_shlibs" = no; then
9513 runpath_var=
9514 hardcode_libdir_flag_spec=
9515 export_dynamic_flag_spec=
9516 whole_archive_flag_spec=
9517 fi
9518 else
9519 # PORTME fill in a description of your system's linker (not GNU ld)
9520 case $host_os in
9521 aix3*)
9522 allow_undefined_flag=unsupported
9523 always_export_symbols=yes
9524 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'
9525 # Note: this linker hardcodes the directories in LIBPATH if there
9526 # are no directories specified by -L.
9527 hardcode_minus_L=yes
9528 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9529 # Neither direct hardcoding nor static linking is supported with a
9530 # broken collect2.
9531 hardcode_direct=unsupported
9532 fi
9533 ;;
9534
9535 aix[4-9]*)
9536 if test "$host_cpu" = ia64; then
9537 # On IA64, the linker does run time linking by default, so we don't
9538 # have to do anything special.
9539 aix_use_runtimelinking=no
9540 exp_sym_flag='-Bexport'
9541 no_entry_flag=""
9542 else
9543 # If we're using GNU nm, then we don't want the "-C" option.
9544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9545 # Also, AIX nm treats weak defined symbols like other global
9546 # defined symbols, whereas GNU nm marks them as "W".
9547 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9548 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'
9549 else
9550 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'
9551 fi
9552 aix_use_runtimelinking=no
9553
9554 # Test if we are trying to use run time linking or normal
9555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9556 # need to do runtime linking.
9557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9558 for ld_flag in $LDFLAGS; do
9559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9560 aix_use_runtimelinking=yes
9561 break
9562 fi
9563 done
9564 ;;
9565 esac
9566
9567 exp_sym_flag='-bexport'
9568 no_entry_flag='-bnoentry'
9569 fi
9570
9571 # When large executables or shared objects are built, AIX ld can
9572 # have problems creating the table of contents. If linking a library
9573 # or program results in "error TOC overflow" add -mminimal-toc to
9574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9576
9577 archive_cmds=''
9578 hardcode_direct=yes
9579 hardcode_direct_absolute=yes
9580 hardcode_libdir_separator=':'
9581 link_all_deplibs=yes
9582 file_list_spec='${wl}-f,'
9583
9584 if test "$GCC" = yes; then
9585 case $host_os in aix4.[012]|aix4.[012].*)
9586 # We only want to do this on AIX 4.2 and lower, the check
9587 # below for broken collect2 doesn't work under 4.3+
9588 collect2name=`${CC} -print-prog-name=collect2`
9589 if test -f "$collect2name" &&
9590 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9591 then
9592 # We have reworked collect2
9593 :
9594 else
9595 # We have old collect2
9596 hardcode_direct=unsupported
9597 # It fails to find uninstalled libraries when the uninstalled
9598 # path is not listed in the libpath. Setting hardcode_minus_L
9599 # to unsupported forces relinking
9600 hardcode_minus_L=yes
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_libdir_separator=
9603 fi
9604 ;;
9605 esac
9606 shared_flag='-shared'
9607 if test "$aix_use_runtimelinking" = yes; then
9608 shared_flag="$shared_flag "'${wl}-G'
9609 fi
9610 else
9611 # not using gcc
9612 if test "$host_cpu" = ia64; then
9613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9614 # chokes on -Wl,-G. The following line is correct:
9615 shared_flag='-G'
9616 else
9617 if test "$aix_use_runtimelinking" = yes; then
9618 shared_flag='${wl}-G'
9619 else
9620 shared_flag='${wl}-bM:SRE'
9621 fi
9622 fi
9623 fi
9624
9625 export_dynamic_flag_spec='${wl}-bexpall'
9626 # It seems that -bexpall does not export symbols beginning with
9627 # underscore (_), so it is better to generate a list of symbols to export.
9628 always_export_symbols=yes
9629 if test "$aix_use_runtimelinking" = yes; then
9630 # Warning - without using the other runtime loading flags (-brtl),
9631 # -berok will link without error, but may produce a broken library.
9632 allow_undefined_flag='-berok'
9633 # Determine the default libpath from the value encoded in an
9634 # empty executable.
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647
9648 lt_aix_libpath_sed='
9649 /Import File Strings/,/^$/ {
9650 /^0/ {
9651 s/^0 *\(.*\)$/\1/
9652 p
9653 }
9654 }'
9655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 # Check for a 64-bit object if we didn't find anything.
9657 if test -z "$aix_libpath"; then
9658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 fi
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9664
9665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9666 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"
9667 else
9668 if test "$host_cpu" = ia64; then
9669 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9670 allow_undefined_flag="-z nodefs"
9671 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"
9672 else
9673 # Determine the default libpath from the value encoded in an
9674 # empty executable.
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677
9678 int
9679 main ()
9680 {
9681
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687
9688 lt_aix_libpath_sed='
9689 /Import File Strings/,/^$/ {
9690 /^0/ {
9691 s/^0 *\(.*\)$/\1/
9692 p
9693 }
9694 }'
9695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9696 # Check for a 64-bit object if we didn't find anything.
9697 if test -z "$aix_libpath"; then
9698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 fi
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9704
9705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9706 # Warning - without using the other run time loading flags,
9707 # -berok will link without error, but may produce a broken library.
9708 no_undefined_flag=' ${wl}-bernotok'
9709 allow_undefined_flag=' ${wl}-berok'
9710 if test "$with_gnu_ld" = yes; then
9711 # We only use this code for GNU lds that support --whole-archive.
9712 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9713 else
9714 # Exported symbols can be pulled into shared objects from archives
9715 whole_archive_flag_spec='$convenience'
9716 fi
9717 archive_cmds_need_lc=yes
9718 # This is similar to how AIX traditionally builds its shared libraries.
9719 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'
9720 fi
9721 fi
9722 ;;
9723
9724 amigaos*)
9725 case $host_cpu in
9726 powerpc)
9727 # see comment about AmigaOS4 .so support
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729 archive_expsym_cmds=''
9730 ;;
9731 m68k)
9732 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)'
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_minus_L=yes
9735 ;;
9736 esac
9737 ;;
9738
9739 bsdi[45]*)
9740 export_dynamic_flag_spec=-rdynamic
9741 ;;
9742
9743 cygwin* | mingw* | pw32* | cegcc*)
9744 # When not using gcc, we currently assume that we are using
9745 # Microsoft Visual C++.
9746 # hardcode_libdir_flag_spec is actually meaningless, as there is
9747 # no search path for DLLs.
9748 hardcode_libdir_flag_spec=' '
9749 allow_undefined_flag=unsupported
9750 # Tell ltmain to make .lib files, not .a files.
9751 libext=lib
9752 # Tell ltmain to make .dll files, not .so files.
9753 shrext_cmds=".dll"
9754 # FIXME: Setting linknames here is a bad hack.
9755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9756 # The linker will automatically build a .lib file if we build a DLL.
9757 old_archive_from_new_cmds='true'
9758 # FIXME: Should let the user specify the lib program.
9759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9760 fix_srcfile_path='`cygpath -w "$srcfile"`'
9761 enable_shared_with_static_runtimes=yes
9762 ;;
9763
9764 darwin* | rhapsody*)
9765
9766
9767
9768 # Publish an arg to allow the user to select that Darwin host (and target)
9769 # libraries should be given install-names like @rpath/libfoo.dylib. This
9770 # requires that the user of the library then adds an 'rpath' to the DSO that
9771 # needs access.
9772 # NOTE: there are defaults below, for systems that support rpaths. The person
9773 # configuring can override the defaults for any system version that supports
9774 # them - they are, however, forced off for system versions without support.
9775 # Check whether --enable-darwin-at-rpath was given.
9776 if test "${enable_darwin_at_rpath+set}" = set; then :
9777 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9778 # This is not supported before macOS 10.5 / Darwin9.
9779 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9780 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9782 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9783 enable_darwin_at_rpath=no
9784 ;;
9785 esac
9786 fi
9787 else
9788 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9789 # As above, before 10.5 / Darwin9 this does not work.
9790 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9791 enable_darwin_at_rpath=no
9792 ;;
9793
9794 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9795 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9796 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9797 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9799 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9800 enable_darwin_at_rpath=yes
9801 ;;
9802 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9803 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9804
9805 esac
9806
9807 fi
9808
9809
9810 archive_cmds_need_lc=no
9811 hardcode_direct=no
9812 hardcode_automatic=yes
9813 hardcode_shlibpath_var=unsupported
9814 if test "$lt_cv_ld_force_load" = "yes"; then
9815 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\"`'
9816 else
9817 whole_archive_flag_spec=''
9818 fi
9819 link_all_deplibs=yes
9820 allow_undefined_flag="$_lt_dar_allow_undefined"
9821 case $cc_basename in
9822 ifort*) _lt_dar_can_shared=yes ;;
9823 *) _lt_dar_can_shared=$GCC ;;
9824 esac
9825 if test "$_lt_dar_can_shared" = "yes"; then
9826 output_verbose_link_cmd=func_echo_all
9827 _lt_install_name='\$rpath/\$soname'
9828 if test "x$enable_darwin_at_rpath" = "xyes"; then
9829 _lt_install_name='@rpath/\$soname'
9830 fi
9831 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9832 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9833 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}"
9834 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}"
9835
9836 else
9837 ld_shlibs=no
9838 fi
9839
9840 ;;
9841
9842 dgux*)
9843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9849 # support. Future versions do this automatically, but an explicit c++rt0.o
9850 # does not break anything, and helps significantly (at the cost of a little
9851 # extra space).
9852 freebsd2.2*)
9853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9854 hardcode_libdir_flag_spec='-R$libdir'
9855 hardcode_direct=yes
9856 hardcode_shlibpath_var=no
9857 ;;
9858
9859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9860 freebsd2.*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_direct=yes
9863 hardcode_minus_L=yes
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9868 freebsd* | dragonfly*)
9869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 hpux9*)
9876 if test "$GCC" = yes; then
9877 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'
9878 else
9879 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'
9880 fi
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
9884
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9888 export_dynamic_flag_spec='${wl}-E'
9889 ;;
9890
9891 hpux10*)
9892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894 else
9895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9896 fi
9897 if test "$with_gnu_ld" = no; then
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_flag_spec_ld='+b $libdir'
9900 hardcode_libdir_separator=:
9901 hardcode_direct=yes
9902 hardcode_direct_absolute=yes
9903 export_dynamic_flag_spec='${wl}-E'
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 fi
9908 ;;
9909
9910 hpux11*)
9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9912 case $host_cpu in
9913 hppa*64*)
9914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 ia64*)
9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 ;;
9919 *)
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921 ;;
9922 esac
9923 else
9924 case $host_cpu in
9925 hppa*64*)
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9927 ;;
9928 ia64*)
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9930 ;;
9931 *)
9932
9933 # Older versions of the 11.00 compiler do not understand -b yet
9934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9936 $as_echo_n "checking if $CC understands -b... " >&6; }
9937 if ${lt_cv_prog_compiler__b+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 lt_cv_prog_compiler__b=no
9941 save_LDFLAGS="$LDFLAGS"
9942 LDFLAGS="$LDFLAGS -b"
9943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945 # The linker can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 if test -s conftest.err; then
9948 # Append any errors to the config.log.
9949 cat conftest.err 1>&5
9950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952 if diff conftest.exp conftest.er2 >/dev/null; then
9953 lt_cv_prog_compiler__b=yes
9954 fi
9955 else
9956 lt_cv_prog_compiler__b=yes
9957 fi
9958 fi
9959 $RM -r conftest*
9960 LDFLAGS="$save_LDFLAGS"
9961
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9965
9966 if test x"$lt_cv_prog_compiler__b" = xyes; then
9967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968 else
9969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9970 fi
9971
9972 ;;
9973 esac
9974 fi
9975 if test "$with_gnu_ld" = no; then
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978
9979 case $host_cpu in
9980 hppa*64*|ia64*)
9981 hardcode_direct=no
9982 hardcode_shlibpath_var=no
9983 ;;
9984 *)
9985 hardcode_direct=yes
9986 hardcode_direct_absolute=yes
9987 export_dynamic_flag_spec='${wl}-E'
9988
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9992 ;;
9993 esac
9994 fi
9995 ;;
9996
9997 irix5* | irix6* | nonstopux*)
9998 if test "$GCC" = yes; then
9999 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'
10000 # Try to use the -exported_symbol ld option, if it does not
10001 # work, assume that -exports_file does not work either and
10002 # implicitly export all symbols.
10003 save_LDFLAGS="$LDFLAGS"
10004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int foo(void) {}
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 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
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LDFLAGS="$save_LDFLAGS"
10016 else
10017 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'
10018 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'
10019 fi
10020 archive_cmds_need_lc='no'
10021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022 hardcode_libdir_separator=:
10023 inherit_rpath=yes
10024 link_all_deplibs=yes
10025 ;;
10026
10027 netbsd*)
10028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10030 else
10031 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10032 fi
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10036 ;;
10037
10038 newsos6)
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=yes
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 *nto* | *qnx*)
10047 ;;
10048
10049 openbsd*)
10050 if test -f /usr/libexec/ld.so; then
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 hardcode_direct_absolute=yes
10054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10055 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058 export_dynamic_flag_spec='${wl}-E'
10059 else
10060 case $host_os in
10061 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_libdir_flag_spec='-R$libdir'
10064 ;;
10065 *)
10066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10068 ;;
10069 esac
10070 fi
10071 else
10072 ld_shlibs=no
10073 fi
10074 ;;
10075
10076 os2*)
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_minus_L=yes
10079 allow_undefined_flag=unsupported
10080 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'
10081 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 ;;
10083
10084 osf3*)
10085 if test "$GCC" = yes; then
10086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10087 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'
10088 else
10089 allow_undefined_flag=' -expect_unresolved \*'
10090 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'
10091 fi
10092 archive_cmds_need_lc='no'
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 ;;
10096
10097 osf4* | osf5*) # as osf3* with the addition of -msym flag
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10105 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~
10106 $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'
10107
10108 # Both c and cxx compiler support -rpath directly
10109 hardcode_libdir_flag_spec='-rpath $libdir'
10110 fi
10111 archive_cmds_need_lc='no'
10112 hardcode_libdir_separator=:
10113 ;;
10114
10115 solaris*)
10116 no_undefined_flag=' -z defs'
10117 if test "$GCC" = yes; then
10118 wlarc='${wl}'
10119 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10122 else
10123 case `$CC -V 2>&1` in
10124 *"Compilers 5.0"*)
10125 wlarc=''
10126 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 ;;
10130 *)
10131 wlarc='${wl}'
10132 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 ;;
10136 esac
10137 fi
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_shlibpath_var=no
10140 case $host_os in
10141 solaris2.[0-5] | solaris2.[0-5].*) ;;
10142 *)
10143 # The compiler driver will combine and reorder linker options,
10144 # but understands `-z linker_flag'. GCC discards it without `$wl',
10145 # but is careful enough not to reorder.
10146 # Supported since Solaris 2.6 (maybe 2.5.1?)
10147 if test "$GCC" = yes; then
10148 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10149 else
10150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 fi
10152 ;;
10153 esac
10154 link_all_deplibs=yes
10155 ;;
10156
10157 sunos4*)
10158 if test "x$host_vendor" = xsequent; then
10159 # Use $CC to link under sequent, because it throws in some extra .o
10160 # files that make .init and .fini sections work.
10161 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10164 fi
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_direct=yes
10167 hardcode_minus_L=yes
10168 hardcode_shlibpath_var=no
10169 ;;
10170
10171 sysv4)
10172 case $host_vendor in
10173 sni)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=yes # is this really true???
10176 ;;
10177 siemens)
10178 ## LD is ld it makes a PLAMLIB
10179 ## CC just makes a GrossModule.
10180 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10181 reload_cmds='$CC -r -o $output$reload_objs'
10182 hardcode_direct=no
10183 ;;
10184 motorola)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10187 ;;
10188 esac
10189 runpath_var='LD_RUN_PATH'
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 sysv4.3*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_shlibpath_var=no
10196 export_dynamic_flag_spec='-Bexport'
10197 ;;
10198
10199 sysv4*MP*)
10200 if test -d /usr/nec; then
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_shlibpath_var=no
10203 runpath_var=LD_RUN_PATH
10204 hardcode_runpath_var=yes
10205 ld_shlibs=yes
10206 fi
10207 ;;
10208
10209 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10210 no_undefined_flag='${wl}-z,text'
10211 archive_cmds_need_lc=no
10212 hardcode_shlibpath_var=no
10213 runpath_var='LD_RUN_PATH'
10214
10215 if test "$GCC" = yes; then
10216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 else
10219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 fi
10222 ;;
10223
10224 sysv5* | sco3.2v5* | sco5v6*)
10225 # Note: We can NOT use -z defs as we might desire, because we do not
10226 # link with -lc, and that would cause any symbols used from libc to
10227 # always be unresolved, which means just about no library would
10228 # ever link correctly. If we're not using GNU ld we use -z text
10229 # though, which does catch some bad symbols but isn't as heavy-handed
10230 # as -z defs.
10231 no_undefined_flag='${wl}-z,text'
10232 allow_undefined_flag='${wl}-z,nodefs'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10236 hardcode_libdir_separator=':'
10237 link_all_deplibs=yes
10238 export_dynamic_flag_spec='${wl}-Bexport'
10239 runpath_var='LD_RUN_PATH'
10240
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
10249
10250 uts4*)
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_shlibpath_var=no
10254 ;;
10255
10256 *)
10257 ld_shlibs=no
10258 ;;
10259 esac
10260
10261 if test x$host_vendor = xsni; then
10262 case $host in
10263 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10264 export_dynamic_flag_spec='${wl}-Blargedynsym'
10265 ;;
10266 esac
10267 fi
10268 fi
10269
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10271 $as_echo "$ld_shlibs" >&6; }
10272 test "$ld_shlibs" = no && can_build_shared=no
10273
10274 with_gnu_ld=$with_gnu_ld
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290 #
10291 # Do we need to explicitly link libc?
10292 #
10293 case "x$archive_cmds_need_lc" in
10294 x|xyes)
10295 # Assume -lc should be added
10296 archive_cmds_need_lc=yes
10297
10298 if test "$enable_shared" = yes && test "$GCC" = yes; then
10299 case $archive_cmds in
10300 *'~'*)
10301 # FIXME: we may have to deal with multi-command sequences.
10302 ;;
10303 '$CC '*)
10304 # Test whether the compiler implicitly links with -lc since on some
10305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10306 # to ld, don't add -lc before -lgcc.
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10309 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 $RM conftest*
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314
10315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 test $ac_status = 0; } 2>conftest.err; then
10320 soname=conftest
10321 lib=conftest
10322 libobjs=conftest.$ac_objext
10323 deplibs=
10324 wl=$lt_prog_compiler_wl
10325 pic_flag=$lt_prog_compiler_pic
10326 compiler_flags=-v
10327 linker_flags=-v
10328 verstring=
10329 output_objdir=.
10330 libname=conftest
10331 lt_save_allow_undefined_flag=$allow_undefined_flag
10332 allow_undefined_flag=
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10334 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10335 ac_status=$?
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; }
10338 then
10339 lt_cv_archive_cmds_need_lc=no
10340 else
10341 lt_cv_archive_cmds_need_lc=yes
10342 fi
10343 allow_undefined_flag=$lt_save_allow_undefined_flag
10344 else
10345 cat conftest.err 1>&5
10346 fi
10347 $RM conftest*
10348
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10351 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10352 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10353 ;;
10354 esac
10355 fi
10356 ;;
10357 esac
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10517
10518 if test "$GCC" = yes; then
10519 case $host_os in
10520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521 *) lt_awk_arg="/^libraries:/" ;;
10522 esac
10523 case $host_os in
10524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525 *) lt_sed_strip_eq="s,=/,/,g" ;;
10526 esac
10527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528 case $lt_search_path_spec in
10529 *\;*)
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 ;;
10536 *)
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10538 ;;
10539 esac
10540 # Ok, now we have the path, separated by spaces, we can step through it
10541 # and add multilib dir if necessary.
10542 lt_tmp_lt_search_path_spec=
10543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544 for lt_sys_path in $lt_search_path_spec; do
10545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10547 else
10548 test -d "$lt_sys_path" && \
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10550 fi
10551 done
10552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10553 BEGIN {RS=" "; FS="/|\n";} {
10554 lt_foo="";
10555 lt_count=0;
10556 for (lt_i = NF; lt_i > 0; lt_i--) {
10557 if ($lt_i != "" && $lt_i != ".") {
10558 if ($lt_i == "..") {
10559 lt_count++;
10560 } else {
10561 if (lt_count == 0) {
10562 lt_foo="/" $lt_i lt_foo;
10563 } else {
10564 lt_count--;
10565 }
10566 }
10567 }
10568 }
10569 if (lt_foo != "") { lt_freq[lt_foo]++; }
10570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10571 }'`
10572 # AWK program above erroneously prepends '/' to C:/dos/paths
10573 # for these hosts.
10574 case $host_os in
10575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10577 esac
10578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10579 else
10580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10581 fi
10582 library_names_spec=
10583 libname_spec='lib$name'
10584 soname_spec=
10585 shrext_cmds=".so"
10586 postinstall_cmds=
10587 postuninstall_cmds=
10588 finish_cmds=
10589 finish_eval=
10590 shlibpath_var=
10591 shlibpath_overrides_runpath=unknown
10592 version_type=none
10593 dynamic_linker="$host_os ld.so"
10594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595 need_lib_prefix=unknown
10596 hardcode_into_libs=no
10597
10598 # when you set need_version to no, make sure it does not cause -set_version
10599 # flags to be left without arguments
10600 need_version=unknown
10601
10602 case $host_os in
10603 aix3*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606 shlibpath_var=LIBPATH
10607
10608 # AIX 3 has no versioning support, so we append a major version to the name.
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 ;;
10611
10612 aix[4-9]*)
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 hardcode_into_libs=yes
10617 if test "$host_cpu" = ia64; then
10618 # AIX 5 supports IA64
10619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 else
10622 # With GCC up to 2.95.x, collect2 would create an import file
10623 # for dependence libraries. The import file would start with
10624 # the line `#! .'. This would cause the generated library to
10625 # depend on `.', always an invalid library. This was fixed in
10626 # development snapshots of GCC prior to 3.0.
10627 case $host_os in
10628 aix4 | aix4.[01] | aix4.[01].*)
10629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630 echo ' yes '
10631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10632 :
10633 else
10634 can_build_shared=no
10635 fi
10636 ;;
10637 esac
10638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639 # soname into executable. Probably we can add versioning support to
10640 # collect2, so additional links can be useful in future.
10641 if test "$aix_use_runtimelinking" = yes; then
10642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643 # instead of lib<name>.a to let people know that these are not
10644 # typical AIX shared libraries.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 else
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='${libname}${release}.a $libname.a'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 fi
10652 shlibpath_var=LIBPATH
10653 fi
10654 ;;
10655
10656 amigaos*)
10657 case $host_cpu in
10658 powerpc)
10659 # Since July 2007 AmigaOS4 officially supports .so libraries.
10660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 ;;
10663 m68k)
10664 library_names_spec='$libname.ixlibrary $libname.a'
10665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10666 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'
10667 ;;
10668 esac
10669 ;;
10670
10671 beos*)
10672 library_names_spec='${libname}${shared_ext}'
10673 dynamic_linker="$host_os ld.so"
10674 shlibpath_var=LIBRARY_PATH
10675 ;;
10676
10677 bsdi[45]*)
10678 version_type=linux
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686 # the default ld.so.conf also contains /usr/contrib/lib and
10687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688 # libtool to hard-code these into programs
10689 ;;
10690
10691 cygwin* | mingw* | pw32* | cegcc*)
10692 version_type=windows
10693 shrext_cmds=".dll"
10694 need_version=no
10695 need_lib_prefix=no
10696
10697 case $GCC,$host_os in
10698 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10699 library_names_spec='$libname.dll.a'
10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701 postinstall_cmds='base_file=`basename \${file}`~
10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10703 dldir=$destdir/`dirname \$dlpath`~
10704 test -d \$dldir || mkdir -p \$dldir~
10705 $install_prog $dir/$dlname \$dldir/$dlname~
10706 chmod a+x \$dldir/$dlname~
10707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10709 fi'
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10714
10715 case $host_os in
10716 cygwin*)
10717 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10718 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10719
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10721 ;;
10722 mingw* | cegcc*)
10723 # MinGW DLLs use traditional 'lib' prefix
10724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10725 ;;
10726 pw32*)
10727 # pw32 DLLs use 'pw' prefix rather than 'lib'
10728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 ;;
10730 esac
10731 ;;
10732
10733 *)
10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10735 ;;
10736 esac
10737 dynamic_linker='Win32 ld.exe'
10738 # FIXME: first we should search . and the directory the executable is in
10739 shlibpath_var=PATH
10740 ;;
10741
10742 darwin* | rhapsody*)
10743 dynamic_linker="$host_os dyld"
10744 version_type=darwin
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10748 soname_spec='${libname}${release}${major}$shared_ext'
10749 shlibpath_overrides_runpath=yes
10750 shlibpath_var=DYLD_LIBRARY_PATH
10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10752
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 ;;
10756
10757 dgux*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 ;;
10765
10766 freebsd* | dragonfly*)
10767 # DragonFly does not have aout. When/if they implement a new
10768 # versioning mechanism, adjust this.
10769 if test -x /usr/bin/objformat; then
10770 objformat=`/usr/bin/objformat`
10771 else
10772 case $host_os in
10773 freebsd[23].*) objformat=aout ;;
10774 *) objformat=elf ;;
10775 esac
10776 fi
10777 version_type=freebsd-$objformat
10778 case $version_type in
10779 freebsd-elf*)
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781 need_version=no
10782 need_lib_prefix=no
10783 ;;
10784 freebsd-*)
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10786 need_version=yes
10787 ;;
10788 esac
10789 shlibpath_var=LD_LIBRARY_PATH
10790 case $host_os in
10791 freebsd2.*)
10792 shlibpath_overrides_runpath=yes
10793 ;;
10794 freebsd3.[01]* | freebsdelf3.[01]*)
10795 shlibpath_overrides_runpath=yes
10796 hardcode_into_libs=yes
10797 ;;
10798 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10799 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10800 shlibpath_overrides_runpath=no
10801 hardcode_into_libs=yes
10802 ;;
10803 *) # from 4.6 on, and DragonFly
10804 shlibpath_overrides_runpath=yes
10805 hardcode_into_libs=yes
10806 ;;
10807 esac
10808 ;;
10809
10810 haiku*)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 dynamic_linker="$host_os runtime_loader"
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10820 hardcode_into_libs=yes
10821 ;;
10822
10823 hpux9* | hpux10* | hpux11*)
10824 # Give a soname corresponding to the major version so that dld.sl refuses to
10825 # link against other versions.
10826 version_type=sunos
10827 need_lib_prefix=no
10828 need_version=no
10829 case $host_cpu in
10830 ia64*)
10831 shrext_cmds='.so'
10832 hardcode_into_libs=yes
10833 dynamic_linker="$host_os dld.so"
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 if test "X$HPUX_IA64_MODE" = X32; then
10839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10840 else
10841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10842 fi
10843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10844 ;;
10845 hppa*64*)
10846 shrext_cmds='.sl'
10847 hardcode_into_libs=yes
10848 dynamic_linker="$host_os dld.sl"
10849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855 ;;
10856 *)
10857 shrext_cmds='.sl'
10858 dynamic_linker="$host_os dld.sl"
10859 shlibpath_var=SHLIB_PATH
10860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 ;;
10864 esac
10865 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10866 postinstall_cmds='chmod 555 $lib'
10867 # or fails outright, so override atomically:
10868 install_override_mode=555
10869 ;;
10870
10871 interix[3-9]*)
10872 version_type=linux
10873 need_lib_prefix=no
10874 need_version=no
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10880 hardcode_into_libs=yes
10881 ;;
10882
10883 irix5* | irix6* | nonstopux*)
10884 case $host_os in
10885 nonstopux*) version_type=nonstopux ;;
10886 *)
10887 if test "$lt_cv_prog_gnu_ld" = yes; then
10888 version_type=linux
10889 else
10890 version_type=irix
10891 fi ;;
10892 esac
10893 need_lib_prefix=no
10894 need_version=no
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10897 case $host_os in
10898 irix5* | nonstopux*)
10899 libsuff= shlibsuff=
10900 ;;
10901 *)
10902 case $LD in # libtool.m4 will add one of these switches to LD
10903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10904 libsuff= shlibsuff= libmagic=32-bit;;
10905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10906 libsuff=32 shlibsuff=N32 libmagic=N32;;
10907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10909 *) libsuff= shlibsuff= libmagic=never-match;;
10910 esac
10911 ;;
10912 esac
10913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10914 shlibpath_overrides_runpath=no
10915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10917 hardcode_into_libs=yes
10918 ;;
10919
10920 # No shared lib support for Linux oldld, aout, or coff.
10921 linux*oldld* | linux*aout* | linux*coff*)
10922 dynamic_linker=no
10923 ;;
10924
10925 # This must be Linux ELF.
10926
10927 # uclinux* changes (here and below) have been submitted to the libtool
10928 # project, but have not yet been accepted: they are GCC-local changes
10929 # for the time being. (See
10930 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10931 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940
10941 # Some binutils ld are patched to set DT_RUNPATH
10942 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 lt_cv_shlibpath_overrides_runpath=no
10946 save_LDFLAGS=$LDFLAGS
10947 save_libdir=$libdir
10948 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10949 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952
10953 int
10954 main ()
10955 {
10956
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10963 lt_cv_shlibpath_overrides_runpath=yes
10964 fi
10965 fi
10966 rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 LDFLAGS=$save_LDFLAGS
10969 libdir=$save_libdir
10970
10971 fi
10972
10973 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10974
10975 # This implies no fast_install, which is unacceptable.
10976 # Some rework will be needed to allow for fast_install
10977 # before this can be enabled.
10978 hardcode_into_libs=yes
10979
10980 # Append ld.so.conf contents to the search path
10981 if test -f /etc/ld.so.conf; then
10982 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' ' '`
10983 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10984 fi
10985
10986 # We used to test for /lib/ld.so.1 and disable shared libraries on
10987 # powerpc, because MkLinux only supported shared libraries with the
10988 # GNU dynamic linker. Since this was broken with cross compilers,
10989 # most powerpc-linux boxes support dynamic linking these days and
10990 # people can always --disable-shared, the test was removed, and we
10991 # assume the GNU/Linux dynamic linker is in use.
10992 dynamic_linker='GNU/Linux ld.so'
10993 ;;
10994
10995 netbsd*)
10996 version_type=sunos
10997 need_lib_prefix=no
10998 need_version=no
10999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11002 dynamic_linker='NetBSD (a.out) ld.so'
11003 else
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 dynamic_linker='NetBSD ld.elf_so'
11007 fi
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 ;;
11012
11013 newsos6)
11014 version_type=linux
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 ;;
11019
11020 *nto* | *qnx*)
11021 version_type=qnx
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=no
11028 hardcode_into_libs=yes
11029 dynamic_linker='ldqnx.so'
11030 ;;
11031
11032 openbsd*)
11033 version_type=sunos
11034 sys_lib_dlsearch_path_spec="/usr/lib"
11035 need_lib_prefix=no
11036 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11037 case $host_os in
11038 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11039 *) need_version=no ;;
11040 esac
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11045 case $host_os in
11046 openbsd2.[89] | openbsd2.[89].*)
11047 shlibpath_overrides_runpath=no
11048 ;;
11049 *)
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052 esac
11053 else
11054 shlibpath_overrides_runpath=yes
11055 fi
11056 ;;
11057
11058 os2*)
11059 libname_spec='$name'
11060 shrext_cmds=".dll"
11061 need_lib_prefix=no
11062 library_names_spec='$libname${shared_ext} $libname.a'
11063 dynamic_linker='OS/2 ld.exe'
11064 shlibpath_var=LIBPATH
11065 ;;
11066
11067 osf3* | osf4* | osf5*)
11068 version_type=osf
11069 need_lib_prefix=no
11070 need_version=no
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11076 ;;
11077
11078 rdos*)
11079 dynamic_linker=no
11080 ;;
11081
11082 solaris*)
11083 version_type=linux
11084 need_lib_prefix=no
11085 need_version=no
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11091 # ldd complains unless libraries are executable
11092 postinstall_cmds='chmod +x $lib'
11093 ;;
11094
11095 sunos4*)
11096 version_type=sunos
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11098 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 if test "$with_gnu_ld" = yes; then
11102 need_lib_prefix=no
11103 fi
11104 need_version=yes
11105 ;;
11106
11107 sysv4 | sysv4.3*)
11108 version_type=linux
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 case $host_vendor in
11113 sni)
11114 shlibpath_overrides_runpath=no
11115 need_lib_prefix=no
11116 runpath_var=LD_RUN_PATH
11117 ;;
11118 siemens)
11119 need_lib_prefix=no
11120 ;;
11121 motorola)
11122 need_lib_prefix=no
11123 need_version=no
11124 shlibpath_overrides_runpath=no
11125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11126 ;;
11127 esac
11128 ;;
11129
11130 sysv4*MP*)
11131 if test -d /usr/nec ;then
11132 version_type=linux
11133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11134 soname_spec='$libname${shared_ext}.$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 fi
11137 ;;
11138
11139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11140 version_type=freebsd-elf
11141 need_lib_prefix=no
11142 need_version=no
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath=yes
11147 hardcode_into_libs=yes
11148 if test "$with_gnu_ld" = yes; then
11149 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11150 else
11151 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11152 case $host_os in
11153 sco3.2v5*)
11154 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11155 ;;
11156 esac
11157 fi
11158 sys_lib_dlsearch_path_spec='/usr/lib'
11159 ;;
11160
11161 tpf*)
11162 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11163 version_type=linux
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=no
11169 hardcode_into_libs=yes
11170 ;;
11171
11172 uts4*)
11173 version_type=linux
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 ;;
11178
11179 # Shared libraries for VwWorks, >= 7 only at this stage
11180 # and (fpic) still incompatible with "large" code models
11181 # in a few configurations. Only for RTP mode in any case,
11182 # and upon explicit request at configure time.
11183 vxworks7*)
11184 dynamic_linker=no
11185 case ${with_multisubdir}-${enable_shared} in
11186 *large*)
11187 ;;
11188 *mrtp*-yes)
11189 version_type=linux
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 dynamic_linker="$host_os module_loader"
11195 ;;
11196 esac
11197 ;;
11198 *)
11199 dynamic_linker=no
11200 ;;
11201 esac
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11203 $as_echo "$dynamic_linker" >&6; }
11204 test "$dynamic_linker" = no && can_build_shared=no
11205
11206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11207 if test "$GCC" = yes; then
11208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11209 fi
11210
11211 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11212 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11213 fi
11214 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11215 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11216 fi
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11310 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11311 hardcode_action=
11312 if test -n "$hardcode_libdir_flag_spec" ||
11313 test -n "$runpath_var" ||
11314 test "X$hardcode_automatic" = "Xyes" ; then
11315
11316 # We can hardcode non-existent directories.
11317 if test "$hardcode_direct" != no &&
11318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11319 # have to relink, otherwise we might link with an installed library
11320 # when we should be linking with a yet-to-be-installed one
11321 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11322 test "$hardcode_minus_L" != no; then
11323 # Linking always hardcodes the temporary library directory.
11324 hardcode_action=relink
11325 else
11326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11327 hardcode_action=immediate
11328 fi
11329 else
11330 # We cannot hardcode anything, or else we can only hardcode existing
11331 # directories.
11332 hardcode_action=unsupported
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11335 $as_echo "$hardcode_action" >&6; }
11336
11337 if test "$hardcode_action" = relink ||
11338 test "$inherit_rpath" = yes; then
11339 # Fast installation is not supported
11340 enable_fast_install=no
11341 elif test "$shlibpath_overrides_runpath" = yes ||
11342 test "$enable_shared" = no; then
11343 # Fast installation is not necessary
11344 enable_fast_install=needless
11345 fi
11346
11347
11348
11349
11350
11351
11352 if test "x$enable_dlopen" != xyes; then
11353 enable_dlopen=unknown
11354 enable_dlopen_self=unknown
11355 enable_dlopen_self_static=unknown
11356 else
11357 lt_cv_dlopen=no
11358 lt_cv_dlopen_libs=
11359
11360 case $host_os in
11361 beos*)
11362 lt_cv_dlopen="load_add_on"
11363 lt_cv_dlopen_libs=
11364 lt_cv_dlopen_self=yes
11365 ;;
11366
11367 mingw* | pw32* | cegcc*)
11368 lt_cv_dlopen="LoadLibrary"
11369 lt_cv_dlopen_libs=
11370 ;;
11371
11372 cygwin*)
11373 lt_cv_dlopen="dlopen"
11374 lt_cv_dlopen_libs=
11375 ;;
11376
11377 darwin*)
11378 # if libdl is installed we need to link against it
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11381 if ${ac_cv_lib_dl_dlopen+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ac_check_lib_save_LIBS=$LIBS
11385 LIBS="-ldl $LIBS"
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char dlopen ();
11396 int
11397 main ()
11398 {
11399 return dlopen ();
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 if ac_fn_c_try_link "$LINENO"; then :
11405 ac_cv_lib_dl_dlopen=yes
11406 else
11407 ac_cv_lib_dl_dlopen=no
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11415 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11417 else
11418
11419 lt_cv_dlopen="dyld"
11420 lt_cv_dlopen_libs=
11421 lt_cv_dlopen_self=yes
11422
11423 fi
11424
11425 ;;
11426
11427 *)
11428 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11429 if test "x$ac_cv_func_shl_load" = xyes; then :
11430 lt_cv_dlopen="shl_load"
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11433 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11434 if ${ac_cv_lib_dld_shl_load+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldld $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char shl_load ();
11449 int
11450 main ()
11451 {
11452 return shl_load ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dld_shl_load=yes
11459 else
11460 ac_cv_lib_dld_shl_load=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11467 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11468 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11470 else
11471 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11472 if test "x$ac_cv_func_dlopen" = xyes; then :
11473 lt_cv_dlopen="dlopen"
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11476 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11477 if ${ac_cv_lib_dl_dlopen+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldl $LIBS"
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char dlopen ();
11492 int
11493 main ()
11494 {
11495 return dlopen ();
11496 ;
11497 return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 ac_cv_lib_dl_dlopen=yes
11502 else
11503 ac_cv_lib_dl_dlopen=no
11504 fi
11505 rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11510 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11511 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11515 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11516 if ${ac_cv_lib_svld_dlopen+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-lsvld $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char dlopen ();
11531 int
11532 main ()
11533 {
11534 return dlopen ();
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_lib_svld_dlopen=yes
11541 else
11542 ac_cv_lib_svld_dlopen=no
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11549 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11550 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11554 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11555 if ${ac_cv_lib_dld_dld_link+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldld $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dld_link ();
11570 int
11571 main ()
11572 {
11573 return dld_link ();
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_dld_dld_link=yes
11580 else
11581 ac_cv_lib_dld_dld_link=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11588 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11589 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11590 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11591 fi
11592
11593
11594 fi
11595
11596
11597 fi
11598
11599
11600 fi
11601
11602
11603 fi
11604
11605
11606 fi
11607
11608 ;;
11609 esac
11610
11611 if test "x$lt_cv_dlopen" != xno; then
11612 enable_dlopen=yes
11613 else
11614 enable_dlopen=no
11615 fi
11616
11617 case $lt_cv_dlopen in
11618 dlopen)
11619 save_CPPFLAGS="$CPPFLAGS"
11620 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11621
11622 save_LDFLAGS="$LDFLAGS"
11623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11624
11625 save_LIBS="$LIBS"
11626 LIBS="$lt_cv_dlopen_libs $LIBS"
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11629 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11630 if ${lt_cv_dlopen_self+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 if test "$cross_compiling" = yes; then :
11634 lt_cv_dlopen_self=cross
11635 else
11636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11637 lt_status=$lt_dlunknown
11638 cat > conftest.$ac_ext <<_LT_EOF
11639 #line 11639 "configure"
11640 #include "confdefs.h"
11641
11642 #if HAVE_DLFCN_H
11643 #include <dlfcn.h>
11644 #endif
11645
11646 #include <stdio.h>
11647
11648 #ifdef RTLD_GLOBAL
11649 # define LT_DLGLOBAL RTLD_GLOBAL
11650 #else
11651 # ifdef DL_GLOBAL
11652 # define LT_DLGLOBAL DL_GLOBAL
11653 # else
11654 # define LT_DLGLOBAL 0
11655 # endif
11656 #endif
11657
11658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11659 find out it does not work in some platform. */
11660 #ifndef LT_DLLAZY_OR_NOW
11661 # ifdef RTLD_LAZY
11662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11663 # else
11664 # ifdef DL_LAZY
11665 # define LT_DLLAZY_OR_NOW DL_LAZY
11666 # else
11667 # ifdef RTLD_NOW
11668 # define LT_DLLAZY_OR_NOW RTLD_NOW
11669 # else
11670 # ifdef DL_NOW
11671 # define LT_DLLAZY_OR_NOW DL_NOW
11672 # else
11673 # define LT_DLLAZY_OR_NOW 0
11674 # endif
11675 # endif
11676 # endif
11677 # endif
11678 #endif
11679
11680 /* When -fvisbility=hidden is used, assume the code has been annotated
11681 correspondingly for the symbols needed. */
11682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11683 void fnord () __attribute__((visibility("default")));
11684 #endif
11685
11686 void fnord () { int i=42; }
11687 int main ()
11688 {
11689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11690 int status = $lt_dlunknown;
11691
11692 if (self)
11693 {
11694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11695 else
11696 {
11697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11698 else puts (dlerror ());
11699 }
11700 /* dlclose (self); */
11701 }
11702 else
11703 puts (dlerror ());
11704
11705 return status;
11706 }
11707 _LT_EOF
11708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11709 (eval $ac_link) 2>&5
11710 ac_status=$?
11711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11713 (./conftest; exit; ) >&5 2>/dev/null
11714 lt_status=$?
11715 case x$lt_status in
11716 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11717 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11718 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11719 esac
11720 else :
11721 # compilation failed
11722 lt_cv_dlopen_self=no
11723 fi
11724 fi
11725 rm -fr conftest*
11726
11727
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11730 $as_echo "$lt_cv_dlopen_self" >&6; }
11731
11732 if test "x$lt_cv_dlopen_self" = xyes; then
11733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11735 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11736 if ${lt_cv_dlopen_self_static+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 if test "$cross_compiling" = yes; then :
11740 lt_cv_dlopen_self_static=cross
11741 else
11742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11743 lt_status=$lt_dlunknown
11744 cat > conftest.$ac_ext <<_LT_EOF
11745 #line 11745 "configure"
11746 #include "confdefs.h"
11747
11748 #if HAVE_DLFCN_H
11749 #include <dlfcn.h>
11750 #endif
11751
11752 #include <stdio.h>
11753
11754 #ifdef RTLD_GLOBAL
11755 # define LT_DLGLOBAL RTLD_GLOBAL
11756 #else
11757 # ifdef DL_GLOBAL
11758 # define LT_DLGLOBAL DL_GLOBAL
11759 # else
11760 # define LT_DLGLOBAL 0
11761 # endif
11762 #endif
11763
11764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11765 find out it does not work in some platform. */
11766 #ifndef LT_DLLAZY_OR_NOW
11767 # ifdef RTLD_LAZY
11768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11769 # else
11770 # ifdef DL_LAZY
11771 # define LT_DLLAZY_OR_NOW DL_LAZY
11772 # else
11773 # ifdef RTLD_NOW
11774 # define LT_DLLAZY_OR_NOW RTLD_NOW
11775 # else
11776 # ifdef DL_NOW
11777 # define LT_DLLAZY_OR_NOW DL_NOW
11778 # else
11779 # define LT_DLLAZY_OR_NOW 0
11780 # endif
11781 # endif
11782 # endif
11783 # endif
11784 #endif
11785
11786 /* When -fvisbility=hidden is used, assume the code has been annotated
11787 correspondingly for the symbols needed. */
11788 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11789 void fnord () __attribute__((visibility("default")));
11790 #endif
11791
11792 void fnord () { int i=42; }
11793 int main ()
11794 {
11795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11796 int status = $lt_dlunknown;
11797
11798 if (self)
11799 {
11800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11801 else
11802 {
11803 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11804 else puts (dlerror ());
11805 }
11806 /* dlclose (self); */
11807 }
11808 else
11809 puts (dlerror ());
11810
11811 return status;
11812 }
11813 _LT_EOF
11814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11815 (eval $ac_link) 2>&5
11816 ac_status=$?
11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11818 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11819 (./conftest; exit; ) >&5 2>/dev/null
11820 lt_status=$?
11821 case x$lt_status in
11822 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11823 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11824 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11825 esac
11826 else :
11827 # compilation failed
11828 lt_cv_dlopen_self_static=no
11829 fi
11830 fi
11831 rm -fr conftest*
11832
11833
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11836 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11837 fi
11838
11839 CPPFLAGS="$save_CPPFLAGS"
11840 LDFLAGS="$save_LDFLAGS"
11841 LIBS="$save_LIBS"
11842 ;;
11843 esac
11844
11845 case $lt_cv_dlopen_self in
11846 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11847 *) enable_dlopen_self=unknown ;;
11848 esac
11849
11850 case $lt_cv_dlopen_self_static in
11851 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11852 *) enable_dlopen_self_static=unknown ;;
11853 esac
11854 fi
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872 striplib=
11873 old_striplib=
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11875 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11876 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11877 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11878 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11880 $as_echo "yes" >&6; }
11881 else
11882 # FIXME - insert some real tests, host_os isn't really good enough
11883 case $host_os in
11884 darwin*)
11885 if test -n "$STRIP" ; then
11886 striplib="$STRIP -x"
11887 old_striplib="$STRIP -S"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11890 else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893 fi
11894 ;;
11895 *)
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 ;;
11899 esac
11900 fi
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 # Report which library types will actually be built
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11915 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11917 $as_echo "$can_build_shared" >&6; }
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11920 $as_echo_n "checking whether to build shared libraries... " >&6; }
11921 test "$can_build_shared" = "no" && enable_shared=no
11922
11923 # On AIX, shared libraries and static libraries use the same namespace, and
11924 # are all built from PIC.
11925 case $host_os in
11926 aix3*)
11927 test "$enable_shared" = yes && enable_static=no
11928 if test -n "$RANLIB"; then
11929 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11930 postinstall_cmds='$RANLIB $lib'
11931 fi
11932 ;;
11933
11934 aix[4-9]*)
11935 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11936 test "$enable_shared" = yes && enable_static=no
11937 fi
11938 ;;
11939 esac
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11941 $as_echo "$enable_shared" >&6; }
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11944 $as_echo_n "checking whether to build static libraries... " >&6; }
11945 # Make sure either enable_shared or enable_static is yes.
11946 test "$enable_shared" = yes || enable_static=yes
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11948 $as_echo "$enable_static" >&6; }
11949
11950
11951
11952
11953 fi
11954 ac_ext=c
11955 ac_cpp='$CPP $CPPFLAGS'
11956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959
11960 CC="$lt_save_CC"
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 ac_config_commands="$ac_config_commands libtool"
11975
11976
11977
11978
11979 # Only expand once:
11980
11981
11982
11983
11984 if test x$enable_darwin_at_rpath = xyes; then
11985 ENABLE_DARWIN_AT_RPATH_TRUE=
11986 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11987 else
11988 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11989 ENABLE_DARWIN_AT_RPATH_FALSE=
11990 fi
11991
11992
11993 # Check whether --enable-largefile was given.
11994 if test "${enable_largefile+set}" = set; then :
11995 enableval=$enable_largefile;
11996 fi
11997
11998 if test "$enable_largefile" != no; then
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12002 if ${ac_cv_sys_largefile_CC+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_cv_sys_largefile_CC=no
12006 if test "$GCC" != yes; then
12007 ac_save_CC=$CC
12008 while :; do
12009 # IRIX 6.2 and later do not support large files by default,
12010 # so use the C compiler's -n32 option if that helps.
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include <sys/types.h>
12014 /* Check that off_t can represent 2**63 - 1 correctly.
12015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12016 since some C++ compilers masquerading as C compilers
12017 incorrectly reject 9223372036854775807. */
12018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12020 && LARGE_OFF_T % 2147483647 == 1)
12021 ? 1 : -1];
12022 int
12023 main ()
12024 {
12025
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031 break
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext
12034 CC="$CC -n32"
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_sys_largefile_CC=' -n32'; break
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext
12039 break
12040 done
12041 CC=$ac_save_CC
12042 rm -f conftest.$ac_ext
12043 fi
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12047 if test "$ac_cv_sys_largefile_CC" != no; then
12048 CC=$CC$ac_cv_sys_largefile_CC
12049 fi
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12053 if ${ac_cv_sys_file_offset_bits+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 while :; do
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 /* Check that off_t can represent 2**63 - 1 correctly.
12061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12062 since some C++ compilers masquerading as C compilers
12063 incorrectly reject 9223372036854775807. */
12064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12066 && LARGE_OFF_T % 2147483647 == 1)
12067 ? 1 : -1];
12068 int
12069 main ()
12070 {
12071
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 ac_cv_sys_file_offset_bits=no; break
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #define _FILE_OFFSET_BITS 64
12083 #include <sys/types.h>
12084 /* Check that off_t can represent 2**63 - 1 correctly.
12085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12086 since some C++ compilers masquerading as C compilers
12087 incorrectly reject 9223372036854775807. */
12088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12090 && LARGE_OFF_T % 2147483647 == 1)
12091 ? 1 : -1];
12092 int
12093 main ()
12094 {
12095
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 ac_cv_sys_file_offset_bits=64; break
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 ac_cv_sys_file_offset_bits=unknown
12105 break
12106 done
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12110 case $ac_cv_sys_file_offset_bits in #(
12111 no | unknown) ;;
12112 *)
12113 cat >>confdefs.h <<_ACEOF
12114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12115 _ACEOF
12116 ;;
12117 esac
12118 rm -rf conftest*
12119 if test $ac_cv_sys_file_offset_bits = unknown; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12122 if ${ac_cv_sys_large_files+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 while :; do
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <sys/types.h>
12129 /* Check that off_t can represent 2**63 - 1 correctly.
12130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12131 since some C++ compilers masquerading as C compilers
12132 incorrectly reject 9223372036854775807. */
12133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12135 && LARGE_OFF_T % 2147483647 == 1)
12136 ? 1 : -1];
12137 int
12138 main ()
12139 {
12140
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 ac_cv_sys_large_files=no; break
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #define _LARGE_FILES 1
12152 #include <sys/types.h>
12153 /* Check that off_t can represent 2**63 - 1 correctly.
12154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12155 since some C++ compilers masquerading as C compilers
12156 incorrectly reject 9223372036854775807. */
12157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12159 && LARGE_OFF_T % 2147483647 == 1)
12160 ? 1 : -1];
12161 int
12162 main ()
12163 {
12164
12165 ;
12166 return 0;
12167 }
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170 ac_cv_sys_large_files=1; break
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 ac_cv_sys_large_files=unknown
12174 break
12175 done
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12178 $as_echo "$ac_cv_sys_large_files" >&6; }
12179 case $ac_cv_sys_large_files in #(
12180 no | unknown) ;;
12181 *)
12182 cat >>confdefs.h <<_ACEOF
12183 #define _LARGE_FILES $ac_cv_sys_large_files
12184 _ACEOF
12185 ;;
12186 esac
12187 rm -rf conftest*
12188 fi
12189
12190
12191 fi
12192
12193
12194 backtrace_supported=yes
12195
12196 if test -n "${with_target_subdir}"; then
12197 # We are compiling a GCC library. We can assume that the unwind
12198 # library exists.
12199 BACKTRACE_FILE="backtrace.lo simple.lo"
12200 else
12201 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12202 if test "x$ac_cv_header_unwind_h" = xyes; then :
12203 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12204 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12205 BACKTRACE_FILE="backtrace.lo simple.lo"
12206 else
12207 BACKTRACE_FILE="nounwind.lo"
12208 backtrace_supported=no
12209 fi
12210
12211 else
12212 BACKTRACE_FILE="nounwind.lo"
12213 backtrace_supported=no
12214 fi
12215
12216
12217 fi
12218
12219
12220 EXTRA_FLAGS=
12221 if test -n "${with_target_subdir}"; then
12222 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12225 $as_echo_n "checking for -funwind-tables option... " >&6; }
12226 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 CFLAGS_hold="$CFLAGS"
12230 CFLAGS="$CFLAGS -funwind-tables"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 static int f() { return 0; }
12234 int
12235 main ()
12236 {
12237 return f();
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_compile "$LINENO"; then :
12243 libbacktrace_cv_c_unwind_tables=yes
12244 else
12245 libbacktrace_cv_c_unwind_tables=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 CFLAGS="$CFLAGS_hold"
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12251 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12252 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12253 EXTRA_FLAGS=-funwind-tables
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12256 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12257 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 CFLAGS_hold="$CFLAGS"
12261 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 int
12266 main ()
12267 {
12268 return 0;
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274 libbacktrace_cv_c_random_seed_string=yes
12275 else
12276 libbacktrace_cv_c_random_seed_string=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 CFLAGS="$CFLAGS_hold"
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12282 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12283 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12284 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12285 fi
12286 fi
12287
12288 if test -n "${with_target_subdir}"; then
12289 # Add CET specific flags is Intel CET is enabled.
12290 # Check whether --enable-cet was given.
12291 if test "${enable_cet+set}" = set; then :
12292 enableval=$enable_cet;
12293 case "$enableval" in
12294 yes|no|auto) ;;
12295 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12296 esac
12297
12298 else
12299 enable_cet=auto
12300 fi
12301
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12304 $as_echo_n "checking for CET support... " >&6; }
12305
12306 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12307 case "$host" in
12308 i[34567]86-*-linux* | x86_64-*-linux*)
12309 case "$enable_cet" in
12310 auto)
12311 # Check if target supports multi-byte NOPs
12312 # and if compiler and assembler support CET insn.
12313 cet_save_CFLAGS="$CFLAGS"
12314 CFLAGS="$CFLAGS -fcf-protection"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317
12318 int
12319 main ()
12320 {
12321
12322 #if !defined(__SSE2__)
12323 #error target does not support multi-byte NOPs
12324 #else
12325 asm ("setssbsy");
12326 #endif
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333 enable_cet=yes
12334 else
12335 enable_cet=no
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 CFLAGS="$cet_save_CFLAGS"
12339 ;;
12340 yes)
12341 # Check if assembler supports CET.
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344
12345 int
12346 main ()
12347 {
12348 asm ("setssbsy");
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354
12355 else
12356 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 ;;
12360 esac
12361 ;;
12362 *)
12363 enable_cet=no
12364 ;;
12365 esac
12366 if test x$enable_cet = xyes; then
12367 CET_FLAGS="-fcf-protection -mshstk"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369 $as_echo "yes" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374
12375 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12376 fi
12377
12378
12379 ac_ext=c
12380 ac_cpp='$CPP $CPPFLAGS'
12381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12384
12385 WARN_FLAGS=
12386 save_CFLAGS="$CFLAGS"
12387 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12388 -Wmissing-prototypes -Wold-style-definition \
12389 -Wmissing-format-attribute -Wcast-qual \
12390 -Wno-attributes -Wno-unknown-attributes \
12391 -Wpointer-arith; do
12392 # Do the check with the no- prefix removed since gcc silently
12393 # accepts any -Wno-* option on purpose
12394 case $real_option in
12395 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12396 *) option=$real_option ;;
12397 esac
12398 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12401 $as_echo_n "checking whether $CC supports $option... " >&6; }
12402 if eval \${$as_acx_Woption+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 CFLAGS="$option"
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408
12409 int
12410 main ()
12411 {
12412
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418 eval "$as_acx_Woption=yes"
12419 else
12420 eval "$as_acx_Woption=no"
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423
12424 fi
12425 eval ac_res=\$$as_acx_Woption
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12427 $as_echo "$ac_res" >&6; }
12428 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12429 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12430 fi
12431 done
12432 CFLAGS="$save_CFLAGS"
12433 ac_ext=c
12434 ac_cpp='$CPP $CPPFLAGS'
12435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12438
12439
12440
12441 # Check whether --enable-werror was given.
12442 if test "${enable_werror+set}" = set; then :
12443 enableval=$enable_werror;
12444 fi
12445
12446 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12447 WARN_FLAGS="$WARN_FLAGS -Werror"
12448 fi
12449
12450
12451 if test -n "${with_target_subdir}"; then
12452
12453
12454 # Check whether --with-system-libunwind was given.
12455 if test "${with_system_libunwind+set}" = set; then :
12456 withval=$with_system_libunwind;
12457 fi
12458
12459 # If system-libunwind was not specifically set, pick a default setting.
12460 if test x$with_system_libunwind = x; then
12461 case ${target} in
12462 ia64-*-hpux*) with_system_libunwind=yes ;;
12463 *) with_system_libunwind=no ;;
12464 esac
12465 fi
12466 # Based on system-libunwind and target, do we have ipinfo?
12467 if test x$with_system_libunwind = xyes; then
12468 case ${target} in
12469 ia64-*-*) have_unwind_getipinfo=no ;;
12470 *) have_unwind_getipinfo=yes ;;
12471 esac
12472 else
12473 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12474
12475 case ${target} in
12476 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12477 *) have_unwind_getipinfo=yes ;;
12478 esac
12479
12480 fi
12481
12482 if test x$have_unwind_getipinfo = xyes; then
12483
12484 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12485
12486 fi
12487
12488 else
12489 ac_save_CFFLAGS="$CFLAGS"
12490 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12492 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include "unwind.h"
12496 struct _Unwind_Context *context;
12497 int ip_before_insn = 0;
12498 int
12499 main ()
12500 {
12501 return _Unwind_GetIPInfo (context, &ip_before_insn);
12502 ;
12503 return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 have_unwind_getipinfo=yes
12508 else
12509 have_unwind_getipinfo=no
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12513 CFLAGS="$ac_save_CFLAGS"
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12515 $as_echo "$have_unwind_getipinfo" >&6; }
12516 if test "$have_unwind_getipinfo" = "yes"; then
12517
12518 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12519
12520 fi
12521 fi
12522
12523 # Enable --enable-host-pie.
12524 # Check whether --enable-host-pie was given.
12525 if test "${enable_host_pie+set}" = set; then :
12526 enableval=$enable_host_pie; PIC_FLAG=-fPIE
12527 else
12528 PIC_FLAG=
12529 fi
12530
12531 # Enable --enable-host-shared.
12532 # Check whether --enable-host-shared was given.
12533 if test "${enable_host_shared+set}" = set; then :
12534 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12535 fi
12536
12537
12538
12539 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12540 # Check whether --enable-cet was given.
12541 if test "${enable_cet+set}" = set; then :
12542 enableval=$enable_cet;
12543 case "$enableval" in
12544 yes|no|auto) ;;
12545 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12546 esac
12547
12548 else
12549 enable_cet=auto
12550 fi
12551
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12554 $as_echo_n "checking for CET support... " >&6; }
12555
12556 case "$host" in
12557 i[34567]86-*-linux* | x86_64-*-linux*)
12558 may_have_cet=yes
12559 cet_save_CFLAGS="$CFLAGS"
12560 CFLAGS="$CFLAGS -fcf-protection"
12561 case "$enable_cet" in
12562 auto)
12563 # Check if target supports multi-byte NOPs
12564 # and if compiler and assembler support CET.
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567
12568 int
12569 main ()
12570 {
12571
12572 #if !defined(__SSE2__)
12573 #error target does not support multi-byte NOPs
12574 #else
12575 asm ("setssbsy");
12576 #endif
12577
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 enable_cet=yes
12584 else
12585 enable_cet=no
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 ;;
12589 yes)
12590 # Check if compiler and assembler support CET.
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593
12594 int
12595 main ()
12596 {
12597 asm ("setssbsy");
12598 ;
12599 return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_compile "$LINENO"; then :
12603 support_cet=yes
12604 else
12605 support_cet=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 if test $support_cet = "no"; then
12609 if test x$enable_bootstrap != xno \
12610 && test -z "${with_build_subdir}" \
12611 && (test ! -f ../stage_current \
12612 || test `cat ../stage_current` != "stage1"); then
12613 # Require CET support only for the final GCC build.
12614 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12615 else
12616 # Don't enable CET without CET support for non-bootstrap
12617 # build, in stage1 nor for build support.
12618 enable_cet=no
12619 fi
12620 fi
12621 ;;
12622 esac
12623 CFLAGS="$cet_save_CFLAGS"
12624 ;;
12625 *)
12626 may_have_cet=no
12627 enable_cet=no
12628 ;;
12629 esac
12630
12631 cet_save_CFLAGS="$CFLAGS"
12632 CFLAGS="$CFLAGS -fcf-protection=none"
12633 cet_save_LDFLAGS="$LDFLAGS"
12634 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12635 if test x$may_have_cet = xyes; then
12636 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639
12640 int
12641 main ()
12642 {
12643 return 0;
12644 ;
12645 return 0;
12646 }
12647 _ACEOF
12648 if ac_fn_c_try_link "$LINENO"; then :
12649 may_have_cet=yes
12650 else
12651 may_have_cet=no
12652 fi
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 fi
12656
12657 if test x$may_have_cet = xyes; then
12658 if test x$cross_compiling = xno; then
12659 if test "$cross_compiling" = yes; then :
12660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12662 as_fn_error $? "cannot run test program while cross compiling
12663 See \`config.log' for more details" "$LINENO" 5; }
12664 else
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667
12668 int
12669 main ()
12670 {
12671 asm ("endbr32");
12672 return 0;
12673 }
12674
12675 _ACEOF
12676 if ac_fn_c_try_run "$LINENO"; then :
12677 have_multi_byte_nop=yes
12678 else
12679 have_multi_byte_nop=no
12680 fi
12681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682 conftest.$ac_objext conftest.beam conftest.$ac_ext
12683 fi
12684
12685 have_cet=no
12686 if test x$have_multi_byte_nop = xyes; then
12687 if test "$cross_compiling" = yes; then :
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12690 as_fn_error $? "cannot run test program while cross compiling
12691 See \`config.log' for more details" "$LINENO" 5; }
12692 else
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695
12696 static void
12697 foo (void)
12698 {
12699 }
12700
12701 static void
12702 __attribute__ ((noinline, noclone))
12703 xxx (void (*f) (void))
12704 {
12705 f ();
12706 }
12707
12708 static void
12709 __attribute__ ((noinline, noclone))
12710 bar (void)
12711 {
12712 xxx (foo);
12713 }
12714
12715 int
12716 main ()
12717 {
12718 bar ();
12719 return 0;
12720 }
12721
12722 _ACEOF
12723 if ac_fn_c_try_run "$LINENO"; then :
12724 have_cet=no
12725 else
12726 have_cet=yes
12727 fi
12728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12729 conftest.$ac_objext conftest.beam conftest.$ac_ext
12730 fi
12731
12732 fi
12733 if test x$enable_cet = xno -a x$have_cet = xyes; then
12734 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12735 fi
12736 fi
12737 else
12738 # Enable CET in cross compiler if possible so that it will run on both
12739 # CET and non-CET hosts.
12740 have_cet=yes
12741 fi
12742 if test x$enable_cet = xyes; then
12743 CET_HOST_FLAGS="-fcf-protection"
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12745 $as_echo "yes" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750 CFLAGS="$cet_save_CFLAGS"
12751 LDFLAGS="$cet_save_LDFLAGS"
12752
12753 case x$enable_languages in
12754 *jit*)
12755 ;;
12756 *)
12757 CET_HOST_FLAGS=
12758 ;;
12759 esac
12760
12761
12762 # Test for __sync support.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12764 $as_echo_n "checking __sync extensions... " >&6; }
12765 if ${libbacktrace_cv_sys_sync+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -n "${with_target_subdir}"; then
12769 case "${host}" in
12770 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12771 arm*-*-eabi*)
12772 # Older versions of the Arm architecture lack the necessary instructions
12773 # for these constructs, so check whether we can use them.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 int i;
12777 int
12778 main ()
12779 {
12780 __sync_bool_compare_and_swap (&i, i, i);
12781 __sync_lock_test_and_set (&i, 1);
12782 __sync_lock_release (&i);
12783 ;
12784 return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 libbacktrace_cv_sys_sync=yes
12789 else
12790 libbacktrace_cv_sys_sync=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext;;
12794 *) libbacktrace_cv_sys_sync=yes ;;
12795 esac
12796 else
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 int i;
12800 int
12801 main ()
12802 {
12803 __sync_bool_compare_and_swap (&i, i, i);
12804 __sync_lock_test_and_set (&i, 1);
12805 __sync_lock_release (&i);
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 libbacktrace_cv_sys_sync=yes
12812 else
12813 libbacktrace_cv_sys_sync=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 fi
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12820 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12821 BACKTRACE_SUPPORTS_THREADS=0
12822 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12823 BACKTRACE_SUPPORTS_THREADS=1
12824
12825 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12826
12827 fi
12828
12829
12830 # Test for __atomic support.
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12832 $as_echo_n "checking __atomic extensions... " >&6; }
12833 if ${libbacktrace_cv_sys_atomic+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -n "${with_target_subdir}"; then
12837 libbacktrace_cv_sys_atomic=yes
12838 else
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 int i;
12842 int
12843 main ()
12844 {
12845 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12846 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 libbacktrace_cv_sys_atomic=yes
12853 else
12854 libbacktrace_cv_sys_atomic=no
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext conftest.$ac_ext
12858 fi
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12861 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12862 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12863
12864 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12865
12866 fi
12867
12868 # The library needs to be able to read the executable itself. Compile
12869 # a file to determine the executable format. The awk script
12870 # filetype.awk prints out the file type.
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12872 $as_echo_n "checking output filetype... " >&6; }
12873 if ${libbacktrace_cv_sys_filetype+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 filetype=
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 int i;
12880 int
12881 main ()
12882 {
12883 int j;
12884 ;
12885 return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12890 else
12891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12893 as_fn_error $? "compiler failed
12894 See \`config.log' for more details" "$LINENO" 5; }
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 libbacktrace_cv_sys_filetype=$filetype
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12900 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12901
12902 # Match the file type to decide what files to compile.
12903 FORMAT_FILE=
12904 backtrace_supports_data=yes
12905 case "$libbacktrace_cv_sys_filetype" in
12906 elf*) FORMAT_FILE="elf.lo" ;;
12907 macho) FORMAT_FILE="macho.lo" ;;
12908 pecoff) FORMAT_FILE="pecoff.lo"
12909 backtrace_supports_data=no
12910 ;;
12911 xcoff*) FORMAT_FILE="xcoff.lo"
12912 backtrace_supports_data=no
12913 ;;
12914 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12915 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12916 FORMAT_FILE="unknown.lo"
12917 backtrace_supported=no
12918 ;;
12919 esac
12920
12921
12922 # ELF defines.
12923 elfsize=
12924 case "$libbacktrace_cv_sys_filetype" in
12925 elf32) elfsize=32 ;;
12926 elf64) elfsize=64 ;;
12927 *) elfsize=unused
12928 esac
12929
12930 cat >>confdefs.h <<_ACEOF
12931 #define BACKTRACE_ELF_SIZE $elfsize
12932 _ACEOF
12933
12934 if test "$FORMAT_FILE" = "elf.lo"; then
12935 HAVE_ELF_TRUE=
12936 HAVE_ELF_FALSE='#'
12937 else
12938 HAVE_ELF_TRUE='#'
12939 HAVE_ELF_FALSE=
12940 fi
12941
12942
12943 # XCOFF defines.
12944 xcoffsize=
12945 case "$libbacktrace_cv_sys_filetype" in
12946 xcoff32) xcoffsize=32 ;;
12947 xcoff64) xcoffsize=64 ;;
12948 *) xcoffsize=unused
12949 esac
12950
12951 cat >>confdefs.h <<_ACEOF
12952 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12953 _ACEOF
12954
12955
12956 BACKTRACE_SUPPORTED=0
12957 if test "$backtrace_supported" = "yes"; then
12958 BACKTRACE_SUPPORTED=1
12959 fi
12960
12961
12962 BACKTRACE_SUPPORTS_DATA=0
12963 if test "$backtrace_supports_data" = "yes"; then
12964 BACKTRACE_SUPPORTS_DATA=1
12965 fi
12966
12967
12968
12969
12970 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12971
12972 acx_cv_header_stdint=stddef.h
12973 acx_cv_header_stdint_kind="(already complete)"
12974 for i in stdint.h $inttype_headers; do
12975 unset ac_cv_type_uintptr_t
12976 unset ac_cv_type_uintmax_t
12977 unset ac_cv_type_int_least32_t
12978 unset ac_cv_type_int_fast32_t
12979 unset ac_cv_type_uint64_t
12980 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12981 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12982 #include <$i>
12983 "
12984 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12985 acx_cv_header_stdint=$i
12986 else
12987 continue
12988 fi
12989
12990 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12991 #include <$i>
12992 "
12993 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12994
12995 else
12996 acx_cv_header_stdint_kind="(mostly complete)"
12997 fi
12998
12999 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13000 #include <$i>
13001 "
13002 if test "x$ac_cv_type_int_least32_t" = xyes; then :
13003
13004 else
13005 acx_cv_header_stdint_kind="(mostly complete)"
13006 fi
13007
13008 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13009 #include <$i>
13010 "
13011 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13012
13013 else
13014 acx_cv_header_stdint_kind="(mostly complete)"
13015 fi
13016
13017 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13018 #include <$i>
13019 "
13020 if test "x$ac_cv_type_uint64_t" = xyes; then :
13021
13022 else
13023 acx_cv_header_stdint_kind="(lacks uint64_t)"
13024 fi
13025
13026 break
13027 done
13028 if test "$acx_cv_header_stdint" = stddef.h; then
13029 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13030 for i in stdint.h $inttype_headers; do
13031 unset ac_cv_type_uintptr_t
13032 unset ac_cv_type_uint32_t
13033 unset ac_cv_type_uint64_t
13034 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13035 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13036 #include <$i>
13037 "
13038 if test "x$ac_cv_type_uint32_t" = xyes; then :
13039 acx_cv_header_stdint=$i
13040 else
13041 continue
13042 fi
13043
13044 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13045 #include <$i>
13046 "
13047 if test "x$ac_cv_type_uint64_t" = xyes; then :
13048
13049 fi
13050
13051 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13052 #include <$i>
13053 "
13054 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13055
13056 fi
13057
13058 break
13059 done
13060 fi
13061 if test "$acx_cv_header_stdint" = stddef.h; then
13062 acx_cv_header_stdint_kind="(u_intXX_t style)"
13063 for i in sys/types.h $inttype_headers; do
13064 unset ac_cv_type_u_int32_t
13065 unset ac_cv_type_u_int64_t
13066 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13067 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13068 #include <$i>
13069 "
13070 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13071 acx_cv_header_stdint=$i
13072 else
13073 continue
13074 fi
13075
13076 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13077 #include <$i>
13078 "
13079 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13080
13081 fi
13082
13083 break
13084 done
13085 fi
13086 if test "$acx_cv_header_stdint" = stddef.h; then
13087 acx_cv_header_stdint_kind="(using manual detection)"
13088 fi
13089
13090 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13091 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13092 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13093 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13094 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13095
13096 # ----------------- Summarize what we found so far
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
13099 $as_echo_n "checking what to include in gstdint.h... " >&6; }
13100
13101 case `$as_basename -- gstdint.h ||
13102 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
13103 Xgstdint.h : 'X\(//\)$' \| \
13104 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
13105 $as_echo X/gstdint.h |
13106 sed '/^.*\/\([^/][^/]*\)\/*$/{
13107 s//\1/
13108 q
13109 }
13110 /^X\/\(\/\/\)$/{
13111 s//\1/
13112 q
13113 }
13114 /^X\/\(\/\).*/{
13115 s//\1/
13116 q
13117 }
13118 s/.*/./; q'` in
13119 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13120 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13121 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13122 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13123 *) ;;
13124 esac
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13127 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13128
13129 # ----------------- done included file, check C basic types --------
13130
13131 # Lacking an uintptr_t? Test size of void *
13132 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13133 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13136 # This bug is HP SR number 8606223364.
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13138 $as_echo_n "checking size of void *... " >&6; }
13139 if ${ac_cv_sizeof_void_p+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13143
13144 else
13145 if test "$ac_cv_type_void_p" = yes; then
13146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13148 as_fn_error 77 "cannot compute sizeof (void *)
13149 See \`config.log' for more details" "$LINENO" 5; }
13150 else
13151 ac_cv_sizeof_void_p=0
13152 fi
13153 fi
13154
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13157 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13158
13159
13160
13161 cat >>confdefs.h <<_ACEOF
13162 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13163 _ACEOF
13164
13165 ;;
13166 esac
13167
13168 # Lacking an uint64_t? Test size of long
13169 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13170 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13173 # This bug is HP SR number 8606223364.
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13175 $as_echo_n "checking size of long... " >&6; }
13176 if ${ac_cv_sizeof_long+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13180
13181 else
13182 if test "$ac_cv_type_long" = yes; then
13183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13185 as_fn_error 77 "cannot compute sizeof (long)
13186 See \`config.log' for more details" "$LINENO" 5; }
13187 else
13188 ac_cv_sizeof_long=0
13189 fi
13190 fi
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13194 $as_echo "$ac_cv_sizeof_long" >&6; }
13195
13196
13197
13198 cat >>confdefs.h <<_ACEOF
13199 #define SIZEOF_LONG $ac_cv_sizeof_long
13200 _ACEOF
13201
13202 ;;
13203 esac
13204
13205 if test $acx_cv_header_stdint = stddef.h; then
13206 # Lacking a good header? Test size of everything and deduce all types.
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 int" >&5
13212 $as_echo_n "checking size of int... " >&6; }
13213 if ${ac_cv_sizeof_int+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13217
13218 else
13219 if test "$ac_cv_type_int" = 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 (int)
13223 See \`config.log' for more details" "$LINENO" 5; }
13224 else
13225 ac_cv_sizeof_int=0
13226 fi
13227 fi
13228
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13231 $as_echo "$ac_cv_sizeof_int" >&6; }
13232
13233
13234
13235 cat >>confdefs.h <<_ACEOF
13236 #define SIZEOF_INT $ac_cv_sizeof_int
13237 _ACEOF
13238
13239
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 short" >&5
13245 $as_echo_n "checking size of short... " >&6; }
13246 if ${ac_cv_sizeof_short+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13250
13251 else
13252 if test "$ac_cv_type_short" = 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 (short)
13256 See \`config.log' for more details" "$LINENO" 5; }
13257 else
13258 ac_cv_sizeof_short=0
13259 fi
13260 fi
13261
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13264 $as_echo "$ac_cv_sizeof_short" >&6; }
13265
13266
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define SIZEOF_SHORT $ac_cv_sizeof_short
13270 _ACEOF
13271
13272
13273 # The cast to long int works around a bug in the HP C Compiler
13274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13276 # This bug is HP SR number 8606223364.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13278 $as_echo_n "checking size of char... " >&6; }
13279 if ${ac_cv_sizeof_char+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13283
13284 else
13285 if test "$ac_cv_type_char" = yes; then
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error 77 "cannot compute sizeof (char)
13289 See \`config.log' for more details" "$LINENO" 5; }
13290 else
13291 ac_cv_sizeof_char=0
13292 fi
13293 fi
13294
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13297 $as_echo "$ac_cv_sizeof_char" >&6; }
13298
13299
13300
13301 cat >>confdefs.h <<_ACEOF
13302 #define SIZEOF_CHAR $ac_cv_sizeof_char
13303 _ACEOF
13304
13305
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13308 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13309 case "$ac_cv_sizeof_char" in
13310 1) acx_cv_type_int8_t=char ;;
13311 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13312 esac
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13314 $as_echo "$acx_cv_type_int8_t" >&6; }
13315
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13317 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13318 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13319 2:*) acx_cv_type_int16_t=int ;;
13320 *:2) acx_cv_type_int16_t=short ;;
13321 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13322 esac
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13324 $as_echo "$acx_cv_type_int16_t" >&6; }
13325
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13327 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13328 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13329 4:*) acx_cv_type_int32_t=int ;;
13330 *:4) acx_cv_type_int32_t=long ;;
13331 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13332 esac
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13334 $as_echo "$acx_cv_type_int32_t" >&6; }
13335 fi
13336
13337 # These tests are here to make the output prettier
13338
13339 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13340 case "$ac_cv_sizeof_long" in
13341 8) acx_cv_type_int64_t=long ;;
13342 esac
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13344 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13346 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13347 fi
13348
13349 # Now we can use the above types
13350
13351 if test "$ac_cv_type_uintptr_t" != yes; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13353 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13354 case $ac_cv_sizeof_void_p in
13355 2) acx_cv_type_intptr_t=int16_t ;;
13356 4) acx_cv_type_intptr_t=int32_t ;;
13357 8) acx_cv_type_intptr_t=int64_t ;;
13358 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13359 esac
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13361 $as_echo "$acx_cv_type_intptr_t" >&6; }
13362 fi
13363
13364 # ----------------- done all checks, emit header -------------
13365 ac_config_commands="$ac_config_commands gstdint.h"
13366
13367
13368
13369
13370 for ac_header in sys/mman.h
13371 do :
13372 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13373 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_SYS_MMAN_H 1
13376 _ACEOF
13377
13378 fi
13379
13380 done
13381
13382 if test "$ac_cv_header_sys_mman_h" = "no"; then
13383 have_mmap=no
13384 else
13385 if test -n "${with_target_subdir}"; then
13386 # When built as a GCC target library, we can't do a link test. We
13387 # simply assume that if we have mman.h, we have mmap.
13388 have_mmap=yes
13389 case "${host}" in
13390 *-*-msdosdjgpp)
13391 # DJGPP has sys/man.h, but no mmap
13392 have_mmap=no ;;
13393 esac
13394 else
13395 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13396 if test "x$ac_cv_func_mmap" = xyes; then :
13397 have_mmap=yes
13398 else
13399 have_mmap=no
13400 fi
13401
13402 fi
13403 fi
13404 if test "$have_mmap" = "no"; then
13405 VIEW_FILE=read.lo
13406 ALLOC_FILE=alloc.lo
13407 else
13408 VIEW_FILE=mmapio.lo
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411
13412 #include <sys/mman.h>
13413 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13414 #error no MAP_ANONYMOUS
13415 #endif
13416
13417 _ACEOF
13418 if ac_fn_c_try_cpp "$LINENO"; then :
13419 ALLOC_FILE=mmap.lo
13420 else
13421 ALLOC_FILE=alloc.lo
13422 fi
13423 rm -f conftest.err conftest.i conftest.$ac_ext
13424 fi
13425
13426
13427
13428 BACKTRACE_USES_MALLOC=0
13429 if test "$ALLOC_FILE" = "alloc.lo"; then
13430 BACKTRACE_USES_MALLOC=1
13431 fi
13432
13433
13434 # Check for dl_iterate_phdr.
13435 for ac_header in link.h sys/link.h
13436 do :
13437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442 _ACEOF
13443
13444 fi
13445
13446 done
13447
13448 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13449 have_dl_iterate_phdr=no
13450 else
13451 if test -n "${with_target_subdir}"; then
13452 link_h=link.h
13453 if test "$ac_cv_header_link_h" = "no"; then
13454 link_h=sys/link.h
13455 fi
13456 # When built as a GCC target library, we can't do a link test.
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <$link_h>
13460
13461 _ACEOF
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13464 have_dl_iterate_phdr=yes
13465 else
13466 have_dl_iterate_phdr=no
13467 fi
13468 rm -f conftest*
13469
13470 else
13471 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13472 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13473 have_dl_iterate_phdr=yes
13474 else
13475 have_dl_iterate_phdr=no
13476 fi
13477
13478 fi
13479 fi
13480 if test "$have_dl_iterate_phdr" = "yes"; then
13481
13482 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13483
13484 fi
13485
13486 # Check for header file for Mach-O image functions.
13487 for ac_header in mach-o/dyld.h
13488 do :
13489 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13491 cat >>confdefs.h <<_ACEOF
13492 #define HAVE_MACH_O_DYLD_H 1
13493 _ACEOF
13494
13495 fi
13496
13497 done
13498
13499
13500 # Check for loadquery.
13501 for ac_header in sys/ldr.h
13502 do :
13503 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13504 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_SYS_LDR_H 1
13507 _ACEOF
13508
13509 fi
13510
13511 done
13512
13513 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13514 have_loadquery=no
13515 else
13516 if test -n "${with_target_subdir}"; then
13517 # When built as a GCC target library, we can't do a link test.
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <sys/ldr.h>
13521
13522 _ACEOF
13523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13524 $EGREP "loadquery" >/dev/null 2>&1; then :
13525 have_loadquery=yes
13526 else
13527 have_loadquery=no
13528 fi
13529 rm -f conftest*
13530
13531 else
13532 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13533 if test "x$ac_cv_func_loadquery" = xyes; then :
13534 have_loadquery=yes
13535 else
13536 have_loadquery=no
13537 fi
13538
13539 fi
13540 fi
13541 if test "$have_loadquery" = "yes"; then
13542
13543 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13544
13545 fi
13546
13547 for ac_header in windows.h
13548 do :
13549 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_windows_h" = xyes; then :
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_WINDOWS_H 1
13553 _ACEOF
13554
13555 fi
13556
13557 done
13558
13559 for ac_header in tlhelp32.h
13560 do :
13561 ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
13562 # include <windows.h>
13563 #endif
13564 "
13565 if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define HAVE_TLHELP32_H 1
13568 _ACEOF
13569
13570 fi
13571
13572 done
13573
13574
13575 # Check for the fcntl function.
13576 if test -n "${with_target_subdir}"; then
13577 case "${host}" in
13578 *-*-mingw*) have_fcntl=no ;;
13579 *) have_fcntl=yes ;;
13580 esac
13581 else
13582 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13583 if test "x$ac_cv_func_fcntl" = xyes; then :
13584 have_fcntl=yes
13585 else
13586 have_fcntl=no
13587 fi
13588
13589 fi
13590 if test "$have_fcntl" = "yes"; then
13591
13592 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13593
13594 fi
13595
13596 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13597 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13598 ac_have_decl=1
13599 else
13600 ac_have_decl=0
13601 fi
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_DECL_STRNLEN $ac_have_decl
13605 _ACEOF
13606 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13607 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13608 ac_have_decl=1
13609 else
13610 ac_have_decl=0
13611 fi
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13615 _ACEOF
13616
13617 for ac_func in lstat readlink
13618 do :
13619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13624 _ACEOF
13625
13626 fi
13627 done
13628
13629
13630 # Check for getexecname function.
13631 if test -n "${with_target_subdir}"; then
13632 case "${host}" in
13633 *-*-solaris2*) have_getexecname=yes ;;
13634 *) have_getexecname=no ;;
13635 esac
13636 else
13637 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13638 if test "x$ac_cv_func_getexecname" = xyes; then :
13639 have_getexecname=yes
13640 else
13641 have_getexecname=no
13642 fi
13643
13644 fi
13645 if test "$have_getexecname" = "yes"; then
13646
13647 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13648
13649 fi
13650
13651 # Check for _pgmptr variable, contains the executable filename on windows
13652 ac_fn_c_check_decl "$LINENO" "_pgmptr" "ac_cv_have_decl__pgmptr" "$ac_includes_default"
13653 if test "x$ac_cv_have_decl__pgmptr" = xyes; then :
13654 ac_have_decl=1
13655 else
13656 ac_have_decl=0
13657 fi
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_DECL__PGMPTR $ac_have_decl
13661 _ACEOF
13662
13663
13664 # Check for sysctl definitions.
13665
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13667 $as_echo_n "checking for KERN_PROC... " >&6; }
13668 if ${libbacktrace_cv_proc+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673
13674 #include <sys/types.h>
13675 #include <sys/sysctl.h>
13676
13677 int
13678 main ()
13679 {
13680 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13681 ;
13682 return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"; then :
13686 libbacktrace_cv_proc=yes
13687 else
13688 libbacktrace_cv_proc=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13693 $as_echo "$libbacktrace_cv_proc" >&6; }
13694 if test "$libbacktrace_cv_proc" = "yes"; then
13695
13696 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13697
13698 fi
13699
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13701 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13702 if ${libbacktrace_cv_procargs+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707
13708 #include <sys/types.h>
13709 #include <sys/sysctl.h>
13710
13711 int
13712 main ()
13713 {
13714 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13715 ;
13716 return 0;
13717 }
13718 _ACEOF
13719 if ac_fn_c_try_compile "$LINENO"; then :
13720 libbacktrace_cv_procargs=yes
13721 else
13722 libbacktrace_cv_procargs=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13727 $as_echo "$libbacktrace_cv_procargs" >&6; }
13728 if test "$libbacktrace_cv_procargs" = "yes"; then
13729
13730 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13731
13732 fi
13733
13734 # Check for the clock_gettime function.
13735 for ac_func in clock_gettime
13736 do :
13737 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13738 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 #define HAVE_CLOCK_GETTIME 1
13741 _ACEOF
13742
13743 fi
13744 done
13745
13746 clock_gettime_link=
13747 # At least for glibc, clock_gettime is in librt. But don't
13748 # pull that in if it still doesn't give us the function we want. This
13749 # test is copied from libgomp, and modified to not link in -lrt as
13750 # we're using this for test timing only.
13751 if test "$ac_cv_func_clock_gettime" = no; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13753 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13754 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_check_lib_save_LIBS=$LIBS
13758 LIBS="-lrt $LIBS"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765 #ifdef __cplusplus
13766 extern "C"
13767 #endif
13768 char clock_gettime ();
13769 int
13770 main ()
13771 {
13772 return clock_gettime ();
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 ac_cv_lib_rt_clock_gettime=yes
13779 else
13780 ac_cv_lib_rt_clock_gettime=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13787 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13788 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13789 CLOCK_GETTIME_LINK=-lrt
13790
13791 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13792
13793 fi
13794
13795 fi
13796
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13799 $as_echo_n "checking whether -pthread is supported... " >&6; }
13800 if ${libgo_cv_lib_pthread+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 CFLAGS_hold=$CFLAGS
13804 CFLAGS="$CFLAGS -pthread"
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 int i;
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 libgo_cv_lib_pthread=yes
13811 else
13812 libgo_cv_lib_pthread=no
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 CFLAGS=$CFLAGS_hold
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13818 $as_echo "$libgo_cv_lib_pthread" >&6; }
13819 PTHREAD_CFLAGS=
13820 if test "$libgo_cv_lib_pthread" = yes; then
13821 PTHREAD_CFLAGS=-pthread
13822 fi
13823
13824
13825 if test "$libgo_cv_lib_pthread" = yes; then
13826 HAVE_PTHREAD_TRUE=
13827 HAVE_PTHREAD_FALSE='#'
13828 else
13829 HAVE_PTHREAD_TRUE='#'
13830 HAVE_PTHREAD_FALSE=
13831 fi
13832
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13835 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13836 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 CFLAGS_hold=$CFLAGS
13840 CFLAGS="$CFLAGS -gdwarf-5"
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 int i;
13844 int
13845 main ()
13846 {
13847 return 0;
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 libbacktrace_cv_lib_dwarf5=yes
13854 else
13855 libbacktrace_cv_lib_dwarf5=no
13856 fi
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 CFLAGS=$CFLAGS_hold
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13862 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13863 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13864 HAVE_DWARF5_TRUE=
13865 HAVE_DWARF5_FALSE='#'
13866 else
13867 HAVE_DWARF5_TRUE='#'
13868 HAVE_DWARF5_FALSE=
13869 fi
13870
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13873 $as_echo_n "checking for compress in -lz... " >&6; }
13874 if ${ac_cv_lib_z_compress+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lz $LIBS"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char compress ();
13889 int
13890 main ()
13891 {
13892 return compress ();
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 ac_cv_lib_z_compress=yes
13899 else
13900 ac_cv_lib_z_compress=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13907 $as_echo "$ac_cv_lib_z_compress" >&6; }
13908 if test "x$ac_cv_lib_z_compress" = xyes; then :
13909
13910 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13911
13912 fi
13913
13914 if test "$ac_cv_lib_z_compress" = yes; then
13915 HAVE_ZLIB_TRUE=
13916 HAVE_ZLIB_FALSE='#'
13917 else
13918 HAVE_ZLIB_TRUE='#'
13919 HAVE_ZLIB_FALSE=
13920 fi
13921
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13924 $as_echo_n "checking whether --build-id is supported... " >&6; }
13925 if ${libbacktrace_cv_ld_buildid+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 LDFLAGS_hold=$LDFLAGS
13929 LDFLAGS="$LDFLAGS -Wl,--build-id"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932
13933 int
13934 main ()
13935 {
13936
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 if ac_fn_c_try_link "$LINENO"; then :
13942 libbacktrace_cv_ld_buildid=yes
13943 else
13944 libbacktrace_cv_ld_buildid=no
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948 LDFLAGS=$LDFLAGS_hold
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13951 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13952 if test "$libbacktrace_cv_ld_buildid" = yes; then
13953 HAVE_BUILDID_TRUE=
13954 HAVE_BUILDID_FALSE='#'
13955 else
13956 HAVE_BUILDID_TRUE='#'
13957 HAVE_BUILDID_FALSE=
13958 fi
13959
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gnu is supported" >&5
13962 $as_echo_n "checking whether --compress-debug-sections=zlib-gnu is supported... " >&6; }
13963 if ${libgo_cv_ld_compress_zlib_gnu+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 LDFLAGS_hold=$LDFLAGS
13967 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 int
13972 main ()
13973 {
13974
13975 ;
13976 return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_link "$LINENO"; then :
13980 libgo_cv_ld_compress_zlib_gnu=yes
13981 else
13982 libgo_cv_ld_compress_zlib_gnu=no
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LDFLAGS=$LDFLAGS_hold
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gnu" >&5
13989 $as_echo "$libgo_cv_ld_compress_zlib_gnu" >&6; }
13990 if test "$libgo_cv_ld_compress_zlib_gnu" = yes; then
13991 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE=
13992 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE='#'
13993 else
13994 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE='#'
13995 HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE=
13996 fi
13997
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zlib-gabi is supported" >&5
14000 $as_echo_n "checking whether --compress-debug-sections=zlib-gabi is supported... " >&6; }
14001 if ${libgo_cv_ld_compress_zlib_gabi+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 LDFLAGS_hold=$LDFLAGS
14005 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gabi"
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008
14009 int
14010 main ()
14011 {
14012
14013 ;
14014 return 0;
14015 }
14016 _ACEOF
14017 if ac_fn_c_try_link "$LINENO"; then :
14018 libgo_cv_ld_compress_zlib_gabi=yes
14019 else
14020 libgo_cv_ld_compress_zlib_gabi=no
14021 fi
14022 rm -f core conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14024 LDFLAGS=$LDFLAGS_hold
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zlib_gabi" >&5
14027 $as_echo "$libgo_cv_ld_compress_zlib_gabi" >&6; }
14028 if test "$libgo_cv_ld_compress_zlib_gabi" = yes; then
14029 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE=
14030 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE='#'
14031 else
14032 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE='#'
14033 HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE=
14034 fi
14035
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
14038 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
14039 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 ac_check_lib_save_LIBS=$LIBS
14043 LIBS="-lzstd $LIBS"
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 char ZSTD_compress ();
14054 int
14055 main ()
14056 {
14057 return ZSTD_compress ();
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 ac_cv_lib_zstd_ZSTD_compress=yes
14064 else
14065 ac_cv_lib_zstd_ZSTD_compress=no
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 LIBS=$ac_check_lib_save_LIBS
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
14072 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
14073 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
14074
14075 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
14076
14077 fi
14078
14079 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
14080 HAVE_ZSTD_TRUE=
14081 HAVE_ZSTD_FALSE='#'
14082 else
14083 HAVE_ZSTD_TRUE='#'
14084 HAVE_ZSTD_FALSE=
14085 fi
14086
14087
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
14089 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
14090 if ${libgo_cv_ld_compress_zstd+:} false; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 LDFLAGS_hold=$LDFLAGS
14094 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097
14098 int
14099 main ()
14100 {
14101
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_link "$LINENO"; then :
14107 libgo_cv_ld_compress_zstd=yes
14108 else
14109 libgo_cv_ld_compress_zstd=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LDFLAGS=$LDFLAGS_hold
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
14116 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
14117 if test "$libgo_cv_ld_compress_zstd" = yes; then
14118 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
14119 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
14120 else
14121 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
14122 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
14123 fi
14124
14125
14126
14127 # Extract the first word of "objcopy", so it can be a program name with args.
14128 set dummy objcopy; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_prog_OBJCOPY+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test -n "$OBJCOPY"; then
14135 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_OBJCOPY="objcopy"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14147 fi
14148 done
14149 done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 OBJCOPY=$ac_cv_prog_OBJCOPY
14155 if test -n "$OBJCOPY"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
14157 $as_echo "$OBJCOPY" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161 fi
14162
14163
14164 # Extract the first word of "readelf", so it can be a program name with args.
14165 set dummy readelf; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14167 $as_echo_n "checking for $ac_word... " >&6; }
14168 if ${ac_cv_prog_READELF+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 if test -n "$READELF"; then
14172 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14176 do
14177 IFS=$as_save_IFS
14178 test -z "$as_dir" && as_dir=.
14179 for ac_exec_ext in '' $ac_executable_extensions; do
14180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14181 ac_cv_prog_READELF="readelf"
14182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14183 break 2
14184 fi
14185 done
14186 done
14187 IFS=$as_save_IFS
14188
14189 fi
14190 fi
14191 READELF=$ac_cv_prog_READELF
14192 if test -n "$READELF"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14194 $as_echo "$READELF" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14198 fi
14199
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
14202 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
14203 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "${with_target_subdir}"; then
14207 libbacktrace_cv_objcopy_debuglink=no
14208 elif ! test -n "${OBJCOPY}"; then
14209 libbacktrace_cv_objcopy_debuglink=no
14210 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
14211 libbacktrace_cv_objcopy_debuglink=yes
14212 else
14213 libbacktrace_cv_objcopy_debuglink=no
14214 fi
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14217 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14218 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14219 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14220 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14221 else
14222 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14223 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14224 fi
14225
14226
14227
14228 # Extract the first word of "dsymutil", so it can be a program name with args.
14229 set dummy dsymutil; ac_word=$2
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231 $as_echo_n "checking for $ac_word... " >&6; }
14232 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 if test -n "$DSYMUTIL"; then
14236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
14244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14245 ac_cv_prog_DSYMUTIL="dsymutil"
14246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 break 2
14248 fi
14249 done
14250 done
14251 IFS=$as_save_IFS
14252
14253 fi
14254 fi
14255 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14256 if test -n "$DSYMUTIL"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14258 $as_echo "$DSYMUTIL" >&6; }
14259 else
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261 $as_echo "no" >&6; }
14262 fi
14263
14264
14265 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14266 USE_DSYMUTIL_TRUE=
14267 USE_DSYMUTIL_FALSE='#'
14268 else
14269 USE_DSYMUTIL_TRUE='#'
14270 USE_DSYMUTIL_FALSE=
14271 fi
14272
14273
14274
14275 # Extract the first word of "nm", so it can be a program name with args.
14276 set dummy nm; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278 $as_echo_n "checking for $ac_word... " >&6; }
14279 if ${ac_cv_prog_NM+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 if test -n "$NM"; then
14283 ac_cv_prog_NM="$NM" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292 ac_cv_prog_NM="nm"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296 done
14297 done
14298 IFS=$as_save_IFS
14299
14300 fi
14301 fi
14302 NM=$ac_cv_prog_NM
14303 if test -n "$NM"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14305 $as_echo "$NM" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310
14311
14312
14313 # Extract the first word of "xz", so it can be a program name with args.
14314 set dummy xz; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_prog_XZ+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 if test -n "$XZ"; then
14321 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_XZ="xz"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334 done
14335 done
14336 IFS=$as_save_IFS
14337
14338 fi
14339 fi
14340 XZ=$ac_cv_prog_XZ
14341 if test -n "$XZ"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14343 $as_echo "$XZ" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347 fi
14348
14349
14350 if test "$XZ" != ""; then
14351 HAVE_XZ_TRUE=
14352 HAVE_XZ_FALSE='#'
14353 else
14354 HAVE_XZ_TRUE='#'
14355 HAVE_XZ_FALSE=
14356 fi
14357
14358 # Extract the first word of "comm", so it can be a program name with args.
14359 set dummy comm; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_prog_COMM+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 if test -n "$COMM"; then
14366 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14367 else
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14370 do
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_prog_COMM="comm"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14378 fi
14379 done
14380 done
14381 IFS=$as_save_IFS
14382
14383 fi
14384 fi
14385 COMM=$ac_cv_prog_COMM
14386 if test -n "$COMM"; then
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14388 $as_echo "$COMM" >&6; }
14389 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14392 fi
14393
14394
14395 if test "$COMM" != ""; then
14396 HAVE_COMM_TRUE=
14397 HAVE_COMM_FALSE='#'
14398 else
14399 HAVE_COMM_TRUE='#'
14400 HAVE_COMM_FALSE=
14401 fi
14402
14403
14404 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14405 HAVE_MINIDEBUG_TRUE=
14406 HAVE_MINIDEBUG_FALSE='#'
14407 else
14408 HAVE_MINIDEBUG_TRUE='#'
14409 HAVE_MINIDEBUG_FALSE=
14410 fi
14411
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14414 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14415 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-llzma $LIBS"
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 /* Override any GCC internal prototype to avoid an error.
14424 Use char because int might match the return type of a GCC
14425 builtin and then its argument prototype would still apply. */
14426 #ifdef __cplusplus
14427 extern "C"
14428 #endif
14429 char lzma_auto_decoder ();
14430 int
14431 main ()
14432 {
14433 return lzma_auto_decoder ();
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_link "$LINENO"; then :
14439 ac_cv_lib_lzma_lzma_auto_decoder=yes
14440 else
14441 ac_cv_lib_lzma_lzma_auto_decoder=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14445 LIBS=$ac_check_lib_save_LIBS
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14448 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14449 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14450
14451 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14452
14453 fi
14454
14455 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14456 HAVE_LIBLZMA_TRUE=
14457 HAVE_LIBLZMA_FALSE='#'
14458 else
14459 HAVE_LIBLZMA_TRUE='#'
14460 HAVE_LIBLZMA_FALSE=
14461 fi
14462
14463
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14465 $as_echo_n "checking whether tests can run... " >&6; }
14466 if ${libbacktrace_cv_sys_native+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 if test "$cross_compiling" = yes; then :
14470 libbacktrace_cv_sys_native=no
14471 else
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474
14475 int
14476 main ()
14477 {
14478 return 0;
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_run "$LINENO"; then :
14484 libbacktrace_cv_sys_native=yes
14485 else
14486 libbacktrace_cv_sys_native=no
14487 fi
14488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14489 conftest.$ac_objext conftest.beam conftest.$ac_ext
14490 fi
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14494 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14495 if test "$libbacktrace_cv_sys_native" = "yes"; then
14496 NATIVE_TRUE=
14497 NATIVE_FALSE='#'
14498 else
14499 NATIVE_TRUE='#'
14500 NATIVE_FALSE=
14501 fi
14502
14503
14504 if test "${multilib}" = "yes"; then
14505 multilib_arg="--enable-multilib"
14506 else
14507 multilib_arg=
14508 fi
14509
14510 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14511
14512 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14513
14514
14515 # We need multilib support, but only if configuring for the target.
14516 ac_config_commands="$ac_config_commands default"
14517
14518
14519 cat >confcache <<\_ACEOF
14520 # This file is a shell script that caches the results of configure
14521 # tests run on this system so they can be shared between configure
14522 # scripts and configure runs, see configure's option --config-cache.
14523 # It is not useful on other systems. If it contains results you don't
14524 # want to keep, you may remove or edit it.
14525 #
14526 # config.status only pays attention to the cache file if you give it
14527 # the --recheck option to rerun configure.
14528 #
14529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14531 # following values.
14532
14533 _ACEOF
14534
14535 # The following way of writing the cache mishandles newlines in values,
14536 # but we know of no workaround that is simple, portable, and efficient.
14537 # So, we kill variables containing newlines.
14538 # Ultrix sh set writes to stderr and can't be redirected directly,
14539 # and sets the high bit in the cache file unless we assign to the vars.
14540 (
14541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14542 eval ac_val=\$$ac_var
14543 case $ac_val in #(
14544 *${as_nl}*)
14545 case $ac_var in #(
14546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14548 esac
14549 case $ac_var in #(
14550 _ | IFS | as_nl) ;; #(
14551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14552 *) { eval $ac_var=; unset $ac_var;} ;;
14553 esac ;;
14554 esac
14555 done
14556
14557 (set) 2>&1 |
14558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14559 *${as_nl}ac_space=\ *)
14560 # `set' does not quote correctly, so add quotes: double-quote
14561 # substitution turns \\\\ into \\, and sed turns \\ into \.
14562 sed -n \
14563 "s/'/'\\\\''/g;
14564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14565 ;; #(
14566 *)
14567 # `set' quotes correctly as required by POSIX, so do not add quotes.
14568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14569 ;;
14570 esac |
14571 sort
14572 ) |
14573 sed '
14574 /^ac_cv_env_/b end
14575 t clear
14576 :clear
14577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14578 t end
14579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14580 :end' >>confcache
14581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14582 if test -w "$cache_file"; then
14583 if test "x$cache_file" != "x/dev/null"; then
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14585 $as_echo "$as_me: updating cache $cache_file" >&6;}
14586 if test ! -f "$cache_file" || test -h "$cache_file"; then
14587 cat confcache >"$cache_file"
14588 else
14589 case $cache_file in #(
14590 */* | ?:*)
14591 mv -f confcache "$cache_file"$$ &&
14592 mv -f "$cache_file"$$ "$cache_file" ;; #(
14593 *)
14594 mv -f confcache "$cache_file" ;;
14595 esac
14596 fi
14597 fi
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14601 fi
14602 fi
14603 rm -f confcache
14604
14605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14606 # Let make expand exec_prefix.
14607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14608
14609 DEFS=-DHAVE_CONFIG_H
14610
14611 ac_libobjs=
14612 ac_ltlibobjs=
14613 U=
14614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14615 # 1. Remove the extension, and $U if already installed.
14616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14619 # will be set to the directory where LIBOBJS objects are built.
14620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14622 done
14623 LIBOBJS=$ac_libobjs
14624
14625 LTLIBOBJS=$ac_ltlibobjs
14626
14627
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14629 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14630 if test -n "$am_sleep_pid"; then
14631 # Hide warnings about reused PIDs.
14632 wait $am_sleep_pid 2>/dev/null
14633 fi
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14635 $as_echo "done" >&6; }
14636 if test -n "$EXEEXT"; then
14637 am__EXEEXT_TRUE=
14638 am__EXEEXT_FALSE='#'
14639 else
14640 am__EXEEXT_TRUE='#'
14641 am__EXEEXT_FALSE=
14642 fi
14643
14644 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14645 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14647 fi
14648 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14649 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14651 fi
14652 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
14653 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
14654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14655 fi
14656 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14657 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 fi
14660 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14661 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 fi
14664 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14665 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14669 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14673 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GNU_FALSE}"; then
14677 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GNU\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 fi
14680 if test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZLIB_GABI_FALSE}"; then
14681 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZLIB_GABI\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 fi
14684 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14685 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14689 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691 fi
14692 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14693 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14695 fi
14696 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14697 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14699 fi
14700 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14701 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14703 fi
14704 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14705 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14707 fi
14708 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14709 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14711 fi
14712 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14713 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14715 fi
14716 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14717 as_fn_error $? "conditional \"NATIVE\" was never defined.
14718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14719 fi
14720
14721 : "${CONFIG_STATUS=./config.status}"
14722 ac_write_fail=0
14723 ac_clean_files_save=$ac_clean_files
14724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14727 as_write_fail=0
14728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14729 #! $SHELL
14730 # Generated by $as_me.
14731 # Run this file to recreate the current configuration.
14732 # Compiler output produced by configure, useful for debugging
14733 # configure, is in config.log if it exists.
14734
14735 debug=false
14736 ac_cs_recheck=false
14737 ac_cs_silent=false
14738
14739 SHELL=\${CONFIG_SHELL-$SHELL}
14740 export SHELL
14741 _ASEOF
14742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14743 ## -------------------- ##
14744 ## M4sh Initialization. ##
14745 ## -------------------- ##
14746
14747 # Be more Bourne compatible
14748 DUALCASE=1; export DUALCASE # for MKS sh
14749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14750 emulate sh
14751 NULLCMD=:
14752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14753 # is contrary to our usage. Disable this feature.
14754 alias -g '${1+"$@"}'='"$@"'
14755 setopt NO_GLOB_SUBST
14756 else
14757 case `(set -o) 2>/dev/null` in #(
14758 *posix*) :
14759 set -o posix ;; #(
14760 *) :
14761 ;;
14762 esac
14763 fi
14764
14765
14766 as_nl='
14767 '
14768 export as_nl
14769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14773 # Prefer a ksh shell builtin over an external printf program on Solaris,
14774 # but without wasting forks for bash or zsh.
14775 if test -z "$BASH_VERSION$ZSH_VERSION" \
14776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14777 as_echo='print -r --'
14778 as_echo_n='print -rn --'
14779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14780 as_echo='printf %s\n'
14781 as_echo_n='printf %s'
14782 else
14783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14785 as_echo_n='/usr/ucb/echo -n'
14786 else
14787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14788 as_echo_n_body='eval
14789 arg=$1;
14790 case $arg in #(
14791 *"$as_nl"*)
14792 expr "X$arg" : "X\\(.*\\)$as_nl";
14793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14794 esac;
14795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14796 '
14797 export as_echo_n_body
14798 as_echo_n='sh -c $as_echo_n_body as_echo'
14799 fi
14800 export as_echo_body
14801 as_echo='sh -c $as_echo_body as_echo'
14802 fi
14803
14804 # The user is always right.
14805 if test "${PATH_SEPARATOR+set}" != set; then
14806 PATH_SEPARATOR=:
14807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14809 PATH_SEPARATOR=';'
14810 }
14811 fi
14812
14813
14814 # IFS
14815 # We need space, tab and new line, in precisely that order. Quoting is
14816 # there to prevent editors from complaining about space-tab.
14817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14818 # splitting by setting IFS to empty value.)
14819 IFS=" "" $as_nl"
14820
14821 # Find who we are. Look in the path if we contain no directory separator.
14822 as_myself=
14823 case $0 in #((
14824 *[\\/]* ) as_myself=$0 ;;
14825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14827 do
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14831 done
14832 IFS=$as_save_IFS
14833
14834 ;;
14835 esac
14836 # We did not find ourselves, most probably we were run as `sh COMMAND'
14837 # in which case we are not to be found in the path.
14838 if test "x$as_myself" = x; then
14839 as_myself=$0
14840 fi
14841 if test ! -f "$as_myself"; then
14842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14843 exit 1
14844 fi
14845
14846 # Unset variables that we do not need and which cause bugs (e.g. in
14847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14848 # suppresses any "Segmentation fault" message there. '((' could
14849 # trigger a bug in pdksh 5.2.14.
14850 for as_var in BASH_ENV ENV MAIL MAILPATH
14851 do eval test x\${$as_var+set} = xset \
14852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14853 done
14854 PS1='$ '
14855 PS2='> '
14856 PS4='+ '
14857
14858 # NLS nuisances.
14859 LC_ALL=C
14860 export LC_ALL
14861 LANGUAGE=C
14862 export LANGUAGE
14863
14864 # CDPATH.
14865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14866
14867
14868 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14869 # ----------------------------------------
14870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14872 # script with STATUS, using 1 if that was 0.
14873 as_fn_error ()
14874 {
14875 as_status=$1; test $as_status -eq 0 && as_status=1
14876 if test "$4"; then
14877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14879 fi
14880 $as_echo "$as_me: error: $2" >&2
14881 as_fn_exit $as_status
14882 } # as_fn_error
14883
14884
14885 # as_fn_set_status STATUS
14886 # -----------------------
14887 # Set $? to STATUS, without forking.
14888 as_fn_set_status ()
14889 {
14890 return $1
14891 } # as_fn_set_status
14892
14893 # as_fn_exit STATUS
14894 # -----------------
14895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14896 as_fn_exit ()
14897 {
14898 set +e
14899 as_fn_set_status $1
14900 exit $1
14901 } # as_fn_exit
14902
14903 # as_fn_unset VAR
14904 # ---------------
14905 # Portably unset VAR.
14906 as_fn_unset ()
14907 {
14908 { eval $1=; unset $1;}
14909 }
14910 as_unset=as_fn_unset
14911 # as_fn_append VAR VALUE
14912 # ----------------------
14913 # Append the text in VALUE to the end of the definition contained in VAR. Take
14914 # advantage of any shell optimizations that allow amortized linear growth over
14915 # repeated appends, instead of the typical quadratic growth present in naive
14916 # implementations.
14917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14918 eval 'as_fn_append ()
14919 {
14920 eval $1+=\$2
14921 }'
14922 else
14923 as_fn_append ()
14924 {
14925 eval $1=\$$1\$2
14926 }
14927 fi # as_fn_append
14928
14929 # as_fn_arith ARG...
14930 # ------------------
14931 # Perform arithmetic evaluation on the ARGs, and store the result in the
14932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14933 # must be portable across $(()) and expr.
14934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14935 eval 'as_fn_arith ()
14936 {
14937 as_val=$(( $* ))
14938 }'
14939 else
14940 as_fn_arith ()
14941 {
14942 as_val=`expr "$@" || test $? -eq 1`
14943 }
14944 fi # as_fn_arith
14945
14946
14947 if expr a : '\(a\)' >/dev/null 2>&1 &&
14948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14949 as_expr=expr
14950 else
14951 as_expr=false
14952 fi
14953
14954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14955 as_basename=basename
14956 else
14957 as_basename=false
14958 fi
14959
14960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14961 as_dirname=dirname
14962 else
14963 as_dirname=false
14964 fi
14965
14966 as_me=`$as_basename -- "$0" ||
14967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14968 X"$0" : 'X\(//\)$' \| \
14969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14970 $as_echo X/"$0" |
14971 sed '/^.*\/\([^/][^/]*\)\/*$/{
14972 s//\1/
14973 q
14974 }
14975 /^X\/\(\/\/\)$/{
14976 s//\1/
14977 q
14978 }
14979 /^X\/\(\/\).*/{
14980 s//\1/
14981 q
14982 }
14983 s/.*/./; q'`
14984
14985 # Avoid depending upon Character Ranges.
14986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14989 as_cr_digits='0123456789'
14990 as_cr_alnum=$as_cr_Letters$as_cr_digits
14991
14992 ECHO_C= ECHO_N= ECHO_T=
14993 case `echo -n x` in #(((((
14994 -n*)
14995 case `echo 'xy\c'` in
14996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14997 xy) ECHO_C='\c';;
14998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14999 ECHO_T=' ';;
15000 esac;;
15001 *)
15002 ECHO_N='-n';;
15003 esac
15004
15005 rm -f conf$$ conf$$.exe conf$$.file
15006 if test -d conf$$.dir; then
15007 rm -f conf$$.dir/conf$$.file
15008 else
15009 rm -f conf$$.dir
15010 mkdir conf$$.dir 2>/dev/null
15011 fi
15012 if (echo >conf$$.file) 2>/dev/null; then
15013 if ln -s conf$$.file conf$$ 2>/dev/null; then
15014 as_ln_s='ln -s'
15015 # ... but there are two gotchas:
15016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15018 # In both cases, we have to default to `cp -pR'.
15019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15020 as_ln_s='cp -pR'
15021 elif ln conf$$.file conf$$ 2>/dev/null; then
15022 as_ln_s=ln
15023 else
15024 as_ln_s='cp -pR'
15025 fi
15026 else
15027 as_ln_s='cp -pR'
15028 fi
15029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15030 rmdir conf$$.dir 2>/dev/null
15031
15032
15033 # as_fn_mkdir_p
15034 # -------------
15035 # Create "$as_dir" as a directory, including parents if necessary.
15036 as_fn_mkdir_p ()
15037 {
15038
15039 case $as_dir in #(
15040 -*) as_dir=./$as_dir;;
15041 esac
15042 test -d "$as_dir" || eval $as_mkdir_p || {
15043 as_dirs=
15044 while :; do
15045 case $as_dir in #(
15046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15047 *) as_qdir=$as_dir;;
15048 esac
15049 as_dirs="'$as_qdir' $as_dirs"
15050 as_dir=`$as_dirname -- "$as_dir" ||
15051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$as_dir" : 'X\(//\)[^/]' \| \
15053 X"$as_dir" : 'X\(//\)$' \| \
15054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15055 $as_echo X"$as_dir" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057 s//\1/
15058 q
15059 }
15060 /^X\(\/\/\)[^/].*/{
15061 s//\1/
15062 q
15063 }
15064 /^X\(\/\/\)$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\(\/\).*/{
15069 s//\1/
15070 q
15071 }
15072 s/.*/./; q'`
15073 test -d "$as_dir" && break
15074 done
15075 test -z "$as_dirs" || eval "mkdir $as_dirs"
15076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15077
15078
15079 } # as_fn_mkdir_p
15080 if mkdir -p . 2>/dev/null; then
15081 as_mkdir_p='mkdir -p "$as_dir"'
15082 else
15083 test -d ./-p && rmdir ./-p
15084 as_mkdir_p=false
15085 fi
15086
15087
15088 # as_fn_executable_p FILE
15089 # -----------------------
15090 # Test if FILE is an executable regular file.
15091 as_fn_executable_p ()
15092 {
15093 test -f "$1" && test -x "$1"
15094 } # as_fn_executable_p
15095 as_test_x='test -x'
15096 as_executable_p=as_fn_executable_p
15097
15098 # Sed expression to map a string onto a valid CPP name.
15099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15100
15101 # Sed expression to map a string onto a valid variable name.
15102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15103
15104
15105 exec 6>&1
15106 ## ----------------------------------- ##
15107 ## Main body of $CONFIG_STATUS script. ##
15108 ## ----------------------------------- ##
15109 _ASEOF
15110 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15111
15112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15113 # Save the log message, to keep $0 and so on meaningful, and to
15114 # report actual input values of CONFIG_FILES etc. instead of their
15115 # values after options handling.
15116 ac_log="
15117 This file was extended by package-unused $as_me version-unused, which was
15118 generated by GNU Autoconf 2.69. Invocation command line was
15119
15120 CONFIG_FILES = $CONFIG_FILES
15121 CONFIG_HEADERS = $CONFIG_HEADERS
15122 CONFIG_LINKS = $CONFIG_LINKS
15123 CONFIG_COMMANDS = $CONFIG_COMMANDS
15124 $ $0 $@
15125
15126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15127 "
15128
15129 _ACEOF
15130
15131 case $ac_config_files in *"
15132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15133 esac
15134
15135 case $ac_config_headers in *"
15136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15137 esac
15138
15139
15140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15141 # Files that config.status was made for.
15142 config_files="$ac_config_files"
15143 config_headers="$ac_config_headers"
15144 config_commands="$ac_config_commands"
15145
15146 _ACEOF
15147
15148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 ac_cs_usage="\
15150 \`$as_me' instantiates files and other configuration actions
15151 from templates according to the current configuration. Unless the files
15152 and actions are specified as TAGs, all are instantiated by default.
15153
15154 Usage: $0 [OPTION]... [TAG]...
15155
15156 -h, --help print this help, then exit
15157 -V, --version print version number and configuration settings, then exit
15158 --config print configuration, then exit
15159 -q, --quiet, --silent
15160 do not print progress messages
15161 -d, --debug don't remove temporary files
15162 --recheck update $as_me by reconfiguring in the same conditions
15163 --file=FILE[:TEMPLATE]
15164 instantiate the configuration file FILE
15165 --header=FILE[:TEMPLATE]
15166 instantiate the configuration header FILE
15167
15168 Configuration files:
15169 $config_files
15170
15171 Configuration headers:
15172 $config_headers
15173
15174 Configuration commands:
15175 $config_commands
15176
15177 Report bugs to the package provider."
15178
15179 _ACEOF
15180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15181 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15182 ac_cs_version="\\
15183 package-unused config.status version-unused
15184 configured by $0, generated by GNU Autoconf 2.69,
15185 with options \\"\$ac_cs_config\\"
15186
15187 Copyright (C) 2012 Free Software Foundation, Inc.
15188 This config.status script is free software; the Free Software Foundation
15189 gives unlimited permission to copy, distribute and modify it."
15190
15191 ac_pwd='$ac_pwd'
15192 srcdir='$srcdir'
15193 INSTALL='$INSTALL'
15194 MKDIR_P='$MKDIR_P'
15195 AWK='$AWK'
15196 test -n "\$AWK" || AWK=awk
15197 _ACEOF
15198
15199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200 # The default lists apply if the user does not specify any file.
15201 ac_need_defaults=:
15202 while test $# != 0
15203 do
15204 case $1 in
15205 --*=?*)
15206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15208 ac_shift=:
15209 ;;
15210 --*=)
15211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15212 ac_optarg=
15213 ac_shift=:
15214 ;;
15215 *)
15216 ac_option=$1
15217 ac_optarg=$2
15218 ac_shift=shift
15219 ;;
15220 esac
15221
15222 case $ac_option in
15223 # Handling of the options.
15224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15225 ac_cs_recheck=: ;;
15226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15227 $as_echo "$ac_cs_version"; exit ;;
15228 --config | --confi | --conf | --con | --co | --c )
15229 $as_echo "$ac_cs_config"; exit ;;
15230 --debug | --debu | --deb | --de | --d | -d )
15231 debug=: ;;
15232 --file | --fil | --fi | --f )
15233 $ac_shift
15234 case $ac_optarg in
15235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15236 '') as_fn_error $? "missing file argument" ;;
15237 esac
15238 as_fn_append CONFIG_FILES " '$ac_optarg'"
15239 ac_need_defaults=false;;
15240 --header | --heade | --head | --hea )
15241 $ac_shift
15242 case $ac_optarg in
15243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15244 esac
15245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15246 ac_need_defaults=false;;
15247 --he | --h)
15248 # Conflict between --help and --header
15249 as_fn_error $? "ambiguous option: \`$1'
15250 Try \`$0 --help' for more information.";;
15251 --help | --hel | -h )
15252 $as_echo "$ac_cs_usage"; exit ;;
15253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15255 ac_cs_silent=: ;;
15256
15257 # This is an error.
15258 -*) as_fn_error $? "unrecognized option: \`$1'
15259 Try \`$0 --help' for more information." ;;
15260
15261 *) as_fn_append ac_config_targets " $1"
15262 ac_need_defaults=false ;;
15263
15264 esac
15265 shift
15266 done
15267
15268 ac_configure_extra_args=
15269
15270 if $ac_cs_silent; then
15271 exec 6>/dev/null
15272 ac_configure_extra_args="$ac_configure_extra_args --silent"
15273 fi
15274
15275 _ACEOF
15276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15277 if \$ac_cs_recheck; then
15278 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15279 shift
15280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15281 CONFIG_SHELL='$SHELL'
15282 export CONFIG_SHELL
15283 exec "\$@"
15284 fi
15285
15286 _ACEOF
15287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15288 exec 5>>config.log
15289 {
15290 echo
15291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15292 ## Running $as_me. ##
15293 _ASBOX
15294 $as_echo "$ac_log"
15295 } >&5
15296
15297 _ACEOF
15298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15299 #
15300 # INIT-COMMANDS
15301 #
15302
15303 srcdir="$srcdir"
15304 host="$host"
15305 target="$target"
15306 with_multisubdir="$with_multisubdir"
15307 with_multisrctop="$with_multisrctop"
15308 with_target_subdir="$with_target_subdir"
15309 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15310 multi_basedir="$multi_basedir"
15311 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15312 CC="$CC"
15313 CXX="$CXX"
15314 GFORTRAN="$GFORTRAN"
15315 GDC="$GDC"
15316
15317
15318 # The HP-UX ksh and POSIX shell print the target directory to stdout
15319 # if CDPATH is set.
15320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15321
15322 sed_quote_subst='$sed_quote_subst'
15323 double_quote_subst='$double_quote_subst'
15324 delay_variable_subst='$delay_variable_subst'
15325 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15326 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15327 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15328 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15329 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15330 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15331 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15332 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15333 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15334 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15335 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15336 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15337 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15338 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15339 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15340 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15341 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15342 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15343 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15344 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15345 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15346 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15347 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15348 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15349 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15350 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15351 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15352 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15353 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15354 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15355 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15356 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15357 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15358 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15359 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15360 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15361 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15362 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15363 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15364 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15365 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15366 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15367 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15368 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15369 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15370 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15371 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15373 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"`'
15374 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15375 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15376 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15377 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15378 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15379 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15380 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15381 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15382 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15383 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15384 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15385 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15386 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15387 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15388 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15389 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15390 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15391 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15392 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15393 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15394 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15395 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15396 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15397 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15398 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15399 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15400 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15401 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15402 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15403 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15404 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15405 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15407 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15408 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15409 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15410 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15411 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15412 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15413 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15414 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15415 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15416 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15417 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15418 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15419 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15420 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15421 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15422 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15423 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15424 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15425 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15426 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15427 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15428 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15429 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15430 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15431 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15432 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15433 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15434 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15435 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15436 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15437 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15438 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15439 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15440 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15441 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15442 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15443 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15444 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15445
15446 LTCC='$LTCC'
15447 LTCFLAGS='$LTCFLAGS'
15448 compiler='$compiler_DEFAULT'
15449
15450 # A function that is used when there is no print builtin or printf.
15451 func_fallback_echo ()
15452 {
15453 eval 'cat <<_LTECHO_EOF
15454 \$1
15455 _LTECHO_EOF'
15456 }
15457
15458 # Quote evaled strings.
15459 for var in SHELL \
15460 ECHO \
15461 SED \
15462 GREP \
15463 EGREP \
15464 FGREP \
15465 LD \
15466 NM \
15467 LN_S \
15468 lt_SP2NL \
15469 lt_NL2SP \
15470 reload_flag \
15471 OBJDUMP \
15472 deplibs_check_method \
15473 file_magic_cmd \
15474 AR \
15475 AR_FLAGS \
15476 STRIP \
15477 RANLIB \
15478 CC \
15479 CFLAGS \
15480 compiler \
15481 lt_cv_sys_global_symbol_pipe \
15482 lt_cv_sys_global_symbol_to_cdecl \
15483 lt_cv_sys_global_symbol_to_c_name_address \
15484 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15485 lt_prog_compiler_no_builtin_flag \
15486 lt_prog_compiler_wl \
15487 lt_prog_compiler_pic \
15488 lt_prog_compiler_static \
15489 lt_cv_prog_compiler_c_o \
15490 need_locks \
15491 DSYMUTIL \
15492 NMEDIT \
15493 LIPO \
15494 OTOOL \
15495 OTOOL64 \
15496 shrext_cmds \
15497 export_dynamic_flag_spec \
15498 whole_archive_flag_spec \
15499 compiler_needs_object \
15500 with_gnu_ld \
15501 allow_undefined_flag \
15502 no_undefined_flag \
15503 hardcode_libdir_flag_spec \
15504 hardcode_libdir_flag_spec_ld \
15505 hardcode_libdir_separator \
15506 fix_srcfile_path \
15507 exclude_expsyms \
15508 include_expsyms \
15509 file_list_spec \
15510 variables_saved_for_relink \
15511 libname_spec \
15512 library_names_spec \
15513 soname_spec \
15514 install_override_mode \
15515 finish_eval \
15516 old_striplib \
15517 striplib; do
15518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15519 *[\\\\\\\`\\"\\\$]*)
15520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15521 ;;
15522 *)
15523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15524 ;;
15525 esac
15526 done
15527
15528 # Double-quote double-evaled strings.
15529 for var in reload_cmds \
15530 old_postinstall_cmds \
15531 old_postuninstall_cmds \
15532 old_archive_cmds \
15533 extract_expsyms_cmds \
15534 old_archive_from_new_cmds \
15535 old_archive_from_expsyms_cmds \
15536 archive_cmds \
15537 archive_expsym_cmds \
15538 module_cmds \
15539 module_expsym_cmds \
15540 export_symbols_cmds \
15541 prelink_cmds \
15542 postinstall_cmds \
15543 postuninstall_cmds \
15544 finish_cmds \
15545 sys_lib_search_path_spec \
15546 sys_lib_dlsearch_path_spec; do
15547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15548 *[\\\\\\\`\\"\\\$]*)
15549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15550 ;;
15551 *)
15552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15553 ;;
15554 esac
15555 done
15556
15557 ac_aux_dir='$ac_aux_dir'
15558 xsi_shell='$xsi_shell'
15559 lt_shell_append='$lt_shell_append'
15560
15561 # See if we are running on zsh, and set the options which allow our
15562 # commands through without removal of \ escapes INIT.
15563 if test -n "\${ZSH_VERSION+set}" ; then
15564 setopt NO_GLOB_SUBST
15565 fi
15566
15567
15568 PACKAGE='$PACKAGE'
15569 VERSION='$VERSION'
15570 TIMESTAMP='$TIMESTAMP'
15571 RM='$RM'
15572 ofile='$ofile'
15573
15574
15575
15576
15577 GCC="$GCC"
15578 CC="$CC"
15579 acx_cv_header_stdint="$acx_cv_header_stdint"
15580 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15581 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15582 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15583 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15584 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15585 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15586 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15587 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15588 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15589 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15590 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15591 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15592 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15593
15594
15595 # Variables needed in config.status (file generation) which aren't already
15596 # passed by autoconf.
15597 SUBDIRS="$SUBDIRS"
15598
15599
15600 _ACEOF
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603
15604 # Handling of arguments.
15605 for ac_config_target in $ac_config_targets
15606 do
15607 case $ac_config_target in
15608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15609 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15611 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15613 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15614 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15615 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15616
15617 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15618 esac
15619 done
15620
15621
15622 # If the user did not use the arguments to specify the items to instantiate,
15623 # then the envvar interface is used. Set only those that are not.
15624 # We use the long form for the default assignment because of an extremely
15625 # bizarre bug on SunOS 4.1.3.
15626 if $ac_need_defaults; then
15627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15630 fi
15631
15632 # Have a temporary directory for convenience. Make it in the build tree
15633 # simply because there is no reason against having it here, and in addition,
15634 # creating and moving files from /tmp can sometimes cause problems.
15635 # Hook for its removal unless debugging.
15636 # Note that there is a small window in which the directory will not be cleaned:
15637 # after its creation but before its name has been assigned to `$tmp'.
15638 $debug ||
15639 {
15640 tmp= ac_tmp=
15641 trap 'exit_status=$?
15642 : "${ac_tmp:=$tmp}"
15643 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15644 ' 0
15645 trap 'as_fn_exit 1' 1 2 13 15
15646 }
15647 # Create a (secure) tmp directory for tmp files.
15648
15649 {
15650 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15651 test -d "$tmp"
15652 } ||
15653 {
15654 tmp=./conf$$-$RANDOM
15655 (umask 077 && mkdir "$tmp")
15656 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15657 ac_tmp=$tmp
15658
15659 # Set up the scripts for CONFIG_FILES section.
15660 # No need to generate them if there are no CONFIG_FILES.
15661 # This happens for instance with `./config.status config.h'.
15662 if test -n "$CONFIG_FILES"; then
15663
15664
15665 ac_cr=`echo X | tr X '\015'`
15666 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15667 # But we know of no other shell where ac_cr would be empty at this
15668 # point, so we can use a bashism as a fallback.
15669 if test "x$ac_cr" = x; then
15670 eval ac_cr=\$\'\\r\'
15671 fi
15672 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15673 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15674 ac_cs_awk_cr='\\r'
15675 else
15676 ac_cs_awk_cr=$ac_cr
15677 fi
15678
15679 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15680 _ACEOF
15681
15682
15683 {
15684 echo "cat >conf$$subs.awk <<_ACEOF" &&
15685 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15686 echo "_ACEOF"
15687 } >conf$$subs.sh ||
15688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15689 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15690 ac_delim='%!_!# '
15691 for ac_last_try in false false false false false :; do
15692 . ./conf$$subs.sh ||
15693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15694
15695 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15696 if test $ac_delim_n = $ac_delim_num; then
15697 break
15698 elif $ac_last_try; then
15699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15700 else
15701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15702 fi
15703 done
15704 rm -f conf$$subs.sh
15705
15706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15707 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15708 _ACEOF
15709 sed -n '
15710 h
15711 s/^/S["/; s/!.*/"]=/
15712 p
15713 g
15714 s/^[^!]*!//
15715 :repl
15716 t repl
15717 s/'"$ac_delim"'$//
15718 t delim
15719 :nl
15720 h
15721 s/\(.\{148\}\)..*/\1/
15722 t more1
15723 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15724 p
15725 n
15726 b repl
15727 :more1
15728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15729 p
15730 g
15731 s/.\{148\}//
15732 t nl
15733 :delim
15734 h
15735 s/\(.\{148\}\)..*/\1/
15736 t more2
15737 s/["\\]/\\&/g; s/^/"/; s/$/"/
15738 p
15739 b
15740 :more2
15741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15742 p
15743 g
15744 s/.\{148\}//
15745 t delim
15746 ' <conf$$subs.awk | sed '
15747 /^[^""]/{
15748 N
15749 s/\n//
15750 }
15751 ' >>$CONFIG_STATUS || ac_write_fail=1
15752 rm -f conf$$subs.awk
15753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 _ACAWK
15755 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15756 for (key in S) S_is_set[key] = 1
15757 FS = ""
15758
15759 }
15760 {
15761 line = $ 0
15762 nfields = split(line, field, "@")
15763 substed = 0
15764 len = length(field[1])
15765 for (i = 2; i < nfields; i++) {
15766 key = field[i]
15767 keylen = length(key)
15768 if (S_is_set[key]) {
15769 value = S[key]
15770 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15771 len += length(value) + length(field[++i])
15772 substed = 1
15773 } else
15774 len += 1 + keylen
15775 }
15776
15777 print line
15778 }
15779
15780 _ACAWK
15781 _ACEOF
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15785 else
15786 cat
15787 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15789 _ACEOF
15790
15791 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15792 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15793 # trailing colons and then remove the whole line if VPATH becomes empty
15794 # (actually we leave an empty line to preserve line numbers).
15795 if test "x$srcdir" = x.; then
15796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15797 h
15798 s///
15799 s/^/:/
15800 s/[ ]*$/:/
15801 s/:\$(srcdir):/:/g
15802 s/:\${srcdir}:/:/g
15803 s/:@srcdir@:/:/g
15804 s/^:*//
15805 s/:*$//
15806 x
15807 s/\(=[ ]*\).*/\1/
15808 G
15809 s/\n//
15810 s/^[^=]*=[ ]*$//
15811 }'
15812 fi
15813
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 fi # test -n "$CONFIG_FILES"
15816
15817 # Set up the scripts for CONFIG_HEADERS section.
15818 # No need to generate them if there are no CONFIG_HEADERS.
15819 # This happens for instance with `./config.status Makefile'.
15820 if test -n "$CONFIG_HEADERS"; then
15821 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15822 BEGIN {
15823 _ACEOF
15824
15825 # Transform confdefs.h into an awk script `defines.awk', embedded as
15826 # here-document in config.status, that substitutes the proper values into
15827 # config.h.in to produce config.h.
15828
15829 # Create a delimiter string that does not exist in confdefs.h, to ease
15830 # handling of long lines.
15831 ac_delim='%!_!# '
15832 for ac_last_try in false false :; do
15833 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15834 if test -z "$ac_tt"; then
15835 break
15836 elif $ac_last_try; then
15837 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15838 else
15839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15840 fi
15841 done
15842
15843 # For the awk script, D is an array of macro values keyed by name,
15844 # likewise P contains macro parameters if any. Preserve backslash
15845 # newline sequences.
15846
15847 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15848 sed -n '
15849 s/.\{148\}/&'"$ac_delim"'/g
15850 t rset
15851 :rset
15852 s/^[ ]*#[ ]*define[ ][ ]*/ /
15853 t def
15854 d
15855 :def
15856 s/\\$//
15857 t bsnl
15858 s/["\\]/\\&/g
15859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15860 D["\1"]=" \3"/p
15861 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15862 d
15863 :bsnl
15864 s/["\\]/\\&/g
15865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15866 D["\1"]=" \3\\\\\\n"\\/p
15867 t cont
15868 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15869 t cont
15870 d
15871 :cont
15872 n
15873 s/.\{148\}/&'"$ac_delim"'/g
15874 t clear
15875 :clear
15876 s/\\$//
15877 t bsnlc
15878 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15879 d
15880 :bsnlc
15881 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15882 b cont
15883 ' <confdefs.h | sed '
15884 s/'"$ac_delim"'/"\\\
15885 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15886
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 for (key in D) D_is_set[key] = 1
15889 FS = ""
15890 }
15891 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15892 line = \$ 0
15893 split(line, arg, " ")
15894 if (arg[1] == "#") {
15895 defundef = arg[2]
15896 mac1 = arg[3]
15897 } else {
15898 defundef = substr(arg[1], 2)
15899 mac1 = arg[2]
15900 }
15901 split(mac1, mac2, "(") #)
15902 macro = mac2[1]
15903 prefix = substr(line, 1, index(line, defundef) - 1)
15904 if (D_is_set[macro]) {
15905 # Preserve the white space surrounding the "#".
15906 print prefix "define", macro P[macro] D[macro]
15907 next
15908 } else {
15909 # Replace #undef with comments. This is necessary, for example,
15910 # in the case of _POSIX_SOURCE, which is predefined and required
15911 # on some systems where configure will not decide to define it.
15912 if (defundef == "undef") {
15913 print "/*", prefix defundef, macro, "*/"
15914 next
15915 }
15916 }
15917 }
15918 { print }
15919 _ACAWK
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15923 fi # test -n "$CONFIG_HEADERS"
15924
15925
15926 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15927 shift
15928 for ac_tag
15929 do
15930 case $ac_tag in
15931 :[FHLC]) ac_mode=$ac_tag; continue;;
15932 esac
15933 case $ac_mode$ac_tag in
15934 :[FHL]*:*);;
15935 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15936 :[FH]-) ac_tag=-:-;;
15937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15938 esac
15939 ac_save_IFS=$IFS
15940 IFS=:
15941 set x $ac_tag
15942 IFS=$ac_save_IFS
15943 shift
15944 ac_file=$1
15945 shift
15946
15947 case $ac_mode in
15948 :L) ac_source=$1;;
15949 :[FH])
15950 ac_file_inputs=
15951 for ac_f
15952 do
15953 case $ac_f in
15954 -) ac_f="$ac_tmp/stdin";;
15955 *) # Look for the file first in the build tree, then in the source tree
15956 # (if the path is not absolute). The absolute path cannot be DOS-style,
15957 # because $ac_f cannot contain `:'.
15958 test -f "$ac_f" ||
15959 case $ac_f in
15960 [\\/$]*) false;;
15961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15962 esac ||
15963 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15964 esac
15965 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15966 as_fn_append ac_file_inputs " '$ac_f'"
15967 done
15968
15969 # Let's still pretend it is `configure' which instantiates (i.e., don't
15970 # use $as_me), people would be surprised to read:
15971 # /* config.h. Generated by config.status. */
15972 configure_input='Generated from '`
15973 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15974 `' by configure.'
15975 if test x"$ac_file" != x-; then
15976 configure_input="$ac_file. $configure_input"
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15978 $as_echo "$as_me: creating $ac_file" >&6;}
15979 fi
15980 # Neutralize special characters interpreted by sed in replacement strings.
15981 case $configure_input in #(
15982 *\&* | *\|* | *\\* )
15983 ac_sed_conf_input=`$as_echo "$configure_input" |
15984 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15985 *) ac_sed_conf_input=$configure_input;;
15986 esac
15987
15988 case $ac_tag in
15989 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15991 esac
15992 ;;
15993 esac
15994
15995 ac_dir=`$as_dirname -- "$ac_file" ||
15996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15997 X"$ac_file" : 'X\(//\)[^/]' \| \
15998 X"$ac_file" : 'X\(//\)$' \| \
15999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16000 $as_echo X"$ac_file" |
16001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16002 s//\1/
16003 q
16004 }
16005 /^X\(\/\/\)[^/].*/{
16006 s//\1/
16007 q
16008 }
16009 /^X\(\/\/\)$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\(\/\).*/{
16014 s//\1/
16015 q
16016 }
16017 s/.*/./; q'`
16018 as_dir="$ac_dir"; as_fn_mkdir_p
16019 ac_builddir=.
16020
16021 case "$ac_dir" in
16022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16023 *)
16024 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16025 # A ".." for each directory in $ac_dir_suffix.
16026 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16027 case $ac_top_builddir_sub in
16028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16030 esac ;;
16031 esac
16032 ac_abs_top_builddir=$ac_pwd
16033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16034 # for backward compatibility:
16035 ac_top_builddir=$ac_top_build_prefix
16036
16037 case $srcdir in
16038 .) # We are building in place.
16039 ac_srcdir=.
16040 ac_top_srcdir=$ac_top_builddir_sub
16041 ac_abs_top_srcdir=$ac_pwd ;;
16042 [\\/]* | ?:[\\/]* ) # Absolute name.
16043 ac_srcdir=$srcdir$ac_dir_suffix;
16044 ac_top_srcdir=$srcdir
16045 ac_abs_top_srcdir=$srcdir ;;
16046 *) # Relative name.
16047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16048 ac_top_srcdir=$ac_top_build_prefix$srcdir
16049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16050 esac
16051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16052
16053
16054 case $ac_mode in
16055 :F)
16056 #
16057 # CONFIG_FILE
16058 #
16059
16060 case $INSTALL in
16061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16063 esac
16064 ac_MKDIR_P=$MKDIR_P
16065 case $MKDIR_P in
16066 [\\/$]* | ?:[\\/]* ) ;;
16067 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16068 esac
16069 _ACEOF
16070
16071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16072 # If the template does not know about datarootdir, expand it.
16073 # FIXME: This hack should be removed a few years after 2.60.
16074 ac_datarootdir_hack=; ac_datarootdir_seen=
16075 ac_sed_dataroot='
16076 /datarootdir/ {
16077 p
16078 q
16079 }
16080 /@datadir@/p
16081 /@docdir@/p
16082 /@infodir@/p
16083 /@localedir@/p
16084 /@mandir@/p'
16085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16086 *datarootdir*) ac_datarootdir_seen=yes;;
16087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16089 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16090 _ACEOF
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16092 ac_datarootdir_hack='
16093 s&@datadir@&$datadir&g
16094 s&@docdir@&$docdir&g
16095 s&@infodir@&$infodir&g
16096 s&@localedir@&$localedir&g
16097 s&@mandir@&$mandir&g
16098 s&\\\${datarootdir}&$datarootdir&g' ;;
16099 esac
16100 _ACEOF
16101
16102 # Neutralize VPATH when `$srcdir' = `.'.
16103 # Shell code in configure.ac might set extrasub.
16104 # FIXME: do we really want to maintain this feature?
16105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16106 ac_sed_extra="$ac_vpsub
16107 $extrasub
16108 _ACEOF
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 :t
16111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16112 s|@configure_input@|$ac_sed_conf_input|;t t
16113 s&@top_builddir@&$ac_top_builddir_sub&;t t
16114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16115 s&@srcdir@&$ac_srcdir&;t t
16116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16117 s&@top_srcdir@&$ac_top_srcdir&;t t
16118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16119 s&@builddir@&$ac_builddir&;t t
16120 s&@abs_builddir@&$ac_abs_builddir&;t t
16121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16122 s&@INSTALL@&$ac_INSTALL&;t t
16123 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16124 $ac_datarootdir_hack
16125 "
16126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16127 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16128
16129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16130 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16132 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16134 which seems to be undefined. Please make sure it is defined" >&5
16135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16136 which seems to be undefined. Please make sure it is defined" >&2;}
16137
16138 rm -f "$ac_tmp/stdin"
16139 case $ac_file in
16140 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16141 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16142 esac \
16143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16144 ;;
16145 :H)
16146 #
16147 # CONFIG_HEADER
16148 #
16149 if test x"$ac_file" != x-; then
16150 {
16151 $as_echo "/* $configure_input */" \
16152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16153 } >"$ac_tmp/config.h" \
16154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16155 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16157 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16158 else
16159 rm -f "$ac_file"
16160 mv "$ac_tmp/config.h" "$ac_file" \
16161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16162 fi
16163 else
16164 $as_echo "/* $configure_input */" \
16165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16166 || as_fn_error $? "could not create -" "$LINENO" 5
16167 fi
16168 # Compute "$ac_file"'s index in $config_headers.
16169 _am_arg="$ac_file"
16170 _am_stamp_count=1
16171 for _am_header in $config_headers :; do
16172 case $_am_header in
16173 $_am_arg | $_am_arg:* )
16174 break ;;
16175 * )
16176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16177 esac
16178 done
16179 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16180 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16181 X"$_am_arg" : 'X\(//\)[^/]' \| \
16182 X"$_am_arg" : 'X\(//\)$' \| \
16183 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16184 $as_echo X"$_am_arg" |
16185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16186 s//\1/
16187 q
16188 }
16189 /^X\(\/\/\)[^/].*/{
16190 s//\1/
16191 q
16192 }
16193 /^X\(\/\/\)$/{
16194 s//\1/
16195 q
16196 }
16197 /^X\(\/\).*/{
16198 s//\1/
16199 q
16200 }
16201 s/.*/./; q'`/stamp-h$_am_stamp_count
16202 ;;
16203
16204 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16205 $as_echo "$as_me: executing $ac_file commands" >&6;}
16206 ;;
16207 esac
16208
16209
16210 case $ac_file$ac_mode in
16211 "default-1":C)
16212 # Only add multilib support code if we just rebuilt the top-level
16213 # Makefile.
16214 case " $CONFIG_FILES " in
16215 *" Makefile "*)
16216 ac_file=Makefile . ${multi_basedir}/config-ml.in
16217 ;;
16218 esac ;;
16219 "libtool":C)
16220
16221 # See if we are running on zsh, and set the options which allow our
16222 # commands through without removal of \ escapes.
16223 if test -n "${ZSH_VERSION+set}" ; then
16224 setopt NO_GLOB_SUBST
16225 fi
16226
16227 cfgfile="${ofile}T"
16228 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16229 $RM "$cfgfile"
16230
16231 cat <<_LT_EOF >> "$cfgfile"
16232 #! $SHELL
16233
16234 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16235 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16237 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16238 #
16239 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16240 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16241 # Written by Gordon Matzigkeit, 1996
16242 #
16243 # This file is part of GNU Libtool.
16244 #
16245 # GNU Libtool is free software; you can redistribute it and/or
16246 # modify it under the terms of the GNU General Public License as
16247 # published by the Free Software Foundation; either version 2 of
16248 # the License, or (at your option) any later version.
16249 #
16250 # As a special exception to the GNU General Public License,
16251 # if you distribute this file as part of a program or library that
16252 # is built using GNU Libtool, you may include this file under the
16253 # same distribution terms that you use for the rest of that program.
16254 #
16255 # GNU Libtool is distributed in the hope that it will be useful,
16256 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16258 # GNU General Public License for more details.
16259 #
16260 # You should have received a copy of the GNU General Public License
16261 # along with GNU Libtool; see the file COPYING. If not, a copy
16262 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16263 # obtained by writing to the Free Software Foundation, Inc.,
16264 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16265
16266
16267 # The names of the tagged configurations supported by this script.
16268 available_tags=""
16269
16270 # ### BEGIN LIBTOOL CONFIG
16271
16272 # Which release of libtool.m4 was used?
16273 macro_version=$macro_version
16274 macro_revision=$macro_revision
16275
16276 # Whether or not to build shared libraries.
16277 build_libtool_libs=$enable_shared
16278
16279 # Whether or not to build static libraries.
16280 build_old_libs=$enable_static
16281
16282 # What type of objects to build.
16283 pic_mode=$pic_mode
16284
16285 # Whether or not to optimize for fast installation.
16286 fast_install=$enable_fast_install
16287
16288 # Shell to use when invoking shell scripts.
16289 SHELL=$lt_SHELL
16290
16291 # An echo program that protects backslashes.
16292 ECHO=$lt_ECHO
16293
16294 # The host system.
16295 host_alias=$host_alias
16296 host=$host
16297 host_os=$host_os
16298
16299 # The build system.
16300 build_alias=$build_alias
16301 build=$build
16302 build_os=$build_os
16303
16304 # A sed program that does not truncate output.
16305 SED=$lt_SED
16306
16307 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16308 Xsed="\$SED -e 1s/^X//"
16309
16310 # A grep program that handles long lines.
16311 GREP=$lt_GREP
16312
16313 # An ERE matcher.
16314 EGREP=$lt_EGREP
16315
16316 # A literal string matcher.
16317 FGREP=$lt_FGREP
16318
16319 # A BSD- or MS-compatible name lister.
16320 NM=$lt_NM
16321
16322 # Whether we need soft or hard links.
16323 LN_S=$lt_LN_S
16324
16325 # What is the maximum length of a command?
16326 max_cmd_len=$max_cmd_len
16327
16328 # Object file suffix (normally "o").
16329 objext=$ac_objext
16330
16331 # Executable file suffix (normally "").
16332 exeext=$exeext
16333
16334 # whether the shell understands "unset".
16335 lt_unset=$lt_unset
16336
16337 # turn spaces into newlines.
16338 SP2NL=$lt_lt_SP2NL
16339
16340 # turn newlines into spaces.
16341 NL2SP=$lt_lt_NL2SP
16342
16343 # An object symbol dumper.
16344 OBJDUMP=$lt_OBJDUMP
16345
16346 # Method to check whether dependent libraries are shared objects.
16347 deplibs_check_method=$lt_deplibs_check_method
16348
16349 # Command to use when deplibs_check_method == "file_magic".
16350 file_magic_cmd=$lt_file_magic_cmd
16351
16352 # The archiver.
16353 AR=$lt_AR
16354 AR_FLAGS=$lt_AR_FLAGS
16355
16356 # A symbol stripping program.
16357 STRIP=$lt_STRIP
16358
16359 # Commands used to install an old-style archive.
16360 RANLIB=$lt_RANLIB
16361 old_postinstall_cmds=$lt_old_postinstall_cmds
16362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16363
16364 # Whether to use a lock for old archive extraction.
16365 lock_old_archive_extraction=$lock_old_archive_extraction
16366
16367 # A C compiler.
16368 LTCC=$lt_CC
16369
16370 # LTCC compiler flags.
16371 LTCFLAGS=$lt_CFLAGS
16372
16373 # Take the output of nm and produce a listing of raw symbols and C names.
16374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16375
16376 # Transform the output of nm in a proper C declaration.
16377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16378
16379 # Transform the output of nm in a C name address pair.
16380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16381
16382 # Transform the output of nm in a C name address pair when lib prefix is needed.
16383 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16384
16385 # The name of the directory that contains temporary libtool files.
16386 objdir=$objdir
16387
16388 # Used to examine libraries when file_magic_cmd begins with "file".
16389 MAGIC_CMD=$MAGIC_CMD
16390
16391 # Must we lock files when doing compilation?
16392 need_locks=$lt_need_locks
16393
16394 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16395 DSYMUTIL=$lt_DSYMUTIL
16396
16397 # Tool to change global to local symbols on Mac OS X.
16398 NMEDIT=$lt_NMEDIT
16399
16400 # Tool to manipulate fat objects and archives on Mac OS X.
16401 LIPO=$lt_LIPO
16402
16403 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16404 OTOOL=$lt_OTOOL
16405
16406 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16407 OTOOL64=$lt_OTOOL64
16408
16409 # Old archive suffix (normally "a").
16410 libext=$libext
16411
16412 # Shared library suffix (normally ".so").
16413 shrext_cmds=$lt_shrext_cmds
16414
16415 # The commands to extract the exported symbol list from a shared archive.
16416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16417
16418 # Variables whose values should be saved in libtool wrapper scripts and
16419 # restored at link time.
16420 variables_saved_for_relink=$lt_variables_saved_for_relink
16421
16422 # Do we need the "lib" prefix for modules?
16423 need_lib_prefix=$need_lib_prefix
16424
16425 # Do we need a version for libraries?
16426 need_version=$need_version
16427
16428 # Library versioning type.
16429 version_type=$version_type
16430
16431 # Shared library runtime path variable.
16432 runpath_var=$runpath_var
16433
16434 # Shared library path variable.
16435 shlibpath_var=$shlibpath_var
16436
16437 # Is shlibpath searched before the hard-coded library search path?
16438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16439
16440 # Format of library name prefix.
16441 libname_spec=$lt_libname_spec
16442
16443 # List of archive names. First name is the real one, the rest are links.
16444 # The last name is the one that the linker finds with -lNAME
16445 library_names_spec=$lt_library_names_spec
16446
16447 # The coded name of the library, if different from the real name.
16448 soname_spec=$lt_soname_spec
16449
16450 # Permission mode override for installation of shared libraries.
16451 install_override_mode=$lt_install_override_mode
16452
16453 # Command to use after installation of a shared archive.
16454 postinstall_cmds=$lt_postinstall_cmds
16455
16456 # Command to use after uninstallation of a shared archive.
16457 postuninstall_cmds=$lt_postuninstall_cmds
16458
16459 # Commands used to finish a libtool library installation in a directory.
16460 finish_cmds=$lt_finish_cmds
16461
16462 # As "finish_cmds", except a single script fragment to be evaled but
16463 # not shown.
16464 finish_eval=$lt_finish_eval
16465
16466 # Whether we should hardcode library paths into libraries.
16467 hardcode_into_libs=$hardcode_into_libs
16468
16469 # Compile-time system search path for libraries.
16470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16471
16472 # Run-time system search path for libraries.
16473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16474
16475 # Whether dlopen is supported.
16476 dlopen_support=$enable_dlopen
16477
16478 # Whether dlopen of programs is supported.
16479 dlopen_self=$enable_dlopen_self
16480
16481 # Whether dlopen of statically linked programs is supported.
16482 dlopen_self_static=$enable_dlopen_self_static
16483
16484 # Commands to strip libraries.
16485 old_striplib=$lt_old_striplib
16486 striplib=$lt_striplib
16487
16488
16489 # The linker used to build libraries.
16490 LD=$lt_LD
16491
16492 # How to create reloadable object files.
16493 reload_flag=$lt_reload_flag
16494 reload_cmds=$lt_reload_cmds
16495
16496 # Commands used to build an old-style archive.
16497 old_archive_cmds=$lt_old_archive_cmds
16498
16499 # A language specific compiler.
16500 CC=$lt_compiler
16501
16502 # Is the compiler the GNU compiler?
16503 with_gcc=$GCC
16504
16505 # Compiler flag to turn off builtin functions.
16506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16507
16508 # How to pass a linker flag through the compiler.
16509 wl=$lt_lt_prog_compiler_wl
16510
16511 # Additional compiler flags for building library objects.
16512 pic_flag=$lt_lt_prog_compiler_pic
16513
16514 # Compiler flag to prevent dynamic linking.
16515 link_static_flag=$lt_lt_prog_compiler_static
16516
16517 # Does compiler simultaneously support -c and -o options?
16518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16519
16520 # Whether or not to add -lc for building shared libraries.
16521 build_libtool_need_lc=$archive_cmds_need_lc
16522
16523 # Whether or not to disallow shared libs when runtime libs are static.
16524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16525
16526 # Compiler flag to allow reflexive dlopens.
16527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16528
16529 # Compiler flag to generate shared objects directly from archives.
16530 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16531
16532 # Whether the compiler copes with passing no objects directly.
16533 compiler_needs_object=$lt_compiler_needs_object
16534
16535 # Create an old-style archive from a shared archive.
16536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16537
16538 # Create a temporary old-style archive to link instead of a shared archive.
16539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16540
16541 # Commands used to build a shared archive.
16542 archive_cmds=$lt_archive_cmds
16543 archive_expsym_cmds=$lt_archive_expsym_cmds
16544
16545 # Commands used to build a loadable module if different from building
16546 # a shared archive.
16547 module_cmds=$lt_module_cmds
16548 module_expsym_cmds=$lt_module_expsym_cmds
16549
16550 # Whether we are building with GNU ld or not.
16551 with_gnu_ld=$lt_with_gnu_ld
16552
16553 # Flag that allows shared libraries with undefined symbols to be built.
16554 allow_undefined_flag=$lt_allow_undefined_flag
16555
16556 # Flag that enforces no undefined symbols.
16557 no_undefined_flag=$lt_no_undefined_flag
16558
16559 # Flag to hardcode \$libdir into a binary during linking.
16560 # This must work even if \$libdir does not exist
16561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16562
16563 # If ld is used when linking, flag to hardcode \$libdir into a binary
16564 # during linking. This must work even if \$libdir does not exist.
16565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16566
16567 # Whether we need a single "-rpath" flag with a separated argument.
16568 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16569
16570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16571 # DIR into the resulting binary.
16572 hardcode_direct=$hardcode_direct
16573
16574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16575 # DIR into the resulting binary and the resulting library dependency is
16576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16577 # library is relocated.
16578 hardcode_direct_absolute=$hardcode_direct_absolute
16579
16580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16581 # into the resulting binary.
16582 hardcode_minus_L=$hardcode_minus_L
16583
16584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16585 # into the resulting binary.
16586 hardcode_shlibpath_var=$hardcode_shlibpath_var
16587
16588 # Set to "yes" if building a shared library automatically hardcodes DIR
16589 # into the library and all subsequent libraries and executables linked
16590 # against it.
16591 hardcode_automatic=$hardcode_automatic
16592
16593 # Set to yes if linker adds runtime paths of dependent libraries
16594 # to runtime path list.
16595 inherit_rpath=$inherit_rpath
16596
16597 # Whether libtool must link a program against all its dependency libraries.
16598 link_all_deplibs=$link_all_deplibs
16599
16600 # Fix the shell variable \$srcfile for the compiler.
16601 fix_srcfile_path=$lt_fix_srcfile_path
16602
16603 # Set to "yes" if exported symbols are required.
16604 always_export_symbols=$always_export_symbols
16605
16606 # The commands to list exported symbols.
16607 export_symbols_cmds=$lt_export_symbols_cmds
16608
16609 # Symbols that should not be listed in the preloaded symbols.
16610 exclude_expsyms=$lt_exclude_expsyms
16611
16612 # Symbols that must always be exported.
16613 include_expsyms=$lt_include_expsyms
16614
16615 # Commands necessary for linking programs (against libraries) with templates.
16616 prelink_cmds=$lt_prelink_cmds
16617
16618 # Specify filename containing input files.
16619 file_list_spec=$lt_file_list_spec
16620
16621 # How to hardcode a shared library path into an executable.
16622 hardcode_action=$hardcode_action
16623
16624 # ### END LIBTOOL CONFIG
16625
16626 _LT_EOF
16627
16628 case $host_os in
16629 aix3*)
16630 cat <<\_LT_EOF >> "$cfgfile"
16631 # AIX sometimes has problems with the GCC collect2 program. For some
16632 # reason, if we set the COLLECT_NAMES environment variable, the problems
16633 # vanish in a puff of smoke.
16634 if test "X${COLLECT_NAMES+set}" != Xset; then
16635 COLLECT_NAMES=
16636 export COLLECT_NAMES
16637 fi
16638 _LT_EOF
16639 ;;
16640 esac
16641
16642
16643 ltmain="$ac_aux_dir/ltmain.sh"
16644
16645
16646 # We use sed instead of cat because bash on DJGPP gets confused if
16647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16648 # text mode, it properly converts lines to CR/LF. This bash problem
16649 # is reportedly fixed, but why not run on old versions too?
16650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16651 || (rm -f "$cfgfile"; exit 1)
16652
16653 case $xsi_shell in
16654 yes)
16655 cat << \_LT_EOF >> "$cfgfile"
16656
16657 # func_dirname file append nondir_replacement
16658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16659 # otherwise set result to NONDIR_REPLACEMENT.
16660 func_dirname ()
16661 {
16662 case ${1} in
16663 */*) func_dirname_result="${1%/*}${2}" ;;
16664 * ) func_dirname_result="${3}" ;;
16665 esac
16666 }
16667
16668 # func_basename file
16669 func_basename ()
16670 {
16671 func_basename_result="${1##*/}"
16672 }
16673
16674 # func_dirname_and_basename file append nondir_replacement
16675 # perform func_basename and func_dirname in a single function
16676 # call:
16677 # dirname: Compute the dirname of FILE. If nonempty,
16678 # add APPEND to the result, otherwise set result
16679 # to NONDIR_REPLACEMENT.
16680 # value returned in "$func_dirname_result"
16681 # basename: Compute filename of FILE.
16682 # value retuned in "$func_basename_result"
16683 # Implementation must be kept synchronized with func_dirname
16684 # and func_basename. For efficiency, we do not delegate to
16685 # those functions but instead duplicate the functionality here.
16686 func_dirname_and_basename ()
16687 {
16688 case ${1} in
16689 */*) func_dirname_result="${1%/*}${2}" ;;
16690 * ) func_dirname_result="${3}" ;;
16691 esac
16692 func_basename_result="${1##*/}"
16693 }
16694
16695 # func_stripname prefix suffix name
16696 # strip PREFIX and SUFFIX off of NAME.
16697 # PREFIX and SUFFIX must not contain globbing or regex special
16698 # characters, hashes, percent signs, but SUFFIX may contain a leading
16699 # dot (in which case that matches only a dot).
16700 func_stripname ()
16701 {
16702 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16703 # positional parameters, so assign one to ordinary parameter first.
16704 func_stripname_result=${3}
16705 func_stripname_result=${func_stripname_result#"${1}"}
16706 func_stripname_result=${func_stripname_result%"${2}"}
16707 }
16708
16709 # func_opt_split
16710 func_opt_split ()
16711 {
16712 func_opt_split_opt=${1%%=*}
16713 func_opt_split_arg=${1#*=}
16714 }
16715
16716 # func_lo2o object
16717 func_lo2o ()
16718 {
16719 case ${1} in
16720 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16721 *) func_lo2o_result=${1} ;;
16722 esac
16723 }
16724
16725 # func_xform libobj-or-source
16726 func_xform ()
16727 {
16728 func_xform_result=${1%.*}.lo
16729 }
16730
16731 # func_arith arithmetic-term...
16732 func_arith ()
16733 {
16734 func_arith_result=$(( $* ))
16735 }
16736
16737 # func_len string
16738 # STRING may not start with a hyphen.
16739 func_len ()
16740 {
16741 func_len_result=${#1}
16742 }
16743
16744 _LT_EOF
16745 ;;
16746 *) # Bourne compatible functions.
16747 cat << \_LT_EOF >> "$cfgfile"
16748
16749 # func_dirname file append nondir_replacement
16750 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16751 # otherwise set result to NONDIR_REPLACEMENT.
16752 func_dirname ()
16753 {
16754 # Extract subdirectory from the argument.
16755 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16756 if test "X$func_dirname_result" = "X${1}"; then
16757 func_dirname_result="${3}"
16758 else
16759 func_dirname_result="$func_dirname_result${2}"
16760 fi
16761 }
16762
16763 # func_basename file
16764 func_basename ()
16765 {
16766 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16767 }
16768
16769
16770 # func_stripname prefix suffix name
16771 # strip PREFIX and SUFFIX off of NAME.
16772 # PREFIX and SUFFIX must not contain globbing or regex special
16773 # characters, hashes, percent signs, but SUFFIX may contain a leading
16774 # dot (in which case that matches only a dot).
16775 # func_strip_suffix prefix name
16776 func_stripname ()
16777 {
16778 case ${2} in
16779 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16780 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16781 esac
16782 }
16783
16784 # sed scripts:
16785 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16786 my_sed_long_arg='1s/^-[^=]*=//'
16787
16788 # func_opt_split
16789 func_opt_split ()
16790 {
16791 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16792 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16793 }
16794
16795 # func_lo2o object
16796 func_lo2o ()
16797 {
16798 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16799 }
16800
16801 # func_xform libobj-or-source
16802 func_xform ()
16803 {
16804 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16805 }
16806
16807 # func_arith arithmetic-term...
16808 func_arith ()
16809 {
16810 func_arith_result=`expr "$@"`
16811 }
16812
16813 # func_len string
16814 # STRING may not start with a hyphen.
16815 func_len ()
16816 {
16817 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16818 }
16819
16820 _LT_EOF
16821 esac
16822
16823 case $lt_shell_append in
16824 yes)
16825 cat << \_LT_EOF >> "$cfgfile"
16826
16827 # func_append var value
16828 # Append VALUE to the end of shell variable VAR.
16829 func_append ()
16830 {
16831 eval "$1+=\$2"
16832 }
16833 _LT_EOF
16834 ;;
16835 *)
16836 cat << \_LT_EOF >> "$cfgfile"
16837
16838 # func_append var value
16839 # Append VALUE to the end of shell variable VAR.
16840 func_append ()
16841 {
16842 eval "$1=\$$1\$2"
16843 }
16844
16845 _LT_EOF
16846 ;;
16847 esac
16848
16849
16850 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16851 || (rm -f "$cfgfile"; exit 1)
16852
16853 mv -f "$cfgfile" "$ofile" ||
16854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16855 chmod +x "$ofile"
16856
16857 ;;
16858 "gstdint.h":C)
16859 if test "$GCC" = yes; then
16860 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16861 else
16862 echo "/* generated for $CC */" > tmp-stdint.h
16863 fi
16864
16865 sed 's/^ *//' >> tmp-stdint.h <<EOF
16866
16867 #ifndef GCC_GENERATED_STDINT_H
16868 #define GCC_GENERATED_STDINT_H 1
16869
16870 #include <sys/types.h>
16871 EOF
16872
16873 if test "$acx_cv_header_stdint" != stdint.h; then
16874 echo "#include <stddef.h>" >> tmp-stdint.h
16875 fi
16876 if test "$acx_cv_header_stdint" != stddef.h; then
16877 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16878 fi
16879
16880 sed 's/^ *//' >> tmp-stdint.h <<EOF
16881 /* glibc uses these symbols as guards to prevent redefinitions. */
16882 #ifdef __int8_t_defined
16883 #define _INT8_T
16884 #define _INT16_T
16885 #define _INT32_T
16886 #endif
16887 #ifdef __uint32_t_defined
16888 #define _UINT32_T
16889 #endif
16890
16891 EOF
16892
16893 # ----------------- done header, emit basic int types -------------
16894 if test "$acx_cv_header_stdint" = stddef.h; then
16895 sed 's/^ *//' >> tmp-stdint.h <<EOF
16896
16897 #ifndef _UINT8_T
16898 #define _UINT8_T
16899 #ifndef __uint8_t_defined
16900 #define __uint8_t_defined
16901 #ifndef uint8_t
16902 typedef unsigned $acx_cv_type_int8_t uint8_t;
16903 #endif
16904 #endif
16905 #endif
16906
16907 #ifndef _UINT16_T
16908 #define _UINT16_T
16909 #ifndef __uint16_t_defined
16910 #define __uint16_t_defined
16911 #ifndef uint16_t
16912 typedef unsigned $acx_cv_type_int16_t uint16_t;
16913 #endif
16914 #endif
16915 #endif
16916
16917 #ifndef _UINT32_T
16918 #define _UINT32_T
16919 #ifndef __uint32_t_defined
16920 #define __uint32_t_defined
16921 #ifndef uint32_t
16922 typedef unsigned $acx_cv_type_int32_t uint32_t;
16923 #endif
16924 #endif
16925 #endif
16926
16927 #ifndef _INT8_T
16928 #define _INT8_T
16929 #ifndef __int8_t_defined
16930 #define __int8_t_defined
16931 #ifndef int8_t
16932 typedef $acx_cv_type_int8_t int8_t;
16933 #endif
16934 #endif
16935 #endif
16936
16937 #ifndef _INT16_T
16938 #define _INT16_T
16939 #ifndef __int16_t_defined
16940 #define __int16_t_defined
16941 #ifndef int16_t
16942 typedef $acx_cv_type_int16_t int16_t;
16943 #endif
16944 #endif
16945 #endif
16946
16947 #ifndef _INT32_T
16948 #define _INT32_T
16949 #ifndef __int32_t_defined
16950 #define __int32_t_defined
16951 #ifndef int32_t
16952 typedef $acx_cv_type_int32_t int32_t;
16953 #endif
16954 #endif
16955 #endif
16956 EOF
16957 elif test "$ac_cv_type_u_int32_t" = yes; then
16958 sed 's/^ *//' >> tmp-stdint.h <<EOF
16959
16960 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16961 #ifndef _INT8_T
16962 #define _INT8_T
16963 #endif
16964 #ifndef _INT16_T
16965 #define _INT16_T
16966 #endif
16967 #ifndef _INT32_T
16968 #define _INT32_T
16969 #endif
16970
16971 #ifndef _UINT8_T
16972 #define _UINT8_T
16973 #ifndef __uint8_t_defined
16974 #define __uint8_t_defined
16975 #ifndef uint8_t
16976 typedef u_int8_t uint8_t;
16977 #endif
16978 #endif
16979 #endif
16980
16981 #ifndef _UINT16_T
16982 #define _UINT16_T
16983 #ifndef __uint16_t_defined
16984 #define __uint16_t_defined
16985 #ifndef uint16_t
16986 typedef u_int16_t uint16_t;
16987 #endif
16988 #endif
16989 #endif
16990
16991 #ifndef _UINT32_T
16992 #define _UINT32_T
16993 #ifndef __uint32_t_defined
16994 #define __uint32_t_defined
16995 #ifndef uint32_t
16996 typedef u_int32_t uint32_t;
16997 #endif
16998 #endif
16999 #endif
17000 EOF
17001 else
17002 sed 's/^ *//' >> tmp-stdint.h <<EOF
17003
17004 /* Some systems have guard macros to prevent redefinitions, define them. */
17005 #ifndef _INT8_T
17006 #define _INT8_T
17007 #endif
17008 #ifndef _INT16_T
17009 #define _INT16_T
17010 #endif
17011 #ifndef _INT32_T
17012 #define _INT32_T
17013 #endif
17014 #ifndef _UINT8_T
17015 #define _UINT8_T
17016 #endif
17017 #ifndef _UINT16_T
17018 #define _UINT16_T
17019 #endif
17020 #ifndef _UINT32_T
17021 #define _UINT32_T
17022 #endif
17023 EOF
17024 fi
17025
17026 # ------------- done basic int types, emit int64_t types ------------
17027 if test "$ac_cv_type_uint64_t" = yes; then
17028 sed 's/^ *//' >> tmp-stdint.h <<EOF
17029
17030 /* system headers have good uint64_t and int64_t */
17031 #ifndef _INT64_T
17032 #define _INT64_T
17033 #endif
17034 #ifndef _UINT64_T
17035 #define _UINT64_T
17036 #endif
17037 EOF
17038 elif test "$ac_cv_type_u_int64_t" = yes; then
17039 sed 's/^ *//' >> tmp-stdint.h <<EOF
17040
17041 /* system headers have an u_int64_t (and int64_t) */
17042 #ifndef _INT64_T
17043 #define _INT64_T
17044 #endif
17045 #ifndef _UINT64_T
17046 #define _UINT64_T
17047 #ifndef __uint64_t_defined
17048 #define __uint64_t_defined
17049 #ifndef uint64_t
17050 typedef u_int64_t uint64_t;
17051 #endif
17052 #endif
17053 #endif
17054 EOF
17055 elif test -n "$acx_cv_type_int64_t"; then
17056 sed 's/^ *//' >> tmp-stdint.h <<EOF
17057
17058 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17059 #ifndef _INT64_T
17060 #define _INT64_T
17061 #ifndef int64_t
17062 typedef $acx_cv_type_int64_t int64_t;
17063 #endif
17064 #endif
17065 #ifndef _UINT64_T
17066 #define _UINT64_T
17067 #ifndef __uint64_t_defined
17068 #define __uint64_t_defined
17069 #ifndef uint64_t
17070 typedef unsigned $acx_cv_type_int64_t uint64_t;
17071 #endif
17072 #endif
17073 #endif
17074 EOF
17075 else
17076 sed 's/^ *//' >> tmp-stdint.h <<EOF
17077
17078 /* some common heuristics for int64_t, using compiler-specific tests */
17079 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17080 #ifndef _INT64_T
17081 #define _INT64_T
17082 #ifndef __int64_t_defined
17083 #ifndef int64_t
17084 typedef long long int64_t;
17085 #endif
17086 #endif
17087 #endif
17088 #ifndef _UINT64_T
17089 #define _UINT64_T
17090 #ifndef uint64_t
17091 typedef unsigned long long uint64_t;
17092 #endif
17093 #endif
17094
17095 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17096 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17097 does not implement __extension__. But that compiler doesn't define
17098 __GNUC_MINOR__. */
17099 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17100 # define __extension__
17101 # endif
17102
17103 # ifndef _INT64_T
17104 # define _INT64_T
17105 # ifndef int64_t
17106 __extension__ typedef long long int64_t;
17107 # endif
17108 # endif
17109 # ifndef _UINT64_T
17110 # define _UINT64_T
17111 # ifndef uint64_t
17112 __extension__ typedef unsigned long long uint64_t;
17113 # endif
17114 # endif
17115
17116 #elif !defined __STRICT_ANSI__
17117 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17118
17119 # ifndef _INT64_T
17120 # define _INT64_T
17121 # ifndef int64_t
17122 typedef __int64 int64_t;
17123 # endif
17124 # endif
17125 # ifndef _UINT64_T
17126 # define _UINT64_T
17127 # ifndef uint64_t
17128 typedef unsigned __int64 uint64_t;
17129 # endif
17130 # endif
17131 # endif /* compiler */
17132
17133 #endif /* ANSI version */
17134 EOF
17135 fi
17136
17137 # ------------- done int64_t types, emit intptr types ------------
17138 if test "$ac_cv_type_uintptr_t" != yes; then
17139 sed 's/^ *//' >> tmp-stdint.h <<EOF
17140
17141 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17142 #ifndef __uintptr_t_defined
17143 #ifndef uintptr_t
17144 typedef u$acx_cv_type_intptr_t uintptr_t;
17145 #endif
17146 #endif
17147 #ifndef __intptr_t_defined
17148 #ifndef intptr_t
17149 typedef $acx_cv_type_intptr_t intptr_t;
17150 #endif
17151 #endif
17152 EOF
17153 fi
17154
17155 # ------------- done intptr types, emit int_least types ------------
17156 if test "$ac_cv_type_int_least32_t" != yes; then
17157 sed 's/^ *//' >> tmp-stdint.h <<EOF
17158
17159 /* Define int_least types */
17160 typedef int8_t int_least8_t;
17161 typedef int16_t int_least16_t;
17162 typedef int32_t int_least32_t;
17163 #ifdef _INT64_T
17164 typedef int64_t int_least64_t;
17165 #endif
17166
17167 typedef uint8_t uint_least8_t;
17168 typedef uint16_t uint_least16_t;
17169 typedef uint32_t uint_least32_t;
17170 #ifdef _UINT64_T
17171 typedef uint64_t uint_least64_t;
17172 #endif
17173 EOF
17174 fi
17175
17176 # ------------- done intptr types, emit int_fast types ------------
17177 if test "$ac_cv_type_int_fast32_t" != yes; then
17178 sed 's/^ *//' >> tmp-stdint.h <<EOF
17179
17180 /* Define int_fast types. short is often slow */
17181 typedef int8_t int_fast8_t;
17182 typedef int int_fast16_t;
17183 typedef int32_t int_fast32_t;
17184 #ifdef _INT64_T
17185 typedef int64_t int_fast64_t;
17186 #endif
17187
17188 typedef uint8_t uint_fast8_t;
17189 typedef unsigned int uint_fast16_t;
17190 typedef uint32_t uint_fast32_t;
17191 #ifdef _UINT64_T
17192 typedef uint64_t uint_fast64_t;
17193 #endif
17194 EOF
17195 fi
17196
17197 if test "$ac_cv_type_uintmax_t" != yes; then
17198 sed 's/^ *//' >> tmp-stdint.h <<EOF
17199
17200 /* Define intmax based on what we found */
17201 #ifndef intmax_t
17202 #ifdef _INT64_T
17203 typedef int64_t intmax_t;
17204 #else
17205 typedef long intmax_t;
17206 #endif
17207 #endif
17208 #ifndef uintmax_t
17209 #ifdef _UINT64_T
17210 typedef uint64_t uintmax_t;
17211 #else
17212 typedef unsigned long uintmax_t;
17213 #endif
17214 #endif
17215 EOF
17216 fi
17217
17218 sed 's/^ *//' >> tmp-stdint.h <<EOF
17219
17220 #endif /* GCC_GENERATED_STDINT_H */
17221 EOF
17222
17223 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17224 rm -f tmp-stdint.h
17225 else
17226 mv -f tmp-stdint.h gstdint.h
17227 fi
17228
17229 ;;
17230 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17231 "default":C) if test -n "$CONFIG_FILES"; then
17232 if test -n "${with_target_subdir}"; then
17233 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17234 # that multilib installs will end up installed in the correct place.
17235 # The testsuite needs it for multilib-aware ABI baseline files.
17236 # To work around this not being passed down from config-ml.in ->
17237 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17238 # append it here. Only modify Makefiles that have just been created.
17239 #
17240 # Also, get rid of this simulated-VPATH thing that automake does.
17241 cat > vpsed << \_EOF
17242 s!`test -f '$<' || echo '$(srcdir)/'`!!
17243 _EOF
17244 for i in $SUBDIRS; do
17245 case $CONFIG_FILES in
17246 *${i}/Makefile*)
17247 #echo "Adding MULTISUBDIR to $i/Makefile"
17248 sed -f vpsed $i/Makefile > tmp
17249 grep '^MULTISUBDIR =' Makefile >> tmp
17250 mv tmp $i/Makefile
17251 ;;
17252 esac
17253 done
17254 rm vpsed
17255 fi
17256 fi
17257 ;;
17258
17259 esac
17260 done # for ac_tag
17261
17262
17263 as_fn_exit 0
17264 _ACEOF
17265 ac_clean_files=$ac_clean_files_save
17266
17267 test $ac_write_fail = 0 ||
17268 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17269
17270
17271 # configure is writing to config.log, and then calls config.status.
17272 # config.status does its own redirection, appending to config.log.
17273 # Unfortunately, on DOS this fails, as config.log is still kept open
17274 # by configure, so config.status won't be able to write to it; its
17275 # output is simply discarded. So we exec the FD to /dev/null,
17276 # effectively closing config.log, so it can be properly (re)opened and
17277 # appended to by config.status. When coming back to configure, we
17278 # need to make the FD available again.
17279 if test "$no_create" != yes; then
17280 ac_cs_success=:
17281 ac_config_status_args=
17282 test "$silent" = yes &&
17283 ac_config_status_args="$ac_config_status_args --quiet"
17284 exec 5>/dev/null
17285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17286 exec 5>>config.log
17287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17288 # would make configure fail if this is the last instruction.
17289 $ac_cs_success || as_fn_exit 1
17290 fi
17291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17293 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17294 fi
17295