]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libbacktrace/configure
Copy in libbacktrace from gcc
[thirdparty/binutils-gdb.git] / libbacktrace / configure
CommitLineData
63a4b106
AB
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 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
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
266fi
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 bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_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.
313as_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.
323as_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.
371as_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.
381if (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 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # 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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # 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.
416as_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
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_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
508ECHO_C= ECHO_N= ECHO_T=
509case `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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_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.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libbacktrace'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="backtrace.h"
596# Factoring default headers for most tests.
597ac_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
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636NATIVE_FALSE
637NATIVE_TRUE
638HAVE_LIBLZMA_FALSE
639HAVE_LIBLZMA_TRUE
640HAVE_MINIDEBUG_FALSE
641HAVE_MINIDEBUG_TRUE
642HAVE_COMM_FALSE
643HAVE_COMM_TRUE
644COMM
645HAVE_XZ_FALSE
646HAVE_XZ_TRUE
647XZ
648USE_DSYMUTIL_FALSE
649USE_DSYMUTIL_TRUE
650HAVE_OBJCOPY_DEBUGLINK_FALSE
651HAVE_OBJCOPY_DEBUGLINK_TRUE
652READELF
653OBJCOPY
654HAVE_COMPRESSED_DEBUG_FALSE
655HAVE_COMPRESSED_DEBUG_TRUE
656HAVE_ZLIB_FALSE
657HAVE_ZLIB_TRUE
658HAVE_DWARF5_FALSE
659HAVE_DWARF5_TRUE
660HAVE_PTHREAD_FALSE
661HAVE_PTHREAD_TRUE
662PTHREAD_CFLAGS
663CLOCK_GETTIME_LINK
664BACKTRACE_USES_MALLOC
665ALLOC_FILE
666VIEW_FILE
667BACKTRACE_SUPPORTS_DATA
668BACKTRACE_SUPPORTED
669HAVE_ELF_FALSE
670HAVE_ELF_TRUE
671FORMAT_FILE
672BACKTRACE_SUPPORTS_THREADS
673CET_HOST_FLAGS
674PIC_FLAG
675WARN_FLAGS
676EXTRA_FLAGS
677BACKTRACE_FILE
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683AR
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691SED
692LIBTOOL
693HAVE_DWZ_FALSE
694HAVE_DWZ_TRUE
695DWZ
696RANLIB
697MAINT
698MAINTAINER_MODE_FALSE
699MAINTAINER_MODE_TRUE
700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727libtool_VERSION
728EGREP
729GREP
730CPP
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750multi_basedir
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_multilib
793enable_silent_rules
794enable_maintainer_mode
795with_target_subdir
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_gnu_ld
801enable_libtool_lock
802enable_largefile
803enable_cet
804with_system_libunwind
805enable_host_shared
806'
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816OBJCOPY
817DSYMUTIL
818NM'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227done
1228
1229if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324else
1325 ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412_ACEOF
1413
1414 cat <<\_ACEOF
1415
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of package-unused version-unused:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-multilib build many library versions (default)
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-largefile omit support for large files
1450 --enable-cet enable Intel CET in target libraries [default=auto]
1451 --enable-host-shared build host code as shared libraries
1452 --enable-cet enable Intel CET in host libraries [default=auto]
1453
1454Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-system-libunwind use installed libunwind
1462
1463Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor
1472 OBJCOPY location of objcopy
1473 DSYMUTIL location of dsymutil
1474 NM location of nm
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to the package provider.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541 cat <<\_ACEOF
1542package-unused configure version-unused
1543generated by GNU Autoconf 2.69
1544
1545Copyright (C) 2012 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549 exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } > conftest.i && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634# the include files in INCLUDES and setting the cache variable VAR
1635# accordingly.
1636ac_fn_c_check_header_mongrel ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if eval \${$3+:} false; then :
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
1642if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644fi
1645eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648else
1649 # Is the header compilable?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651$as_echo_n "checking $2 usability... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_header_compiler=yes
1659else
1660 ac_header_compiler=no
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664$as_echo "$ac_header_compiler" >&6; }
1665
1666# Is the header present?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668$as_echo_n "checking $2 presence... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_cpp "$LINENO"; then :
1674 ac_header_preproc=yes
1675else
1676 ac_header_preproc=no
1677fi
1678rm -f conftest.err conftest.i conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680$as_echo "$ac_header_preproc" >&6; }
1681
1682# So? What about this header?
1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 yes:no: )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 ;;
1690 no:yes:* )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 ;;
1702esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707else
1708 eval "$3=\$ac_header_compiler"
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716} # ac_fn_c_check_header_mongrel
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891else
1892 eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903
1904# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905# -------------------------------------------
1906# Tests whether TYPE exists after having included INCLUDES, setting cache
1907# variable VAR accordingly.
1908ac_fn_c_check_type ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915else
1916 eval "$3=no"
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919$4
1920int
1921main ()
1922{
1923if (sizeof ($2))
1924 return 0;
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933int
1934main ()
1935{
1936if (sizeof (($2)))
1937 return 0;
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943
1944else
1945 eval "$3=yes"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950fi
1951eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_type
1957
1958# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1959# --------------------------------------------
1960# Tries to find the compile-time value of EXPR in a program that includes
1961# INCLUDES, setting VAR accordingly. Returns whether the value could be
1962# computed
1963ac_fn_c_compute_int ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if test "$cross_compiling" = yes; then
1967 # Depending upon the size, compute the lo and hi bounds.
1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974static int test_array [1 - 2 * !(($2) >= 0)];
1975test_array [0] = 0;
1976return test_array [0];
1977
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_lo=0 ac_mid=0
1984 while :; do
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992test_array [0] = 0;
1993return test_array [0];
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_hi=$ac_mid; break
2001else
2002 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2003 if test $ac_lo -le $ac_mid; then
2004 ac_lo= ac_hi=
2005 break
2006 fi
2007 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 done
2011else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015int
2016main ()
2017{
2018static int test_array [1 - 2 * !(($2) < 0)];
2019test_array [0] = 0;
2020return test_array [0];
2021
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=-1 ac_mid=-1
2028 while :; do
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2045else
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2050 fi
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055else
2056 ac_lo= ac_hi=
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061# Binary search between lo and hi bounds.
2062while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071test_array [0] = 0;
2072return test_array [0];
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid
2080else
2081 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082fi
2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084done
2085case $ac_lo in #((
2086?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2087'') ac_retval=1 ;;
2088esac
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093static long int longval () { return $2; }
2094static unsigned long int ulongval () { return $2; }
2095#include <stdio.h>
2096#include <stdlib.h>
2097int
2098main ()
2099{
2100
2101 FILE *f = fopen ("conftest.val", "w");
2102 if (! f)
2103 return 1;
2104 if (($2) < 0)
2105 {
2106 long int i = longval ();
2107 if (i != ($2))
2108 return 1;
2109 fprintf (f, "%ld", i);
2110 }
2111 else
2112 {
2113 unsigned long int i = ulongval ();
2114 if (i != ($2))
2115 return 1;
2116 fprintf (f, "%lu", i);
2117 }
2118 /* Do not output a trailing newline, as this causes \r\n confusion
2119 on some platforms. */
2120 return ferror (f) || fclose (f) != 0;
2121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_run "$LINENO"; then :
2127 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2128else
2129 ac_retval=1
2130fi
2131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2132 conftest.$ac_objext conftest.beam conftest.$ac_ext
2133rm -f conftest.val
2134
2135 fi
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 as_fn_set_status $ac_retval
2138
2139} # ac_fn_c_compute_int
2140
2141# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2142# ---------------------------------------------
2143# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2144# accordingly.
2145ac_fn_c_check_decl ()
2146{
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 as_decl_name=`echo $2|sed 's/ *(.*//'`
2149 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2151$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2152if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2154else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158int
2159main ()
2160{
2161#ifndef $as_decl_name
2162#ifdef __cplusplus
2163 (void) $as_decl_use;
2164#else
2165 (void) $as_decl_name;
2166#endif
2167#endif
2168
2169 ;
2170 return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 eval "$3=yes"
2175else
2176 eval "$3=no"
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179fi
2180eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182$as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184
2185} # ac_fn_c_check_decl
2186cat >config.log <<_ACEOF
2187This file contains any messages produced by compilers while
2188running configure, to aid debugging if configure makes a mistake.
2189
2190It was created by package-unused $as_me version-unused, which was
2191generated by GNU Autoconf 2.69. Invocation command line was
2192
2193 $ $0 $@
2194
2195_ACEOF
2196exec 5>>config.log
2197{
2198cat <<_ASUNAME
2199## --------- ##
2200## Platform. ##
2201## --------- ##
2202
2203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2204uname -m = `(uname -m) 2>/dev/null || echo unknown`
2205uname -r = `(uname -r) 2>/dev/null || echo unknown`
2206uname -s = `(uname -s) 2>/dev/null || echo unknown`
2207uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208
2209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211
2212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2215/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2219
2220_ASUNAME
2221
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 $as_echo "PATH: $as_dir"
2228 done
2229IFS=$as_save_IFS
2230
2231} >&5
2232
2233cat >&5 <<_ACEOF
2234
2235
2236## ----------- ##
2237## Core tests. ##
2238## ----------- ##
2239
2240_ACEOF
2241
2242
2243# Keep a trace of the command line.
2244# Strip out --no-create and --no-recursion so they do not pile up.
2245# Strip out --silent because we don't want to record it for future runs.
2246# Also quote any args containing shell meta-characters.
2247# Make two passes to allow for proper duplicate-argument suppression.
2248ac_configure_args=
2249ac_configure_args0=
2250ac_configure_args1=
2251ac_must_keep_next=false
2252for ac_pass in 1 2
2253do
2254 for ac_arg
2255 do
2256 case $ac_arg in
2257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2259 | -silent | --silent | --silen | --sile | --sil)
2260 continue ;;
2261 *\'*)
2262 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 esac
2264 case $ac_pass in
2265 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 2)
2267 as_fn_append ac_configure_args1 " '$ac_arg'"
2268 if test $ac_must_keep_next = true; then
2269 ac_must_keep_next=false # Got value, back to normal.
2270 else
2271 case $ac_arg in
2272 *=* | --config-cache | -C | -disable-* | --disable-* \
2273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2275 | -with-* | --with-* | -without-* | --without-* | --x)
2276 case "$ac_configure_args0 " in
2277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2278 esac
2279 ;;
2280 -* ) ac_must_keep_next=true ;;
2281 esac
2282 fi
2283 as_fn_append ac_configure_args " '$ac_arg'"
2284 ;;
2285 esac
2286 done
2287done
2288{ ac_configure_args0=; unset ac_configure_args0;}
2289{ ac_configure_args1=; unset ac_configure_args1;}
2290
2291# When interrupted or exit'd, cleanup temporary files, and complete
2292# config.log. We remove comments because anyway the quotes in there
2293# would cause problems or look ugly.
2294# WARNING: Use '\'' to represent an apostrophe within the trap.
2295# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2296trap 'exit_status=$?
2297 # Save into config.log some information that might help in debugging.
2298 {
2299 echo
2300
2301 $as_echo "## ---------------- ##
2302## Cache variables. ##
2303## ---------------- ##"
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2306(
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2329 *)
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ;;
2332 esac |
2333 sort
2334)
2335 echo
2336
2337 $as_echo "## ----------------- ##
2338## Output variables. ##
2339## ----------------- ##"
2340 echo
2341 for ac_var in $ac_subst_vars
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350
2351 if test -n "$ac_subst_files"; then
2352 $as_echo "## ------------------- ##
2353## File substitutions. ##
2354## ------------------- ##"
2355 echo
2356 for ac_var in $ac_subst_files
2357 do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 $as_echo "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2365 fi
2366
2367 if test -s confdefs.h; then
2368 $as_echo "## ----------- ##
2369## confdefs.h. ##
2370## ----------- ##"
2371 echo
2372 cat confdefs.h
2373 echo
2374 fi
2375 test "$ac_signal" != 0 &&
2376 $as_echo "$as_me: caught signal $ac_signal"
2377 $as_echo "$as_me: exit $exit_status"
2378 } >&5
2379 rm -f core *.core core.conftest.* &&
2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381 exit $exit_status
2382' 0
2383for ac_signal in 1 2 13 15; do
2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2385done
2386ac_signal=0
2387
2388# confdefs.h avoids OS command line length limits that DEFS can exceed.
2389rm -f -r conftest* confdefs.h
2390
2391$as_echo "/* confdefs.h */" > confdefs.h
2392
2393# Predefined preprocessor variables.
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_NAME "$PACKAGE_NAME"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_VERSION "$PACKAGE_VERSION"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_STRING "$PACKAGE_STRING"
2409_ACEOF
2410
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413_ACEOF
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_URL "$PACKAGE_URL"
2417_ACEOF
2418
2419
2420# Let the site file select an alternate cache file if it wants to.
2421# Prefer an explicitly selected file to automatically selected ones.
2422ac_site_file1=NONE
2423ac_site_file2=NONE
2424if test -n "$CONFIG_SITE"; then
2425 # We do not want a PATH search for config.site.
2426 case $CONFIG_SITE in #((
2427 -*) ac_site_file1=./$CONFIG_SITE;;
2428 */*) ac_site_file1=$CONFIG_SITE;;
2429 *) ac_site_file1=./$CONFIG_SITE;;
2430 esac
2431elif test "x$prefix" != xNONE; then
2432 ac_site_file1=$prefix/share/config.site
2433 ac_site_file2=$prefix/etc/config.site
2434else
2435 ac_site_file1=$ac_default_prefix/share/config.site
2436 ac_site_file2=$ac_default_prefix/etc/config.site
2437fi
2438for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2439do
2440 test "x$ac_site_file" = xNONE && continue
2441 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2443$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2444 sed 's/^/| /' "$ac_site_file" >&5
2445 . "$ac_site_file" \
2446 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448as_fn_error $? "failed to load site script $ac_site_file
2449See \`config.log' for more details" "$LINENO" 5; }
2450 fi
2451done
2452
2453if test -r "$cache_file"; then
2454 # Some versions of bash will fail to source /dev/null (special files
2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458$as_echo "$as_me: loading cache $cache_file" >&6;}
2459 case $cache_file in
2460 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2461 *) . "./$cache_file";;
2462 esac
2463 fi
2464else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466$as_echo "$as_me: creating cache $cache_file" >&6;}
2467 >$cache_file
2468fi
2469
2470# Check that the precious variables saved in the cache have kept the same
2471# value.
2472ac_cache_corrupted=false
2473for ac_var in $ac_precious_vars; do
2474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475 eval ac_new_set=\$ac_env_${ac_var}_set
2476 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477 eval ac_new_val=\$ac_env_${ac_var}_value
2478 case $ac_old_set,$ac_new_set in
2479 set,)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,set)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,);;
2488 *)
2489 if test "x$ac_old_val" != "x$ac_new_val"; then
2490 # differences in whitespace do not lead to failure.
2491 ac_old_val_w=`echo x $ac_old_val`
2492 ac_new_val_w=`echo x $ac_new_val`
2493 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496 ac_cache_corrupted=:
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500 eval $ac_var=\$ac_old_val
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2503$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2505$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2506 fi;;
2507 esac
2508 # Pass precious variables to config.status.
2509 if test "$ac_new_set" = set; then
2510 case $ac_new_val in
2511 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 *) ac_arg=$ac_var=$ac_new_val ;;
2513 esac
2514 case " $ac_configure_args " in
2515 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2516 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2517 esac
2518 fi
2519done
2520if $ac_cache_corrupted; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2526fi
2527## -------------------- ##
2528## Main body of script. ##
2529## -------------------- ##
2530
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538
2539
2540
2541
2542ac_config_headers="$ac_config_headers config.h"
2543
2544
2545if test -n "${with_target_subdir}"; then
2546 # Default to --enable-multilib
2547# Check whether --enable-multilib was given.
2548if test "${enable_multilib+set}" = set; then :
2549 enableval=$enable_multilib; case "$enableval" in
2550 yes) multilib=yes ;;
2551 no) multilib=no ;;
2552 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2553 esac
2554else
2555 multilib=yes
2556fi
2557
2558
2559# We may get other options which we leave undocumented:
2560# --with-target-subdir, --with-multisrctop, --with-multisubdir
2561# See config-ml.in if you want the gory details.
2562
2563if test "$srcdir" = "."; then
2564 if test "$with_target_subdir" != "."; then
2565 multi_basedir="$srcdir/$with_multisrctop../.."
2566 else
2567 multi_basedir="$srcdir/$with_multisrctop.."
2568 fi
2569else
2570 multi_basedir="$srcdir/.."
2571fi
2572
2573
2574# Even if the default multilib is not a cross compilation,
2575# it may be that some of the other multilibs are.
2576if test $cross_compiling = no && test $multilib = yes \
2577 && test "x${with_multisubdir}" != x ; then
2578 cross_compiling=maybe
2579fi
2580
2581ac_config_commands="$ac_config_commands default-1"
2582
2583fi
2584
2585ac_aux_dir=
2586for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587 if test -f "$ac_dir/install-sh"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/install-sh -c"
2590 break
2591 elif test -f "$ac_dir/install.sh"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/install.sh -c"
2594 break
2595 elif test -f "$ac_dir/shtool"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/shtool install -c"
2598 break
2599 fi
2600done
2601if test -z "$ac_aux_dir"; then
2602 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2603fi
2604
2605# These three variables are undocumented and unsupported,
2606# and are intended to be withdrawn in a future Autoconf release.
2607# They can cause serious problems if a builder's source tree is in a directory
2608# whose full name contains unusual characters.
2609ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2610ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2611ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2612
2613
2614# Make sure we can run config.sub.
2615$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2616 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2617
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2619$as_echo_n "checking build system type... " >&6; }
2620if ${ac_cv_build+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622else
2623 ac_build_alias=$build_alias
2624test "x$ac_build_alias" = x &&
2625 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2626test "x$ac_build_alias" = x &&
2627 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2628ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2630
2631fi
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2633$as_echo "$ac_cv_build" >&6; }
2634case $ac_cv_build in
2635*-*-*) ;;
2636*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2637esac
2638build=$ac_cv_build
2639ac_save_IFS=$IFS; IFS='-'
2640set x $ac_cv_build
2641shift
2642build_cpu=$1
2643build_vendor=$2
2644shift; shift
2645# Remember, the first character of IFS is used to create $*,
2646# except with old shells:
2647build_os=$*
2648IFS=$ac_save_IFS
2649case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2650
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2653$as_echo_n "checking host system type... " >&6; }
2654if ${ac_cv_host+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656else
2657 if test "x$host_alias" = x; then
2658 ac_cv_host=$ac_cv_build
2659else
2660 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2662fi
2663
2664fi
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2666$as_echo "$ac_cv_host" >&6; }
2667case $ac_cv_host in
2668*-*-*) ;;
2669*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2670esac
2671host=$ac_cv_host
2672ac_save_IFS=$IFS; IFS='-'
2673set x $ac_cv_host
2674shift
2675host_cpu=$1
2676host_vendor=$2
2677shift; shift
2678# Remember, the first character of IFS is used to create $*,
2679# except with old shells:
2680host_os=$*
2681IFS=$ac_save_IFS
2682case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2683
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2686$as_echo_n "checking target system type... " >&6; }
2687if ${ac_cv_target+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689else
2690 if test "x$target_alias" = x; then
2691 ac_cv_target=$ac_cv_host
2692else
2693 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2695fi
2696
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2699$as_echo "$ac_cv_target" >&6; }
2700case $ac_cv_target in
2701*-*-*) ;;
2702*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2703esac
2704target=$ac_cv_target
2705ac_save_IFS=$IFS; IFS='-'
2706set x $ac_cv_target
2707shift
2708target_cpu=$1
2709target_vendor=$2
2710shift; shift
2711# Remember, the first character of IFS is used to create $*,
2712# except with old shells:
2713target_os=$*
2714IFS=$ac_save_IFS
2715case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2716
2717
2718# The aliases save the names the user supplied, while $host etc.
2719# will get canonicalized.
2720test -n "$target_alias" &&
2721 test "$program_prefix$program_suffix$program_transform_name" = \
2722 NONENONEs,x,x, &&
2723 program_prefix=${target_alias}-
2724
2725target_alias=${target_alias-$host_alias}
2726
2727# Expand $ac_aux_dir to an absolute path.
2728am_aux_dir=`cd "$ac_aux_dir" && pwd`
2729
2730ac_ext=c
2731ac_cpp='$CPP $CPPFLAGS'
2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757done
2758 done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766$as_echo "$CC" >&6; }
2767else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773fi
2774if test -z "$ac_cv_prog_CC"; then
2775 ac_ct_CC=$CC
2776 # Extract the first word of "gcc", so it can be a program name with args.
2777set dummy gcc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_CC="gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798 done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804if test -n "$ac_ct_CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806$as_echo "$ac_ct_CC" >&6; }
2807else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812 if test "x$ac_ct_CC" = x; then
2813 CC=""
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816yes:)
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819ac_tool_warned=yes ;;
2820esac
2821 CC=$ac_ct_CC
2822 fi
2823else
2824 CC="$ac_cv_prog_CC"
2825fi
2826
2827if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2830set dummy ${ac_tool_prefix}cc; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_CC="${ac_tool_prefix}cc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851 done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859$as_echo "$CC" >&6; }
2860else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866 fi
2867fi
2868if test -z "$CC"; then
2869 # Extract the first word of "cc", so it can be a program name with args.
2870set dummy cc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879 ac_prog_rejected=no
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2888 ac_prog_rejected=yes
2889 continue
2890 fi
2891 ac_cv_prog_CC="cc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896 done
2897IFS=$as_save_IFS
2898
2899if test $ac_prog_rejected = yes; then
2900 # We found a bogon in the path, so make sure we never use it.
2901 set dummy $ac_cv_prog_CC
2902 shift
2903 if test $# != 0; then
2904 # We chose a different compiler from the bogus one.
2905 # However, it has the same basename, so the bogon will be chosen
2906 # first if we set CC to just the basename; use the full file name.
2907 shift
2908 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2909 fi
2910fi
2911fi
2912fi
2913CC=$ac_cv_prog_CC
2914if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916$as_echo "$CC" >&6; }
2917else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919$as_echo "no" >&6; }
2920fi
2921
2922
2923fi
2924if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in cl.exe
2927 do
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950 done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965 test -n "$CC" && break
2966 done
2967fi
2968if test -z "$CC"; then
2969 ac_ct_CC=$CC
2970 for ac_prog in cl.exe
2971do
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973set dummy $ac_prog; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978else
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="$ac_prog"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994 done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002$as_echo "$ac_ct_CC" >&6; }
3003else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008
3009 test -n "$ac_ct_CC" && break
3010done
3011
3012 if test "x$ac_ct_CC" = x; then
3013 CC=""
3014 else
3015 case $cross_compiling:$ac_tool_warned in
3016yes:)
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019ac_tool_warned=yes ;;
3020esac
3021 CC=$ac_ct_CC
3022 fi
3023fi
3024
3025fi
3026
3027
3028test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030as_fn_error $? "no acceptable C compiler found in \$PATH
3031See \`config.log' for more details" "$LINENO" 5; }
3032
3033# Provide some information about the compiler.
3034$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3035set X $ac_compile
3036ac_compiler=$2
3037for ac_option in --version -v -V -qversion; do
3038 { { ac_try="$ac_compiler $ac_option >&5"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3046 ac_status=$?
3047 if test -s conftest.err; then
3048 sed '10a\
3049... rest of stderr output deleted ...
3050 10q' conftest.err >conftest.er1
3051 cat conftest.er1 >&5
3052 fi
3053 rm -f conftest.er1 conftest.err
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3056done
3057
3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069ac_clean_files_save=$ac_clean_files
3070ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3071# Try to create an executable without -o first, disregard a.out.
3072# It will help us diagnose broken compilers, and finding out an intuition
3073# of exeext.
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3075$as_echo_n "checking whether the C compiler works... " >&6; }
3076ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077
3078# The possible output files:
3079ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3080
3081ac_rmfiles=
3082for ac_file in $ac_files
3083do
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087 esac
3088done
3089rm -f $ac_rmfiles
3090
3091if { { ac_try="$ac_link_default"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097$as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_link_default") 2>&5
3099 ac_status=$?
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; then :
3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3103# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3104# in a Makefile. We should not override ac_cv_exeext if it was cached,
3105# so that the user can short-circuit this test for compilers unknown to
3106# Autoconf.
3107for ac_file in $ac_files ''
3108do
3109 test -f "$ac_file" || continue
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3112 ;;
3113 [ab].out )
3114 # We found the default executable, but exeext='' is most
3115 # certainly right.
3116 break;;
3117 *.* )
3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3119 then :; else
3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 fi
3122 # We set ac_cv_exeext here because the later test for it is not
3123 # safe: cross compilers may not add the suffix if given an `-o'
3124 # argument, so we may need to know it at that point already.
3125 # Even if this section looks crufty: it has the advantage of
3126 # actually working.
3127 break;;
3128 * )
3129 break;;
3130 esac
3131done
3132test "$ac_cv_exeext" = no && ac_cv_exeext=
3133
3134else
3135 ac_file=''
3136fi
3137if test -z "$ac_file"; then :
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140$as_echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error 77 "C compiler cannot create executables
3146See \`config.log' for more details" "$LINENO" 5; }
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149$as_echo "yes" >&6; }
3150fi
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3152$as_echo_n "checking for C compiler default output file name... " >&6; }
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154$as_echo "$ac_file" >&6; }
3155ac_exeext=$ac_cv_exeext
3156
3157rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3158ac_clean_files=$ac_clean_files_save
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3160$as_echo_n "checking for suffix of executables... " >&6; }
3161if { { ac_try="$ac_link"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3173# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3174# work properly (i.e., refer to `conftest.exe'), while it won't with
3175# `rm'.
3176for ac_file in conftest.exe conftest conftest.*; do
3177 test -f "$ac_file" || continue
3178 case $ac_file in
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 break;;
3182 * ) break;;
3183 esac
3184done
3185else
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3189See \`config.log' for more details" "$LINENO" 5; }
3190fi
3191rm -f conftest conftest$ac_cv_exeext
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3193$as_echo "$ac_cv_exeext" >&6; }
3194
3195rm -f conftest.$ac_ext
3196EXEEXT=$ac_cv_exeext
3197ac_exeext=$EXEEXT
3198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h. */
3200#include <stdio.h>
3201int
3202main ()
3203{
3204FILE *f = fopen ("conftest.out", "w");
3205 return ferror (f) || fclose (f) != 0;
3206
3207 ;
3208 return 0;
3209}
3210_ACEOF
3211ac_clean_files="$ac_clean_files conftest.out"
3212# Check that the compiler produces executables we can run. If not, either
3213# the compiler is broken, or we cross compile.
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3215$as_echo_n "checking whether we are cross compiling... " >&6; }
3216if test "$cross_compiling" != yes; then
3217 { { ac_try="$ac_link"
3218case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223$as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 if { ac_try='./conftest$ac_cv_exeext'
3229 { { case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_try") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; }; then
3239 cross_compiling=no
3240 else
3241 if test "$cross_compiling" = maybe; then
3242 cross_compiling=yes
3243 else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error $? "cannot run C compiled programs.
3247If you meant to cross compile, use \`--host'.
3248See \`config.log' for more details" "$LINENO" 5; }
3249 fi
3250 fi
3251fi
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3253$as_echo "$cross_compiling" >&6; }
3254
3255rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3256ac_clean_files=$ac_clean_files_save
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3258$as_echo_n "checking for suffix of object files... " >&6; }
3259if ${ac_cv_objext+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261else
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.o conftest.obj
3274if { { ac_try="$ac_compile"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compile") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 for ac_file in conftest.o conftest.obj conftest.*; do
3286 test -f "$ac_file" || continue;
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 break;;
3291 esac
3292done
3293else
3294 $as_echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299as_fn_error $? "cannot compute suffix of object files: cannot compile
3300See \`config.log' for more details" "$LINENO" 5; }
3301fi
3302rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303fi
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3305$as_echo "$ac_cv_objext" >&6; }
3306OBJEXT=$ac_cv_objext
3307ac_objext=$OBJEXT
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3309$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3310if ${ac_cv_c_compiler_gnu+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h. */
3315
3316int
3317main ()
3318{
3319#ifndef __GNUC__
3320 choke me
3321#endif
3322
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_compiler_gnu=yes
3329else
3330 ac_compiler_gnu=no
3331fi
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334
3335fi
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3337$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3338if test $ac_compiler_gnu = yes; then
3339 GCC=yes
3340else
3341 GCC=
3342fi
3343ac_test_CFLAGS=${CFLAGS+set}
3344ac_save_CFLAGS=$CFLAGS
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3346$as_echo_n "checking whether $CC accepts -g... " >&6; }
3347if ${ac_cv_prog_cc_g+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349else
3350 ac_save_c_werror_flag=$ac_c_werror_flag
3351 ac_c_werror_flag=yes
3352 ac_cv_prog_cc_g=no
3353 CFLAGS="-g"
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365if ac_fn_c_try_compile "$LINENO"; then :
3366 ac_cv_prog_cc_g=yes
3367else
3368 CFLAGS=""
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h. */
3371
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380if ac_fn_c_try_compile "$LINENO"; then :
3381
3382else
3383 ac_c_werror_flag=$ac_save_c_werror_flag
3384 CFLAGS="-g"
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386/* end confdefs.h. */
3387
3388int
3389main ()
3390{
3391
3392 ;
3393 return 0;
3394}
3395_ACEOF
3396if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_cv_prog_cc_g=yes
3398fi
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402fi
3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3407$as_echo "$ac_cv_prog_cc_g" >&6; }
3408if test "$ac_test_CFLAGS" = set; then
3409 CFLAGS=$ac_save_CFLAGS
3410elif test $ac_cv_prog_cc_g = yes; then
3411 if test "$GCC" = yes; then
3412 CFLAGS="-g -O2"
3413 else
3414 CFLAGS="-g"
3415 fi
3416else
3417 if test "$GCC" = yes; then
3418 CFLAGS="-O2"
3419 else
3420 CFLAGS=
3421 fi
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3424$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3425if ${ac_cv_prog_cc_c89+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427else
3428 ac_cv_prog_cc_c89=no
3429ac_save_CC=$CC
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432#include <stdarg.h>
3433#include <stdio.h>
3434struct stat;
3435/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3436struct buf { int x; };
3437FILE * (*rcsopen) (struct buf *, struct stat *, int);
3438static char *e (p, i)
3439 char **p;
3440 int i;
3441{
3442 return p[i];
3443}
3444static char *f (char * (*g) (char **, int), char **p, ...)
3445{
3446 char *s;
3447 va_list v;
3448 va_start (v,p);
3449 s = g (p, va_arg (v,int));
3450 va_end (v);
3451 return s;
3452}
3453
3454/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3455 function prototypes and stuff, but not '\xHH' hex character constants.
3456 These don't provoke an error unfortunately, instead are silently treated
3457 as 'x'. The following induces an error, until -std is added to get
3458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3459 array size at least. It's necessary to write '\x00'==0 to get something
3460 that's true only with -std. */
3461int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3462
3463/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3464 inside strings and character constants. */
3465#define FOO(x) 'x'
3466int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3467
3468int test (int i, double x);
3469struct s1 {int (*f) (int a);};
3470struct s2 {int (*f) (double a);};
3471int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3472int argc;
3473char **argv;
3474int
3475main ()
3476{
3477return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3483 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3484do
3485 CC="$ac_save_CC $ac_arg"
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487 ac_cv_prog_cc_c89=$ac_arg
3488fi
3489rm -f core conftest.err conftest.$ac_objext
3490 test "x$ac_cv_prog_cc_c89" != "xno" && break
3491done
3492rm -f conftest.$ac_ext
3493CC=$ac_save_CC
3494
3495fi
3496# AC_CACHE_VAL
3497case "x$ac_cv_prog_cc_c89" in
3498 x)
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3500$as_echo "none needed" >&6; } ;;
3501 xno)
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503$as_echo "unsupported" >&6; } ;;
3504 *)
3505 CC="$CC $ac_cv_prog_cc_c89"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3507$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3508esac
3509if test "x$ac_cv_prog_cc_c89" != xno; then :
3510
3511fi
3512
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519ac_ext=c
3520ac_cpp='$CPP $CPPFLAGS'
3521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3525$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3526if ${am_cv_prog_cc_c_o+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540 # Make sure it works both with $CC and with simple cc.
3541 # Following AC_PROG_CC_C_O, we do the test twice because some
3542 # compilers refuse to overwrite an existing .o file with -o,
3543 # though they will create one.
3544 am_cv_prog_cc_c_o=yes
3545 for am_i in 1 2; do
3546 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3547 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } \
3551 && test -f conftest2.$ac_objext; then
3552 : OK
3553 else
3554 am_cv_prog_cc_c_o=no
3555 break
3556 fi
3557 done
3558 rm -f core conftest*
3559 unset am_i
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3562$as_echo "$am_cv_prog_cc_c_o" >&6; }
3563if test "$am_cv_prog_cc_c_o" != yes; then
3564 # Losing compiler, so override with the script.
3565 # FIXME: It is wrong to rewrite CC.
3566 # But if we don't then we get into trouble of one sort or another.
3567 # A longer-term fix would be to have automake use am__CC in this case,
3568 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3569 CC="$am_aux_dir/compile $CC"
3570fi
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577
3578
3579ac_ext=c
3580ac_cpp='$CPP $CPPFLAGS'
3581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3585$as_echo_n "checking how to run the C preprocessor... " >&6; }
3586# On Suns, sometimes $CPP names a directory.
3587if test -n "$CPP" && test -d "$CPP"; then
3588 CPP=
3589fi
3590if test -z "$CPP"; then
3591 if ${ac_cv_prog_CPP+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593else
3594 # Double quotes because CPP needs to be expanded
3595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3596 do
3597 ac_preproc_ok=false
3598for ac_c_preproc_warn_flag in '' yes
3599do
3600 # Use a header file that comes with gcc, so configuring glibc
3601 # with a fresh cross-compiler works.
3602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3603 # <limits.h> exists even on freestanding compilers.
3604 # On the NeXT, cc -E runs the code through the compiler's parser,
3605 # not just through cpp. "Syntax error" is here to catch this case.
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h. */
3608#ifdef __STDC__
3609# include <limits.h>
3610#else
3611# include <assert.h>
3612#endif
3613 Syntax error
3614_ACEOF
3615if ac_fn_c_try_cpp "$LINENO"; then :
3616
3617else
3618 # Broken: fails on valid input.
3619continue
3620fi
3621rm -f conftest.err conftest.i conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627#include <ac_nonexistent.h>
3628_ACEOF
3629if ac_fn_c_try_cpp "$LINENO"; then :
3630 # Broken: success on invalid input.
3631continue
3632else
3633 # Passes both tests.
3634ac_preproc_ok=:
3635break
3636fi
3637rm -f conftest.err conftest.i conftest.$ac_ext
3638
3639done
3640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641rm -f conftest.i conftest.err conftest.$ac_ext
3642if $ac_preproc_ok; then :
3643 break
3644fi
3645
3646 done
3647 ac_cv_prog_CPP=$CPP
3648
3649fi
3650 CPP=$ac_cv_prog_CPP
3651else
3652 ac_cv_prog_CPP=$CPP
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3655$as_echo "$CPP" >&6; }
3656ac_preproc_ok=false
3657for ac_c_preproc_warn_flag in '' yes
3658do
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667#ifdef __STDC__
3668# include <limits.h>
3669#else
3670# include <assert.h>
3671#endif
3672 Syntax error
3673_ACEOF
3674if ac_fn_c_try_cpp "$LINENO"; then :
3675
3676else
3677 # Broken: fails on valid input.
3678continue
3679fi
3680rm -f conftest.err conftest.i conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h. */
3686#include <ac_nonexistent.h>
3687_ACEOF
3688if ac_fn_c_try_cpp "$LINENO"; then :
3689 # Broken: success on invalid input.
3690continue
3691else
3692 # Passes both tests.
3693ac_preproc_ok=:
3694break
3695fi
3696rm -f conftest.err conftest.i conftest.$ac_ext
3697
3698done
3699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700rm -f conftest.i conftest.err conftest.$ac_ext
3701if $ac_preproc_ok; then :
3702
3703else
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3707See \`config.log' for more details" "$LINENO" 5; }
3708fi
3709
3710ac_ext=c
3711ac_cpp='$CPP $CPPFLAGS'
3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3718$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3719if ${ac_cv_path_GREP+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721else
3722 if test -z "$GREP"; then
3723 ac_path_GREP_found=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in grep ggrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3733 as_fn_executable_p "$ac_path_GREP" || continue
3734# Check for GNU ac_path_GREP and select it if it is found.
3735 # Check for GNU $ac_path_GREP
3736case `"$ac_path_GREP" --version 2>&1` in
3737*GNU*)
3738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3739*)
3740 ac_count=0
3741 $as_echo_n 0123456789 >"conftest.in"
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 $as_echo 'GREP' >> "conftest.nl"
3748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 as_fn_arith $ac_count + 1 && ac_count=$as_val
3751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_GREP="$ac_path_GREP"
3754 ac_path_GREP_max=$ac_count
3755 fi
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
3761
3762 $ac_path_GREP_found && break 3
3763 done
3764 done
3765 done
3766IFS=$as_save_IFS
3767 if test -z "$ac_cv_path_GREP"; then
3768 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3769 fi
3770else
3771 ac_cv_path_GREP=$GREP
3772fi
3773
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3776$as_echo "$ac_cv_path_GREP" >&6; }
3777 GREP="$ac_cv_path_GREP"
3778
3779
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3781$as_echo_n "checking for egrep... " >&6; }
3782if ${ac_cv_path_EGREP+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3786 then ac_cv_path_EGREP="$GREP -E"
3787 else
3788 if test -z "$EGREP"; then
3789 ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 as_fn_executable_p "$ac_path_EGREP" || continue
3800# Check for GNU ac_path_EGREP and select it if it is found.
3801 # Check for GNU $ac_path_EGREP
3802case `"$ac_path_EGREP" --version 2>&1` in
3803*GNU*)
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805*)
3806 ac_count=0
3807 $as_echo_n 0123456789 >"conftest.in"
3808 while :
3809 do
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 $as_echo 'EGREP' >> "conftest.nl"
3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 as_fn_arith $ac_count + 1 && ac_count=$as_val
3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3821 fi
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3824 done
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826esac
3827
3828 $ac_path_EGREP_found && break 3
3829 done
3830 done
3831 done
3832IFS=$as_save_IFS
3833 if test -z "$ac_cv_path_EGREP"; then
3834 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835 fi
3836else
3837 ac_cv_path_EGREP=$EGREP
3838fi
3839
3840 fi
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3843$as_echo "$ac_cv_path_EGREP" >&6; }
3844 EGREP="$ac_cv_path_EGREP"
3845
3846
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3848$as_echo_n "checking for ANSI C header files... " >&6; }
3849if ${ac_cv_header_stdc+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851else
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h. */
3854#include <stdlib.h>
3855#include <stdarg.h>
3856#include <string.h>
3857#include <float.h>
3858
3859int
3860main ()
3861{
3862
3863 ;
3864 return 0;
3865}
3866_ACEOF
3867if ac_fn_c_try_compile "$LINENO"; then :
3868 ac_cv_header_stdc=yes
3869else
3870 ac_cv_header_stdc=no
3871fi
3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873
3874if test $ac_cv_header_stdc = yes; then
3875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878#include <string.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "memchr" >/dev/null 2>&1; then :
3883
3884else
3885 ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#include <stdlib.h>
3896
3897_ACEOF
3898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "free" >/dev/null 2>&1; then :
3900
3901else
3902 ac_cv_header_stdc=no
3903fi
3904rm -f conftest*
3905
3906fi
3907
3908if test $ac_cv_header_stdc = yes; then
3909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3910 if test "$cross_compiling" = yes; then :
3911 :
3912else
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915#include <ctype.h>
3916#include <stdlib.h>
3917#if ((' ' & 0x0FF) == 0x020)
3918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920#else
3921# define ISLOWER(c) \
3922 (('a' <= (c) && (c) <= 'i') \
3923 || ('j' <= (c) && (c) <= 'r') \
3924 || ('s' <= (c) && (c) <= 'z'))
3925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926#endif
3927
3928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929int
3930main ()
3931{
3932 int i;
3933 for (i = 0; i < 256; i++)
3934 if (XOR (islower (i), ISLOWER (i))
3935 || toupper (i) != TOUPPER (i))
3936 return 2;
3937 return 0;
3938}
3939_ACEOF
3940if ac_fn_c_try_run "$LINENO"; then :
3941
3942else
3943 ac_cv_header_stdc=no
3944fi
3945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3946 conftest.$ac_objext conftest.beam conftest.$ac_ext
3947fi
3948
3949fi
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3952$as_echo "$ac_cv_header_stdc" >&6; }
3953if test $ac_cv_header_stdc = yes; then
3954
3955$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3956
3957fi
3958
3959# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3961 inttypes.h stdint.h unistd.h
3962do :
3963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3965"
3966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3967 cat >>confdefs.h <<_ACEOF
3968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969_ACEOF
3970
3971fi
3972
3973done
3974
3975
3976
3977 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3978if test "x$ac_cv_header_minix_config_h" = xyes; then :
3979 MINIX=yes
3980else
3981 MINIX=
3982fi
3983
3984
3985 if test "$MINIX" = yes; then
3986
3987$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3988
3989
3990$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3991
3992
3993$as_echo "#define _MINIX 1" >>confdefs.h
3994
3995 fi
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3999$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4000if ${ac_cv_safe_to_define___extensions__+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002else
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005
4006# define __EXTENSIONS__ 1
4007 $ac_includes_default
4008int
4009main ()
4010{
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_safe_to_define___extensions__=yes
4018else
4019 ac_cv_safe_to_define___extensions__=no
4020fi
4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4024$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4025 test $ac_cv_safe_to_define___extensions__ = yes &&
4026 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4027
4028 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4029
4030 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4031
4032 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4033
4034 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4035
4036
4037
4038libtool_VERSION=1:0:0
4039
4040
4041# 1.11.1: Require that version of automake.
4042# foreign: Don't require README, INSTALL, NEWS, etc.
4043# no-define: Don't define PACKAGE and VERSION.
4044# no-dependencies: Don't generate automatic dependencies.
4045# (because it breaks when using bootstrap-lean, since some of the
4046# headers are gone at "make install" time).
4047# -Wall: Issue all automake warnings.
4048# -Wno-portability: Don't warn about constructs supported by GNU make.
4049# (because GCC requires GNU make anyhow).
4050am__api_version='1.15'
4051
4052# Find a good install program. We prefer a C program (faster),
4053# so one script is as good as another. But avoid the broken or
4054# incompatible versions:
4055# SysV /etc/install, /usr/sbin/install
4056# SunOS /usr/etc/install
4057# IRIX /sbin/install
4058# AIX /bin/install
4059# AmigaOS /C/install, which installs bootblocks on floppy discs
4060# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4061# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4062# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4063# OS/2's system install, which has a completely different semantic
4064# ./install, which can be erroneously created by make from ./install.sh.
4065# Reject install programs that cannot install multiple files.
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4067$as_echo_n "checking for a BSD-compatible install... " >&6; }
4068if test -z "$INSTALL"; then
4069if ${ac_cv_path_install+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 # Account for people who put trailing slashes in PATH elements.
4078case $as_dir/ in #((
4079 ./ | .// | /[cC]/* | \
4080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4081 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4082 /usr/ucb/* ) ;;
4083 *)
4084 # OSF1 and SCO ODT 3.0 have their own names for install.
4085 # Don't use installbsd from OSF since it installs stuff as root
4086 # by default.
4087 for ac_prog in ginstall scoinst install; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4090 if test $ac_prog = install &&
4091 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4092 # AIX install. It has an incompatible calling convention.
4093 :
4094 elif test $ac_prog = install &&
4095 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # program-specific install script used by HP pwplus--don't use.
4097 :
4098 else
4099 rm -rf conftest.one conftest.two conftest.dir
4100 echo one > conftest.one
4101 echo two > conftest.two
4102 mkdir conftest.dir
4103 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4104 test -s conftest.one && test -s conftest.two &&
4105 test -s conftest.dir/conftest.one &&
4106 test -s conftest.dir/conftest.two
4107 then
4108 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4109 break 3
4110 fi
4111 fi
4112 fi
4113 done
4114 done
4115 ;;
4116esac
4117
4118 done
4119IFS=$as_save_IFS
4120
4121rm -rf conftest.one conftest.two conftest.dir
4122
4123fi
4124 if test "${ac_cv_path_install+set}" = set; then
4125 INSTALL=$ac_cv_path_install
4126 else
4127 # As a last resort, use the slow shell script. Don't cache a
4128 # value for INSTALL within a source directory, because that will
4129 # break other packages using the cache if that directory is
4130 # removed, or if the value is a relative name.
4131 INSTALL=$ac_install_sh
4132 fi
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4135$as_echo "$INSTALL" >&6; }
4136
4137# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4138# It thinks the first close brace ends the variable substitution.
4139test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4140
4141test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4142
4143test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4146$as_echo_n "checking whether build environment is sane... " >&6; }
4147# Reject unsafe characters in $srcdir or the absolute working directory
4148# name. Accept space and tab only in the latter.
4149am_lf='
4150'
4151case `pwd` in
4152 *[\\\"\#\$\&\'\`$am_lf]*)
4153 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4154esac
4155case $srcdir in
4156 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4157 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4158esac
4159
4160# Do 'set' in a subshell so we don't clobber the current shell's
4161# arguments. Must try -L first in case configure is actually a
4162# symlink; some systems play weird games with the mod time of symlinks
4163# (eg FreeBSD returns the mod time of the symlink's containing
4164# directory).
4165if (
4166 am_has_slept=no
4167 for am_try in 1 2; do
4168 echo "timestamp, slept: $am_has_slept" > conftest.file
4169 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4170 if test "$*" = "X"; then
4171 # -L didn't work.
4172 set X `ls -t "$srcdir/configure" conftest.file`
4173 fi
4174 if test "$*" != "X $srcdir/configure conftest.file" \
4175 && test "$*" != "X conftest.file $srcdir/configure"; then
4176
4177 # If neither matched, then we have a broken ls. This can happen
4178 # if, for instance, CONFIG_SHELL is bash and it inherits a
4179 # broken ls alias from the environment. This has actually
4180 # happened. Such a system could not be considered "sane".
4181 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4182 alias in your environment" "$LINENO" 5
4183 fi
4184 if test "$2" = conftest.file || test $am_try -eq 2; then
4185 break
4186 fi
4187 # Just in case.
4188 sleep 1
4189 am_has_slept=yes
4190 done
4191 test "$2" = conftest.file
4192 )
4193then
4194 # Ok.
4195 :
4196else
4197 as_fn_error $? "newly created file is older than distributed files!
4198Check your system clock" "$LINENO" 5
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201$as_echo "yes" >&6; }
4202# If we didn't sleep, we still need to ensure time stamps of config.status and
4203# generated files are strictly newer.
4204am_sleep_pid=
4205if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4206 ( sleep 1 ) &
4207 am_sleep_pid=$!
4208fi
4209
4210rm -f conftest.file
4211
4212test "$program_prefix" != NONE &&
4213 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4214# Use a double $ so make ignores it.
4215test "$program_suffix" != NONE &&
4216 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4217# Double any \ or $.
4218# By default was `s,x,x', remove it if useless.
4219ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4220program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4221
4222if test x"${MISSING+set}" != xset; then
4223 case $am_aux_dir in
4224 *\ * | *\ *)
4225 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4226 *)
4227 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4228 esac
4229fi
4230# Use eval to expand $SHELL
4231if eval "$MISSING --is-lightweight"; then
4232 am_missing_run="$MISSING "
4233else
4234 am_missing_run=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4236$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4237fi
4238
4239if test x"${install_sh+set}" != xset; then
4240 case $am_aux_dir in
4241 *\ * | *\ *)
4242 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4243 *)
4244 install_sh="\${SHELL} $am_aux_dir/install-sh"
4245 esac
4246fi
4247
4248# Installed binaries are usually stripped using 'strip' when the user
4249# run "make install-strip". However 'strip' might not be the right
4250# tool to use in cross-compilation environments, therefore Automake
4251# will honor the 'STRIP' environment variable to overrule this program.
4252if test "$cross_compiling" != no; then
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4255set dummy ${ac_tool_prefix}strip; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
4258if ${ac_cv_prog_STRIP+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if test -n "$STRIP"; then
4262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4263else
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276 done
4277IFS=$as_save_IFS
4278
4279fi
4280fi
4281STRIP=$ac_cv_prog_STRIP
4282if test -n "$STRIP"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4284$as_echo "$STRIP" >&6; }
4285else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
4288fi
4289
4290
4291fi
4292if test -z "$ac_cv_prog_STRIP"; then
4293 ac_ct_STRIP=$STRIP
4294 # Extract the first word of "strip", so it can be a program name with args.
4295set dummy strip; ac_word=$2
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297$as_echo_n "checking for $ac_word... " >&6; }
4298if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300else
4301 if test -n "$ac_ct_STRIP"; then
4302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_STRIP="strip"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316 done
4317IFS=$as_save_IFS
4318
4319fi
4320fi
4321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4322if test -n "$ac_ct_STRIP"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4324$as_echo "$ac_ct_STRIP" >&6; }
4325else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327$as_echo "no" >&6; }
4328fi
4329
4330 if test "x$ac_ct_STRIP" = x; then
4331 STRIP=":"
4332 else
4333 case $cross_compiling:$ac_tool_warned in
4334yes:)
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4337ac_tool_warned=yes ;;
4338esac
4339 STRIP=$ac_ct_STRIP
4340 fi
4341else
4342 STRIP="$ac_cv_prog_STRIP"
4343fi
4344
4345fi
4346INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4349$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4350if test -z "$MKDIR_P"; then
4351 if ${ac_cv_path_mkdir+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in mkdir gmkdir; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4362 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4363 'mkdir (GNU coreutils) '* | \
4364 'mkdir (coreutils) '* | \
4365 'mkdir (fileutils) '4.1*)
4366 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4367 break 3;;
4368 esac
4369 done
4370 done
4371 done
4372IFS=$as_save_IFS
4373
4374fi
4375
4376 test -d ./--version && rmdir ./--version
4377 if test "${ac_cv_path_mkdir+set}" = set; then
4378 MKDIR_P="$ac_cv_path_mkdir -p"
4379 else
4380 # As a last resort, use the slow shell script. Don't cache a
4381 # value for MKDIR_P within a source directory, because that will
4382 # break other packages using the cache if that directory is
4383 # removed, or if the value is a relative name.
4384 MKDIR_P="$ac_install_sh -d"
4385 fi
4386fi
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4388$as_echo "$MKDIR_P" >&6; }
4389
4390for ac_prog in gawk mawk nawk awk
4391do
4392 # Extract the first word of "$ac_prog", so it can be a program name with args.
4393set dummy $ac_prog; ac_word=$2
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395$as_echo_n "checking for $ac_word... " >&6; }
4396if ${ac_cv_prog_AWK+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398else
4399 if test -n "$AWK"; then
4400 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_AWK="$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414 done
4415IFS=$as_save_IFS
4416
4417fi
4418fi
4419AWK=$ac_cv_prog_AWK
4420if test -n "$AWK"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4422$as_echo "$AWK" >&6; }
4423else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425$as_echo "no" >&6; }
4426fi
4427
4428
4429 test -n "$AWK" && break
4430done
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4433$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4434set x ${MAKE-make}
4435ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4436if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438else
4439 cat >conftest.make <<\_ACEOF
4440SHELL = /bin/sh
4441all:
4442 @echo '@@@%%%=$(MAKE)=@@@%%%'
4443_ACEOF
4444# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4445case `${MAKE-make} -f conftest.make 2>/dev/null` in
4446 *@@@%%%=?*=@@@%%%*)
4447 eval ac_cv_prog_make_${ac_make}_set=yes;;
4448 *)
4449 eval ac_cv_prog_make_${ac_make}_set=no;;
4450esac
4451rm -f conftest.make
4452fi
4453if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455$as_echo "yes" >&6; }
4456 SET_MAKE=
4457else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459$as_echo "no" >&6; }
4460 SET_MAKE="MAKE=${MAKE-make}"
4461fi
4462
4463rm -rf .tst 2>/dev/null
4464mkdir .tst 2>/dev/null
4465if test -d .tst; then
4466 am__leading_dot=.
4467else
4468 am__leading_dot=_
4469fi
4470rmdir .tst 2>/dev/null
4471
4472# Check whether --enable-silent-rules was given.
4473if test "${enable_silent_rules+set}" = set; then :
4474 enableval=$enable_silent_rules;
4475fi
4476
4477case $enable_silent_rules in # (((
4478 yes) AM_DEFAULT_VERBOSITY=0;;
4479 no) AM_DEFAULT_VERBOSITY=1;;
4480 *) AM_DEFAULT_VERBOSITY=1;;
4481esac
4482am_make=${MAKE-make}
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4484$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4485if ${am_cv_make_support_nested_variables+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487else
4488 if $as_echo 'TRUE=$(BAR$(V))
4489BAR0=false
4490BAR1=true
4491V=1
4492am__doit:
4493 @$(TRUE)
4494.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4495 am_cv_make_support_nested_variables=yes
4496else
4497 am_cv_make_support_nested_variables=no
4498fi
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4501$as_echo "$am_cv_make_support_nested_variables" >&6; }
4502if test $am_cv_make_support_nested_variables = yes; then
4503 AM_V='$(V)'
4504 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4505else
4506 AM_V=$AM_DEFAULT_VERBOSITY
4507 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4508fi
4509AM_BACKSLASH='\'
4510
4511if test "`cd $srcdir && pwd`" != "`pwd`"; then
4512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4513 # is not polluted with repeated "-I."
4514 am__isrc=' -I$(srcdir)'
4515 # test to see if srcdir already configured
4516 if test -f $srcdir/config.status; then
4517 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4518 fi
4519fi
4520
4521# test whether we have cygpath
4522if test -z "$CYGPATH_W"; then
4523 if (cygpath --version) >/dev/null 2>/dev/null; then
4524 CYGPATH_W='cygpath -w'
4525 else
4526 CYGPATH_W=echo
4527 fi
4528fi
4529
4530
4531# Define the identity of the package.
4532 PACKAGE='libbacktrace'
4533 VERSION='version-unused'
4534
4535
4536# Some tools Automake needs.
4537
4538ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4539
4540
4541AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4542
4543
4544AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4545
4546
4547AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4548
4549
4550MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4551
4552# For better backward compatibility. To be removed once Automake 1.9.x
4553# dies out for good. For more background, see:
4554# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4555# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4556mkdir_p='$(MKDIR_P)'
4557
4558# We need awk for the "check" target (and possibly the TAP driver). The
4559# system "awk" is bad on some platforms.
4560# Always define AMTAR for backward compatibility. Yes, it's still used
4561# in the wild :-( We should find a proper way to deprecate it ...
4562AMTAR='$${TAR-tar}'
4563
4564
4565# We'll loop over all known methods to create a tar archive until one works.
4566_am_tools='gnutar pax cpio none'
4567
4568am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4569
4570
4571
4572
4573
4574
4575# POSIX will say in a future version that running "rm -f" with no argument
4576# is OK; and we want to be able to make that assumption in our Makefile
4577# recipes. So use an aggressive probe to check that the usage we want is
4578# actually supported "in the wild" to an acceptable degree.
4579# See automake bug#10828.
4580# To make any issue more visible, cause the running configure to be aborted
4581# by default if the 'rm' program in use doesn't match our expectations; the
4582# user can still override this though.
4583if rm -f && rm -fr && rm -rf; then : OK; else
4584 cat >&2 <<'END'
4585Oops!
4586
4587Your 'rm' program seems unable to run without file operands specified
4588on the command line, even when the '-f' option is present. This is contrary
4589to the behaviour of most rm programs out there, and not conforming with
4590the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4591
4592Please tell bug-automake@gnu.org about your system, including the value
4593of your $PATH and any error possibly output before this message. This
4594can help us improve future automake versions.
4595
4596END
4597 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4598 echo 'Configuration will proceed anyway, since you have set the' >&2
4599 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4600 echo >&2
4601 else
4602 cat >&2 <<'END'
4603Aborting the configuration process, to ensure you take notice of the issue.
4604
4605You can download and install GNU coreutils to get an 'rm' implementation
4606that behaves properly: <http://www.gnu.org/software/coreutils/>.
4607
4608If you want to complete the configuration process using your problematic
4609'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4610to "yes", and re-run configure.
4611
4612END
4613 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4614 fi
4615fi
4616
4617
4618
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4620$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4621 # Check whether --enable-maintainer-mode was given.
4622if test "${enable_maintainer_mode+set}" = set; then :
4623 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4624else
4625 USE_MAINTAINER_MODE=no
4626fi
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4629$as_echo "$USE_MAINTAINER_MODE" >&6; }
4630 if test $USE_MAINTAINER_MODE = yes; then
4631 MAINTAINER_MODE_TRUE=
4632 MAINTAINER_MODE_FALSE='#'
4633else
4634 MAINTAINER_MODE_TRUE='#'
4635 MAINTAINER_MODE_FALSE=
4636fi
4637
4638 MAINT=$MAINTAINER_MODE_TRUE
4639
4640
4641
4642
4643# Check whether --with-target-subdir was given.
4644if test "${with_target_subdir+set}" = set; then :
4645 withval=$with_target_subdir;
4646fi
4647
4648
4649# We must force CC to /not/ be precious variables; otherwise
4650# the wrong, non-multilib-adjusted value will be used in multilibs.
4651# As a side effect, we have to subst CFLAGS ourselves.
4652
4653
4654ac_ext=c
4655ac_cpp='$CPP $CPPFLAGS'
4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661set dummy ${ac_tool_prefix}gcc; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if ${ac_cv_prog_CC+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682 done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687CC=$ac_cv_prog_CC
4688if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690$as_echo "$CC" >&6; }
4691else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696
4697fi
4698if test -z "$ac_cv_prog_CC"; then
4699 ac_ct_CC=$CC
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701set dummy gcc; ac_word=$2
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703$as_echo_n "checking for $ac_word... " >&6; }
4704if ${ac_cv_prog_ac_ct_CC+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_CC="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722 done
4723IFS=$as_save_IFS
4724
4725fi
4726fi
4727ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730$as_echo "$ac_ct_CC" >&6; }
4731else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734fi
4735
4736 if test "x$ac_ct_CC" = x; then
4737 CC=""
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740yes:)
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743ac_tool_warned=yes ;;
4744esac
4745 CC=$ac_ct_CC
4746 fi
4747else
4748 CC="$ac_cv_prog_CC"
4749fi
4750
4751if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754set dummy ${ac_tool_prefix}cc; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if ${ac_cv_prog_CC+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_CC="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775 done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780CC=$ac_cv_prog_CC
4781if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783$as_echo "$CC" >&6; }
4784else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790 fi
4791fi
4792if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794set dummy cc; ac_word=$2
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796$as_echo_n "checking for $ac_word... " >&6; }
4797if ${ac_cv_prog_CC+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802else
4803 ac_prog_rejected=no
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4814 fi
4815 ac_cv_prog_CC="cc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819done
4820 done
4821IFS=$as_save_IFS
4822
4823if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4833 fi
4834fi
4835fi
4836fi
4837CC=$ac_cv_prog_CC
4838if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840$as_echo "$CC" >&6; }
4841else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844fi
4845
4846
4847fi
4848if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in cl.exe
4851 do
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_prog_CC+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873done
4874 done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879CC=$ac_cv_prog_CC
4880if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882$as_echo "$CC" >&6; }
4883else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889 test -n "$CC" && break
4890 done
4891fi
4892if test -z "$CC"; then
4893 ac_ct_CC=$CC
4894 for ac_prog in cl.exe
4895do
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897set dummy $ac_prog; ac_word=$2
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899$as_echo_n "checking for $ac_word... " >&6; }
4900if ${ac_cv_prog_ac_ct_CC+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902else
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_CC="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918 done
4919IFS=$as_save_IFS
4920
4921fi
4922fi
4923ac_ct_CC=$ac_cv_prog_ac_ct_CC
4924if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926$as_echo "$ac_ct_CC" >&6; }
4927else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931
4932
4933 test -n "$ac_ct_CC" && break
4934done
4935
4936 if test "x$ac_ct_CC" = x; then
4937 CC=""
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940yes:)
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943ac_tool_warned=yes ;;
4944esac
4945 CC=$ac_ct_CC
4946 fi
4947fi
4948
4949fi
4950
4951
4952test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954as_fn_error $? "no acceptable C compiler found in \$PATH
4955See \`config.log' for more details" "$LINENO" 5; }
4956
4957# Provide some information about the compiler.
4958$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4959set X $ac_compile
4960ac_compiler=$2
4961for ac_option in --version -v -V -qversion; do
4962 { { ac_try="$ac_compiler $ac_option >&5"
4963case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966esac
4967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968$as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 ac_status=$?
4971 if test -s conftest.err; then
4972 sed '10a\
4973... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4976 fi
4977 rm -f conftest.er1 conftest.err
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980done
4981
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984if ${ac_cv_c_compiler_gnu+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h. */
4989
4990int
4991main ()
4992{
4993#ifndef __GNUC__
4994 choke me
4995#endif
4996
4997 ;
4998 return 0;
4999}
5000_ACEOF
5001if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_compiler_gnu=yes
5003else
5004 ac_compiler_gnu=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007ac_cv_c_compiler_gnu=$ac_compiler_gnu
5008
5009fi
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012if test $ac_compiler_gnu = yes; then
5013 GCC=yes
5014else
5015 GCC=
5016fi
5017ac_test_CFLAGS=${CFLAGS+set}
5018ac_save_CFLAGS=$CFLAGS
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020$as_echo_n "checking whether $CC accepts -g... " >&6; }
5021if ${ac_cv_prog_cc_g+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030
5031int
5032main ()
5033{
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5041else
5042 CFLAGS=""
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045
5046int
5047main ()
5048{
5049
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054if ac_fn_c_try_compile "$LINENO"; then :
5055
5056else
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h. */
5061
5062int
5063main ()
5064{
5065
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_g=yes
5072fi
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081$as_echo "$ac_cv_prog_cc_g" >&6; }
5082if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5086 CFLAGS="-g -O2"
5087 else
5088 CFLAGS="-g"
5089 fi
5090else
5091 if test "$GCC" = yes; then
5092 CFLAGS="-O2"
5093 else
5094 CFLAGS=
5095 fi
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099if ${ac_cv_prog_cc_c89+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 ac_cv_prog_cc_c89=no
5103ac_save_CC=$CC
5104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106#include <stdarg.h>
5107#include <stdio.h>
5108struct stat;
5109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5110struct buf { int x; };
5111FILE * (*rcsopen) (struct buf *, struct stat *, int);
5112static char *e (p, i)
5113 char **p;
5114 int i;
5115{
5116 return p[i];
5117}
5118static char *f (char * (*g) (char **, int), char **p, ...)
5119{
5120 char *s;
5121 va_list v;
5122 va_start (v,p);
5123 s = g (p, va_arg (v,int));
5124 va_end (v);
5125 return s;
5126}
5127
5128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5129 function prototypes and stuff, but not '\xHH' hex character constants.
5130 These don't provoke an error unfortunately, instead are silently treated
5131 as 'x'. The following induces an error, until -std is added to get
5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5133 array size at least. It's necessary to write '\x00'==0 to get something
5134 that's true only with -std. */
5135int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136
5137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5138 inside strings and character constants. */
5139#define FOO(x) 'x'
5140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141
5142int test (int i, double x);
5143struct s1 {int (*f) (int a);};
5144struct s2 {int (*f) (double a);};
5145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5146int argc;
5147char **argv;
5148int
5149main ()
5150{
5151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 ;
5153 return 0;
5154}
5155_ACEOF
5156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158do
5159 CC="$ac_save_CC $ac_arg"
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 ac_cv_prog_cc_c89=$ac_arg
5162fi
5163rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165done
5166rm -f conftest.$ac_ext
5167CC=$ac_save_CC
5168
5169fi
5170# AC_CACHE_VAL
5171case "x$ac_cv_prog_cc_c89" in
5172 x)
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5174$as_echo "none needed" >&6; } ;;
5175 xno)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5177$as_echo "unsupported" >&6; } ;;
5178 *)
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5181$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5182esac
5183if test "x$ac_cv_prog_cc_c89" != xno; then :
5184
5185fi
5186
5187ac_ext=c
5188ac_cpp='$CPP $CPPFLAGS'
5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5199$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5200if ${am_cv_prog_cc_c_o+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205
5206int
5207main ()
5208{
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214 # Make sure it works both with $CC and with simple cc.
5215 # Following AC_PROG_CC_C_O, we do the test twice because some
5216 # compilers refuse to overwrite an existing .o file with -o,
5217 # though they will create one.
5218 am_cv_prog_cc_c_o=yes
5219 for am_i in 1 2; do
5220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } \
5225 && test -f conftest2.$ac_objext; then
5226 : OK
5227 else
5228 am_cv_prog_cc_c_o=no
5229 break
5230 fi
5231 done
5232 rm -f core conftest*
5233 unset am_i
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5236$as_echo "$am_cv_prog_cc_c_o" >&6; }
5237if test "$am_cv_prog_cc_c_o" != yes; then
5238 # Losing compiler, so override with the script.
5239 # FIXME: It is wrong to rewrite CC.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__CC in this case,
5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5243 CC="$am_aux_dir/compile $CC"
5244fi
5245ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250
5251
5252
5253
5254
5255
5256if test -n "$ac_tool_prefix"; then
5257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5258set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260$as_echo_n "checking for $ac_word... " >&6; }
5261if ${ac_cv_prog_RANLIB+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263else
5264 if test -n "$RANLIB"; then
5265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278done
5279 done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284RANLIB=$ac_cv_prog_RANLIB
5285if test -n "$RANLIB"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5287$as_echo "$RANLIB" >&6; }
5288else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291fi
5292
5293
5294fi
5295if test -z "$ac_cv_prog_RANLIB"; then
5296 ac_ct_RANLIB=$RANLIB
5297 # Extract the first word of "ranlib", so it can be a program name with args.
5298set dummy ranlib; ac_word=$2
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300$as_echo_n "checking for $ac_word... " >&6; }
5301if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 if test -n "$ac_ct_RANLIB"; then
5305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_RANLIB="ranlib"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319 done
5320IFS=$as_save_IFS
5321
5322fi
5323fi
5324ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5325if test -n "$ac_ct_RANLIB"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5327$as_echo "$ac_ct_RANLIB" >&6; }
5328else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331fi
5332
5333 if test "x$ac_ct_RANLIB" = x; then
5334 RANLIB=":"
5335 else
5336 case $cross_compiling:$ac_tool_warned in
5337yes:)
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5340ac_tool_warned=yes ;;
5341esac
5342 RANLIB=$ac_ct_RANLIB
5343 fi
5344else
5345 RANLIB="$ac_cv_prog_RANLIB"
5346fi
5347
5348
5349for ac_prog in gawk mawk nawk awk
5350do
5351 # Extract the first word of "$ac_prog", so it can be a program name with args.
5352set dummy $ac_prog; ac_word=$2
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if ${ac_cv_prog_AWK+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 if test -n "$AWK"; then
5359 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_AWK="$ac_prog"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373 done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378AWK=$ac_cv_prog_AWK
5379if test -n "$AWK"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5381$as_echo "$AWK" >&6; }
5382else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388 test -n "$AWK" && break
5389done
5390
5391case "$AWK" in
5392"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5393esac
5394
5395# Extract the first word of "dwz", so it can be a program name with args.
5396set dummy dwz; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if ${ac_cv_prog_DWZ+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401else
5402 if test -n "$DWZ"; then
5403 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_DWZ="dwz"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
5417 done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422DWZ=$ac_cv_prog_DWZ
5423if test -n "$DWZ"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5425$as_echo "$DWZ" >&6; }
5426else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431
5432 if test "$DWZ" != ""; then
5433 HAVE_DWZ_TRUE=
5434 HAVE_DWZ_FALSE='#'
5435else
5436 HAVE_DWZ_TRUE='#'
5437 HAVE_DWZ_FALSE=
5438fi
5439
5440
5441case `pwd` in
5442 *\ * | *\ *)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5444$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5445esac
5446
5447
5448
5449macro_version='2.2.7a'
5450macro_revision='1.3134'
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464ltmain="$ac_aux_dir/ltmain.sh"
5465
5466# Backslashify metacharacters that are still active within
5467# double-quoted strings.
5468sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5469
5470# Same as above, but do not quote variable references.
5471double_quote_subst='s/\(["`\\]\)/\\\1/g'
5472
5473# Sed substitution to delay expansion of an escaped shell variable in a
5474# double_quote_subst'ed string.
5475delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5476
5477# Sed substitution to delay expansion of an escaped single quote.
5478delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5479
5480# Sed substitution to avoid accidental globbing in evaled expressions
5481no_glob_subst='s/\*/\\\*/g'
5482
5483ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5484ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5485ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5488$as_echo_n "checking how to print strings... " >&6; }
5489# Test print first, because it will be a builtin if present.
5490if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5491 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5492 ECHO='print -r --'
5493elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5494 ECHO='printf %s\n'
5495else
5496 # Use this function as a fallback that always works.
5497 func_fallback_echo ()
5498 {
5499 eval 'cat <<_LTECHO_EOF
5500$1
5501_LTECHO_EOF'
5502 }
5503 ECHO='func_fallback_echo'
5504fi
5505
5506# func_echo_all arg...
5507# Invoke $ECHO with all args, space-separated.
5508func_echo_all ()
5509{
5510 $ECHO ""
5511}
5512
5513case "$ECHO" in
5514 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5515$as_echo "printf" >&6; } ;;
5516 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5517$as_echo "print -r" >&6; } ;;
5518 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5519$as_echo "cat" >&6; } ;;
5520esac
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5536$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5537if ${ac_cv_path_SED+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539else
5540 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5541 for ac_i in 1 2 3 4 5 6 7; do
5542 ac_script="$ac_script$as_nl$ac_script"
5543 done
5544 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5545 { ac_script=; unset ac_script;}
5546 if test -z "$SED"; then
5547 ac_path_SED_found=false
5548 # Loop through the user's path and test for each of PROGNAME-LIST
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_prog in sed gsed; do
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5557 as_fn_executable_p "$ac_path_SED" || continue
5558# Check for GNU ac_path_SED and select it if it is found.
5559 # Check for GNU $ac_path_SED
5560case `"$ac_path_SED" --version 2>&1` in
5561*GNU*)
5562 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5563*)
5564 ac_count=0
5565 $as_echo_n 0123456789 >"conftest.in"
5566 while :
5567 do
5568 cat "conftest.in" "conftest.in" >"conftest.tmp"
5569 mv "conftest.tmp" "conftest.in"
5570 cp "conftest.in" "conftest.nl"
5571 $as_echo '' >> "conftest.nl"
5572 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574 as_fn_arith $ac_count + 1 && ac_count=$as_val
5575 if test $ac_count -gt ${ac_path_SED_max-0}; then
5576 # Best one so far, save it but keep looking for a better one
5577 ac_cv_path_SED="$ac_path_SED"
5578 ac_path_SED_max=$ac_count
5579 fi
5580 # 10*(2^10) chars as input seems more than enough
5581 test $ac_count -gt 10 && break
5582 done
5583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584esac
5585
5586 $ac_path_SED_found && break 3
5587 done
5588 done
5589 done
5590IFS=$as_save_IFS
5591 if test -z "$ac_cv_path_SED"; then
5592 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5593 fi
5594else
5595 ac_cv_path_SED=$SED
5596fi
5597
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5600$as_echo "$ac_cv_path_SED" >&6; }
5601 SED="$ac_cv_path_SED"
5602 rm -f conftest.sed
5603
5604test -z "$SED" && SED=sed
5605Xsed="$SED -e 1s/^X//"
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5618$as_echo_n "checking for fgrep... " >&6; }
5619if ${ac_cv_path_FGREP+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5623 then ac_cv_path_FGREP="$GREP -F"
5624 else
5625 if test -z "$FGREP"; then
5626 ac_path_FGREP_found=false
5627 # Loop through the user's path and test for each of PROGNAME-LIST
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_prog in fgrep; do
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5636 as_fn_executable_p "$ac_path_FGREP" || continue
5637# Check for GNU ac_path_FGREP and select it if it is found.
5638 # Check for GNU $ac_path_FGREP
5639case `"$ac_path_FGREP" --version 2>&1` in
5640*GNU*)
5641 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5642*)
5643 ac_count=0
5644 $as_echo_n 0123456789 >"conftest.in"
5645 while :
5646 do
5647 cat "conftest.in" "conftest.in" >"conftest.tmp"
5648 mv "conftest.tmp" "conftest.in"
5649 cp "conftest.in" "conftest.nl"
5650 $as_echo 'FGREP' >> "conftest.nl"
5651 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5653 as_fn_arith $ac_count + 1 && ac_count=$as_val
5654 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5655 # Best one so far, save it but keep looking for a better one
5656 ac_cv_path_FGREP="$ac_path_FGREP"
5657 ac_path_FGREP_max=$ac_count
5658 fi
5659 # 10*(2^10) chars as input seems more than enough
5660 test $ac_count -gt 10 && break
5661 done
5662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5663esac
5664
5665 $ac_path_FGREP_found && break 3
5666 done
5667 done
5668 done
5669IFS=$as_save_IFS
5670 if test -z "$ac_cv_path_FGREP"; then
5671 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5672 fi
5673else
5674 ac_cv_path_FGREP=$FGREP
5675fi
5676
5677 fi
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5680$as_echo "$ac_cv_path_FGREP" >&6; }
5681 FGREP="$ac_cv_path_FGREP"
5682
5683
5684test -z "$GREP" && GREP=grep
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704# Check whether --with-gnu-ld was given.
5705if test "${with_gnu_ld+set}" = set; then :
5706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5707else
5708 with_gnu_ld=no
5709fi
5710
5711ac_prog=ld
5712if test "$GCC" = yes; then
5713 # Check if gcc -print-prog-name=ld gives a path.
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5715$as_echo_n "checking for ld used by $CC... " >&6; }
5716 case $host in
5717 *-*-mingw*)
5718 # gcc leaves a trailing carriage return which upsets mingw
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720 *)
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722 esac
5723 case $ac_prog in
5724 # Accept absolute paths.
5725 [\\/]* | ?:[\\/]*)
5726 re_direlt='/[^/][^/]*/\.\./'
5727 # Canonicalize the pathname of ld
5728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731 done
5732 test -z "$LD" && LD="$ac_prog"
5733 ;;
5734 "")
5735 # If it fails, then pretend we aren't using GCC.
5736 ac_prog=ld
5737 ;;
5738 *)
5739 # If it is relative, then search for the first ld in PATH.
5740 with_gnu_ld=unknown
5741 ;;
5742 esac
5743elif test "$with_gnu_ld" = yes; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5745$as_echo_n "checking for GNU ld... " >&6; }
5746else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5748$as_echo_n "checking for non-GNU ld... " >&6; }
5749fi
5750if ${lt_cv_path_LD+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752else
5753 if test -z "$LD"; then
5754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755 for ac_dir in $PATH; do
5756 IFS="$lt_save_ifs"
5757 test -z "$ac_dir" && ac_dir=.
5758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759 lt_cv_path_LD="$ac_dir/$ac_prog"
5760 # Check to see if the program is GNU ld. I'd rather use --version,
5761 # but apparently some variants of GNU ld only accept -v.
5762 # Break only if it was the GNU/non-GNU ld that we prefer.
5763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764 *GNU* | *'with BFD'*)
5765 test "$with_gnu_ld" != no && break
5766 ;;
5767 *)
5768 test "$with_gnu_ld" != yes && break
5769 ;;
5770 esac
5771 fi
5772 done
5773 IFS="$lt_save_ifs"
5774else
5775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776fi
5777fi
5778
5779LD="$lt_cv_path_LD"
5780if test -n "$LD"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5782$as_echo "$LD" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5789$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5790if ${lt_cv_prog_gnu_ld+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792else
5793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5794case `$LD -v 2>&1 </dev/null` in
5795*GNU* | *'with BFD'*)
5796 lt_cv_prog_gnu_ld=yes
5797 ;;
5798*)
5799 lt_cv_prog_gnu_ld=no
5800 ;;
5801esac
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5804$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5805with_gnu_ld=$lt_cv_prog_gnu_ld
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5816$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5817if ${lt_cv_path_NM+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$NM"; then
5821 # Let the user override the test.
5822 lt_cv_path_NM="$NM"
5823else
5824 lt_nm_to_check="${ac_tool_prefix}nm"
5825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5826 lt_nm_to_check="$lt_nm_to_check nm"
5827 fi
5828 for lt_tmp_nm in $lt_nm_to_check; do
5829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5831 IFS="$lt_save_ifs"
5832 test -z "$ac_dir" && ac_dir=.
5833 tmp_nm="$ac_dir/$lt_tmp_nm"
5834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5835 # Check to see if the nm accepts a BSD-compat flag.
5836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5837 # nm: unknown option "B" ignored
5838 # Tru64's nm complains that /dev/null is an invalid object file
5839 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5840 */dev/null* | *'Invalid file or object type'*)
5841 lt_cv_path_NM="$tmp_nm -B"
5842 break
5843 ;;
5844 *)
5845 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5846 */dev/null*)
5847 lt_cv_path_NM="$tmp_nm -p"
5848 break
5849 ;;
5850 *)
5851 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5852 continue # so that we can try to find one that supports BSD flags
5853 ;;
5854 esac
5855 ;;
5856 esac
5857 fi
5858 done
5859 IFS="$lt_save_ifs"
5860 done
5861 : ${lt_cv_path_NM=no}
5862fi
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5865$as_echo "$lt_cv_path_NM" >&6; }
5866if test "$lt_cv_path_NM" != "no"; then
5867 NM="$lt_cv_path_NM"
5868else
5869 # Didn't find any BSD compatible name lister, look for dumpbin.
5870 if test -n "$DUMPBIN"; then :
5871 # Let the user override the test.
5872 else
5873 if test -n "$ac_tool_prefix"; then
5874 for ac_prog in dumpbin "link -dump"
5875 do
5876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
5880if ${ac_cv_prog_DUMPBIN+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 if test -n "$DUMPBIN"; then
5884 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898 done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903DUMPBIN=$ac_cv_prog_DUMPBIN
5904if test -n "$DUMPBIN"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5906$as_echo "$DUMPBIN" >&6; }
5907else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; }
5910fi
5911
5912
5913 test -n "$DUMPBIN" && break
5914 done
5915fi
5916if test -z "$DUMPBIN"; then
5917 ac_ct_DUMPBIN=$DUMPBIN
5918 for ac_prog in dumpbin "link -dump"
5919do
5920 # Extract the first word of "$ac_prog", so it can be a program name with args.
5921set dummy $ac_prog; ac_word=$2
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926else
5927 if test -n "$ac_ct_DUMPBIN"; then
5928 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942 done
5943IFS=$as_save_IFS
5944
5945fi
5946fi
5947ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5948if test -n "$ac_ct_DUMPBIN"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5950$as_echo "$ac_ct_DUMPBIN" >&6; }
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955
5956
5957 test -n "$ac_ct_DUMPBIN" && break
5958done
5959
5960 if test "x$ac_ct_DUMPBIN" = x; then
5961 DUMPBIN=":"
5962 else
5963 case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967ac_tool_warned=yes ;;
5968esac
5969 DUMPBIN=$ac_ct_DUMPBIN
5970 fi
5971fi
5972
5973 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5974 *COFF*)
5975 DUMPBIN="$DUMPBIN -symbols"
5976 ;;
5977 *)
5978 DUMPBIN=:
5979 ;;
5980 esac
5981 fi
5982
5983 if test "$DUMPBIN" != ":"; then
5984 NM="$DUMPBIN"
5985 fi
5986fi
5987test -z "$NM" && NM=nm
5988
5989
5990
5991
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5995$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5996if ${lt_cv_nm_interface+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998else
5999 lt_cv_nm_interface="BSD nm"
6000 echo "int some_variable = 0;" > conftest.$ac_ext
6001 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6002 (eval "$ac_compile" 2>conftest.err)
6003 cat conftest.err >&5
6004 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6005 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6006 cat conftest.err >&5
6007 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6008 cat conftest.out >&5
6009 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6010 lt_cv_nm_interface="MS dumpbin"
6011 fi
6012 rm -f conftest*
6013fi
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6015$as_echo "$lt_cv_nm_interface" >&6; }
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6018$as_echo_n "checking whether ln -s works... " >&6; }
6019LN_S=$as_ln_s
6020if test "$LN_S" = "ln -s"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6022$as_echo "yes" >&6; }
6023else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6025$as_echo "no, using $LN_S" >&6; }
6026fi
6027
6028# find the maximum length of command line arguments
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6030$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6031if ${lt_cv_sys_max_cmd_len+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033else
6034 i=0
6035 teststring="ABCD"
6036
6037 case $build_os in
6038 msdosdjgpp*)
6039 # On DJGPP, this test can blow up pretty badly due to problems in libc
6040 # (any single argument exceeding 2000 bytes causes a buffer overrun
6041 # during glob expansion). Even if it were fixed, the result of this
6042 # check would be larger than it should be.
6043 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6044 ;;
6045
6046 gnu*)
6047 # Under GNU Hurd, this test is not required because there is
6048 # no limit to the length of command line arguments.
6049 # Libtool will interpret -1 as no limit whatsoever
6050 lt_cv_sys_max_cmd_len=-1;
6051 ;;
6052
6053 cygwin* | mingw* | cegcc*)
6054 # On Win9x/ME, this test blows up -- it succeeds, but takes
6055 # about 5 minutes as the teststring grows exponentially.
6056 # Worse, since 9x/ME are not pre-emptively multitasking,
6057 # you end up with a "frozen" computer, even though with patience
6058 # the test eventually succeeds (with a max line length of 256k).
6059 # Instead, let's just punt: use the minimum linelength reported by
6060 # all of the supported platforms: 8192 (on NT/2K/XP).
6061 lt_cv_sys_max_cmd_len=8192;
6062 ;;
6063
6064 mint*)
6065 # On MiNT this can take a long time and run out of memory.
6066 lt_cv_sys_max_cmd_len=8192;
6067 ;;
6068
6069 amigaos*)
6070 # On AmigaOS with pdksh, this test takes hours, literally.
6071 # So we just punt and use a minimum line length of 8192.
6072 lt_cv_sys_max_cmd_len=8192;
6073 ;;
6074
6075 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6076 # This has been around since 386BSD, at least. Likely further.
6077 if test -x /sbin/sysctl; then
6078 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6079 elif test -x /usr/sbin/sysctl; then
6080 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6081 else
6082 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6083 fi
6084 # And add a safety zone
6085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6087 ;;
6088
6089 interix*)
6090 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6091 lt_cv_sys_max_cmd_len=196608
6092 ;;
6093
6094 osf*)
6095 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6096 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6097 # nice to cause kernel panics so lets avoid the loop below.
6098 # First set a reasonable default.
6099 lt_cv_sys_max_cmd_len=16384
6100 #
6101 if test -x /sbin/sysconfig; then
6102 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6103 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6104 esac
6105 fi
6106 ;;
6107 sco3.2v5*)
6108 lt_cv_sys_max_cmd_len=102400
6109 ;;
6110 sysv5* | sco5v6* | sysv4.2uw2*)
6111 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6112 if test -n "$kargmax"; then
6113 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6114 else
6115 lt_cv_sys_max_cmd_len=32768
6116 fi
6117 ;;
6118 *)
6119 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6120 if test -n "$lt_cv_sys_max_cmd_len"; then
6121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6123 else
6124 # Make teststring a little bigger before we do anything with it.
6125 # a 1K string should be a reasonable start.
6126 for i in 1 2 3 4 5 6 7 8 ; do
6127 teststring=$teststring$teststring
6128 done
6129 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6130 # If test is not a shell built-in, we'll probably end up computing a
6131 # maximum length that is only half of the actual maximum length, but
6132 # we can't tell.
6133 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6134 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6135 test $i != 17 # 1/2 MB should be enough
6136 do
6137 i=`expr $i + 1`
6138 teststring=$teststring$teststring
6139 done
6140 # Only check the string length outside the loop.
6141 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6142 teststring=
6143 # Add a significant safety factor because C++ compilers can tack on
6144 # massive amounts of additional arguments before passing them to the
6145 # linker. It appears as though 1/2 is a usable value.
6146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6147 fi
6148 ;;
6149 esac
6150
6151fi
6152
6153if test -n $lt_cv_sys_max_cmd_len ; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6155$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6158$as_echo "none" >&6; }
6159fi
6160max_cmd_len=$lt_cv_sys_max_cmd_len
6161
6162
6163
6164
6165
6166
6167: ${CP="cp -f"}
6168: ${MV="mv -f"}
6169: ${RM="rm -f"}
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6172$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6173# Try some XSI features
6174xsi_shell=no
6175( _lt_dummy="a/b/c"
6176 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6177 = c,a/b,, \
6178 && eval 'test $(( 1 + 1 )) -eq 2 \
6179 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6180 && xsi_shell=yes
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6182$as_echo "$xsi_shell" >&6; }
6183
6184
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6186$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6187lt_shell_append=no
6188( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6189 >/dev/null 2>&1 \
6190 && lt_shell_append=yes
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6192$as_echo "$lt_shell_append" >&6; }
6193
6194
6195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6196 lt_unset=unset
6197else
6198 lt_unset=false
6199fi
6200
6201
6202
6203
6204
6205# test EBCDIC or ASCII
6206case `echo X|tr X '\101'` in
6207 A) # ASCII based system
6208 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6209 lt_SP2NL='tr \040 \012'
6210 lt_NL2SP='tr \015\012 \040\040'
6211 ;;
6212 *) # EBCDIC based system
6213 lt_SP2NL='tr \100 \n'
6214 lt_NL2SP='tr \r\n \100\100'
6215 ;;
6216esac
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6227$as_echo_n "checking for $LD option to reload object files... " >&6; }
6228if ${lt_cv_ld_reload_flag+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 lt_cv_ld_reload_flag='-r'
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6234$as_echo "$lt_cv_ld_reload_flag" >&6; }
6235reload_flag=$lt_cv_ld_reload_flag
6236case $reload_flag in
6237"" | " "*) ;;
6238*) reload_flag=" $reload_flag" ;;
6239esac
6240reload_cmds='$LD$reload_flag -o $output$reload_objs'
6241case $host_os in
6242 darwin*)
6243 if test "$GCC" = yes; then
6244 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6245 else
6246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 fi
6248 ;;
6249esac
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6261set dummy ${ac_tool_prefix}objdump; ac_word=$2
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263$as_echo_n "checking for $ac_word... " >&6; }
6264if ${ac_cv_prog_OBJDUMP+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266else
6267 if test -n "$OBJDUMP"; then
6268 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281done
6282 done
6283IFS=$as_save_IFS
6284
6285fi
6286fi
6287OBJDUMP=$ac_cv_prog_OBJDUMP
6288if test -n "$OBJDUMP"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6290$as_echo "$OBJDUMP" >&6; }
6291else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296
6297fi
6298if test -z "$ac_cv_prog_OBJDUMP"; then
6299 ac_ct_OBJDUMP=$OBJDUMP
6300 # Extract the first word of "objdump", so it can be a program name with args.
6301set dummy objdump; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 if test -n "$ac_ct_OBJDUMP"; then
6308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6328if test -n "$ac_ct_OBJDUMP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6330$as_echo "$ac_ct_OBJDUMP" >&6; }
6331else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336 if test "x$ac_ct_OBJDUMP" = x; then
6337 OBJDUMP="false"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340yes:)
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343ac_tool_warned=yes ;;
6344esac
6345 OBJDUMP=$ac_ct_OBJDUMP
6346 fi
6347else
6348 OBJDUMP="$ac_cv_prog_OBJDUMP"
6349fi
6350
6351test -z "$OBJDUMP" && OBJDUMP=objdump
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6362$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6363if ${lt_cv_deplibs_check_method+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365else
6366 lt_cv_file_magic_cmd='$MAGIC_CMD'
6367lt_cv_file_magic_test_file=
6368lt_cv_deplibs_check_method='unknown'
6369# Need to set the preceding variable on all platforms that support
6370# interlibrary dependencies.
6371# 'none' -- dependencies not supported.
6372# `unknown' -- same as none, but documents that we really don't know.
6373# 'pass_all' -- all dependencies passed with no checks.
6374# 'test_compile' -- check by making test program.
6375# 'file_magic [[regex]]' -- check by looking for files in library path
6376# which responds to the $file_magic_cmd with a given extended regex.
6377# If you have `file' or equivalent on your system and you're not sure
6378# whether `pass_all' will *always* work, you probably want this one.
6379
6380case $host_os in
6381aix[4-9]*)
6382 lt_cv_deplibs_check_method=pass_all
6383 ;;
6384
6385beos*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389bsdi[45]*)
6390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6391 lt_cv_file_magic_cmd='/usr/bin/file -L'
6392 lt_cv_file_magic_test_file=/shlib/libc.so
6393 ;;
6394
6395cygwin*)
6396 # func_win32_libid is a shell function defined in ltmain.sh
6397 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6398 lt_cv_file_magic_cmd='func_win32_libid'
6399 ;;
6400
6401mingw* | pw32*)
6402 # Base MSYS/MinGW do not provide the 'file' command needed by
6403 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6404 # unless we find 'file', for example because we are cross-compiling.
6405 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6406 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6408 lt_cv_file_magic_cmd='func_win32_libid'
6409 else
6410 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6411 lt_cv_file_magic_cmd='$OBJDUMP -f'
6412 fi
6413 ;;
6414
6415cegcc*)
6416 # use the weaker test based on 'objdump'. See mingw*.
6417 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6418 lt_cv_file_magic_cmd='$OBJDUMP -f'
6419 ;;
6420
6421darwin* | rhapsody*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425freebsd* | dragonfly*)
6426 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427 case $host_cpu in
6428 i*86 )
6429 # Not sure whether the presence of OpenBSD here was a mistake.
6430 # Let's accept both of them until this is cleared up.
6431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6432 lt_cv_file_magic_cmd=/usr/bin/file
6433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6434 ;;
6435 esac
6436 else
6437 lt_cv_deplibs_check_method=pass_all
6438 fi
6439 ;;
6440
6441gnu*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444
6445haiku*)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449hpux10.20* | hpux11*)
6450 lt_cv_file_magic_cmd=/usr/bin/file
6451 case $host_cpu in
6452 ia64*)
6453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6454 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6455 ;;
6456 hppa*64*)
6457 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]'
6458 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6459 ;;
6460 *)
6461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6462 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6463 ;;
6464 esac
6465 ;;
6466
6467interix[3-9]*)
6468 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6470 ;;
6471
6472irix5* | irix6* | nonstopux*)
6473 case $LD in
6474 *-32|*"-32 ") libmagic=32-bit;;
6475 *-n32|*"-n32 ") libmagic=N32;;
6476 *-64|*"-64 ") libmagic=64-bit;;
6477 *) libmagic=never-match;;
6478 esac
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482# This must be Linux ELF.
6483linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487netbsd*)
6488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6490 else
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6492 fi
6493 ;;
6494
6495newos6*)
6496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6497 lt_cv_file_magic_cmd=/usr/bin/file
6498 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6499 ;;
6500
6501*nto* | *qnx*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505openbsd*)
6506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6508 else
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6510 fi
6511 ;;
6512
6513osf3* | osf4* | osf5*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517rdos*)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521solaris*)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524
6525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6526 lt_cv_deplibs_check_method=pass_all
6527 ;;
6528
6529sysv4 | sysv4.3*)
6530 case $host_vendor in
6531 motorola)
6532 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]'
6533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6534 ;;
6535 ncr)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 sequent)
6539 lt_cv_file_magic_cmd='/bin/file'
6540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6541 ;;
6542 sni)
6543 lt_cv_file_magic_cmd='/bin/file'
6544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6545 lt_cv_file_magic_test_file=/lib/libc.so
6546 ;;
6547 siemens)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550 pc)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 esac
6554 ;;
6555
6556tpf*)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559esac
6560
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6563$as_echo "$lt_cv_deplibs_check_method" >&6; }
6564file_magic_cmd=$lt_cv_file_magic_cmd
6565deplibs_check_method=$lt_cv_deplibs_check_method
6566test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}ar; ac_word=$2
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583$as_echo_n "checking for $ac_word... " >&6; }
6584if ${ac_cv_prog_AR+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586else
6587 if test -n "$AR"; then
6588 ac_cv_prog_AR="$AR" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_AR="${ac_tool_prefix}ar"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602 done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607AR=$ac_cv_prog_AR
6608if test -n "$AR"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6610$as_echo "$AR" >&6; }
6611else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$ac_cv_prog_AR"; then
6619 ac_ct_AR=$AR
6620 # Extract the first word of "ar", so it can be a program name with args.
6621set dummy ar; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_prog_ac_ct_AR+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626else
6627 if test -n "$ac_ct_AR"; then
6628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_ac_ct_AR="ar"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642 done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647ac_ct_AR=$ac_cv_prog_ac_ct_AR
6648if test -n "$ac_ct_AR"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6650$as_echo "$ac_ct_AR" >&6; }
6651else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656 if test "x$ac_ct_AR" = x; then
6657 AR="false"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665 AR=$ac_ct_AR
6666 fi
6667else
6668 AR="$ac_cv_prog_AR"
6669fi
6670
6671test -z "$AR" && AR=ar
6672test -z "$AR_FLAGS" && AR_FLAGS=cru
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6686set dummy ${ac_tool_prefix}strip; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_STRIP+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691else
6692 if test -n "$STRIP"; then
6693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706done
6707 done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712STRIP=$ac_cv_prog_STRIP
6713if test -n "$STRIP"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6715$as_echo "$STRIP" >&6; }
6716else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721
6722fi
6723if test -z "$ac_cv_prog_STRIP"; then
6724 ac_ct_STRIP=$STRIP
6725 # Extract the first word of "strip", so it can be a program name with args.
6726set dummy strip; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731else
6732 if test -n "$ac_ct_STRIP"; then
6733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_STRIP="strip"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747 done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6753if test -n "$ac_ct_STRIP"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6755$as_echo "$ac_ct_STRIP" >&6; }
6756else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761 if test "x$ac_ct_STRIP" = x; then
6762 STRIP=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765yes:)
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768ac_tool_warned=yes ;;
6769esac
6770 STRIP=$ac_ct_STRIP
6771 fi
6772else
6773 STRIP="$ac_cv_prog_STRIP"
6774fi
6775
6776test -z "$STRIP" && STRIP=:
6777
6778
6779
6780
6781
6782
6783if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if ${ac_cv_prog_RANLIB+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790else
6791 if test -n "$RANLIB"; then
6792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806 done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811RANLIB=$ac_cv_prog_RANLIB
6812if test -n "$RANLIB"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6814$as_echo "$RANLIB" >&6; }
6815else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
6820
6821fi
6822if test -z "$ac_cv_prog_RANLIB"; then
6823 ac_ct_RANLIB=$RANLIB
6824 # Extract the first word of "ranlib", so it can be a program name with args.
6825set dummy ranlib; ac_word=$2
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831 if test -n "$ac_ct_RANLIB"; then
6832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_ac_ct_RANLIB="ranlib"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846 done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852if test -n "$ac_ct_RANLIB"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6854$as_echo "$ac_ct_RANLIB" >&6; }
6855else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860 if test "x$ac_ct_RANLIB" = x; then
6861 RANLIB=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867ac_tool_warned=yes ;;
6868esac
6869 RANLIB=$ac_ct_RANLIB
6870 fi
6871else
6872 RANLIB="$ac_cv_prog_RANLIB"
6873fi
6874
6875test -z "$RANLIB" && RANLIB=:
6876
6877
6878
6879
6880
6881
6882# Determine commands to create old-style static archives.
6883old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884old_postinstall_cmds='chmod 644 $oldlib'
6885old_postuninstall_cmds=
6886
6887if test -n "$RANLIB"; then
6888 case $host_os in
6889 openbsd*)
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6891 ;;
6892 *)
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6894 ;;
6895 esac
6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6897fi
6898
6899case $host_os in
6900 darwin*)
6901 lock_old_archive_extraction=yes ;;
6902 *)
6903 lock_old_archive_extraction=no ;;
6904esac
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944# If no C compiler was specified, use CC.
6945LTCC=${LTCC-"$CC"}
6946
6947# If no C compiler flags were specified, use CFLAGS.
6948LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6949
6950# Allow CC to be a program name with arguments.
6951compiler=$CC
6952
6953
6954# Check for command to grab the raw symbol name followed by C symbol from nm.
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6956$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6957if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959else
6960
6961# These are sane defaults that work on at least a few old systems.
6962# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6963
6964# Character class describing NM global symbol codes.
6965symcode='[BCDEGRST]'
6966
6967# Regexp to match symbols that can be accessed directly from C.
6968sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6969
6970# Define system-specific variables.
6971case $host_os in
6972aix*)
6973 symcode='[BCDT]'
6974 ;;
6975cygwin* | mingw* | pw32* | cegcc*)
6976 symcode='[ABCDGISTW]'
6977 ;;
6978hpux*)
6979 if test "$host_cpu" = ia64; then
6980 symcode='[ABCDEGRST]'
6981 fi
6982 ;;
6983irix* | nonstopux*)
6984 symcode='[BCDEGRST]'
6985 ;;
6986osf*)
6987 symcode='[BCDEGQRST]'
6988 ;;
6989solaris*)
6990 symcode='[BDRT]'
6991 ;;
6992sco3.2v5*)
6993 symcode='[DT]'
6994 ;;
6995sysv4.2uw2*)
6996 symcode='[DT]'
6997 ;;
6998sysv5* | sco5v6* | unixware* | OpenUNIX*)
6999 symcode='[ABDT]'
7000 ;;
7001sysv4)
7002 symcode='[DFNSTU]'
7003 ;;
7004esac
7005
7006# If we're using GNU nm, then use its standard symbol codes.
7007case `$NM -V 2>&1` in
7008*GNU* | *'with BFD'*)
7009 symcode='[ABCDGIRSTW]' ;;
7010esac
7011
7012# Transform an extracted symbol line into a proper C declaration.
7013# Some systems (esp. on ia64) link data and code symbols differently,
7014# so use this general approach.
7015lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7016
7017# Transform an extracted symbol line into symbol name and symbol address
7018lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7019lt_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'"
7020
7021# Handle CRLF in mingw tool chain
7022opt_cr=
7023case $build_os in
7024mingw*)
7025 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7026 ;;
7027esac
7028
7029# Try without a prefix underscore, then with it.
7030for ac_symprfx in "" "_"; do
7031
7032 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7033 symxfrm="\\1 $ac_symprfx\\2 \\2"
7034
7035 # Write the raw and C identifiers.
7036 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7037 # Fake it for dumpbin and say T for any non-static function
7038 # and D for any global variable.
7039 # Also find C++ and __fastcall symbols from MSVC++,
7040 # which start with @ or ?.
7041 lt_cv_sys_global_symbol_pipe="$AWK '"\
7042" {last_section=section; section=\$ 3};"\
7043" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7044" \$ 0!~/External *\|/{next};"\
7045" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046" {if(hide[section]) next};"\
7047" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7048" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7049" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7050" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7051" ' prfx=^$ac_symprfx"
7052 else
7053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7054 fi
7055
7056 # Check to see that the pipe works correctly.
7057 pipe_works=no
7058
7059 rm -f conftest*
7060 cat > conftest.$ac_ext <<_LT_EOF
7061#ifdef __cplusplus
7062extern "C" {
7063#endif
7064char nm_test_var;
7065void nm_test_func(void);
7066void nm_test_func(void){}
7067#ifdef __cplusplus
7068}
7069#endif
7070int main(){nm_test_var='a';nm_test_func();return(0);}
7071_LT_EOF
7072
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074 (eval $ac_compile) 2>&5
7075 ac_status=$?
7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; }; then
7078 # Now try to grab the symbols.
7079 nlist=conftest.nm
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7081 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; } && test -s "$nlist"; then
7085 # Try sorting and uniquifying the output.
7086 if sort "$nlist" | uniq > "$nlist"T; then
7087 mv -f "$nlist"T "$nlist"
7088 else
7089 rm -f "$nlist"T
7090 fi
7091
7092 # Make sure that we snagged all the symbols we need.
7093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7095 cat <<_LT_EOF > conftest.$ac_ext
7096#ifdef __cplusplus
7097extern "C" {
7098#endif
7099
7100_LT_EOF
7101 # Now generate the symbol file.
7102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7103
7104 cat <<_LT_EOF >> conftest.$ac_ext
7105
7106/* The mapping between symbol names and symbols. */
7107const struct {
7108 const char *name;
7109 void *address;
7110}
7111lt__PROGRAM__LTX_preloaded_symbols[] =
7112{
7113 { "@PROGRAM@", (void *) 0 },
7114_LT_EOF
7115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7116 cat <<\_LT_EOF >> conftest.$ac_ext
7117 {0, (void *) 0}
7118};
7119
7120/* This works around a problem in FreeBSD linker */
7121#ifdef FREEBSD_WORKAROUND
7122static const void *lt_preloaded_setup() {
7123 return lt__PROGRAM__LTX_preloaded_symbols;
7124}
7125#endif
7126
7127#ifdef __cplusplus
7128}
7129#endif
7130_LT_EOF
7131 # Now try linking the two files.
7132 mv conftest.$ac_objext conftstm.$ac_objext
7133 lt_save_LIBS="$LIBS"
7134 lt_save_CFLAGS="$CFLAGS"
7135 LIBS="conftstm.$ac_objext"
7136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7138 (eval $ac_link) 2>&5
7139 ac_status=$?
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7142 pipe_works=yes
7143 fi
7144 LIBS="$lt_save_LIBS"
7145 CFLAGS="$lt_save_CFLAGS"
7146 else
7147 echo "cannot find nm_test_func in $nlist" >&5
7148 fi
7149 else
7150 echo "cannot find nm_test_var in $nlist" >&5
7151 fi
7152 else
7153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7154 fi
7155 else
7156 echo "$progname: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 fi
7159 rm -rf conftest* conftst*
7160
7161 # Do not use the global_symbol_pipe unless it works.
7162 if test "$pipe_works" = yes; then
7163 break
7164 else
7165 lt_cv_sys_global_symbol_pipe=
7166 fi
7167done
7168
7169fi
7170
7171if test -z "$lt_cv_sys_global_symbol_pipe"; then
7172 lt_cv_sys_global_symbol_to_cdecl=
7173fi
7174if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7176$as_echo "failed" >&6; }
7177else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7179$as_echo "ok" >&6; }
7180fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203# Check whether --enable-libtool-lock was given.
7204if test "${enable_libtool_lock+set}" = set; then :
7205 enableval=$enable_libtool_lock;
7206fi
7207
7208test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7209
7210# Some flags need to be propagated to the compiler or linker for good
7211# libtool support.
7212case $host in
7213ia64-*-hpux*)
7214 # Find out which ABI we are using.
7215 echo 'int i;' > conftest.$ac_ext
7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7217 (eval $ac_compile) 2>&5
7218 ac_status=$?
7219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220 test $ac_status = 0; }; then
7221 case `/usr/bin/file conftest.$ac_objext` in
7222 *ELF-32*)
7223 HPUX_IA64_MODE="32"
7224 ;;
7225 *ELF-64*)
7226 HPUX_IA64_MODE="64"
7227 ;;
7228 esac
7229 fi
7230 rm -rf conftest*
7231 ;;
7232*-*-irix6*)
7233 # Find out which ABI we are using.
7234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236 (eval $ac_compile) 2>&5
7237 ac_status=$?
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; then
7240 if test "$lt_cv_prog_gnu_ld" = yes; then
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -melf32bsmip"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -melf32bmipn32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -melf64bmip"
7250 ;;
7251 esac
7252 else
7253 case `/usr/bin/file conftest.$ac_objext` in
7254 *32-bit*)
7255 LD="${LD-ld} -32"
7256 ;;
7257 *N32*)
7258 LD="${LD-ld} -n32"
7259 ;;
7260 *64-bit*)
7261 LD="${LD-ld} -64"
7262 ;;
7263 esac
7264 fi
7265 fi
7266 rm -rf conftest*
7267 ;;
7268
7269x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7270s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7271 # Find out which ABI we are using.
7272 echo 'int i;' > conftest.$ac_ext
7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277 test $ac_status = 0; }; then
7278 case `/usr/bin/file conftest.o` in
7279 *32-bit*)
7280 case $host in
7281 x86_64-*kfreebsd*-gnu)
7282 LD="${LD-ld} -m elf_i386_fbsd"
7283 ;;
7284 x86_64-*linux*)
7285 case `/usr/bin/file conftest.o` in
7286 *x86-64*)
7287 LD="${LD-ld} -m elf32_x86_64"
7288 ;;
7289 *)
7290 LD="${LD-ld} -m elf_i386"
7291 ;;
7292 esac
7293 ;;
7294 powerpc64le-*linux*)
7295 LD="${LD-ld} -m elf32lppclinux"
7296 ;;
7297 powerpc64-*linux*)
7298 LD="${LD-ld} -m elf32ppclinux"
7299 ;;
7300 s390x-*linux*)
7301 LD="${LD-ld} -m elf_s390"
7302 ;;
7303 sparc64-*linux*)
7304 LD="${LD-ld} -m elf32_sparc"
7305 ;;
7306 esac
7307 ;;
7308 *64-bit*)
7309 case $host in
7310 x86_64-*kfreebsd*-gnu)
7311 LD="${LD-ld} -m elf_x86_64_fbsd"
7312 ;;
7313 x86_64-*linux*)
7314 LD="${LD-ld} -m elf_x86_64"
7315 ;;
7316 powerpcle-*linux*)
7317 LD="${LD-ld} -m elf64lppc"
7318 ;;
7319 powerpc-*linux*)
7320 LD="${LD-ld} -m elf64ppc"
7321 ;;
7322 s390*-*linux*|s390*-*tpf*)
7323 LD="${LD-ld} -m elf64_s390"
7324 ;;
7325 sparc*-*linux*)
7326 LD="${LD-ld} -m elf64_sparc"
7327 ;;
7328 esac
7329 ;;
7330 esac
7331 fi
7332 rm -rf conftest*
7333 ;;
7334
7335*-*-sco3.2v5*)
7336 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7337 SAVE_CFLAGS="$CFLAGS"
7338 CFLAGS="$CFLAGS -belf"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7340$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7341if ${lt_cv_cc_needs_belf+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343else
7344 ac_ext=c
7345ac_cpp='$CPP $CPPFLAGS'
7346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7348ac_compiler_gnu=$ac_cv_c_compiler_gnu
7349
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h. */
7352
7353int
7354main ()
7355{
7356
7357 ;
7358 return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"; then :
7362 lt_cv_cc_needs_belf=yes
7363else
7364 lt_cv_cc_needs_belf=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 ac_ext=c
7369ac_cpp='$CPP $CPPFLAGS'
7370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7376$as_echo "$lt_cv_cc_needs_belf" >&6; }
7377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379 CFLAGS="$SAVE_CFLAGS"
7380 fi
7381 ;;
7382sparc*-*solaris*)
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386 (eval $ac_compile) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }; then
7390 case `/usr/bin/file conftest.o` in
7391 *64-bit*)
7392 case $lt_cv_prog_gnu_ld in
7393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394 *)
7395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7396 LD="${LD-ld} -64"
7397 fi
7398 ;;
7399 esac
7400 ;;
7401 esac
7402 fi
7403 rm -rf conftest*
7404 ;;
7405esac
7406
7407need_locks="$enable_libtool_lock"
7408
7409
7410 case $host_os in
7411 rhapsody* | darwin*)
7412 if test -n "$ac_tool_prefix"; then
7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416$as_echo_n "checking for $ac_word... " >&6; }
7417if ${ac_cv_prog_DSYMUTIL+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419else
7420 if test -n "$DSYMUTIL"; then
7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435 done
7436IFS=$as_save_IFS
7437
7438fi
7439fi
7440DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441if test -n "$DSYMUTIL"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7443$as_echo "$DSYMUTIL" >&6; }
7444else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
7447fi
7448
7449
7450fi
7451if test -z "$ac_cv_prog_DSYMUTIL"; then
7452 ac_ct_DSYMUTIL=$DSYMUTIL
7453 # Extract the first word of "dsymutil", so it can be a program name with args.
7454set dummy dsymutil; ac_word=$2
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456$as_echo_n "checking for $ac_word... " >&6; }
7457if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459else
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474done
7475 done
7476IFS=$as_save_IFS
7477
7478fi
7479fi
7480ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481if test -n "$ac_ct_DSYMUTIL"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7483$as_echo "$ac_ct_DSYMUTIL" >&6; }
7484else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489 if test "x$ac_ct_DSYMUTIL" = x; then
7490 DSYMUTIL=":"
7491 else
7492 case $cross_compiling:$ac_tool_warned in
7493yes:)
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496ac_tool_warned=yes ;;
7497esac
7498 DSYMUTIL=$ac_ct_DSYMUTIL
7499 fi
7500else
7501 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502fi
7503
7504 if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if ${ac_cv_prog_NMEDIT+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511else
7512 if test -n "$NMEDIT"; then
7513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527 done
7528IFS=$as_save_IFS
7529
7530fi
7531fi
7532NMEDIT=$ac_cv_prog_NMEDIT
7533if test -n "$NMEDIT"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7535$as_echo "$NMEDIT" >&6; }
7536else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
7539fi
7540
7541
7542fi
7543if test -z "$ac_cv_prog_NMEDIT"; then
7544 ac_ct_NMEDIT=$NMEDIT
7545 # Extract the first word of "nmedit", so it can be a program name with args.
7546set dummy nmedit; ac_word=$2
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$ac_ct_NMEDIT"; then
7553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567 done
7568IFS=$as_save_IFS
7569
7570fi
7571fi
7572ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573if test -n "$ac_ct_NMEDIT"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7575$as_echo "$ac_ct_NMEDIT" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581 if test "x$ac_ct_NMEDIT" = x; then
7582 NMEDIT=":"
7583 else
7584 case $cross_compiling:$ac_tool_warned in
7585yes:)
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588ac_tool_warned=yes ;;
7589esac
7590 NMEDIT=$ac_ct_NMEDIT
7591 fi
7592else
7593 NMEDIT="$ac_cv_prog_NMEDIT"
7594fi
7595
7596 if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7598set dummy ${ac_tool_prefix}lipo; ac_word=$2
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600$as_echo_n "checking for $ac_word... " >&6; }
7601if ${ac_cv_prog_LIPO+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603else
7604 if test -n "$LIPO"; then
7605 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7606else
7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618done
7619 done
7620IFS=$as_save_IFS
7621
7622fi
7623fi
7624LIPO=$ac_cv_prog_LIPO
7625if test -n "$LIPO"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7627$as_echo "$LIPO" >&6; }
7628else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631fi
7632
7633
7634fi
7635if test -z "$ac_cv_prog_LIPO"; then
7636 ac_ct_LIPO=$LIPO
7637 # Extract the first word of "lipo", so it can be a program name with args.
7638set dummy lipo; ac_word=$2
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643else
7644 if test -n "$ac_ct_LIPO"; then
7645 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_ac_ct_LIPO="lipo"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658done
7659 done
7660IFS=$as_save_IFS
7661
7662fi
7663fi
7664ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7665if test -n "$ac_ct_LIPO"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7667$as_echo "$ac_ct_LIPO" >&6; }
7668else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671fi
7672
7673 if test "x$ac_ct_LIPO" = x; then
7674 LIPO=":"
7675 else
7676 case $cross_compiling:$ac_tool_warned in
7677yes:)
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680ac_tool_warned=yes ;;
7681esac
7682 LIPO=$ac_ct_LIPO
7683 fi
7684else
7685 LIPO="$ac_cv_prog_LIPO"
7686fi
7687
7688 if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690set dummy ${ac_tool_prefix}otool; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if ${ac_cv_prog_OTOOL+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695else
7696 if test -n "$OTOOL"; then
7697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711 done
7712IFS=$as_save_IFS
7713
7714fi
7715fi
7716OTOOL=$ac_cv_prog_OTOOL
7717if test -n "$OTOOL"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7719$as_echo "$OTOOL" >&6; }
7720else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
7724
7725
7726fi
7727if test -z "$ac_cv_prog_OTOOL"; then
7728 ac_ct_OTOOL=$OTOOL
7729 # Extract the first word of "otool", so it can be a program name with args.
7730set dummy otool; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 if test -n "$ac_ct_OTOOL"; then
7737 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_OTOOL="otool"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751 done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757if test -n "$ac_ct_OTOOL"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7759$as_echo "$ac_ct_OTOOL" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765 if test "x$ac_ct_OTOOL" = x; then
7766 OTOOL=":"
7767 else
7768 case $cross_compiling:$ac_tool_warned in
7769yes:)
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772ac_tool_warned=yes ;;
7773esac
7774 OTOOL=$ac_ct_OTOOL
7775 fi
7776else
7777 OTOOL="$ac_cv_prog_OTOOL"
7778fi
7779
7780 if test -n "$ac_tool_prefix"; then
7781 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7782set dummy ${ac_tool_prefix}otool64; ac_word=$2
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784$as_echo_n "checking for $ac_word... " >&6; }
7785if ${ac_cv_prog_OTOOL64+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787else
7788 if test -n "$OTOOL64"; then
7789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7790else
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803 done
7804IFS=$as_save_IFS
7805
7806fi
7807fi
7808OTOOL64=$ac_cv_prog_OTOOL64
7809if test -n "$OTOOL64"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7811$as_echo "$OTOOL64" >&6; }
7812else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817
7818fi
7819if test -z "$ac_cv_prog_OTOOL64"; then
7820 ac_ct_OTOOL64=$OTOOL64
7821 # Extract the first word of "otool64", so it can be a program name with args.
7822set dummy otool64; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827else
7828 if test -n "$ac_ct_OTOOL64"; then
7829 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_ac_ct_OTOOL64="otool64"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843 done
7844IFS=$as_save_IFS
7845
7846fi
7847fi
7848ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7849if test -n "$ac_ct_OTOOL64"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7851$as_echo "$ac_ct_OTOOL64" >&6; }
7852else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855fi
7856
7857 if test "x$ac_ct_OTOOL64" = x; then
7858 OTOOL64=":"
7859 else
7860 case $cross_compiling:$ac_tool_warned in
7861yes:)
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864ac_tool_warned=yes ;;
7865esac
7866 OTOOL64=$ac_ct_OTOOL64
7867 fi
7868else
7869 OTOOL64="$ac_cv_prog_OTOOL64"
7870fi
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7899$as_echo_n "checking for -single_module linker flag... " >&6; }
7900if ${lt_cv_apple_cc_single_mod+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902else
7903 lt_cv_apple_cc_single_mod=no
7904 if test -z "${LT_MULTI_MODULE}"; then
7905 # By default we will add the -single_module flag. You can override
7906 # by either setting the environment variable LT_MULTI_MODULE
7907 # non-empty at configure time, or by adding -multi_module to the
7908 # link flags.
7909 rm -rf libconftest.dylib*
7910 echo "int foo(void){return 1;}" > conftest.c
7911 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912-dynamiclib -Wl,-single_module conftest.c" >&5
7913 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7914 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7915 _lt_result=$?
7916 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7917 lt_cv_apple_cc_single_mod=yes
7918 else
7919 cat conftest.err >&5
7920 fi
7921 rm -rf libconftest.dylib*
7922 rm -f conftest.*
7923 fi
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7926$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7928$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7929if ${lt_cv_ld_exported_symbols_list+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931else
7932 lt_cv_ld_exported_symbols_list=no
7933 save_LDFLAGS=$LDFLAGS
7934 echo "_main" > conftest.sym
7935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h. */
7938
7939int
7940main ()
7941{
7942
7943 ;
7944 return 0;
7945}
7946_ACEOF
7947if ac_fn_c_try_link "$LINENO"; then :
7948 lt_cv_ld_exported_symbols_list=yes
7949else
7950 lt_cv_ld_exported_symbols_list=no
7951fi
7952rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 LDFLAGS="$save_LDFLAGS"
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7958$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7960$as_echo_n "checking for -force_load linker flag... " >&6; }
7961if ${lt_cv_ld_force_load+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 lt_cv_ld_force_load=no
7965 cat > conftest.c << _LT_EOF
7966int forced_loaded() { return 2;}
7967_LT_EOF
7968 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7969 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7970 echo "$AR cru libconftest.a conftest.o" >&5
7971 $AR cru libconftest.a conftest.o 2>&5
7972 cat > conftest.c << _LT_EOF
7973int main() { return 0;}
7974_LT_EOF
7975 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7976 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7977 _lt_result=$?
7978 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7979 lt_cv_ld_force_load=yes
7980 else
7981 cat conftest.err >&5
7982 fi
7983 rm -f conftest.err libconftest.a conftest conftest.c
7984 rm -rf conftest.dSYM
7985
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7988$as_echo "$lt_cv_ld_force_load" >&6; }
7989 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7990 # build without first building modern cctools / linker.
7991 case $host_cpu-$host_os in
7992 *-rhapsody* | *-darwin1.[012])
7993 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7994 *-darwin1.*)
7995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7996 *-darwin*)
7997 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7998 # deployment target is forced to an earlier version.
7999 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8000 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8001 ;;
8002 10.[012][,.]*)
8003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8004 ;;
8005 *)
8006 ;;
8007 esac
8008 ;;
8009 esac
8010 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8011 _lt_dar_single_mod='$single_module'
8012 fi
8013 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8014 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8015 else
8016 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8017 fi
8018 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8019 _lt_dsymutil='~$DSYMUTIL $lib || :'
8020 else
8021 _lt_dsymutil=
8022 fi
8023 ;;
8024 esac
8025
8026for ac_header in dlfcn.h
8027do :
8028 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8029"
8030if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8031 cat >>confdefs.h <<_ACEOF
8032#define HAVE_DLFCN_H 1
8033_ACEOF
8034
8035fi
8036
8037done
8038
8039
8040
8041
8042
8043# Set options
8044
8045
8046
8047 enable_dlopen=no
8048
8049
8050 enable_win32_dll=no
8051
8052
8053 # Check whether --enable-shared was given.
8054if test "${enable_shared+set}" = set; then :
8055 enableval=$enable_shared; p=${PACKAGE-default}
8056 case $enableval in
8057 yes) enable_shared=yes ;;
8058 no) enable_shared=no ;;
8059 *)
8060 enable_shared=no
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for pkg in $enableval; do
8064 IFS="$lt_save_ifs"
8065 if test "X$pkg" = "X$p"; then
8066 enable_shared=yes
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 ;;
8071 esac
8072else
8073 enable_shared=yes
8074fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 # Check whether --enable-static was given.
8085if test "${enable_static+set}" = set; then :
8086 enableval=$enable_static; p=${PACKAGE-default}
8087 case $enableval in
8088 yes) enable_static=yes ;;
8089 no) enable_static=no ;;
8090 *)
8091 enable_static=no
8092 # Look at the argument we got. We use all the common list separators.
8093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8094 for pkg in $enableval; do
8095 IFS="$lt_save_ifs"
8096 if test "X$pkg" = "X$p"; then
8097 enable_static=yes
8098 fi
8099 done
8100 IFS="$lt_save_ifs"
8101 ;;
8102 esac
8103else
8104 enable_static=yes
8105fi
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116# Check whether --with-pic was given.
8117if test "${with_pic+set}" = set; then :
8118 withval=$with_pic; pic_mode="$withval"
8119else
8120 pic_mode=default
8121fi
8122
8123
8124test -z "$pic_mode" && pic_mode=default
8125
8126
8127
8128
8129
8130
8131
8132 # Check whether --enable-fast-install was given.
8133if test "${enable_fast_install+set}" = set; then :
8134 enableval=$enable_fast_install; p=${PACKAGE-default}
8135 case $enableval in
8136 yes) enable_fast_install=yes ;;
8137 no) enable_fast_install=no ;;
8138 *)
8139 enable_fast_install=no
8140 # Look at the argument we got. We use all the common list separators.
8141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8142 for pkg in $enableval; do
8143 IFS="$lt_save_ifs"
8144 if test "X$pkg" = "X$p"; then
8145 enable_fast_install=yes
8146 fi
8147 done
8148 IFS="$lt_save_ifs"
8149 ;;
8150 esac
8151else
8152 enable_fast_install=yes
8153fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165# This can be used to rebuild libtool when needed
8166LIBTOOL_DEPS="$ltmain"
8167
8168# Always use our own libtool.
8169LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196test -z "$LN_S" && LN_S="ln -s"
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211if test -n "${ZSH_VERSION+set}" ; then
8212 setopt NO_GLOB_SUBST
8213fi
8214
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8216$as_echo_n "checking for objdir... " >&6; }
8217if ${lt_cv_objdir+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219else
8220 rm -f .libs 2>/dev/null
8221mkdir .libs 2>/dev/null
8222if test -d .libs; then
8223 lt_cv_objdir=.libs
8224else
8225 # MS-DOS does not allow filenames that begin with a dot.
8226 lt_cv_objdir=_libs
8227fi
8228rmdir .libs 2>/dev/null
8229fi
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8231$as_echo "$lt_cv_objdir" >&6; }
8232objdir=$lt_cv_objdir
8233
8234
8235
8236
8237
8238cat >>confdefs.h <<_ACEOF
8239#define LT_OBJDIR "$lt_cv_objdir/"
8240_ACEOF
8241
8242
8243
8244
8245case $host_os in
8246aix3*)
8247 # AIX sometimes has problems with the GCC collect2 program. For some
8248 # reason, if we set the COLLECT_NAMES environment variable, the problems
8249 # vanish in a puff of smoke.
8250 if test "X${COLLECT_NAMES+set}" != Xset; then
8251 COLLECT_NAMES=
8252 export COLLECT_NAMES
8253 fi
8254 ;;
8255esac
8256
8257# Global variables:
8258ofile=libtool
8259can_build_shared=yes
8260
8261# All known linkers require a `.a' archive for static linking (except MSVC,
8262# which needs '.lib').
8263libext=a
8264
8265with_gnu_ld="$lt_cv_prog_gnu_ld"
8266
8267old_CC="$CC"
8268old_CFLAGS="$CFLAGS"
8269
8270# Set sane defaults for various variables
8271test -z "$CC" && CC=cc
8272test -z "$LTCC" && LTCC=$CC
8273test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8274test -z "$LD" && LD=ld
8275test -z "$ac_objext" && ac_objext=o
8276
8277for cc_temp in $compiler""; do
8278 case $cc_temp in
8279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8281 \-*) ;;
8282 *) break;;
8283 esac
8284done
8285cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8286
8287
8288# Only perform the check for file, if the check method requires it
8289test -z "$MAGIC_CMD" && MAGIC_CMD=file
8290case $deplibs_check_method in
8291file_magic*)
8292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8294$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8295if ${lt_cv_path_MAGIC_CMD+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297else
8298 case $MAGIC_CMD in
8299[\\/*] | ?:[\\/]*)
8300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8301 ;;
8302*)
8303 lt_save_MAGIC_CMD="$MAGIC_CMD"
8304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8305 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8306 for ac_dir in $ac_dummy; do
8307 IFS="$lt_save_ifs"
8308 test -z "$ac_dir" && ac_dir=.
8309 if test -f $ac_dir/${ac_tool_prefix}file; then
8310 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8311 if test -n "$file_magic_test_file"; then
8312 case $deplibs_check_method in
8313 "file_magic "*)
8314 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8317 $EGREP "$file_magic_regex" > /dev/null; then
8318 :
8319 else
8320 cat <<_LT_EOF 1>&2
8321
8322*** Warning: the command libtool uses to detect shared libraries,
8323*** $file_magic_cmd, produces output that libtool cannot recognize.
8324*** The result is that libtool may fail to recognize shared libraries
8325*** as such. This will affect the creation of libtool libraries that
8326*** depend on shared libraries, but programs linked with such libtool
8327*** libraries will work regardless of this problem. Nevertheless, you
8328*** may want to report the problem to your system manager and/or to
8329*** bug-libtool@gnu.org
8330
8331_LT_EOF
8332 fi ;;
8333 esac
8334 fi
8335 break
8336 fi
8337 done
8338 IFS="$lt_save_ifs"
8339 MAGIC_CMD="$lt_save_MAGIC_CMD"
8340 ;;
8341esac
8342fi
8343
8344MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8345if test -n "$MAGIC_CMD"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8347$as_echo "$MAGIC_CMD" >&6; }
8348else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350$as_echo "no" >&6; }
8351fi
8352
8353
8354
8355
8356
8357if test -z "$lt_cv_path_MAGIC_CMD"; then
8358 if test -n "$ac_tool_prefix"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8360$as_echo_n "checking for file... " >&6; }
8361if ${lt_cv_path_MAGIC_CMD+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363else
8364 case $MAGIC_CMD in
8365[\\/*] | ?:[\\/]*)
8366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8367 ;;
8368*)
8369 lt_save_MAGIC_CMD="$MAGIC_CMD"
8370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8372 for ac_dir in $ac_dummy; do
8373 IFS="$lt_save_ifs"
8374 test -z "$ac_dir" && ac_dir=.
8375 if test -f $ac_dir/file; then
8376 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8377 if test -n "$file_magic_test_file"; then
8378 case $deplibs_check_method in
8379 "file_magic "*)
8380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8383 $EGREP "$file_magic_regex" > /dev/null; then
8384 :
8385 else
8386 cat <<_LT_EOF 1>&2
8387
8388*** Warning: the command libtool uses to detect shared libraries,
8389*** $file_magic_cmd, produces output that libtool cannot recognize.
8390*** The result is that libtool may fail to recognize shared libraries
8391*** as such. This will affect the creation of libtool libraries that
8392*** depend on shared libraries, but programs linked with such libtool
8393*** libraries will work regardless of this problem. Nevertheless, you
8394*** may want to report the problem to your system manager and/or to
8395*** bug-libtool@gnu.org
8396
8397_LT_EOF
8398 fi ;;
8399 esac
8400 fi
8401 break
8402 fi
8403 done
8404 IFS="$lt_save_ifs"
8405 MAGIC_CMD="$lt_save_MAGIC_CMD"
8406 ;;
8407esac
8408fi
8409
8410MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411if test -n "$MAGIC_CMD"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8413$as_echo "$MAGIC_CMD" >&6; }
8414else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418
8419
8420 else
8421 MAGIC_CMD=:
8422 fi
8423fi
8424
8425 fi
8426 ;;
8427esac
8428
8429# Use C for the default configuration in the libtool script
8430
8431lt_save_CC="$CC"
8432ac_ext=c
8433ac_cpp='$CPP $CPPFLAGS'
8434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436ac_compiler_gnu=$ac_cv_c_compiler_gnu
8437
8438
8439# Source file extension for C test sources.
8440ac_ext=c
8441
8442# Object file extension for compiled C test sources.
8443objext=o
8444objext=$objext
8445
8446# Code to be used in simple compile tests
8447lt_simple_compile_test_code="int some_variable = 0;"
8448
8449# Code to be used in simple link tests
8450lt_simple_link_test_code='int main(){return(0);}'
8451
8452
8453
8454
8455
8456
8457
8458# If no C compiler was specified, use CC.
8459LTCC=${LTCC-"$CC"}
8460
8461# If no C compiler flags were specified, use CFLAGS.
8462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8463
8464# Allow CC to be a program name with arguments.
8465compiler=$CC
8466
8467# Save the default compiler, since it gets overwritten when the other
8468# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8469compiler_DEFAULT=$CC
8470
8471# save warnings/boilerplate of simple test code
8472ac_outfile=conftest.$ac_objext
8473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8475_lt_compiler_boilerplate=`cat conftest.err`
8476$RM conftest*
8477
8478ac_outfile=conftest.$ac_objext
8479echo "$lt_simple_link_test_code" >conftest.$ac_ext
8480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8481_lt_linker_boilerplate=`cat conftest.err`
8482$RM -r conftest*
8483
8484
8485## CAVEAT EMPTOR:
8486## There is no encapsulation within the following macros, do not change
8487## the running order or otherwise move them around unless you know exactly
8488## what you are doing...
8489if test -n "$compiler"; then
8490
8491lt_prog_compiler_no_builtin_flag=
8492
8493if test "$GCC" = yes; then
8494 case $cc_basename in
8495 nvcc*)
8496 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8497 *)
8498 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8499 esac
8500
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8502$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8503if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505else
8506 lt_cv_prog_compiler_rtti_exceptions=no
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8509 lt_compiler_flag="-fno-rtti -fno-exceptions"
8510 # Insert the option either (1) after the last *FLAGS variable, or
8511 # (2) before a word containing "conftest.", or (3) at the end.
8512 # Note that $ac_compile itself does not contain backslashes and begins
8513 # with a dollar sign (not a hyphen), so the echo should work correctly.
8514 # The option is referenced via a variable to avoid confusing sed.
8515 lt_compile=`echo "$ac_compile" | $SED \
8516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8518 -e 's:$: $lt_compiler_flag:'`
8519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8520 (eval "$lt_compile" 2>conftest.err)
8521 ac_status=$?
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 if (exit $ac_status) && test -s "$ac_outfile"; then
8525 # The compiler can only warn and ignore the option if not recognized
8526 # So say no if there are warnings other than the usual output.
8527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8530 lt_cv_prog_compiler_rtti_exceptions=yes
8531 fi
8532 fi
8533 $RM conftest*
8534
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8537$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8538
8539if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8540 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8541else
8542 :
8543fi
8544
8545fi
8546
8547
8548
8549
8550
8551
8552 lt_prog_compiler_wl=
8553lt_prog_compiler_pic=
8554lt_prog_compiler_static=
8555
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8557$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8558
8559 if test "$GCC" = yes; then
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_static='-static'
8562
8563 case $host_os in
8564 aix*)
8565 # All AIX code is PIC.
8566 if test "$host_cpu" = ia64; then
8567 # AIX 5 now supports IA64 processor
8568 lt_prog_compiler_static='-Bstatic'
8569 fi
8570 lt_prog_compiler_pic='-fPIC'
8571 ;;
8572
8573 amigaos*)
8574 case $host_cpu in
8575 powerpc)
8576 # see comment about AmigaOS4 .so support
8577 lt_prog_compiler_pic='-fPIC'
8578 ;;
8579 m68k)
8580 # FIXME: we need at least 68020 code to build shared libraries, but
8581 # adding the `-m68020' flag to GCC prevents building anything better,
8582 # like `-m68040'.
8583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8584 ;;
8585 esac
8586 ;;
8587
8588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8589 # PIC is the default for these OSes.
8590 ;;
8591
8592 mingw* | cygwin* | pw32* | os2* | cegcc*)
8593 # This hack is so that the source file can tell whether it is being
8594 # built for inclusion in a dll (and should export symbols for example).
8595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8596 # (--disable-auto-import) libraries
8597 lt_prog_compiler_pic='-DDLL_EXPORT'
8598 ;;
8599
8600 darwin* | rhapsody*)
8601 # PIC is the default on this platform
8602 # Common symbols not allowed in MH_DYLIB files
8603 lt_prog_compiler_pic='-fno-common'
8604 ;;
8605
8606 haiku*)
8607 # PIC is the default for Haiku.
8608 # The "-static" flag exists, but is broken.
8609 lt_prog_compiler_static=
8610 ;;
8611
8612 hpux*)
8613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8615 # sets the default TLS model and affects inlining.
8616 case $host_cpu in
8617 hppa*64*)
8618 # +Z the default
8619 ;;
8620 *)
8621 lt_prog_compiler_pic='-fPIC'
8622 ;;
8623 esac
8624 ;;
8625
8626 interix[3-9]*)
8627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8628 # Instead, we relocate shared libraries at runtime.
8629 ;;
8630
8631 msdosdjgpp*)
8632 # Just because we use GCC doesn't mean we suddenly get shared libraries
8633 # on systems that don't support them.
8634 lt_prog_compiler_can_build_shared=no
8635 enable_shared=no
8636 ;;
8637
8638 *nto* | *qnx*)
8639 # QNX uses GNU C++, but need to define -shared option too, otherwise
8640 # it will coredump.
8641 lt_prog_compiler_pic='-fPIC -shared'
8642 ;;
8643
8644 sysv4*MP*)
8645 if test -d /usr/nec; then
8646 lt_prog_compiler_pic=-Kconform_pic
8647 fi
8648 ;;
8649
8650 *)
8651 lt_prog_compiler_pic='-fPIC'
8652 ;;
8653 esac
8654
8655 case $cc_basename in
8656 nvcc*) # Cuda Compiler Driver 2.2
8657 lt_prog_compiler_wl='-Xlinker '
8658 lt_prog_compiler_pic='-Xcompiler -fPIC'
8659 ;;
8660 esac
8661 else
8662 # PORTME Check for flag to pass linker flags through the system compiler.
8663 case $host_os in
8664 aix*)
8665 lt_prog_compiler_wl='-Wl,'
8666 if test "$host_cpu" = ia64; then
8667 # AIX 5 now supports IA64 processor
8668 lt_prog_compiler_static='-Bstatic'
8669 else
8670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8671 fi
8672 ;;
8673
8674 mingw* | cygwin* | pw32* | os2* | cegcc*)
8675 # This hack is so that the source file can tell whether it is being
8676 # built for inclusion in a dll (and should export symbols for example).
8677 lt_prog_compiler_pic='-DDLL_EXPORT'
8678 ;;
8679
8680 hpux9* | hpux10* | hpux11*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8683 # not for PA HP-UX.
8684 case $host_cpu in
8685 hppa*64*|ia64*)
8686 # +Z the default
8687 ;;
8688 *)
8689 lt_prog_compiler_pic='+Z'
8690 ;;
8691 esac
8692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8693 lt_prog_compiler_static='${wl}-a ${wl}archive'
8694 ;;
8695
8696 irix5* | irix6* | nonstopux*)
8697 lt_prog_compiler_wl='-Wl,'
8698 # PIC (with -KPIC) is the default.
8699 lt_prog_compiler_static='-non_shared'
8700 ;;
8701
8702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8703 case $cc_basename in
8704 # old Intel for x86_64 which still supported -KPIC.
8705 ecc*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-KPIC'
8708 lt_prog_compiler_static='-static'
8709 ;;
8710 # icc used to be incompatible with GCC.
8711 # ICC 10 doesn't accept -KPIC any more.
8712 icc* | ifort*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-fPIC'
8715 lt_prog_compiler_static='-static'
8716 ;;
8717 # Lahey Fortran 8.1.
8718 lf95*)
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='--shared'
8721 lt_prog_compiler_static='--static'
8722 ;;
8723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8724 # Portland Group compilers (*not* the Pentium gcc compiler,
8725 # which looks to be a dead project)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='-fpic'
8728 lt_prog_compiler_static='-Bstatic'
8729 ;;
8730 ccc*)
8731 lt_prog_compiler_wl='-Wl,'
8732 # All Alpha code is PIC.
8733 lt_prog_compiler_static='-non_shared'
8734 ;;
8735 xl* | bgxl* | bgf* | mpixl*)
8736 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='-qpic'
8739 lt_prog_compiler_static='-qstaticlink'
8740 ;;
8741 *)
8742 case `$CC -V 2>&1 | sed 5q` in
8743 *Sun\ F* | *Sun*Fortran*)
8744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8747 lt_prog_compiler_wl=''
8748 ;;
8749 *Sun\ C*)
8750 # Sun C 5.9
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-Bstatic'
8753 lt_prog_compiler_wl='-Wl,'
8754 ;;
8755 esac
8756 ;;
8757 esac
8758 ;;
8759
8760 newsos6)
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 ;;
8764
8765 *nto* | *qnx*)
8766 # QNX uses GNU C++, but need to define -shared option too, otherwise
8767 # it will coredump.
8768 lt_prog_compiler_pic='-fPIC -shared'
8769 ;;
8770
8771 osf3* | osf4* | osf5*)
8772 lt_prog_compiler_wl='-Wl,'
8773 # All OSF/1 code is PIC.
8774 lt_prog_compiler_static='-non_shared'
8775 ;;
8776
8777 rdos*)
8778 lt_prog_compiler_static='-non_shared'
8779 ;;
8780
8781 solaris*)
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-Bstatic'
8784 case $cc_basename in
8785 f77* | f90* | f95*)
8786 lt_prog_compiler_wl='-Qoption ld ';;
8787 *)
8788 lt_prog_compiler_wl='-Wl,';;
8789 esac
8790 ;;
8791
8792 sunos4*)
8793 lt_prog_compiler_wl='-Qoption ld '
8794 lt_prog_compiler_pic='-PIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 ;;
8797
8798 sysv4 | sysv4.2uw2* | sysv4.3*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 ;;
8803
8804 sysv4*MP*)
8805 if test -d /usr/nec ;then
8806 lt_prog_compiler_pic='-Kconform_pic'
8807 lt_prog_compiler_static='-Bstatic'
8808 fi
8809 ;;
8810
8811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-Bstatic'
8815 ;;
8816
8817 unicos*)
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_can_build_shared=no
8820 ;;
8821
8822 uts4*)
8823 lt_prog_compiler_pic='-pic'
8824 lt_prog_compiler_static='-Bstatic'
8825 ;;
8826
8827 *)
8828 lt_prog_compiler_can_build_shared=no
8829 ;;
8830 esac
8831 fi
8832
8833case $host_os in
8834 # For platforms which do not support PIC, -DPIC is meaningless:
8835 *djgpp*)
8836 lt_prog_compiler_pic=
8837 ;;
8838 *)
8839 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8840 ;;
8841esac
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8843$as_echo "$lt_prog_compiler_pic" >&6; }
8844
8845
8846
8847
8848
8849
8850#
8851# Check to make sure the PIC flag actually works.
8852#
8853if test -n "$lt_prog_compiler_pic"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8855$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8856if ${lt_cv_prog_compiler_pic_works+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858else
8859 lt_cv_prog_compiler_pic_works=no
8860 ac_outfile=conftest.$ac_objext
8861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8862 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8863 # Insert the option either (1) after the last *FLAGS variable, or
8864 # (2) before a word containing "conftest.", or (3) at the end.
8865 # Note that $ac_compile itself does not contain backslashes and begins
8866 # with a dollar sign (not a hyphen), so the echo should work correctly.
8867 # The option is referenced via a variable to avoid confusing sed.
8868 lt_compile=`echo "$ac_compile" | $SED \
8869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8871 -e 's:$: $lt_compiler_flag:'`
8872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8873 (eval "$lt_compile" 2>conftest.err)
8874 ac_status=$?
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 if (exit $ac_status) && test -s "$ac_outfile"; then
8878 # The compiler can only warn and ignore the option if not recognized
8879 # So say no if there are warnings other than the usual output.
8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8883 lt_cv_prog_compiler_pic_works=yes
8884 fi
8885 fi
8886 $RM conftest*
8887
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8890$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8891
8892if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8893 case $lt_prog_compiler_pic in
8894 "" | " "*) ;;
8895 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8896 esac
8897else
8898 lt_prog_compiler_pic=
8899 lt_prog_compiler_can_build_shared=no
8900fi
8901
8902fi
8903
8904
8905
8906
8907
8908
8909#
8910# Check to make sure the static flag actually works.
8911#
8912wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8914$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8915if ${lt_cv_prog_compiler_static_works+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918 lt_cv_prog_compiler_static_works=no
8919 save_LDFLAGS="$LDFLAGS"
8920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8923 # The linker can only warn and ignore the option if not recognized
8924 # So say no if there are warnings
8925 if test -s conftest.err; then
8926 # Append any errors to the config.log.
8927 cat conftest.err 1>&5
8928 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8930 if diff conftest.exp conftest.er2 >/dev/null; then
8931 lt_cv_prog_compiler_static_works=yes
8932 fi
8933 else
8934 lt_cv_prog_compiler_static_works=yes
8935 fi
8936 fi
8937 $RM -r conftest*
8938 LDFLAGS="$save_LDFLAGS"
8939
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8942$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8943
8944if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8945 :
8946else
8947 lt_prog_compiler_static=
8948fi
8949
8950
8951
8952
8953
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8958if ${lt_cv_prog_compiler_c_o+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960else
8961 lt_cv_prog_compiler_c_o=no
8962 $RM -r conftest 2>/dev/null
8963 mkdir conftest
8964 cd conftest
8965 mkdir out
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967
8968 lt_compiler_flag="-o out/conftest2.$ac_objext"
8969 # Insert the option either (1) after the last *FLAGS variable, or
8970 # (2) before a word containing "conftest.", or (3) at the end.
8971 # Note that $ac_compile itself does not contain backslashes and begins
8972 # with a dollar sign (not a hyphen), so the echo should work correctly.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>out/conftest.err)
8979 ac_status=$?
8980 cat out/conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8983 then
8984 # The compiler can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8989 lt_cv_prog_compiler_c_o=yes
8990 fi
8991 fi
8992 chmod u+w . 2>&5
8993 $RM conftest*
8994 # SGI C++ compiler will create directory out/ii_files/ for
8995 # template instantiation
8996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8997 $RM out/* && rmdir out
8998 cd ..
8999 $RM -r conftest
9000 $RM conftest*
9001
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9005
9006
9007
9008
9009
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9012$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9013if ${lt_cv_prog_compiler_c_o+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015else
9016 lt_cv_prog_compiler_c_o=no
9017 $RM -r conftest 2>/dev/null
9018 mkdir conftest
9019 cd conftest
9020 mkdir out
9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9022
9023 lt_compiler_flag="-o out/conftest2.$ac_objext"
9024 # Insert the option either (1) after the last *FLAGS variable, or
9025 # (2) before a word containing "conftest.", or (3) at the end.
9026 # Note that $ac_compile itself does not contain backslashes and begins
9027 # with a dollar sign (not a hyphen), so the echo should work correctly.
9028 lt_compile=`echo "$ac_compile" | $SED \
9029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9031 -e 's:$: $lt_compiler_flag:'`
9032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9033 (eval "$lt_compile" 2>out/conftest.err)
9034 ac_status=$?
9035 cat out/conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9038 then
9039 # The compiler can only warn and ignore the option if not recognized
9040 # So say no if there are warnings
9041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_c_o=yes
9045 fi
9046 fi
9047 chmod u+w . 2>&5
9048 $RM conftest*
9049 # SGI C++ compiler will create directory out/ii_files/ for
9050 # template instantiation
9051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9052 $RM out/* && rmdir out
9053 cd ..
9054 $RM -r conftest
9055 $RM conftest*
9056
9057fi
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9059$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9060
9061
9062
9063
9064hard_links="nottested"
9065if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9066 # do not overwrite the value of need_locks provided by the user
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9068$as_echo_n "checking if we can lock with hard links... " >&6; }
9069 hard_links=yes
9070 $RM conftest*
9071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9072 touch conftest.a
9073 ln conftest.a conftest.b 2>&5 || hard_links=no
9074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9076$as_echo "$hard_links" >&6; }
9077 if test "$hard_links" = no; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9079$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9080 need_locks=warn
9081 fi
9082else
9083 need_locks=no
9084fi
9085
9086
9087
9088
9089
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9092$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9093
9094 runpath_var=
9095 allow_undefined_flag=
9096 always_export_symbols=no
9097 archive_cmds=
9098 archive_expsym_cmds=
9099 compiler_needs_object=no
9100 enable_shared_with_static_runtimes=no
9101 export_dynamic_flag_spec=
9102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9103 hardcode_automatic=no
9104 hardcode_direct=no
9105 hardcode_direct_absolute=no
9106 hardcode_libdir_flag_spec=
9107 hardcode_libdir_flag_spec_ld=
9108 hardcode_libdir_separator=
9109 hardcode_minus_L=no
9110 hardcode_shlibpath_var=unsupported
9111 inherit_rpath=no
9112 link_all_deplibs=unknown
9113 module_cmds=
9114 module_expsym_cmds=
9115 old_archive_from_new_cmds=
9116 old_archive_from_expsyms_cmds=
9117 thread_safe_flag_spec=
9118 whole_archive_flag_spec=
9119 # include_expsyms should be a list of space-separated symbols to be *always*
9120 # included in the symbol list
9121 include_expsyms=
9122 # exclude_expsyms can be an extended regexp of symbols to exclude
9123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9125 # as well as any symbol that contains `d'.
9126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9128 # platforms (ab)use it in PIC code, but their linkers get confused if
9129 # the symbol is explicitly referenced. Since portable code cannot
9130 # rely on this symbol name, it's probably fine to never include it in
9131 # preloaded symbol tables.
9132 # Exclude shared library initialization/finalization symbols.
9133 extract_expsyms_cmds=
9134
9135 case $host_os in
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 if test "$GCC" != yes; then
9141 with_gnu_ld=no
9142 fi
9143 ;;
9144 interix*)
9145 # we just hope/assume this is gcc and not c89 (= MSVC++)
9146 with_gnu_ld=yes
9147 ;;
9148 openbsd*)
9149 with_gnu_ld=no
9150 ;;
9151 esac
9152
9153 ld_shlibs=yes
9154
9155 # On some targets, GNU ld is compatible enough with the native linker
9156 # that we're better off using the native interface for both.
9157 lt_use_gnu_ld_interface=no
9158 if test "$with_gnu_ld" = yes; then
9159 case $host_os in
9160 aix*)
9161 # The AIX port of GNU ld has always aspired to compatibility
9162 # with the native linker. However, as the warning in the GNU ld
9163 # block says, versions before 2.19.5* couldn't really create working
9164 # shared libraries, regardless of the interface used.
9165 case `$LD -v 2>&1` in
9166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9169 *)
9170 lt_use_gnu_ld_interface=yes
9171 ;;
9172 esac
9173 ;;
9174 *)
9175 lt_use_gnu_ld_interface=yes
9176 ;;
9177 esac
9178 fi
9179
9180 if test "$lt_use_gnu_ld_interface" = yes; then
9181 # If archive_cmds runs LD, not CC, wlarc should be empty
9182 wlarc='${wl}'
9183
9184 # Set some defaults for GNU ld with shared library support. These
9185 # are reset later if shared libraries are not supported. Putting them
9186 # here allows them to be overridden if necessary.
9187 runpath_var=LD_RUN_PATH
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 export_dynamic_flag_spec='${wl}--export-dynamic'
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9193 else
9194 whole_archive_flag_spec=
9195 fi
9196 supports_anon_versioning=no
9197 case `$LD -v 2>&1` in
9198 *GNU\ gold*) supports_anon_versioning=yes ;;
9199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9202 *\ 2.11.*) ;; # other 2.11 versions
9203 *) supports_anon_versioning=yes ;;
9204 esac
9205
9206 # See if GNU ld supports shared libraries.
9207 case $host_os in
9208 aix[3-9]*)
9209 # On AIX/PPC, the GNU linker is very broken
9210 if test "$host_cpu" != ia64; then
9211 ld_shlibs=no
9212 cat <<_LT_EOF 1>&2
9213
9214*** Warning: the GNU linker, at least up to release 2.19, is reported
9215*** to be unable to reliably create shared libraries on AIX.
9216*** Therefore, libtool is disabling shared libraries support. If you
9217*** really care for shared libraries, you may want to install binutils
9218*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9219*** You will then need to restart the configuration process.
9220
9221_LT_EOF
9222 fi
9223 ;;
9224
9225 amigaos*)
9226 case $host_cpu in
9227 powerpc)
9228 # see comment about AmigaOS4 .so support
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds=''
9231 ;;
9232 m68k)
9233 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)'
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9236 ;;
9237 esac
9238 ;;
9239
9240 beos*)
9241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9242 allow_undefined_flag=unsupported
9243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9244 # support --undefined. This deserves some investigation. FIXME
9245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 cygwin* | mingw* | pw32* | cegcc*)
9252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253 # as there is no search path for DLLs.
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 export_dynamic_flag_spec='${wl}--export-all-symbols'
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=no
9258 enable_shared_with_static_runtimes=yes
9259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9260
9261 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9263 # If the export-symbols file already is a .def file (1st line
9264 # is EXPORTS), use it as is; otherwise, prepend...
9265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9266 cp $export_symbols $output_objdir/$soname.def;
9267 else
9268 echo EXPORTS > $output_objdir/$soname.def;
9269 cat $export_symbols >> $output_objdir/$soname.def;
9270 fi~
9271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9272 else
9273 ld_shlibs=no
9274 fi
9275 ;;
9276
9277 haiku*)
9278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279 link_all_deplibs=yes
9280 ;;
9281
9282 interix[3-9]*)
9283 hardcode_direct=no
9284 hardcode_shlibpath_var=no
9285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9286 export_dynamic_flag_spec='${wl}-E'
9287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9288 # Instead, shared libraries are loaded at an image base (0x10000000 by
9289 # default) and relocated if they conflict, which is a slow very memory
9290 # consuming and fragmenting process. To avoid this, we pick a random,
9291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9294 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'
9295 ;;
9296
9297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9298 tmp_diet=no
9299 if test "$host_os" = linux-dietlibc; then
9300 case $cc_basename in
9301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9302 esac
9303 fi
9304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9305 && test "$tmp_diet" = no
9306 then
9307 tmp_addflag=' $pic_flag'
9308 tmp_sharedflag='-shared'
9309 case $cc_basename,$host_cpu in
9310 pgcc*) # Portland Group C compiler
9311 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'
9312 tmp_addflag=' $pic_flag'
9313 ;;
9314 pgf77* | pgf90* | pgf95* | pgfortran*)
9315 # Portland Group f77 and f90 compilers
9316 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'
9317 tmp_addflag=' $pic_flag -Mnomain' ;;
9318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9319 tmp_addflag=' -i_dynamic' ;;
9320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9321 tmp_addflag=' -i_dynamic -nofor_main' ;;
9322 ifc* | ifort*) # Intel Fortran compiler
9323 tmp_addflag=' -nofor_main' ;;
9324 lf95*) # Lahey Fortran 8.1
9325 whole_archive_flag_spec=
9326 tmp_sharedflag='--shared' ;;
9327 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9328 tmp_sharedflag='-qmkshrobj'
9329 tmp_addflag= ;;
9330 nvcc*) # Cuda Compiler Driver 2.2
9331 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'
9332 compiler_needs_object=yes
9333 ;;
9334 esac
9335 case `$CC -V 2>&1 | sed 5q` in
9336 *Sun\ C*) # Sun C 5.9
9337 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'
9338 compiler_needs_object=yes
9339 tmp_sharedflag='-G' ;;
9340 *Sun\ F*) # Sun Fortran 8.3
9341 tmp_sharedflag='-G' ;;
9342 esac
9343 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344
9345 if test "x$supports_anon_versioning" = xyes; then
9346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9348 echo "local: *; };" >> $output_objdir/$libname.ver~
9349 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9350 fi
9351
9352 case $cc_basename in
9353 xlf* | bgf* | bgxlf* | mpixlf*)
9354 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9356 hardcode_libdir_flag_spec=
9357 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9358 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9359 if test "x$supports_anon_versioning" = xyes; then
9360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362 echo "local: *; };" >> $output_objdir/$libname.ver~
9363 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9364 fi
9365 ;;
9366 esac
9367 else
9368 ld_shlibs=no
9369 fi
9370 ;;
9371
9372 netbsd*)
9373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9375 wlarc=
9376 else
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 fi
9380 ;;
9381
9382 solaris*)
9383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9386
9387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9388*** create shared libraries on Solaris systems. Therefore, libtool
9389*** is disabling shared libraries support. We urge you to upgrade GNU
9390*** binutils to release 2.9.1 or newer. Another option is to modify
9391*** your PATH or compiler configuration so that the native linker is
9392*** used, and then restart.
9393
9394_LT_EOF
9395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 else
9399 ld_shlibs=no
9400 fi
9401 ;;
9402
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9404 case `$LD -v 2>&1` in
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9406 ld_shlibs=no
9407 cat <<_LT_EOF 1>&2
9408
9409*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9410*** reliably create shared libraries on SCO systems. Therefore, libtool
9411*** is disabling shared libraries support. We urge you to upgrade GNU
9412*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9413*** your PATH or compiler configuration so that the native linker is
9414*** used, and then restart.
9415
9416_LT_EOF
9417 ;;
9418 *)
9419 # For security reasons, it is highly recommended that you always
9420 # use absolute paths for naming shared libraries, and exclude the
9421 # DT_RUNPATH tag from executables and libraries. But doing so
9422 # requires that you compile everything twice, which is a pain.
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431 esac
9432 ;;
9433
9434 sunos4*)
9435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 wlarc=
9437 hardcode_direct=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 *)
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 else
9446 ld_shlibs=no
9447 fi
9448 ;;
9449 esac
9450
9451 if test "$ld_shlibs" = no; then
9452 runpath_var=
9453 hardcode_libdir_flag_spec=
9454 export_dynamic_flag_spec=
9455 whole_archive_flag_spec=
9456 fi
9457 else
9458 # PORTME fill in a description of your system's linker (not GNU ld)
9459 case $host_os in
9460 aix3*)
9461 allow_undefined_flag=unsupported
9462 always_export_symbols=yes
9463 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'
9464 # Note: this linker hardcodes the directories in LIBPATH if there
9465 # are no directories specified by -L.
9466 hardcode_minus_L=yes
9467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9468 # Neither direct hardcoding nor static linking is supported with a
9469 # broken collect2.
9470 hardcode_direct=unsupported
9471 fi
9472 ;;
9473
9474 aix[4-9]*)
9475 if test "$host_cpu" = ia64; then
9476 # On IA64, the linker does run time linking by default, so we don't
9477 # have to do anything special.
9478 aix_use_runtimelinking=no
9479 exp_sym_flag='-Bexport'
9480 no_entry_flag=""
9481 else
9482 # If we're using GNU nm, then we don't want the "-C" option.
9483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9484 # Also, AIX nm treats weak defined symbols like other global
9485 # defined symbols, whereas GNU nm marks them as "W".
9486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9487 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'
9488 else
9489 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'
9490 fi
9491 aix_use_runtimelinking=no
9492
9493 # Test if we are trying to use run time linking or normal
9494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9495 # need to do runtime linking.
9496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9497 for ld_flag in $LDFLAGS; do
9498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9499 aix_use_runtimelinking=yes
9500 break
9501 fi
9502 done
9503 ;;
9504 esac
9505
9506 exp_sym_flag='-bexport'
9507 no_entry_flag='-bnoentry'
9508 fi
9509
9510 # When large executables or shared objects are built, AIX ld can
9511 # have problems creating the table of contents. If linking a library
9512 # or program results in "error TOC overflow" add -mminimal-toc to
9513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9515
9516 archive_cmds=''
9517 hardcode_direct=yes
9518 hardcode_direct_absolute=yes
9519 hardcode_libdir_separator=':'
9520 link_all_deplibs=yes
9521 file_list_spec='${wl}-f,'
9522
9523 if test "$GCC" = yes; then
9524 case $host_os in aix4.[012]|aix4.[012].*)
9525 # We only want to do this on AIX 4.2 and lower, the check
9526 # below for broken collect2 doesn't work under 4.3+
9527 collect2name=`${CC} -print-prog-name=collect2`
9528 if test -f "$collect2name" &&
9529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9530 then
9531 # We have reworked collect2
9532 :
9533 else
9534 # We have old collect2
9535 hardcode_direct=unsupported
9536 # It fails to find uninstalled libraries when the uninstalled
9537 # path is not listed in the libpath. Setting hardcode_minus_L
9538 # to unsupported forces relinking
9539 hardcode_minus_L=yes
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_libdir_separator=
9542 fi
9543 ;;
9544 esac
9545 shared_flag='-shared'
9546 if test "$aix_use_runtimelinking" = yes; then
9547 shared_flag="$shared_flag "'${wl}-G'
9548 fi
9549 else
9550 # not using gcc
9551 if test "$host_cpu" = ia64; then
9552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9553 # chokes on -Wl,-G. The following line is correct:
9554 shared_flag='-G'
9555 else
9556 if test "$aix_use_runtimelinking" = yes; then
9557 shared_flag='${wl}-G'
9558 else
9559 shared_flag='${wl}-bM:SRE'
9560 fi
9561 fi
9562 fi
9563
9564 export_dynamic_flag_spec='${wl}-bexpall'
9565 # It seems that -bexpall does not export symbols beginning with
9566 # underscore (_), so it is better to generate a list of symbols to export.
9567 always_export_symbols=yes
9568 if test "$aix_use_runtimelinking" = yes; then
9569 # Warning - without using the other runtime loading flags (-brtl),
9570 # -berok will link without error, but may produce a broken library.
9571 allow_undefined_flag='-berok'
9572 # Determine the default libpath from the value encoded in an
9573 # empty executable.
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h. */
9576
9577int
9578main ()
9579{
9580
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_link "$LINENO"; then :
9586
9587lt_aix_libpath_sed='
9588 /Import File Strings/,/^$/ {
9589 /^0/ {
9590 s/^0 *\(.*\)$/\1/
9591 p
9592 }
9593 }'
9594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9595# Check for a 64-bit object if we didn't find anything.
9596if test -z "$aix_libpath"; then
9597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598fi
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9603
9604 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9605 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"
9606 else
9607 if test "$host_cpu" = ia64; then
9608 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9609 allow_undefined_flag="-z nodefs"
9610 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"
9611 else
9612 # Determine the default libpath from the value encoded in an
9613 # empty executable.
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h. */
9616
9617int
9618main ()
9619{
9620
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625if ac_fn_c_try_link "$LINENO"; then :
9626
9627lt_aix_libpath_sed='
9628 /Import File Strings/,/^$/ {
9629 /^0/ {
9630 s/^0 *\(.*\)$/\1/
9631 p
9632 }
9633 }'
9634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635# Check for a 64-bit object if we didn't find anything.
9636if test -z "$aix_libpath"; then
9637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638fi
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9643
9644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645 # Warning - without using the other run time loading flags,
9646 # -berok will link without error, but may produce a broken library.
9647 no_undefined_flag=' ${wl}-bernotok'
9648 allow_undefined_flag=' ${wl}-berok'
9649 if test "$with_gnu_ld" = yes; then
9650 # We only use this code for GNU lds that support --whole-archive.
9651 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9652 else
9653 # Exported symbols can be pulled into shared objects from archives
9654 whole_archive_flag_spec='$convenience'
9655 fi
9656 archive_cmds_need_lc=yes
9657 # This is similar to how AIX traditionally builds its shared libraries.
9658 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'
9659 fi
9660 fi
9661 ;;
9662
9663 amigaos*)
9664 case $host_cpu in
9665 powerpc)
9666 # see comment about AmigaOS4 .so support
9667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9668 archive_expsym_cmds=''
9669 ;;
9670 m68k)
9671 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)'
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_minus_L=yes
9674 ;;
9675 esac
9676 ;;
9677
9678 bsdi[45]*)
9679 export_dynamic_flag_spec=-rdynamic
9680 ;;
9681
9682 cygwin* | mingw* | pw32* | cegcc*)
9683 # When not using gcc, we currently assume that we are using
9684 # Microsoft Visual C++.
9685 # hardcode_libdir_flag_spec is actually meaningless, as there is
9686 # no search path for DLLs.
9687 hardcode_libdir_flag_spec=' '
9688 allow_undefined_flag=unsupported
9689 # Tell ltmain to make .lib files, not .a files.
9690 libext=lib
9691 # Tell ltmain to make .dll files, not .so files.
9692 shrext_cmds=".dll"
9693 # FIXME: Setting linknames here is a bad hack.
9694 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9695 # The linker will automatically build a .lib file if we build a DLL.
9696 old_archive_from_new_cmds='true'
9697 # FIXME: Should let the user specify the lib program.
9698 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9699 fix_srcfile_path='`cygpath -w "$srcfile"`'
9700 enable_shared_with_static_runtimes=yes
9701 ;;
9702
9703 darwin* | rhapsody*)
9704
9705
9706 archive_cmds_need_lc=no
9707 hardcode_direct=no
9708 hardcode_automatic=yes
9709 hardcode_shlibpath_var=unsupported
9710 if test "$lt_cv_ld_force_load" = "yes"; then
9711 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\"`'
9712 else
9713 whole_archive_flag_spec=''
9714 fi
9715 link_all_deplibs=yes
9716 allow_undefined_flag="$_lt_dar_allow_undefined"
9717 case $cc_basename in
9718 ifort*) _lt_dar_can_shared=yes ;;
9719 *) _lt_dar_can_shared=$GCC ;;
9720 esac
9721 if test "$_lt_dar_can_shared" = "yes"; then
9722 output_verbose_link_cmd=func_echo_all
9723 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9724 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9725 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9726 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}"
9727
9728 else
9729 ld_shlibs=no
9730 fi
9731
9732 ;;
9733
9734 dgux*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9741 # support. Future versions do this automatically, but an explicit c++rt0.o
9742 # does not break anything, and helps significantly (at the cost of a little
9743 # extra space).
9744 freebsd2.2*)
9745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9746 hardcode_libdir_flag_spec='-R$libdir'
9747 hardcode_direct=yes
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9752 freebsd2.*)
9753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=yes
9755 hardcode_minus_L=yes
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9760 freebsd* | dragonfly*)
9761 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9762 hardcode_libdir_flag_spec='-R$libdir'
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 hpux9*)
9768 if test "$GCC" = yes; then
9769 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'
9770 else
9771 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'
9772 fi
9773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_separator=:
9775 hardcode_direct=yes
9776
9777 # hardcode_minus_L: Not really in the search PATH,
9778 # but as the default location of the library.
9779 hardcode_minus_L=yes
9780 export_dynamic_flag_spec='${wl}-E'
9781 ;;
9782
9783 hpux10*)
9784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9786 else
9787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9788 fi
9789 if test "$with_gnu_ld" = no; then
9790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9791 hardcode_libdir_flag_spec_ld='+b $libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9794 hardcode_direct_absolute=yes
9795 export_dynamic_flag_spec='${wl}-E'
9796 # hardcode_minus_L: Not really in the search PATH,
9797 # but as the default location of the library.
9798 hardcode_minus_L=yes
9799 fi
9800 ;;
9801
9802 hpux11*)
9803 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9804 case $host_cpu in
9805 hppa*64*)
9806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 ia64*)
9809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9810 ;;
9811 *)
9812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 esac
9815 else
9816 case $host_cpu in
9817 hppa*64*)
9818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 ia64*)
9821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9822 ;;
9823 *)
9824
9825 # Older versions of the 11.00 compiler do not understand -b yet
9826 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9828$as_echo_n "checking if $CC understands -b... " >&6; }
9829if ${lt_cv_prog_compiler__b+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831else
9832 lt_cv_prog_compiler__b=no
9833 save_LDFLAGS="$LDFLAGS"
9834 LDFLAGS="$LDFLAGS -b"
9835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9837 # The linker can only warn and ignore the option if not recognized
9838 # So say no if there are warnings
9839 if test -s conftest.err; then
9840 # Append any errors to the config.log.
9841 cat conftest.err 1>&5
9842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9844 if diff conftest.exp conftest.er2 >/dev/null; then
9845 lt_cv_prog_compiler__b=yes
9846 fi
9847 else
9848 lt_cv_prog_compiler__b=yes
9849 fi
9850 fi
9851 $RM -r conftest*
9852 LDFLAGS="$save_LDFLAGS"
9853
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9856$as_echo "$lt_cv_prog_compiler__b" >&6; }
9857
9858if test x"$lt_cv_prog_compiler__b" = xyes; then
9859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860else
9861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862fi
9863
9864 ;;
9865 esac
9866 fi
9867 if test "$with_gnu_ld" = no; then
9868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9869 hardcode_libdir_separator=:
9870
9871 case $host_cpu in
9872 hppa*64*|ia64*)
9873 hardcode_direct=no
9874 hardcode_shlibpath_var=no
9875 ;;
9876 *)
9877 hardcode_direct=yes
9878 hardcode_direct_absolute=yes
9879 export_dynamic_flag_spec='${wl}-E'
9880
9881 # hardcode_minus_L: Not really in the search PATH,
9882 # but as the default location of the library.
9883 hardcode_minus_L=yes
9884 ;;
9885 esac
9886 fi
9887 ;;
9888
9889 irix5* | irix6* | nonstopux*)
9890 if test "$GCC" = yes; then
9891 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'
9892 # Try to use the -exported_symbol ld option, if it does not
9893 # work, assume that -exports_file does not work either and
9894 # implicitly export all symbols.
9895 save_LDFLAGS="$LDFLAGS"
9896 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
9899int foo(void) {}
9900_ACEOF
9901if ac_fn_c_try_link "$LINENO"; then :
9902 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'
9903
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LDFLAGS="$save_LDFLAGS"
9908 else
9909 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'
9910 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'
9911 fi
9912 archive_cmds_need_lc='no'
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914 hardcode_libdir_separator=:
9915 inherit_rpath=yes
9916 link_all_deplibs=yes
9917 ;;
9918
9919 netbsd*)
9920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9922 else
9923 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9924 fi
9925 hardcode_libdir_flag_spec='-R$libdir'
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 ;;
9929
9930 newsos6)
9931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9932 hardcode_direct=yes
9933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 hardcode_shlibpath_var=no
9936 ;;
9937
9938 *nto* | *qnx*)
9939 ;;
9940
9941 openbsd*)
9942 if test -f /usr/libexec/ld.so; then
9943 hardcode_direct=yes
9944 hardcode_shlibpath_var=no
9945 hardcode_direct_absolute=yes
9946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9950 export_dynamic_flag_spec='${wl}-E'
9951 else
9952 case $host_os in
9953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 ;;
9957 *)
9958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9960 ;;
9961 esac
9962 fi
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967
9968 os2*)
9969 hardcode_libdir_flag_spec='-L$libdir'
9970 hardcode_minus_L=yes
9971 allow_undefined_flag=unsupported
9972 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'
9973 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9974 ;;
9975
9976 osf3*)
9977 if test "$GCC" = yes; then
9978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9979 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'
9980 else
9981 allow_undefined_flag=' -expect_unresolved \*'
9982 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'
9983 fi
9984 archive_cmds_need_lc='no'
9985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9986 hardcode_libdir_separator=:
9987 ;;
9988
9989 osf4* | osf5*) # as osf3* with the addition of -msym flag
9990 if test "$GCC" = yes; then
9991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9992 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'
9993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9994 else
9995 allow_undefined_flag=' -expect_unresolved \*'
9996 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'
9997 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~
9998 $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'
9999
10000 # Both c and cxx compiler support -rpath directly
10001 hardcode_libdir_flag_spec='-rpath $libdir'
10002 fi
10003 archive_cmds_need_lc='no'
10004 hardcode_libdir_separator=:
10005 ;;
10006
10007 solaris*)
10008 no_undefined_flag=' -z defs'
10009 if test "$GCC" = yes; then
10010 wlarc='${wl}'
10011 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10014 else
10015 case `$CC -V 2>&1` in
10016 *"Compilers 5.0"*)
10017 wlarc=''
10018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10021 ;;
10022 *)
10023 wlarc='${wl}'
10024 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10026 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10027 ;;
10028 esac
10029 fi
10030 hardcode_libdir_flag_spec='-R$libdir'
10031 hardcode_shlibpath_var=no
10032 case $host_os in
10033 solaris2.[0-5] | solaris2.[0-5].*) ;;
10034 *)
10035 # The compiler driver will combine and reorder linker options,
10036 # but understands `-z linker_flag'. GCC discards it without `$wl',
10037 # but is careful enough not to reorder.
10038 # Supported since Solaris 2.6 (maybe 2.5.1?)
10039 if test "$GCC" = yes; then
10040 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10041 else
10042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10043 fi
10044 ;;
10045 esac
10046 link_all_deplibs=yes
10047 ;;
10048
10049 sunos4*)
10050 if test "x$host_vendor" = xsequent; then
10051 # Use $CC to link under sequent, because it throws in some extra .o
10052 # files that make .init and .fini sections work.
10053 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10054 else
10055 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10056 fi
10057 hardcode_libdir_flag_spec='-L$libdir'
10058 hardcode_direct=yes
10059 hardcode_minus_L=yes
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 sysv4)
10064 case $host_vendor in
10065 sni)
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_direct=yes # is this really true???
10068 ;;
10069 siemens)
10070 ## LD is ld it makes a PLAMLIB
10071 ## CC just makes a GrossModule.
10072 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10073 reload_cmds='$CC -r -o $output$reload_objs'
10074 hardcode_direct=no
10075 ;;
10076 motorola)
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10079 ;;
10080 esac
10081 runpath_var='LD_RUN_PATH'
10082 hardcode_shlibpath_var=no
10083 ;;
10084
10085 sysv4.3*)
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_shlibpath_var=no
10088 export_dynamic_flag_spec='-Bexport'
10089 ;;
10090
10091 sysv4*MP*)
10092 if test -d /usr/nec; then
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_shlibpath_var=no
10095 runpath_var=LD_RUN_PATH
10096 hardcode_runpath_var=yes
10097 ld_shlibs=yes
10098 fi
10099 ;;
10100
10101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10102 no_undefined_flag='${wl}-z,text'
10103 archive_cmds_need_lc=no
10104 hardcode_shlibpath_var=no
10105 runpath_var='LD_RUN_PATH'
10106
10107 if test "$GCC" = yes; then
10108 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 else
10111 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 fi
10114 ;;
10115
10116 sysv5* | sco3.2v5* | sco5v6*)
10117 # Note: We can NOT use -z defs as we might desire, because we do not
10118 # link with -lc, and that would cause any symbols used from libc to
10119 # always be unresolved, which means just about no library would
10120 # ever link correctly. If we're not using GNU ld we use -z text
10121 # though, which does catch some bad symbols but isn't as heavy-handed
10122 # as -z defs.
10123 no_undefined_flag='${wl}-z,text'
10124 allow_undefined_flag='${wl}-z,nodefs'
10125 archive_cmds_need_lc=no
10126 hardcode_shlibpath_var=no
10127 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10128 hardcode_libdir_separator=':'
10129 link_all_deplibs=yes
10130 export_dynamic_flag_spec='${wl}-Bexport'
10131 runpath_var='LD_RUN_PATH'
10132
10133 if test "$GCC" = yes; then
10134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 fi
10140 ;;
10141
10142 uts4*)
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_libdir_flag_spec='-L$libdir'
10145 hardcode_shlibpath_var=no
10146 ;;
10147
10148 *)
10149 ld_shlibs=no
10150 ;;
10151 esac
10152
10153 if test x$host_vendor = xsni; then
10154 case $host in
10155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10156 export_dynamic_flag_spec='${wl}-Blargedynsym'
10157 ;;
10158 esac
10159 fi
10160 fi
10161
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10163$as_echo "$ld_shlibs" >&6; }
10164test "$ld_shlibs" = no && can_build_shared=no
10165
10166with_gnu_ld=$with_gnu_ld
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182#
10183# Do we need to explicitly link libc?
10184#
10185case "x$archive_cmds_need_lc" in
10186x|xyes)
10187 # Assume -lc should be added
10188 archive_cmds_need_lc=yes
10189
10190 if test "$enable_shared" = yes && test "$GCC" = yes; then
10191 case $archive_cmds in
10192 *'~'*)
10193 # FIXME: we may have to deal with multi-command sequences.
10194 ;;
10195 '$CC '*)
10196 # Test whether the compiler implicitly links with -lc since on some
10197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10198 # to ld, don't add -lc before -lgcc.
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10200$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10201if ${lt_cv_archive_cmds_need_lc+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203else
10204 $RM conftest*
10205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10206
10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10208 (eval $ac_compile) 2>&5
10209 ac_status=$?
10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10211 test $ac_status = 0; } 2>conftest.err; then
10212 soname=conftest
10213 lib=conftest
10214 libobjs=conftest.$ac_objext
10215 deplibs=
10216 wl=$lt_prog_compiler_wl
10217 pic_flag=$lt_prog_compiler_pic
10218 compiler_flags=-v
10219 linker_flags=-v
10220 verstring=
10221 output_objdir=.
10222 libname=conftest
10223 lt_save_allow_undefined_flag=$allow_undefined_flag
10224 allow_undefined_flag=
10225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10226 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10227 ac_status=$?
10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229 test $ac_status = 0; }
10230 then
10231 lt_cv_archive_cmds_need_lc=no
10232 else
10233 lt_cv_archive_cmds_need_lc=yes
10234 fi
10235 allow_undefined_flag=$lt_save_allow_undefined_flag
10236 else
10237 cat conftest.err 1>&5
10238 fi
10239 $RM conftest*
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10243$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10244 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10245 ;;
10246 esac
10247 fi
10248 ;;
10249esac
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10408$as_echo_n "checking dynamic linker characteristics... " >&6; }
10409
10410if test "$GCC" = yes; then
10411 case $host_os in
10412 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10413 *) lt_awk_arg="/^libraries:/" ;;
10414 esac
10415 case $host_os in
10416 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10417 *) lt_sed_strip_eq="s,=/,/,g" ;;
10418 esac
10419 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10420 case $lt_search_path_spec in
10421 *\;*)
10422 # if the path contains ";" then we assume it to be the separator
10423 # otherwise default to the standard path separator (i.e. ":") - it is
10424 # assumed that no part of a normal pathname contains ";" but that should
10425 # okay in the real world where ";" in dirpaths is itself problematic.
10426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10427 ;;
10428 *)
10429 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10430 ;;
10431 esac
10432 # Ok, now we have the path, separated by spaces, we can step through it
10433 # and add multilib dir if necessary.
10434 lt_tmp_lt_search_path_spec=
10435 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10436 for lt_sys_path in $lt_search_path_spec; do
10437 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10438 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10439 else
10440 test -d "$lt_sys_path" && \
10441 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10442 fi
10443 done
10444 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10445BEGIN {RS=" "; FS="/|\n";} {
10446 lt_foo="";
10447 lt_count=0;
10448 for (lt_i = NF; lt_i > 0; lt_i--) {
10449 if ($lt_i != "" && $lt_i != ".") {
10450 if ($lt_i == "..") {
10451 lt_count++;
10452 } else {
10453 if (lt_count == 0) {
10454 lt_foo="/" $lt_i lt_foo;
10455 } else {
10456 lt_count--;
10457 }
10458 }
10459 }
10460 }
10461 if (lt_foo != "") { lt_freq[lt_foo]++; }
10462 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10463}'`
10464 # AWK program above erroneously prepends '/' to C:/dos/paths
10465 # for these hosts.
10466 case $host_os in
10467 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10468 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10469 esac
10470 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10471else
10472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10473fi
10474library_names_spec=
10475libname_spec='lib$name'
10476soname_spec=
10477shrext_cmds=".so"
10478postinstall_cmds=
10479postuninstall_cmds=
10480finish_cmds=
10481finish_eval=
10482shlibpath_var=
10483shlibpath_overrides_runpath=unknown
10484version_type=none
10485dynamic_linker="$host_os ld.so"
10486sys_lib_dlsearch_path_spec="/lib /usr/lib"
10487need_lib_prefix=unknown
10488hardcode_into_libs=no
10489
10490# when you set need_version to no, make sure it does not cause -set_version
10491# flags to be left without arguments
10492need_version=unknown
10493
10494case $host_os in
10495aix3*)
10496 version_type=linux
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10498 shlibpath_var=LIBPATH
10499
10500 # AIX 3 has no versioning support, so we append a major version to the name.
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 ;;
10503
10504aix[4-9]*)
10505 version_type=linux
10506 need_lib_prefix=no
10507 need_version=no
10508 hardcode_into_libs=yes
10509 if test "$host_cpu" = ia64; then
10510 # AIX 5 supports IA64
10511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 else
10514 # With GCC up to 2.95.x, collect2 would create an import file
10515 # for dependence libraries. The import file would start with
10516 # the line `#! .'. This would cause the generated library to
10517 # depend on `.', always an invalid library. This was fixed in
10518 # development snapshots of GCC prior to 3.0.
10519 case $host_os in
10520 aix4 | aix4.[01] | aix4.[01].*)
10521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10522 echo ' yes '
10523 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10524 :
10525 else
10526 can_build_shared=no
10527 fi
10528 ;;
10529 esac
10530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10531 # soname into executable. Probably we can add versioning support to
10532 # collect2, so additional links can be useful in future.
10533 if test "$aix_use_runtimelinking" = yes; then
10534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10535 # instead of lib<name>.a to let people know that these are not
10536 # typical AIX shared libraries.
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 else
10539 # We preserve .a as extension for shared libraries through AIX4.2
10540 # and later when we are not doing run time linking.
10541 library_names_spec='${libname}${release}.a $libname.a'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 fi
10544 shlibpath_var=LIBPATH
10545 fi
10546 ;;
10547
10548amigaos*)
10549 case $host_cpu in
10550 powerpc)
10551 # Since July 2007 AmigaOS4 officially supports .so libraries.
10552 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 ;;
10555 m68k)
10556 library_names_spec='$libname.ixlibrary $libname.a'
10557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10558 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'
10559 ;;
10560 esac
10561 ;;
10562
10563beos*)
10564 library_names_spec='${libname}${shared_ext}'
10565 dynamic_linker="$host_os ld.so"
10566 shlibpath_var=LIBRARY_PATH
10567 ;;
10568
10569bsdi[45]*)
10570 version_type=linux
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10578 # the default ld.so.conf also contains /usr/contrib/lib and
10579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10580 # libtool to hard-code these into programs
10581 ;;
10582
10583cygwin* | mingw* | pw32* | cegcc*)
10584 version_type=windows
10585 shrext_cmds=".dll"
10586 need_version=no
10587 need_lib_prefix=no
10588
10589 case $GCC,$host_os in
10590 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10591 library_names_spec='$libname.dll.a'
10592 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10593 postinstall_cmds='base_file=`basename \${file}`~
10594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10595 dldir=$destdir/`dirname \$dlpath`~
10596 test -d \$dldir || mkdir -p \$dldir~
10597 $install_prog $dir/$dlname \$dldir/$dlname~
10598 chmod a+x \$dldir/$dlname~
10599 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10600 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10601 fi'
10602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10603 dlpath=$dir/\$dldll~
10604 $RM \$dlpath'
10605 shlibpath_overrides_runpath=yes
10606
10607 case $host_os in
10608 cygwin*)
10609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10611
10612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10613 ;;
10614 mingw* | cegcc*)
10615 # MinGW DLLs use traditional 'lib' prefix
10616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10617 ;;
10618 pw32*)
10619 # pw32 DLLs use 'pw' prefix rather than 'lib'
10620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10621 ;;
10622 esac
10623 ;;
10624
10625 *)
10626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10627 ;;
10628 esac
10629 dynamic_linker='Win32 ld.exe'
10630 # FIXME: first we should search . and the directory the executable is in
10631 shlibpath_var=PATH
10632 ;;
10633
10634darwin* | rhapsody*)
10635 dynamic_linker="$host_os dyld"
10636 version_type=darwin
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10640 soname_spec='${libname}${release}${major}$shared_ext'
10641 shlibpath_overrides_runpath=yes
10642 shlibpath_var=DYLD_LIBRARY_PATH
10643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10644
10645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10647 ;;
10648
10649dgux*)
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 ;;
10657
10658freebsd* | dragonfly*)
10659 # DragonFly does not have aout. When/if they implement a new
10660 # versioning mechanism, adjust this.
10661 if test -x /usr/bin/objformat; then
10662 objformat=`/usr/bin/objformat`
10663 else
10664 case $host_os in
10665 freebsd[23].*) objformat=aout ;;
10666 *) objformat=elf ;;
10667 esac
10668 fi
10669 version_type=freebsd-$objformat
10670 case $version_type in
10671 freebsd-elf*)
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 need_version=no
10674 need_lib_prefix=no
10675 ;;
10676 freebsd-*)
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10678 need_version=yes
10679 ;;
10680 esac
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_os in
10683 freebsd2.*)
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686 freebsd3.[01]* | freebsdelf3.[01]*)
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 ;;
10690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 ;;
10695 *) # from 4.6 on, and DragonFly
10696 shlibpath_overrides_runpath=yes
10697 hardcode_into_libs=yes
10698 ;;
10699 esac
10700 ;;
10701
10702haiku*)
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 dynamic_linker="$host_os runtime_loader"
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10712 hardcode_into_libs=yes
10713 ;;
10714
10715hpux9* | hpux10* | hpux11*)
10716 # Give a soname corresponding to the major version so that dld.sl refuses to
10717 # link against other versions.
10718 version_type=sunos
10719 need_lib_prefix=no
10720 need_version=no
10721 case $host_cpu in
10722 ia64*)
10723 shrext_cmds='.so'
10724 hardcode_into_libs=yes
10725 dynamic_linker="$host_os dld.so"
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 if test "X$HPUX_IA64_MODE" = X32; then
10731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10732 else
10733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10734 fi
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 hppa*64*)
10738 shrext_cmds='.sl'
10739 hardcode_into_libs=yes
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10747 ;;
10748 *)
10749 shrext_cmds='.sl'
10750 dynamic_linker="$host_os dld.sl"
10751 shlibpath_var=SHLIB_PATH
10752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 ;;
10756 esac
10757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10758 postinstall_cmds='chmod 555 $lib'
10759 # or fails outright, so override atomically:
10760 install_override_mode=555
10761 ;;
10762
10763interix[3-9]*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10773 ;;
10774
10775irix5* | irix6* | nonstopux*)
10776 case $host_os in
10777 nonstopux*) version_type=nonstopux ;;
10778 *)
10779 if test "$lt_cv_prog_gnu_ld" = yes; then
10780 version_type=linux
10781 else
10782 version_type=irix
10783 fi ;;
10784 esac
10785 need_lib_prefix=no
10786 need_version=no
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 case $host_os in
10790 irix5* | nonstopux*)
10791 libsuff= shlibsuff=
10792 ;;
10793 *)
10794 case $LD in # libtool.m4 will add one of these switches to LD
10795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10796 libsuff= shlibsuff= libmagic=32-bit;;
10797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10798 libsuff=32 shlibsuff=N32 libmagic=N32;;
10799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10801 *) libsuff= shlibsuff= libmagic=never-match;;
10802 esac
10803 ;;
10804 esac
10805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10806 shlibpath_overrides_runpath=no
10807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10809 hardcode_into_libs=yes
10810 ;;
10811
10812# No shared lib support for Linux oldld, aout, or coff.
10813linux*oldld* | linux*aout* | linux*coff*)
10814 dynamic_linker=no
10815 ;;
10816
10817# This must be Linux ELF.
10818
10819# uclinux* changes (here and below) have been submitted to the libtool
10820# project, but have not yet been accepted: they are GCC-local changes
10821# for the time being. (See
10822# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10823linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10824 version_type=linux
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=no
10832
10833 # Some binutils ld are patched to set DT_RUNPATH
10834 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836else
10837 lt_cv_shlibpath_overrides_runpath=no
10838 save_LDFLAGS=$LDFLAGS
10839 save_libdir=$libdir
10840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843/* end confdefs.h. */
10844
10845int
10846main ()
10847{
10848
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_link "$LINENO"; then :
10854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10855 lt_cv_shlibpath_overrides_runpath=yes
10856fi
10857fi
10858rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LDFLAGS=$save_LDFLAGS
10861 libdir=$save_libdir
10862
10863fi
10864
10865 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10866
10867 # This implies no fast_install, which is unacceptable.
10868 # Some rework will be needed to allow for fast_install
10869 # before this can be enabled.
10870 hardcode_into_libs=yes
10871
10872 # Append ld.so.conf contents to the search path
10873 if test -f /etc/ld.so.conf; then
10874 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' ' '`
10875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10876 fi
10877
10878 # We used to test for /lib/ld.so.1 and disable shared libraries on
10879 # powerpc, because MkLinux only supported shared libraries with the
10880 # GNU dynamic linker. Since this was broken with cross compilers,
10881 # most powerpc-linux boxes support dynamic linking these days and
10882 # people can always --disable-shared, the test was removed, and we
10883 # assume the GNU/Linux dynamic linker is in use.
10884 dynamic_linker='GNU/Linux ld.so'
10885 ;;
10886
10887netbsd*)
10888 version_type=sunos
10889 need_lib_prefix=no
10890 need_version=no
10891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10894 dynamic_linker='NetBSD (a.out) ld.so'
10895 else
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 dynamic_linker='NetBSD ld.elf_so'
10899 fi
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=yes
10902 hardcode_into_libs=yes
10903 ;;
10904
10905newsos6)
10906 version_type=linux
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 ;;
10911
10912*nto* | *qnx*)
10913 version_type=qnx
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10921 dynamic_linker='ldqnx.so'
10922 ;;
10923
10924openbsd*)
10925 version_type=sunos
10926 sys_lib_dlsearch_path_spec="/usr/lib"
10927 need_lib_prefix=no
10928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10929 case $host_os in
10930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10931 *) need_version=no ;;
10932 esac
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10937 case $host_os in
10938 openbsd2.[89] | openbsd2.[89].*)
10939 shlibpath_overrides_runpath=no
10940 ;;
10941 *)
10942 shlibpath_overrides_runpath=yes
10943 ;;
10944 esac
10945 else
10946 shlibpath_overrides_runpath=yes
10947 fi
10948 ;;
10949
10950os2*)
10951 libname_spec='$name'
10952 shrext_cmds=".dll"
10953 need_lib_prefix=no
10954 library_names_spec='$libname${shared_ext} $libname.a'
10955 dynamic_linker='OS/2 ld.exe'
10956 shlibpath_var=LIBPATH
10957 ;;
10958
10959osf3* | osf4* | osf5*)
10960 version_type=osf
10961 need_lib_prefix=no
10962 need_version=no
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10968 ;;
10969
10970rdos*)
10971 dynamic_linker=no
10972 ;;
10973
10974solaris*)
10975 version_type=linux
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 hardcode_into_libs=yes
10983 # ldd complains unless libraries are executable
10984 postinstall_cmds='chmod +x $lib'
10985 ;;
10986
10987sunos4*)
10988 version_type=sunos
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10990 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 if test "$with_gnu_ld" = yes; then
10994 need_lib_prefix=no
10995 fi
10996 need_version=yes
10997 ;;
10998
10999sysv4 | sysv4.3*)
11000 version_type=linux
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 case $host_vendor in
11005 sni)
11006 shlibpath_overrides_runpath=no
11007 need_lib_prefix=no
11008 runpath_var=LD_RUN_PATH
11009 ;;
11010 siemens)
11011 need_lib_prefix=no
11012 ;;
11013 motorola)
11014 need_lib_prefix=no
11015 need_version=no
11016 shlibpath_overrides_runpath=no
11017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11018 ;;
11019 esac
11020 ;;
11021
11022sysv4*MP*)
11023 if test -d /usr/nec ;then
11024 version_type=linux
11025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11026 soname_spec='$libname${shared_ext}.$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 fi
11029 ;;
11030
11031sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11032 version_type=freebsd-elf
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 hardcode_into_libs=yes
11040 if test "$with_gnu_ld" = yes; then
11041 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11042 else
11043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11044 case $host_os in
11045 sco3.2v5*)
11046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11047 ;;
11048 esac
11049 fi
11050 sys_lib_dlsearch_path_spec='/usr/lib'
11051 ;;
11052
11053tpf*)
11054 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11055 version_type=linux
11056 need_lib_prefix=no
11057 need_version=no
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 hardcode_into_libs=yes
11062 ;;
11063
11064uts4*)
11065 version_type=linux
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 ;;
11070
11071*)
11072 dynamic_linker=no
11073 ;;
11074esac
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11076$as_echo "$dynamic_linker" >&6; }
11077test "$dynamic_linker" = no && can_build_shared=no
11078
11079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11080if test "$GCC" = yes; then
11081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11082fi
11083
11084if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11085 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11086fi
11087if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11088 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11089fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11183$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11184hardcode_action=
11185if test -n "$hardcode_libdir_flag_spec" ||
11186 test -n "$runpath_var" ||
11187 test "X$hardcode_automatic" = "Xyes" ; then
11188
11189 # We can hardcode non-existent directories.
11190 if test "$hardcode_direct" != no &&
11191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11192 # have to relink, otherwise we might link with an installed library
11193 # when we should be linking with a yet-to-be-installed one
11194 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11195 test "$hardcode_minus_L" != no; then
11196 # Linking always hardcodes the temporary library directory.
11197 hardcode_action=relink
11198 else
11199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11200 hardcode_action=immediate
11201 fi
11202else
11203 # We cannot hardcode anything, or else we can only hardcode existing
11204 # directories.
11205 hardcode_action=unsupported
11206fi
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11208$as_echo "$hardcode_action" >&6; }
11209
11210if test "$hardcode_action" = relink ||
11211 test "$inherit_rpath" = yes; then
11212 # Fast installation is not supported
11213 enable_fast_install=no
11214elif test "$shlibpath_overrides_runpath" = yes ||
11215 test "$enable_shared" = no; then
11216 # Fast installation is not necessary
11217 enable_fast_install=needless
11218fi
11219
11220
11221
11222
11223
11224
11225 if test "x$enable_dlopen" != xyes; then
11226 enable_dlopen=unknown
11227 enable_dlopen_self=unknown
11228 enable_dlopen_self_static=unknown
11229else
11230 lt_cv_dlopen=no
11231 lt_cv_dlopen_libs=
11232
11233 case $host_os in
11234 beos*)
11235 lt_cv_dlopen="load_add_on"
11236 lt_cv_dlopen_libs=
11237 lt_cv_dlopen_self=yes
11238 ;;
11239
11240 mingw* | pw32* | cegcc*)
11241 lt_cv_dlopen="LoadLibrary"
11242 lt_cv_dlopen_libs=
11243 ;;
11244
11245 cygwin*)
11246 lt_cv_dlopen="dlopen"
11247 lt_cv_dlopen_libs=
11248 ;;
11249
11250 darwin*)
11251 # if libdl is installed we need to link against it
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11253$as_echo_n "checking for dlopen in -ldl... " >&6; }
11254if ${ac_cv_lib_dl_dlopen+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256else
11257 ac_check_lib_save_LIBS=$LIBS
11258LIBS="-ldl $LIBS"
11259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h. */
11261
11262/* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11265#ifdef __cplusplus
11266extern "C"
11267#endif
11268char dlopen ();
11269int
11270main ()
11271{
11272return dlopen ();
11273 ;
11274 return 0;
11275}
11276_ACEOF
11277if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_lib_dl_dlopen=yes
11279else
11280 ac_cv_lib_dl_dlopen=no
11281fi
11282rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284LIBS=$ac_check_lib_save_LIBS
11285fi
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11287$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11288if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11290else
11291
11292 lt_cv_dlopen="dyld"
11293 lt_cv_dlopen_libs=
11294 lt_cv_dlopen_self=yes
11295
11296fi
11297
11298 ;;
11299
11300 *)
11301 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11302if test "x$ac_cv_func_shl_load" = xyes; then :
11303 lt_cv_dlopen="shl_load"
11304else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11306$as_echo_n "checking for shl_load in -ldld... " >&6; }
11307if ${ac_cv_lib_dld_shl_load+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309else
11310 ac_check_lib_save_LIBS=$LIBS
11311LIBS="-ldld $LIBS"
11312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313/* end confdefs.h. */
11314
11315/* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318#ifdef __cplusplus
11319extern "C"
11320#endif
11321char shl_load ();
11322int
11323main ()
11324{
11325return shl_load ();
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330if ac_fn_c_try_link "$LINENO"; then :
11331 ac_cv_lib_dld_shl_load=yes
11332else
11333 ac_cv_lib_dld_shl_load=no
11334fi
11335rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337LIBS=$ac_check_lib_save_LIBS
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11340$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11341if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11342 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11343else
11344 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11345if test "x$ac_cv_func_dlopen" = xyes; then :
11346 lt_cv_dlopen="dlopen"
11347else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11349$as_echo_n "checking for dlopen in -ldl... " >&6; }
11350if ${ac_cv_lib_dl_dlopen+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352else
11353 ac_check_lib_save_LIBS=$LIBS
11354LIBS="-ldl $LIBS"
11355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356/* end confdefs.h. */
11357
11358/* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361#ifdef __cplusplus
11362extern "C"
11363#endif
11364char dlopen ();
11365int
11366main ()
11367{
11368return dlopen ();
11369 ;
11370 return 0;
11371}
11372_ACEOF
11373if ac_fn_c_try_link "$LINENO"; then :
11374 ac_cv_lib_dl_dlopen=yes
11375else
11376 ac_cv_lib_dl_dlopen=no
11377fi
11378rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11383$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11384if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11386else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11388$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11389if ${ac_cv_lib_svld_dlopen+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391else
11392 ac_check_lib_save_LIBS=$LIBS
11393LIBS="-lsvld $LIBS"
11394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395/* end confdefs.h. */
11396
11397/* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400#ifdef __cplusplus
11401extern "C"
11402#endif
11403char dlopen ();
11404int
11405main ()
11406{
11407return dlopen ();
11408 ;
11409 return 0;
11410}
11411_ACEOF
11412if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_svld_dlopen=yes
11414else
11415 ac_cv_lib_svld_dlopen=no
11416fi
11417rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419LIBS=$ac_check_lib_save_LIBS
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11422$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11423if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11425else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11427$as_echo_n "checking for dld_link in -ldld... " >&6; }
11428if ${ac_cv_lib_dld_dld_link+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430else
11431 ac_check_lib_save_LIBS=$LIBS
11432LIBS="-ldld $LIBS"
11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h. */
11435
11436/* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439#ifdef __cplusplus
11440extern "C"
11441#endif
11442char dld_link ();
11443int
11444main ()
11445{
11446return dld_link ();
11447 ;
11448 return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dld_dld_link=yes
11453else
11454 ac_cv_lib_dld_dld_link=no
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458LIBS=$ac_check_lib_save_LIBS
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11461$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11462if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11464fi
11465
11466
11467fi
11468
11469
11470fi
11471
11472
11473fi
11474
11475
11476fi
11477
11478
11479fi
11480
11481 ;;
11482 esac
11483
11484 if test "x$lt_cv_dlopen" != xno; then
11485 enable_dlopen=yes
11486 else
11487 enable_dlopen=no
11488 fi
11489
11490 case $lt_cv_dlopen in
11491 dlopen)
11492 save_CPPFLAGS="$CPPFLAGS"
11493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11494
11495 save_LDFLAGS="$LDFLAGS"
11496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11497
11498 save_LIBS="$LIBS"
11499 LIBS="$lt_cv_dlopen_libs $LIBS"
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11502$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11503if ${lt_cv_dlopen_self+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505else
11506 if test "$cross_compiling" = yes; then :
11507 lt_cv_dlopen_self=cross
11508else
11509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11510 lt_status=$lt_dlunknown
11511 cat > conftest.$ac_ext <<_LT_EOF
11512#line 11512 "configure"
11513#include "confdefs.h"
11514
11515#if HAVE_DLFCN_H
11516#include <dlfcn.h>
11517#endif
11518
11519#include <stdio.h>
11520
11521#ifdef RTLD_GLOBAL
11522# define LT_DLGLOBAL RTLD_GLOBAL
11523#else
11524# ifdef DL_GLOBAL
11525# define LT_DLGLOBAL DL_GLOBAL
11526# else
11527# define LT_DLGLOBAL 0
11528# endif
11529#endif
11530
11531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532 find out it does not work in some platform. */
11533#ifndef LT_DLLAZY_OR_NOW
11534# ifdef RTLD_LAZY
11535# define LT_DLLAZY_OR_NOW RTLD_LAZY
11536# else
11537# ifdef DL_LAZY
11538# define LT_DLLAZY_OR_NOW DL_LAZY
11539# else
11540# ifdef RTLD_NOW
11541# define LT_DLLAZY_OR_NOW RTLD_NOW
11542# else
11543# ifdef DL_NOW
11544# define LT_DLLAZY_OR_NOW DL_NOW
11545# else
11546# define LT_DLLAZY_OR_NOW 0
11547# endif
11548# endif
11549# endif
11550# endif
11551#endif
11552
11553/* When -fvisbility=hidden is used, assume the code has been annotated
11554 correspondingly for the symbols needed. */
11555#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11556void fnord () __attribute__((visibility("default")));
11557#endif
11558
11559void fnord () { int i=42; }
11560int main ()
11561{
11562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11563 int status = $lt_dlunknown;
11564
11565 if (self)
11566 {
11567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11568 else
11569 {
11570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11571 else puts (dlerror ());
11572 }
11573 /* dlclose (self); */
11574 }
11575 else
11576 puts (dlerror ());
11577
11578 return status;
11579}
11580_LT_EOF
11581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11582 (eval $ac_link) 2>&5
11583 ac_status=$?
11584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11586 (./conftest; exit; ) >&5 2>/dev/null
11587 lt_status=$?
11588 case x$lt_status in
11589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11592 esac
11593 else :
11594 # compilation failed
11595 lt_cv_dlopen_self=no
11596 fi
11597fi
11598rm -fr conftest*
11599
11600
11601fi
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11603$as_echo "$lt_cv_dlopen_self" >&6; }
11604
11605 if test "x$lt_cv_dlopen_self" = xyes; then
11606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11608$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11609if ${lt_cv_dlopen_self_static+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611else
11612 if test "$cross_compiling" = yes; then :
11613 lt_cv_dlopen_self_static=cross
11614else
11615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11616 lt_status=$lt_dlunknown
11617 cat > conftest.$ac_ext <<_LT_EOF
11618#line 11618 "configure"
11619#include "confdefs.h"
11620
11621#if HAVE_DLFCN_H
11622#include <dlfcn.h>
11623#endif
11624
11625#include <stdio.h>
11626
11627#ifdef RTLD_GLOBAL
11628# define LT_DLGLOBAL RTLD_GLOBAL
11629#else
11630# ifdef DL_GLOBAL
11631# define LT_DLGLOBAL DL_GLOBAL
11632# else
11633# define LT_DLGLOBAL 0
11634# endif
11635#endif
11636
11637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11638 find out it does not work in some platform. */
11639#ifndef LT_DLLAZY_OR_NOW
11640# ifdef RTLD_LAZY
11641# define LT_DLLAZY_OR_NOW RTLD_LAZY
11642# else
11643# ifdef DL_LAZY
11644# define LT_DLLAZY_OR_NOW DL_LAZY
11645# else
11646# ifdef RTLD_NOW
11647# define LT_DLLAZY_OR_NOW RTLD_NOW
11648# else
11649# ifdef DL_NOW
11650# define LT_DLLAZY_OR_NOW DL_NOW
11651# else
11652# define LT_DLLAZY_OR_NOW 0
11653# endif
11654# endif
11655# endif
11656# endif
11657#endif
11658
11659/* When -fvisbility=hidden is used, assume the code has been annotated
11660 correspondingly for the symbols needed. */
11661#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11662void fnord () __attribute__((visibility("default")));
11663#endif
11664
11665void fnord () { int i=42; }
11666int main ()
11667{
11668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11669 int status = $lt_dlunknown;
11670
11671 if (self)
11672 {
11673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11674 else
11675 {
11676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11677 else puts (dlerror ());
11678 }
11679 /* dlclose (self); */
11680 }
11681 else
11682 puts (dlerror ());
11683
11684 return status;
11685}
11686_LT_EOF
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11688 (eval $ac_link) 2>&5
11689 ac_status=$?
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11692 (./conftest; exit; ) >&5 2>/dev/null
11693 lt_status=$?
11694 case x$lt_status in
11695 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11696 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11697 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11698 esac
11699 else :
11700 # compilation failed
11701 lt_cv_dlopen_self_static=no
11702 fi
11703fi
11704rm -fr conftest*
11705
11706
11707fi
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11709$as_echo "$lt_cv_dlopen_self_static" >&6; }
11710 fi
11711
11712 CPPFLAGS="$save_CPPFLAGS"
11713 LDFLAGS="$save_LDFLAGS"
11714 LIBS="$save_LIBS"
11715 ;;
11716 esac
11717
11718 case $lt_cv_dlopen_self in
11719 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11720 *) enable_dlopen_self=unknown ;;
11721 esac
11722
11723 case $lt_cv_dlopen_self_static in
11724 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11725 *) enable_dlopen_self_static=unknown ;;
11726 esac
11727fi
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745striplib=
11746old_striplib=
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11748$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11749if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11750 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11751 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753$as_echo "yes" >&6; }
11754else
11755# FIXME - insert some real tests, host_os isn't really good enough
11756 case $host_os in
11757 darwin*)
11758 if test -n "$STRIP" ; then
11759 striplib="$STRIP -x"
11760 old_striplib="$STRIP -S"
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762$as_echo "yes" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766 fi
11767 ;;
11768 *)
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771 ;;
11772 esac
11773fi
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786 # Report which library types will actually be built
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11788$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11790$as_echo "$can_build_shared" >&6; }
11791
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11793$as_echo_n "checking whether to build shared libraries... " >&6; }
11794 test "$can_build_shared" = "no" && enable_shared=no
11795
11796 # On AIX, shared libraries and static libraries use the same namespace, and
11797 # are all built from PIC.
11798 case $host_os in
11799 aix3*)
11800 test "$enable_shared" = yes && enable_static=no
11801 if test -n "$RANLIB"; then
11802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11803 postinstall_cmds='$RANLIB $lib'
11804 fi
11805 ;;
11806
11807 aix[4-9]*)
11808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11809 test "$enable_shared" = yes && enable_static=no
11810 fi
11811 ;;
11812 esac
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11814$as_echo "$enable_shared" >&6; }
11815
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11817$as_echo_n "checking whether to build static libraries... " >&6; }
11818 # Make sure either enable_shared or enable_static is yes.
11819 test "$enable_shared" = yes || enable_static=yes
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11821$as_echo "$enable_static" >&6; }
11822
11823
11824
11825
11826fi
11827ac_ext=c
11828ac_cpp='$CPP $CPPFLAGS'
11829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831ac_compiler_gnu=$ac_cv_c_compiler_gnu
11832
11833CC="$lt_save_CC"
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847 ac_config_commands="$ac_config_commands libtool"
11848
11849
11850
11851
11852# Only expand once:
11853
11854
11855
11856
11857# Check whether --enable-largefile was given.
11858if test "${enable_largefile+set}" = set; then :
11859 enableval=$enable_largefile;
11860fi
11861
11862if test "$enable_largefile" != no; then
11863
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11865$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11866if ${ac_cv_sys_largefile_CC+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868else
11869 ac_cv_sys_largefile_CC=no
11870 if test "$GCC" != yes; then
11871 ac_save_CC=$CC
11872 while :; do
11873 # IRIX 6.2 and later do not support large files by default,
11874 # so use the C compiler's -n32 option if that helps.
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877#include <sys/types.h>
11878 /* Check that off_t can represent 2**63 - 1 correctly.
11879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11880 since some C++ compilers masquerading as C compilers
11881 incorrectly reject 9223372036854775807. */
11882#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11884 && LARGE_OFF_T % 2147483647 == 1)
11885 ? 1 : -1];
11886int
11887main ()
11888{
11889
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895 break
11896fi
11897rm -f core conftest.err conftest.$ac_objext
11898 CC="$CC -n32"
11899 if ac_fn_c_try_compile "$LINENO"; then :
11900 ac_cv_sys_largefile_CC=' -n32'; break
11901fi
11902rm -f core conftest.err conftest.$ac_objext
11903 break
11904 done
11905 CC=$ac_save_CC
11906 rm -f conftest.$ac_ext
11907 fi
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11910$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11911 if test "$ac_cv_sys_largefile_CC" != no; then
11912 CC=$CC$ac_cv_sys_largefile_CC
11913 fi
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11916$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11917if ${ac_cv_sys_file_offset_bits+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919else
11920 while :; do
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h. */
11923#include <sys/types.h>
11924 /* Check that off_t can represent 2**63 - 1 correctly.
11925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926 since some C++ compilers masquerading as C compilers
11927 incorrectly reject 9223372036854775807. */
11928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930 && LARGE_OFF_T % 2147483647 == 1)
11931 ? 1 : -1];
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_compile "$LINENO"; then :
11941 ac_cv_sys_file_offset_bits=no; break
11942fi
11943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h. */
11946#define _FILE_OFFSET_BITS 64
11947#include <sys/types.h>
11948 /* Check that off_t can represent 2**63 - 1 correctly.
11949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11950 since some C++ compilers masquerading as C compilers
11951 incorrectly reject 9223372036854775807. */
11952#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11954 && LARGE_OFF_T % 2147483647 == 1)
11955 ? 1 : -1];
11956int
11957main ()
11958{
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964if ac_fn_c_try_compile "$LINENO"; then :
11965 ac_cv_sys_file_offset_bits=64; break
11966fi
11967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 ac_cv_sys_file_offset_bits=unknown
11969 break
11970done
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11973$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11974case $ac_cv_sys_file_offset_bits in #(
11975 no | unknown) ;;
11976 *)
11977cat >>confdefs.h <<_ACEOF
11978#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11979_ACEOF
11980;;
11981esac
11982rm -rf conftest*
11983 if test $ac_cv_sys_file_offset_bits = unknown; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11985$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11986if ${ac_cv_sys_large_files+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988else
11989 while :; do
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
11992#include <sys/types.h>
11993 /* Check that off_t can represent 2**63 - 1 correctly.
11994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11995 since some C++ compilers masquerading as C compilers
11996 incorrectly reject 9223372036854775807. */
11997#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11999 && LARGE_OFF_T % 2147483647 == 1)
12000 ? 1 : -1];
12001int
12002main ()
12003{
12004
12005 ;
12006 return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_compile "$LINENO"; then :
12010 ac_cv_sys_large_files=no; break
12011fi
12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014/* end confdefs.h. */
12015#define _LARGE_FILES 1
12016#include <sys/types.h>
12017 /* Check that off_t can represent 2**63 - 1 correctly.
12018 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12019 since some C++ compilers masquerading as C compilers
12020 incorrectly reject 9223372036854775807. */
12021#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12022 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12023 && LARGE_OFF_T % 2147483647 == 1)
12024 ? 1 : -1];
12025int
12026main ()
12027{
12028
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_compile "$LINENO"; then :
12034 ac_cv_sys_large_files=1; break
12035fi
12036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 ac_cv_sys_large_files=unknown
12038 break
12039done
12040fi
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12042$as_echo "$ac_cv_sys_large_files" >&6; }
12043case $ac_cv_sys_large_files in #(
12044 no | unknown) ;;
12045 *)
12046cat >>confdefs.h <<_ACEOF
12047#define _LARGE_FILES $ac_cv_sys_large_files
12048_ACEOF
12049;;
12050esac
12051rm -rf conftest*
12052 fi
12053
12054
12055fi
12056
12057
12058backtrace_supported=yes
12059
12060if test -n "${with_target_subdir}"; then
12061 # We are compiling a GCC library. We can assume that the unwind
12062 # library exists.
12063 BACKTRACE_FILE="backtrace.lo simple.lo"
12064else
12065 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12066if test "x$ac_cv_header_unwind_h" = xyes; then :
12067 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12068if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12069 BACKTRACE_FILE="backtrace.lo simple.lo"
12070else
12071 BACKTRACE_FILE="nounwind.lo"
12072 backtrace_supported=no
12073fi
12074
12075else
12076 BACKTRACE_FILE="nounwind.lo"
12077 backtrace_supported=no
12078fi
12079
12080
12081fi
12082
12083
12084EXTRA_FLAGS=
12085if test -n "${with_target_subdir}"; then
12086 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12087else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12089$as_echo_n "checking for -funwind-tables option... " >&6; }
12090if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092else
12093 CFLAGS_hold="$CFLAGS"
12094 CFLAGS="$CFLAGS -funwind-tables"
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h. */
12097static int f() { return 0; }
12098int
12099main ()
12100{
12101return f();
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_compile "$LINENO"; then :
12107 libbacktrace_cv_c_unwind_tables=yes
12108else
12109 libbacktrace_cv_c_unwind_tables=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 CFLAGS="$CFLAGS_hold"
12113fi
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12115$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12116 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12117 EXTRA_FLAGS=-funwind-tables
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12120$as_echo_n "checking for -frandom-seed=string option... " >&6; }
12121if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123else
12124 CFLAGS_hold="$CFLAGS"
12125 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h. */
12128
12129int
12130main ()
12131{
12132return 0;
12133 ;
12134 return 0;
12135}
12136_ACEOF
12137if ac_fn_c_try_compile "$LINENO"; then :
12138 libbacktrace_cv_c_random_seed_string=yes
12139else
12140 libbacktrace_cv_c_random_seed_string=no
12141fi
12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 CFLAGS="$CFLAGS_hold"
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12146$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12147 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12148 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12149 fi
12150fi
12151
12152if test -n "${with_target_subdir}"; then
12153 # Add CET specific flags is Intel CET is enabled.
12154 # Check whether --enable-cet was given.
12155if test "${enable_cet+set}" = set; then :
12156 enableval=$enable_cet;
12157 case "$enableval" in
12158 yes|no|auto) ;;
12159 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12160 esac
12161
12162else
12163 enable_cet=auto
12164fi
12165
12166
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12168$as_echo_n "checking for CET support... " >&6; }
12169
12170# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12171case "$host" in
12172 i[34567]86-*-linux* | x86_64-*-linux*)
12173 case "$enable_cet" in
12174 auto)
12175 # Check if target supports multi-byte NOPs
12176 # and if compiler and assembler support CET insn.
12177 cet_save_CFLAGS="$CFLAGS"
12178 CFLAGS="$CFLAGS -fcf-protection"
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180/* end confdefs.h. */
12181
12182int
12183main ()
12184{
12185
12186#if !defined(__SSE2__)
12187#error target does not support multi-byte NOPs
12188#else
12189asm ("setssbsy");
12190#endif
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196if ac_fn_c_try_compile "$LINENO"; then :
12197 enable_cet=yes
12198else
12199 enable_cet=no
12200fi
12201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 CFLAGS="$cet_save_CFLAGS"
12203 ;;
12204 yes)
12205 # Check if assembler supports CET.
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h. */
12208
12209int
12210main ()
12211{
12212asm ("setssbsy");
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217if ac_fn_c_try_compile "$LINENO"; then :
12218
12219else
12220 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12221fi
12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 ;;
12224 esac
12225 ;;
12226 *)
12227 enable_cet=no
12228 ;;
12229esac
12230if test x$enable_cet = xyes; then
12231 CET_FLAGS="-fcf-protection -mshstk"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12233$as_echo "yes" >&6; }
12234else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
12237fi
12238
12239 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12240fi
12241
12242
12243ac_ext=c
12244ac_cpp='$CPP $CPPFLAGS'
12245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12247ac_compiler_gnu=$ac_cv_c_compiler_gnu
12248
12249WARN_FLAGS=
12250save_CFLAGS="$CFLAGS"
12251for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12252 -Wmissing-prototypes -Wold-style-definition \
12253 -Wmissing-format-attribute -Wcast-qual; do
12254 # Do the check with the no- prefix removed since gcc silently
12255 # accepts any -Wno-* option on purpose
12256 case $real_option in
12257 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12258 *) option=$real_option ;;
12259 esac
12260 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12261
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12263$as_echo_n "checking whether $CC supports $option... " >&6; }
12264if eval \${$as_acx_Woption+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266else
12267 CFLAGS="$option"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h. */
12270
12271int
12272main ()
12273{
12274
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279if ac_fn_c_try_compile "$LINENO"; then :
12280 eval "$as_acx_Woption=yes"
12281else
12282 eval "$as_acx_Woption=no"
12283fi
12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285
12286fi
12287eval ac_res=\$$as_acx_Woption
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12289$as_echo "$ac_res" >&6; }
12290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12291 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12292fi
12293 done
12294CFLAGS="$save_CFLAGS"
12295ac_ext=c
12296ac_cpp='$CPP $CPPFLAGS'
12297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300
12301
12302
12303if test -n "${with_target_subdir}"; then
12304 WARN_FLAGS="$WARN_FLAGS -Werror"
12305fi
12306
12307
12308
12309if test -n "${with_target_subdir}"; then
12310
12311
12312# Check whether --with-system-libunwind was given.
12313if test "${with_system_libunwind+set}" = set; then :
12314 withval=$with_system_libunwind;
12315fi
12316
12317 # If system-libunwind was not specifically set, pick a default setting.
12318 if test x$with_system_libunwind = x; then
12319 case ${target} in
12320 ia64-*-hpux*) with_system_libunwind=yes ;;
12321 *) with_system_libunwind=no ;;
12322 esac
12323 fi
12324 # Based on system-libunwind and target, do we have ipinfo?
12325 if test x$with_system_libunwind = xyes; then
12326 case ${target} in
12327 ia64-*-*) have_unwind_getipinfo=no ;;
12328 *) have_unwind_getipinfo=yes ;;
12329 esac
12330 else
12331 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12332
12333 case ${target} in
12334 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12335 *) have_unwind_getipinfo=yes ;;
12336 esac
12337
12338 fi
12339
12340 if test x$have_unwind_getipinfo = xyes; then
12341
12342$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12343
12344 fi
12345
12346else
12347 ac_save_CFFLAGS="$CFLAGS"
12348 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12350$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h. */
12353#include "unwind.h"
12354 struct _Unwind_Context *context;
12355 int ip_before_insn = 0;
12356int
12357main ()
12358{
12359return _Unwind_GetIPInfo (context, &ip_before_insn);
12360 ;
12361 return 0;
12362}
12363_ACEOF
12364if ac_fn_c_try_link "$LINENO"; then :
12365 have_unwind_getipinfo=yes
12366else
12367 have_unwind_getipinfo=no
12368fi
12369rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 CFLAGS="$ac_save_CFLAGS"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12373$as_echo "$have_unwind_getipinfo" >&6; }
12374 if test "$have_unwind_getipinfo" = "yes"; then
12375
12376$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12377
12378 fi
12379fi
12380
12381# Enable --enable-host-shared.
12382# Check whether --enable-host-shared was given.
12383if test "${enable_host_shared+set}" = set; then :
12384 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12385else
12386 PIC_FLAG=
12387fi
12388
12389
12390
12391# Enable Intel CET on Intel CET enabled host if jit is enabled.
12392 # Check whether --enable-cet was given.
12393if test "${enable_cet+set}" = set; then :
12394 enableval=$enable_cet;
12395 case "$enableval" in
12396 yes|no|auto) ;;
12397 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12398 esac
12399
12400else
12401 enable_cet=auto
12402fi
12403
12404
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12406$as_echo_n "checking for CET support... " >&6; }
12407
12408case "$host" in
12409 i[34567]86-*-linux* | x86_64-*-linux*)
12410 may_have_cet=yes
12411 cet_save_CFLAGS="$CFLAGS"
12412 CFLAGS="$CFLAGS -fcf-protection"
12413 case "$enable_cet" in
12414 auto)
12415 # Check if target supports multi-byte NOPs
12416 # and if compiler and assembler support CET.
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h. */
12419
12420int
12421main ()
12422{
12423
12424#if !defined(__SSE2__)
12425#error target does not support multi-byte NOPs
12426#else
12427asm ("setssbsy");
12428#endif
12429
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434if ac_fn_c_try_compile "$LINENO"; then :
12435 enable_cet=yes
12436else
12437 enable_cet=no
12438fi
12439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 ;;
12441 yes)
12442 # Check if compiler and assembler support CET.
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h. */
12445
12446int
12447main ()
12448{
12449asm ("setssbsy");
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454if ac_fn_c_try_compile "$LINENO"; then :
12455 support_cet=yes
12456else
12457 support_cet=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 if test $support_cet = "no"; then
12461 if test x$enable_bootstrap != xno \
12462 && test -z "${with_build_subdir}" \
12463 && (test ! -f ../stage_current \
12464 || test `cat ../stage_current` != "stage1"); then
12465 # Require CET support only for the final GCC build.
12466 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12467 else
12468 # Don't enable CET without CET support for non-bootstrap
12469 # build, in stage1 nor for build support.
12470 enable_cet=no
12471 fi
12472 fi
12473 ;;
12474 esac
12475 CFLAGS="$cet_save_CFLAGS"
12476 ;;
12477 *)
12478 may_have_cet=no
12479 enable_cet=no
12480 ;;
12481esac
12482
12483cet_save_CFLAGS="$CFLAGS"
12484CFLAGS="$CFLAGS -fcf-protection=none"
12485cet_save_LDFLAGS="$LDFLAGS"
12486LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12487if test x$may_have_cet = xyes; then
12488 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h. */
12491
12492int
12493main ()
12494{
12495return 0;
12496 ;
12497 return 0;
12498}
12499_ACEOF
12500if ac_fn_c_try_link "$LINENO"; then :
12501 may_have_cet=yes
12502else
12503 may_have_cet=no
12504fi
12505rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507fi
12508
12509if test x$may_have_cet = xyes; then
12510 if test x$cross_compiling = xno; then
12511 if test "$cross_compiling" = yes; then :
12512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12514as_fn_error $? "cannot run test program while cross compiling
12515See \`config.log' for more details" "$LINENO" 5; }
12516else
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518/* end confdefs.h. */
12519
12520int
12521main ()
12522{
12523 asm ("endbr32");
12524 return 0;
12525}
12526
12527_ACEOF
12528if ac_fn_c_try_run "$LINENO"; then :
12529 have_multi_byte_nop=yes
12530else
12531 have_multi_byte_nop=no
12532fi
12533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12534 conftest.$ac_objext conftest.beam conftest.$ac_ext
12535fi
12536
12537 have_cet=no
12538 if test x$have_multi_byte_nop = xyes; then
12539 if test "$cross_compiling" = yes; then :
12540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542as_fn_error $? "cannot run test program while cross compiling
12543See \`config.log' for more details" "$LINENO" 5; }
12544else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h. */
12547
12548static void
12549foo (void)
12550{
12551}
12552
12553static void
12554__attribute__ ((noinline, noclone))
12555xxx (void (*f) (void))
12556{
12557 f ();
12558}
12559
12560static void
12561__attribute__ ((noinline, noclone))
12562bar (void)
12563{
12564 xxx (foo);
12565}
12566
12567int
12568main ()
12569{
12570 bar ();
12571 return 0;
12572}
12573
12574_ACEOF
12575if ac_fn_c_try_run "$LINENO"; then :
12576 have_cet=no
12577else
12578 have_cet=yes
12579fi
12580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12581 conftest.$ac_objext conftest.beam conftest.$ac_ext
12582fi
12583
12584 fi
12585 if test x$enable_cet = xno -a x$have_cet = xyes; then
12586 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12587 fi
12588 fi
12589else
12590 # Enable CET in cross compiler if possible so that it will run on both
12591 # CET and non-CET hosts.
12592 have_cet=yes
12593fi
12594if test x$enable_cet = xyes; then
12595 CET_HOST_FLAGS="-fcf-protection"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597$as_echo "yes" >&6; }
12598else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602CFLAGS="$cet_save_CFLAGS"
12603LDFLAGS="$cet_save_LDFLAGS"
12604
12605case x$enable_languages in
12606*jit*)
12607 ;;
12608*)
12609 CET_HOST_FLAGS=
12610 ;;
12611esac
12612
12613
12614# Test for __sync support.
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12616$as_echo_n "checking __sync extensions... " >&6; }
12617if ${libbacktrace_cv_sys_sync+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619else
12620 if test -n "${with_target_subdir}"; then
12621 case "${host}" in
12622 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12623 *) libbacktrace_cv_sys_sync=yes ;;
12624 esac
12625 else
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h. */
12628int i;
12629int
12630main ()
12631{
12632__sync_bool_compare_and_swap (&i, i, i);
12633 __sync_lock_test_and_set (&i, 1);
12634 __sync_lock_release (&i);
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639if ac_fn_c_try_link "$LINENO"; then :
12640 libbacktrace_cv_sys_sync=yes
12641else
12642 libbacktrace_cv_sys_sync=no
12643fi
12644rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 fi
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12649$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12650BACKTRACE_SUPPORTS_THREADS=0
12651if test "$libbacktrace_cv_sys_sync" = "yes"; then
12652 BACKTRACE_SUPPORTS_THREADS=1
12653
12654$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12655
12656fi
12657
12658
12659# Test for __atomic support.
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12661$as_echo_n "checking __atomic extensions... " >&6; }
12662if ${libbacktrace_cv_sys_atomic+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664else
12665 if test -n "${with_target_subdir}"; then
12666 libbacktrace_cv_sys_atomic=yes
12667 else
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h. */
12670int i;
12671int
12672main ()
12673{
12674__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12675 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_link "$LINENO"; then :
12681 libbacktrace_cv_sys_atomic=yes
12682else
12683 libbacktrace_cv_sys_atomic=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 fi
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12690$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12691if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12692
12693$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12694
12695fi
12696
12697# The library needs to be able to read the executable itself. Compile
12698# a file to determine the executable format. The awk script
12699# filetype.awk prints out the file type.
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12701$as_echo_n "checking output filetype... " >&6; }
12702if ${libbacktrace_cv_sys_filetype+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704else
12705 filetype=
12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707/* end confdefs.h. */
12708int i;
12709int
12710main ()
12711{
12712int j;
12713 ;
12714 return 0;
12715}
12716_ACEOF
12717if ac_fn_c_try_compile "$LINENO"; then :
12718 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12719else
12720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12722as_fn_error $? "compiler failed
12723See \`config.log' for more details" "$LINENO" 5; }
12724fi
12725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726libbacktrace_cv_sys_filetype=$filetype
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12729$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12730
12731# Match the file type to decide what files to compile.
12732FORMAT_FILE=
12733backtrace_supports_data=yes
12734case "$libbacktrace_cv_sys_filetype" in
12735elf*) FORMAT_FILE="elf.lo" ;;
12736macho) FORMAT_FILE="macho.lo" ;;
12737pecoff) FORMAT_FILE="pecoff.lo"
12738 backtrace_supports_data=no
12739 ;;
12740xcoff*) FORMAT_FILE="xcoff.lo"
12741 backtrace_supports_data=no
12742 ;;
12743*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12744$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12745 FORMAT_FILE="unknown.lo"
12746 backtrace_supported=no
12747 ;;
12748esac
12749
12750
12751# ELF defines.
12752elfsize=
12753case "$libbacktrace_cv_sys_filetype" in
12754elf32) elfsize=32 ;;
12755elf64) elfsize=64 ;;
12756*) elfsize=unused
12757esac
12758
12759cat >>confdefs.h <<_ACEOF
12760#define BACKTRACE_ELF_SIZE $elfsize
12761_ACEOF
12762
12763 if test "$FORMAT_FILE" = "elf.lo"; then
12764 HAVE_ELF_TRUE=
12765 HAVE_ELF_FALSE='#'
12766else
12767 HAVE_ELF_TRUE='#'
12768 HAVE_ELF_FALSE=
12769fi
12770
12771
12772# XCOFF defines.
12773xcoffsize=
12774case "$libbacktrace_cv_sys_filetype" in
12775xcoff32) xcoffsize=32 ;;
12776xcoff64) xcoffsize=64 ;;
12777*) xcoffsize=unused
12778esac
12779
12780cat >>confdefs.h <<_ACEOF
12781#define BACKTRACE_XCOFF_SIZE $xcoffsize
12782_ACEOF
12783
12784
12785BACKTRACE_SUPPORTED=0
12786if test "$backtrace_supported" = "yes"; then
12787 BACKTRACE_SUPPORTED=1
12788fi
12789
12790
12791BACKTRACE_SUPPORTS_DATA=0
12792if test "$backtrace_supports_data" = "yes"; then
12793 BACKTRACE_SUPPORTS_DATA=1
12794fi
12795
12796
12797
12798
12799inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12800
12801acx_cv_header_stdint=stddef.h
12802acx_cv_header_stdint_kind="(already complete)"
12803for i in stdint.h $inttype_headers; do
12804 unset ac_cv_type_uintptr_t
12805 unset ac_cv_type_uintmax_t
12806 unset ac_cv_type_int_least32_t
12807 unset ac_cv_type_int_fast32_t
12808 unset ac_cv_type_uint64_t
12809 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12810 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12811#include <$i>
12812"
12813if test "x$ac_cv_type_uintmax_t" = xyes; then :
12814 acx_cv_header_stdint=$i
12815else
12816 continue
12817fi
12818
12819 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12820#include <$i>
12821"
12822if test "x$ac_cv_type_uintptr_t" = xyes; then :
12823
12824else
12825 acx_cv_header_stdint_kind="(mostly complete)"
12826fi
12827
12828 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12829#include <$i>
12830"
12831if test "x$ac_cv_type_int_least32_t" = xyes; then :
12832
12833else
12834 acx_cv_header_stdint_kind="(mostly complete)"
12835fi
12836
12837 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12838#include <$i>
12839"
12840if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12841
12842else
12843 acx_cv_header_stdint_kind="(mostly complete)"
12844fi
12845
12846 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12847#include <$i>
12848"
12849if test "x$ac_cv_type_uint64_t" = xyes; then :
12850
12851else
12852 acx_cv_header_stdint_kind="(lacks uint64_t)"
12853fi
12854
12855 break
12856done
12857if test "$acx_cv_header_stdint" = stddef.h; then
12858 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12859 for i in stdint.h $inttype_headers; do
12860 unset ac_cv_type_uintptr_t
12861 unset ac_cv_type_uint32_t
12862 unset ac_cv_type_uint64_t
12863 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12864 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12865#include <$i>
12866"
12867if test "x$ac_cv_type_uint32_t" = xyes; then :
12868 acx_cv_header_stdint=$i
12869else
12870 continue
12871fi
12872
12873 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12874#include <$i>
12875"
12876if test "x$ac_cv_type_uint64_t" = xyes; then :
12877
12878fi
12879
12880 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12881#include <$i>
12882"
12883if test "x$ac_cv_type_uintptr_t" = xyes; then :
12884
12885fi
12886
12887 break
12888 done
12889fi
12890if test "$acx_cv_header_stdint" = stddef.h; then
12891 acx_cv_header_stdint_kind="(u_intXX_t style)"
12892 for i in sys/types.h $inttype_headers; do
12893 unset ac_cv_type_u_int32_t
12894 unset ac_cv_type_u_int64_t
12895 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12896 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12897#include <$i>
12898"
12899if test "x$ac_cv_type_u_int32_t" = xyes; then :
12900 acx_cv_header_stdint=$i
12901else
12902 continue
12903fi
12904
12905 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12906#include <$i>
12907"
12908if test "x$ac_cv_type_u_int64_t" = xyes; then :
12909
12910fi
12911
12912 break
12913 done
12914fi
12915if test "$acx_cv_header_stdint" = stddef.h; then
12916 acx_cv_header_stdint_kind="(using manual detection)"
12917fi
12918
12919test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12920test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12921test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12922test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12923test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12924
12925# ----------------- Summarize what we found so far
12926
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12928$as_echo_n "checking what to include in gstdint.h... " >&6; }
12929
12930case `$as_basename -- gstdint.h ||
12931$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12932 Xgstdint.h : 'X\(//\)$' \| \
12933 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12934$as_echo X/gstdint.h |
12935 sed '/^.*\/\([^/][^/]*\)\/*$/{
12936 s//\1/
12937 q
12938 }
12939 /^X\/\(\/\/\)$/{
12940 s//\1/
12941 q
12942 }
12943 /^X\/\(\/\).*/{
12944 s//\1/
12945 q
12946 }
12947 s/.*/./; q'` in
12948 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12949$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12950 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12951$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12952 *) ;;
12953esac
12954
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12956$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12957
12958# ----------------- done included file, check C basic types --------
12959
12960# Lacking an uintptr_t? Test size of void *
12961case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12962 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12965# This bug is HP SR number 8606223364.
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12967$as_echo_n "checking size of void *... " >&6; }
12968if ${ac_cv_sizeof_void_p+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970else
12971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12972
12973else
12974 if test "$ac_cv_type_void_p" = yes; then
12975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12977as_fn_error 77 "cannot compute sizeof (void *)
12978See \`config.log' for more details" "$LINENO" 5; }
12979 else
12980 ac_cv_sizeof_void_p=0
12981 fi
12982fi
12983
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12986$as_echo "$ac_cv_sizeof_void_p" >&6; }
12987
12988
12989
12990cat >>confdefs.h <<_ACEOF
12991#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12992_ACEOF
12993
12994 ;;
12995esac
12996
12997# Lacking an uint64_t? Test size of long
12998case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12999 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13000# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13001# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13002# This bug is HP SR number 8606223364.
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13004$as_echo_n "checking size of long... " >&6; }
13005if ${ac_cv_sizeof_long+:} false; then :
13006 $as_echo_n "(cached) " >&6
13007else
13008 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13009
13010else
13011 if test "$ac_cv_type_long" = yes; then
13012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13014as_fn_error 77 "cannot compute sizeof (long)
13015See \`config.log' for more details" "$LINENO" 5; }
13016 else
13017 ac_cv_sizeof_long=0
13018 fi
13019fi
13020
13021fi
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13023$as_echo "$ac_cv_sizeof_long" >&6; }
13024
13025
13026
13027cat >>confdefs.h <<_ACEOF
13028#define SIZEOF_LONG $ac_cv_sizeof_long
13029_ACEOF
13030
13031 ;;
13032esac
13033
13034if test $acx_cv_header_stdint = stddef.h; then
13035 # Lacking a good header? Test size of everything and deduce all types.
13036 # The cast to long int works around a bug in the HP C Compiler
13037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13039# This bug is HP SR number 8606223364.
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13041$as_echo_n "checking size of int... " >&6; }
13042if ${ac_cv_sizeof_int+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044else
13045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13046
13047else
13048 if test "$ac_cv_type_int" = yes; then
13049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13051as_fn_error 77 "cannot compute sizeof (int)
13052See \`config.log' for more details" "$LINENO" 5; }
13053 else
13054 ac_cv_sizeof_int=0
13055 fi
13056fi
13057
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13060$as_echo "$ac_cv_sizeof_int" >&6; }
13061
13062
13063
13064cat >>confdefs.h <<_ACEOF
13065#define SIZEOF_INT $ac_cv_sizeof_int
13066_ACEOF
13067
13068
13069 # The cast to long int works around a bug in the HP C Compiler
13070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13072# This bug is HP SR number 8606223364.
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13074$as_echo_n "checking size of short... " >&6; }
13075if ${ac_cv_sizeof_short+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077else
13078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13079
13080else
13081 if test "$ac_cv_type_short" = yes; then
13082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13084as_fn_error 77 "cannot compute sizeof (short)
13085See \`config.log' for more details" "$LINENO" 5; }
13086 else
13087 ac_cv_sizeof_short=0
13088 fi
13089fi
13090
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13093$as_echo "$ac_cv_sizeof_short" >&6; }
13094
13095
13096
13097cat >>confdefs.h <<_ACEOF
13098#define SIZEOF_SHORT $ac_cv_sizeof_short
13099_ACEOF
13100
13101
13102 # The cast to long int works around a bug in the HP C Compiler
13103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13105# This bug is HP SR number 8606223364.
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13107$as_echo_n "checking size of char... " >&6; }
13108if ${ac_cv_sizeof_char+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110else
13111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13112
13113else
13114 if test "$ac_cv_type_char" = yes; then
13115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13117as_fn_error 77 "cannot compute sizeof (char)
13118See \`config.log' for more details" "$LINENO" 5; }
13119 else
13120 ac_cv_sizeof_char=0
13121 fi
13122fi
13123
13124fi
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13126$as_echo "$ac_cv_sizeof_char" >&6; }
13127
13128
13129
13130cat >>confdefs.h <<_ACEOF
13131#define SIZEOF_CHAR $ac_cv_sizeof_char
13132_ACEOF
13133
13134
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13137$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13138 case "$ac_cv_sizeof_char" in
13139 1) acx_cv_type_int8_t=char ;;
13140 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13141 esac
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13143$as_echo "$acx_cv_type_int8_t" >&6; }
13144
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13146$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13147 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13148 2:*) acx_cv_type_int16_t=int ;;
13149 *:2) acx_cv_type_int16_t=short ;;
13150 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13151 esac
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13153$as_echo "$acx_cv_type_int16_t" >&6; }
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13156$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13157 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13158 4:*) acx_cv_type_int32_t=int ;;
13159 *:4) acx_cv_type_int32_t=long ;;
13160 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13161 esac
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13163$as_echo "$acx_cv_type_int32_t" >&6; }
13164fi
13165
13166# These tests are here to make the output prettier
13167
13168if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13169 case "$ac_cv_sizeof_long" in
13170 8) acx_cv_type_int64_t=long ;;
13171 esac
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13173$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13175$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13176fi
13177
13178# Now we can use the above types
13179
13180if test "$ac_cv_type_uintptr_t" != yes; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13182$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13183 case $ac_cv_sizeof_void_p in
13184 2) acx_cv_type_intptr_t=int16_t ;;
13185 4) acx_cv_type_intptr_t=int32_t ;;
13186 8) acx_cv_type_intptr_t=int64_t ;;
13187 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13188 esac
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13190$as_echo "$acx_cv_type_intptr_t" >&6; }
13191fi
13192
13193# ----------------- done all checks, emit header -------------
13194ac_config_commands="$ac_config_commands gstdint.h"
13195
13196
13197
13198
13199for ac_header in sys/mman.h
13200do :
13201 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13202if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13203 cat >>confdefs.h <<_ACEOF
13204#define HAVE_SYS_MMAN_H 1
13205_ACEOF
13206
13207fi
13208
13209done
13210
13211if test "$ac_cv_header_sys_mman_h" = "no"; then
13212 have_mmap=no
13213else
13214 if test -n "${with_target_subdir}"; then
13215 # When built as a GCC target library, we can't do a link test. We
13216 # simply assume that if we have mman.h, we have mmap.
13217 have_mmap=yes
13218 case "${host}" in
13219 *-*-msdosdjgpp)
13220 # DJGPP has sys/man.h, but no mmap
13221 have_mmap=no ;;
13222 esac
13223 else
13224 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13225if test "x$ac_cv_func_mmap" = xyes; then :
13226 have_mmap=yes
13227else
13228 have_mmap=no
13229fi
13230
13231 fi
13232fi
13233if test "$have_mmap" = "no"; then
13234 VIEW_FILE=read.lo
13235 ALLOC_FILE=alloc.lo
13236else
13237 VIEW_FILE=mmapio.lo
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h. */
13240
13241#include <sys/mman.h>
13242#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13243 #error no MAP_ANONYMOUS
13244#endif
13245
13246_ACEOF
13247if ac_fn_c_try_cpp "$LINENO"; then :
13248 ALLOC_FILE=mmap.lo
13249else
13250 ALLOC_FILE=alloc.lo
13251fi
13252rm -f conftest.err conftest.i conftest.$ac_ext
13253fi
13254
13255
13256
13257BACKTRACE_USES_MALLOC=0
13258if test "$ALLOC_FILE" = "alloc.lo"; then
13259 BACKTRACE_USES_MALLOC=1
13260fi
13261
13262
13263# Check for dl_iterate_phdr.
13264for ac_header in link.h
13265do :
13266 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
13267if test "x$ac_cv_header_link_h" = xyes; then :
13268 cat >>confdefs.h <<_ACEOF
13269#define HAVE_LINK_H 1
13270_ACEOF
13271
13272fi
13273
13274done
13275
13276if test "$ac_cv_header_link_h" = "no"; then
13277 have_dl_iterate_phdr=no
13278else
13279 if test -n "${with_target_subdir}"; then
13280 # When built as a GCC target library, we can't do a link test.
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282/* end confdefs.h. */
13283#include <link.h>
13284
13285_ACEOF
13286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13287 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13288 have_dl_iterate_phdr=yes
13289else
13290 have_dl_iterate_phdr=no
13291fi
13292rm -f conftest*
13293
13294 else
13295 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13296if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13297 have_dl_iterate_phdr=yes
13298else
13299 have_dl_iterate_phdr=no
13300fi
13301
13302 fi
13303fi
13304if test "$have_dl_iterate_phdr" = "yes"; then
13305
13306$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13307
13308fi
13309
13310# Check for header file for Mach-O image functions.
13311for ac_header in mach-o/dyld.h
13312do :
13313 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13314if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13315 cat >>confdefs.h <<_ACEOF
13316#define HAVE_MACH_O_DYLD_H 1
13317_ACEOF
13318
13319fi
13320
13321done
13322
13323
13324# Check for loadquery.
13325for ac_header in sys/ldr.h
13326do :
13327 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13328if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13329 cat >>confdefs.h <<_ACEOF
13330#define HAVE_SYS_LDR_H 1
13331_ACEOF
13332
13333fi
13334
13335done
13336
13337if test "$ac_cv_header_sys_ldr_h" = "no"; then
13338 have_loadquery=no
13339else
13340 if test -n "${with_target_subdir}"; then
13341 # When built as a GCC target library, we can't do a link test.
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h. */
13344#include <sys/ldr.h>
13345
13346_ACEOF
13347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13348 $EGREP "loadquery" >/dev/null 2>&1; then :
13349 have_loadquery=yes
13350else
13351 have_loadquery=no
13352fi
13353rm -f conftest*
13354
13355 else
13356 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13357if test "x$ac_cv_func_loadquery" = xyes; then :
13358 have_loadquery=yes
13359else
13360 have_loadquery=no
13361fi
13362
13363 fi
13364fi
13365if test "$have_loadquery" = "yes"; then
13366
13367$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13368
13369fi
13370
13371# Check for the fcntl function.
13372if test -n "${with_target_subdir}"; then
13373 case "${host}" in
13374 *-*-mingw*) have_fcntl=no ;;
13375 *) have_fcntl=yes ;;
13376 esac
13377else
13378 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13379if test "x$ac_cv_func_fcntl" = xyes; then :
13380 have_fcntl=yes
13381else
13382 have_fcntl=no
13383fi
13384
13385fi
13386if test "$have_fcntl" = "yes"; then
13387
13388$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13389
13390fi
13391
13392ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13393if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13394 ac_have_decl=1
13395else
13396 ac_have_decl=0
13397fi
13398
13399cat >>confdefs.h <<_ACEOF
13400#define HAVE_DECL_STRNLEN $ac_have_decl
13401_ACEOF
13402ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13403if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13404 ac_have_decl=1
13405else
13406 ac_have_decl=0
13407fi
13408
13409cat >>confdefs.h <<_ACEOF
13410#define HAVE_DECL_GETPAGESIZE $ac_have_decl
13411_ACEOF
13412
13413for ac_func in lstat readlink
13414do :
13415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13416ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13417if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13418 cat >>confdefs.h <<_ACEOF
13419#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13420_ACEOF
13421
13422fi
13423done
13424
13425
13426# Check for getexecname function.
13427if test -n "${with_target_subdir}"; then
13428 case "${host}" in
13429 *-*-solaris2*) have_getexecname=yes ;;
13430 *) have_getexecname=no ;;
13431 esac
13432else
13433 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13434if test "x$ac_cv_func_getexecname" = xyes; then :
13435 have_getexecname=yes
13436else
13437 have_getexecname=no
13438fi
13439
13440fi
13441if test "$have_getexecname" = "yes"; then
13442
13443$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13444
13445fi
13446
13447# Check for sysctl definitions.
13448
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13450$as_echo_n "checking for KERN_PROC... " >&6; }
13451if ${libbacktrace_cv_proc+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453else
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h. */
13456
13457#include <sys/types.h>
13458#include <sys/sysctl.h>
13459
13460int
13461main ()
13462{
13463int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13464 ;
13465 return 0;
13466}
13467_ACEOF
13468if ac_fn_c_try_compile "$LINENO"; then :
13469 libbacktrace_cv_proc=yes
13470else
13471 libbacktrace_cv_proc=no
13472fi
13473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474fi
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13476$as_echo "$libbacktrace_cv_proc" >&6; }
13477if test "$libbacktrace_cv_proc" = "yes"; then
13478
13479$as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13480
13481fi
13482
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13484$as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13485if ${libbacktrace_cv_procargs+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487else
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489/* end confdefs.h. */
13490
13491#include <sys/types.h>
13492#include <sys/sysctl.h>
13493
13494int
13495main ()
13496{
13497int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13498 ;
13499 return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_compile "$LINENO"; then :
13503 libbacktrace_cv_procargs=yes
13504else
13505 libbacktrace_cv_procargs=no
13506fi
13507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508fi
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13510$as_echo "$libbacktrace_cv_procargs" >&6; }
13511if test "$libbacktrace_cv_procargs" = "yes"; then
13512
13513$as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13514
13515fi
13516
13517# Check for the clock_gettime function.
13518for ac_func in clock_gettime
13519do :
13520 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13521if test "x$ac_cv_func_clock_gettime" = xyes; then :
13522 cat >>confdefs.h <<_ACEOF
13523#define HAVE_CLOCK_GETTIME 1
13524_ACEOF
13525
13526fi
13527done
13528
13529clock_gettime_link=
13530# At least for glibc, clock_gettime is in librt. But don't
13531# pull that in if it still doesn't give us the function we want. This
13532# test is copied from libgomp, and modified to not link in -lrt as
13533# we're using this for test timing only.
13534if test "$ac_cv_func_clock_gettime" = no; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13536$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13537if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539else
13540 ac_check_lib_save_LIBS=$LIBS
13541LIBS="-lrt $LIBS"
13542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h. */
13544
13545/* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13548#ifdef __cplusplus
13549extern "C"
13550#endif
13551char clock_gettime ();
13552int
13553main ()
13554{
13555return clock_gettime ();
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560if ac_fn_c_try_link "$LINENO"; then :
13561 ac_cv_lib_rt_clock_gettime=yes
13562else
13563 ac_cv_lib_rt_clock_gettime=no
13564fi
13565rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567LIBS=$ac_check_lib_save_LIBS
13568fi
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13570$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13571if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13572 CLOCK_GETTIME_LINK=-lrt
13573
13574$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13575
13576fi
13577
13578fi
13579
13580
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13582$as_echo_n "checking whether -pthread is supported... " >&6; }
13583if ${libgo_cv_lib_pthread+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585else
13586 CFLAGS_hold=$CFLAGS
13587CFLAGS="$CFLAGS -pthread"
13588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h. */
13590int i;
13591_ACEOF
13592if ac_fn_c_try_compile "$LINENO"; then :
13593 libgo_cv_lib_pthread=yes
13594else
13595 libgo_cv_lib_pthread=no
13596fi
13597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598CFLAGS=$CFLAGS_hold
13599fi
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13601$as_echo "$libgo_cv_lib_pthread" >&6; }
13602PTHREAD_CFLAGS=
13603if test "$libgo_cv_lib_pthread" = yes; then
13604 PTHREAD_CFLAGS=-pthread
13605fi
13606
13607
13608 if test "$libgo_cv_lib_pthread" = yes; then
13609 HAVE_PTHREAD_TRUE=
13610 HAVE_PTHREAD_FALSE='#'
13611else
13612 HAVE_PTHREAD_TRUE='#'
13613 HAVE_PTHREAD_FALSE=
13614fi
13615
13616
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13618$as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13619if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13620 $as_echo_n "(cached) " >&6
13621else
13622 CFLAGS_hold=$CFLAGS
13623CFLAGS="$CFLAGS -gdwarf-5"
13624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625/* end confdefs.h. */
13626int i;
13627int
13628main ()
13629{
13630return 0;
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635if ac_fn_c_try_link "$LINENO"; then :
13636 libbacktrace_cv_lib_dwarf5=yes
13637else
13638 libbacktrace_cv_lib_dwarf5=no
13639fi
13640rm -f core conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642CFLAGS=$CFLAGS_hold
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13645$as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13646 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13647 HAVE_DWARF5_TRUE=
13648 HAVE_DWARF5_FALSE='#'
13649else
13650 HAVE_DWARF5_TRUE='#'
13651 HAVE_DWARF5_FALSE=
13652fi
13653
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13656$as_echo_n "checking for compress in -lz... " >&6; }
13657if ${ac_cv_lib_z_compress+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659else
13660 ac_check_lib_save_LIBS=$LIBS
13661LIBS="-lz $LIBS"
13662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h. */
13664
13665/* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13668#ifdef __cplusplus
13669extern "C"
13670#endif
13671char compress ();
13672int
13673main ()
13674{
13675return compress ();
13676 ;
13677 return 0;
13678}
13679_ACEOF
13680if ac_fn_c_try_link "$LINENO"; then :
13681 ac_cv_lib_z_compress=yes
13682else
13683 ac_cv_lib_z_compress=no
13684fi
13685rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687LIBS=$ac_check_lib_save_LIBS
13688fi
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13690$as_echo "$ac_cv_lib_z_compress" >&6; }
13691if test "x$ac_cv_lib_z_compress" = xyes; then :
13692
13693$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13694
13695fi
13696
13697 if test "$ac_cv_lib_z_compress" = yes; then
13698 HAVE_ZLIB_TRUE=
13699 HAVE_ZLIB_FALSE='#'
13700else
13701 HAVE_ZLIB_TRUE='#'
13702 HAVE_ZLIB_FALSE=
13703fi
13704
13705
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13707$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13708if ${libgo_cv_ld_compress+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710else
13711 LDFLAGS_hold=$LDFLAGS
13712LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h. */
13715
13716int
13717main ()
13718{
13719
13720 ;
13721 return 0;
13722}
13723_ACEOF
13724if ac_fn_c_try_link "$LINENO"; then :
13725 libgo_cv_ld_compress=yes
13726else
13727 libgo_cv_ld_compress=no
13728fi
13729rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731LDFLAGS=$LDFLAGS_hold
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13734$as_echo "$libgo_cv_ld_compress" >&6; }
13735 if test "$libgo_cv_ld_compress" = yes; then
13736 HAVE_COMPRESSED_DEBUG_TRUE=
13737 HAVE_COMPRESSED_DEBUG_FALSE='#'
13738else
13739 HAVE_COMPRESSED_DEBUG_TRUE='#'
13740 HAVE_COMPRESSED_DEBUG_FALSE=
13741fi
13742
13743
13744
13745# Extract the first word of "objcopy", so it can be a program name with args.
13746set dummy objcopy; ac_word=$2
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748$as_echo_n "checking for $ac_word... " >&6; }
13749if ${ac_cv_prog_OBJCOPY+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751else
13752 if test -n "$OBJCOPY"; then
13753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13754else
13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756for as_dir in $PATH
13757do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13762 ac_cv_prog_OBJCOPY="objcopy"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2
13765 fi
13766done
13767 done
13768IFS=$as_save_IFS
13769
13770fi
13771fi
13772OBJCOPY=$ac_cv_prog_OBJCOPY
13773if test -n "$OBJCOPY"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13775$as_echo "$OBJCOPY" >&6; }
13776else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778$as_echo "no" >&6; }
13779fi
13780
13781
13782# Extract the first word of "readelf", so it can be a program name with args.
13783set dummy readelf; ac_word=$2
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785$as_echo_n "checking for $ac_word... " >&6; }
13786if ${ac_cv_prog_READELF+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788else
13789 if test -n "$READELF"; then
13790 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13791else
13792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793for as_dir in $PATH
13794do
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13799 ac_cv_prog_READELF="readelf"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 break 2
13802 fi
13803done
13804 done
13805IFS=$as_save_IFS
13806
13807fi
13808fi
13809READELF=$ac_cv_prog_READELF
13810if test -n "$READELF"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13812$as_echo "$READELF" >&6; }
13813else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
13816fi
13817
13818
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13820$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13821if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823else
13824 if test -n "${with_target_subdir}"; then
13825 libbacktrace_cv_objcopy_debuglink=no
13826elif ! test -n "${OBJCOPY}"; then
13827 libbacktrace_cv_objcopy_debuglink=no
13828elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then
13829 libbacktrace_cv_objcopy_debuglink=yes
13830else
13831 libbacktrace_cv_objcopy_debuglink=no
13832fi
13833fi
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13835$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13836 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13837 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13838 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13839else
13840 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13841 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13842fi
13843
13844
13845
13846# Extract the first word of "dsymutil", so it can be a program name with args.
13847set dummy dsymutil; ac_word=$2
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849$as_echo_n "checking for $ac_word... " >&6; }
13850if ${ac_cv_prog_DSYMUTIL+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852else
13853 if test -n "$DSYMUTIL"; then
13854 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13855else
13856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857for as_dir in $PATH
13858do
13859 IFS=$as_save_IFS
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_prog_DSYMUTIL="dsymutil"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865 break 2
13866 fi
13867done
13868 done
13869IFS=$as_save_IFS
13870
13871fi
13872fi
13873DSYMUTIL=$ac_cv_prog_DSYMUTIL
13874if test -n "$DSYMUTIL"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13876$as_echo "$DSYMUTIL" >&6; }
13877else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879$as_echo "no" >&6; }
13880fi
13881
13882
13883 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
13884 USE_DSYMUTIL_TRUE=
13885 USE_DSYMUTIL_FALSE='#'
13886else
13887 USE_DSYMUTIL_TRUE='#'
13888 USE_DSYMUTIL_FALSE=
13889fi
13890
13891
13892
13893# Extract the first word of "nm", so it can be a program name with args.
13894set dummy nm; ac_word=$2
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896$as_echo_n "checking for $ac_word... " >&6; }
13897if ${ac_cv_prog_NM+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899else
13900 if test -n "$NM"; then
13901 ac_cv_prog_NM="$NM" # Let the user override the test.
13902else
13903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904for as_dir in $PATH
13905do
13906 IFS=$as_save_IFS
13907 test -z "$as_dir" && as_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910 ac_cv_prog_NM="nm"
13911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912 break 2
13913 fi
13914done
13915 done
13916IFS=$as_save_IFS
13917
13918fi
13919fi
13920NM=$ac_cv_prog_NM
13921if test -n "$NM"; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13923$as_echo "$NM" >&6; }
13924else
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926$as_echo "no" >&6; }
13927fi
13928
13929
13930
13931# Extract the first word of "xz", so it can be a program name with args.
13932set dummy xz; ac_word=$2
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934$as_echo_n "checking for $ac_word... " >&6; }
13935if ${ac_cv_prog_XZ+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937else
13938 if test -n "$XZ"; then
13939 ac_cv_prog_XZ="$XZ" # Let the user override the test.
13940else
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13948 ac_cv_prog_XZ="xz"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13951 fi
13952done
13953 done
13954IFS=$as_save_IFS
13955
13956fi
13957fi
13958XZ=$ac_cv_prog_XZ
13959if test -n "$XZ"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
13961$as_echo "$XZ" >&6; }
13962else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965fi
13966
13967
13968 if test "$XZ" != ""; then
13969 HAVE_XZ_TRUE=
13970 HAVE_XZ_FALSE='#'
13971else
13972 HAVE_XZ_TRUE='#'
13973 HAVE_XZ_FALSE=
13974fi
13975
13976# Extract the first word of "comm", so it can be a program name with args.
13977set dummy comm; ac_word=$2
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979$as_echo_n "checking for $ac_word... " >&6; }
13980if ${ac_cv_prog_COMM+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982else
13983 if test -n "$COMM"; then
13984 ac_cv_prog_COMM="$COMM" # Let the user override the test.
13985else
13986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987for as_dir in $PATH
13988do
13989 IFS=$as_save_IFS
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13993 ac_cv_prog_COMM="comm"
13994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13995 break 2
13996 fi
13997done
13998 done
13999IFS=$as_save_IFS
14000
14001fi
14002fi
14003COMM=$ac_cv_prog_COMM
14004if test -n "$COMM"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14006$as_echo "$COMM" >&6; }
14007else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009$as_echo "no" >&6; }
14010fi
14011
14012
14013 if test "$COMM" != ""; then
14014 HAVE_COMM_TRUE=
14015 HAVE_COMM_FALSE='#'
14016else
14017 HAVE_COMM_TRUE='#'
14018 HAVE_COMM_FALSE=
14019fi
14020
14021
14022 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14023 HAVE_MINIDEBUG_TRUE=
14024 HAVE_MINIDEBUG_FALSE='#'
14025else
14026 HAVE_MINIDEBUG_TRUE='#'
14027 HAVE_MINIDEBUG_FALSE=
14028fi
14029
14030
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14032$as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14033if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035else
14036 ac_check_lib_save_LIBS=$LIBS
14037LIBS="-llzma $LIBS"
14038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h. */
14040
14041/* Override any GCC internal prototype to avoid an error.
14042 Use char because int might match the return type of a GCC
14043 builtin and then its argument prototype would still apply. */
14044#ifdef __cplusplus
14045extern "C"
14046#endif
14047char lzma_auto_decoder ();
14048int
14049main ()
14050{
14051return lzma_auto_decoder ();
14052 ;
14053 return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"; then :
14057 ac_cv_lib_lzma_lzma_auto_decoder=yes
14058else
14059 ac_cv_lib_lzma_lzma_auto_decoder=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14063LIBS=$ac_check_lib_save_LIBS
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14066$as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14067if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14068
14069$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14070
14071fi
14072
14073 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14074 HAVE_LIBLZMA_TRUE=
14075 HAVE_LIBLZMA_FALSE='#'
14076else
14077 HAVE_LIBLZMA_TRUE='#'
14078 HAVE_LIBLZMA_FALSE=
14079fi
14080
14081
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14083$as_echo_n "checking whether tests can run... " >&6; }
14084if ${libbacktrace_cv_sys_native+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086else
14087 if test "$cross_compiling" = yes; then :
14088 libbacktrace_cv_sys_native=no
14089else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h. */
14092
14093int
14094main ()
14095{
14096return 0;
14097 ;
14098 return 0;
14099}
14100_ACEOF
14101if ac_fn_c_try_run "$LINENO"; then :
14102 libbacktrace_cv_sys_native=yes
14103else
14104 libbacktrace_cv_sys_native=no
14105fi
14106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14107 conftest.$ac_objext conftest.beam conftest.$ac_ext
14108fi
14109
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14112$as_echo "$libbacktrace_cv_sys_native" >&6; }
14113 if test "$libbacktrace_cv_sys_native" = "yes"; then
14114 NATIVE_TRUE=
14115 NATIVE_FALSE='#'
14116else
14117 NATIVE_TRUE='#'
14118 NATIVE_FALSE=
14119fi
14120
14121
14122if test "${multilib}" = "yes"; then
14123 multilib_arg="--enable-multilib"
14124else
14125 multilib_arg=
14126fi
14127
14128ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14129
14130ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14131
14132
14133# We need multilib support, but only if configuring for the target.
14134ac_config_commands="$ac_config_commands default"
14135
14136
14137cat >confcache <<\_ACEOF
14138# This file is a shell script that caches the results of configure
14139# tests run on this system so they can be shared between configure
14140# scripts and configure runs, see configure's option --config-cache.
14141# It is not useful on other systems. If it contains results you don't
14142# want to keep, you may remove or edit it.
14143#
14144# config.status only pays attention to the cache file if you give it
14145# the --recheck option to rerun configure.
14146#
14147# `ac_cv_env_foo' variables (set or unset) will be overridden when
14148# loading this file, other *unset* `ac_cv_foo' will be assigned the
14149# following values.
14150
14151_ACEOF
14152
14153# The following way of writing the cache mishandles newlines in values,
14154# but we know of no workaround that is simple, portable, and efficient.
14155# So, we kill variables containing newlines.
14156# Ultrix sh set writes to stderr and can't be redirected directly,
14157# and sets the high bit in the cache file unless we assign to the vars.
14158(
14159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14160 eval ac_val=\$$ac_var
14161 case $ac_val in #(
14162 *${as_nl}*)
14163 case $ac_var in #(
14164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14165$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14166 esac
14167 case $ac_var in #(
14168 _ | IFS | as_nl) ;; #(
14169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14170 *) { eval $ac_var=; unset $ac_var;} ;;
14171 esac ;;
14172 esac
14173 done
14174
14175 (set) 2>&1 |
14176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14177 *${as_nl}ac_space=\ *)
14178 # `set' does not quote correctly, so add quotes: double-quote
14179 # substitution turns \\\\ into \\, and sed turns \\ into \.
14180 sed -n \
14181 "s/'/'\\\\''/g;
14182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14183 ;; #(
14184 *)
14185 # `set' quotes correctly as required by POSIX, so do not add quotes.
14186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14187 ;;
14188 esac |
14189 sort
14190) |
14191 sed '
14192 /^ac_cv_env_/b end
14193 t clear
14194 :clear
14195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14196 t end
14197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14198 :end' >>confcache
14199if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14200 if test -w "$cache_file"; then
14201 if test "x$cache_file" != "x/dev/null"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14203$as_echo "$as_me: updating cache $cache_file" >&6;}
14204 if test ! -f "$cache_file" || test -h "$cache_file"; then
14205 cat confcache >"$cache_file"
14206 else
14207 case $cache_file in #(
14208 */* | ?:*)
14209 mv -f confcache "$cache_file"$$ &&
14210 mv -f "$cache_file"$$ "$cache_file" ;; #(
14211 *)
14212 mv -f confcache "$cache_file" ;;
14213 esac
14214 fi
14215 fi
14216 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14218$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14219 fi
14220fi
14221rm -f confcache
14222
14223test "x$prefix" = xNONE && prefix=$ac_default_prefix
14224# Let make expand exec_prefix.
14225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14226
14227DEFS=-DHAVE_CONFIG_H
14228
14229ac_libobjs=
14230ac_ltlibobjs=
14231U=
14232for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14233 # 1. Remove the extension, and $U if already installed.
14234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14237 # will be set to the directory where LIBOBJS objects are built.
14238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14240done
14241LIBOBJS=$ac_libobjs
14242
14243LTLIBOBJS=$ac_ltlibobjs
14244
14245
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14247$as_echo_n "checking that generated files are newer than configure... " >&6; }
14248 if test -n "$am_sleep_pid"; then
14249 # Hide warnings about reused PIDs.
14250 wait $am_sleep_pid 2>/dev/null
14251 fi
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14253$as_echo "done" >&6; }
14254 if test -n "$EXEEXT"; then
14255 am__EXEEXT_TRUE=
14256 am__EXEEXT_FALSE='#'
14257else
14258 am__EXEEXT_TRUE='#'
14259 am__EXEEXT_FALSE=
14260fi
14261
14262if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14263 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14264Usually this means the macro was only invoked conditionally." "$LINENO" 5
14265fi
14266if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14267 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14268Usually this means the macro was only invoked conditionally." "$LINENO" 5
14269fi
14270if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14271 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14272Usually this means the macro was only invoked conditionally." "$LINENO" 5
14273fi
14274if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14275 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14276Usually this means the macro was only invoked conditionally." "$LINENO" 5
14277fi
14278if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14279 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14280Usually this means the macro was only invoked conditionally." "$LINENO" 5
14281fi
14282if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14283 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14284Usually this means the macro was only invoked conditionally." "$LINENO" 5
14285fi
14286if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14287 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14288Usually this means the macro was only invoked conditionally." "$LINENO" 5
14289fi
14290if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14291 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14292Usually this means the macro was only invoked conditionally." "$LINENO" 5
14293fi
14294if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14295 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14296Usually this means the macro was only invoked conditionally." "$LINENO" 5
14297fi
14298if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14299 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14300Usually this means the macro was only invoked conditionally." "$LINENO" 5
14301fi
14302if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14303 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14304Usually this means the macro was only invoked conditionally." "$LINENO" 5
14305fi
14306if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14307 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14308Usually this means the macro was only invoked conditionally." "$LINENO" 5
14309fi
14310if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14311 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14312Usually this means the macro was only invoked conditionally." "$LINENO" 5
14313fi
14314if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14315 as_fn_error $? "conditional \"NATIVE\" was never defined.
14316Usually this means the macro was only invoked conditionally." "$LINENO" 5
14317fi
14318
14319: "${CONFIG_STATUS=./config.status}"
14320ac_write_fail=0
14321ac_clean_files_save=$ac_clean_files
14322ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14324$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14325as_write_fail=0
14326cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14327#! $SHELL
14328# Generated by $as_me.
14329# Run this file to recreate the current configuration.
14330# Compiler output produced by configure, useful for debugging
14331# configure, is in config.log if it exists.
14332
14333debug=false
14334ac_cs_recheck=false
14335ac_cs_silent=false
14336
14337SHELL=\${CONFIG_SHELL-$SHELL}
14338export SHELL
14339_ASEOF
14340cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14341## -------------------- ##
14342## M4sh Initialization. ##
14343## -------------------- ##
14344
14345# Be more Bourne compatible
14346DUALCASE=1; export DUALCASE # for MKS sh
14347if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14348 emulate sh
14349 NULLCMD=:
14350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14351 # is contrary to our usage. Disable this feature.
14352 alias -g '${1+"$@"}'='"$@"'
14353 setopt NO_GLOB_SUBST
14354else
14355 case `(set -o) 2>/dev/null` in #(
14356 *posix*) :
14357 set -o posix ;; #(
14358 *) :
14359 ;;
14360esac
14361fi
14362
14363
14364as_nl='
14365'
14366export as_nl
14367# Printing a long string crashes Solaris 7 /usr/bin/printf.
14368as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14371# Prefer a ksh shell builtin over an external printf program on Solaris,
14372# but without wasting forks for bash or zsh.
14373if test -z "$BASH_VERSION$ZSH_VERSION" \
14374 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14375 as_echo='print -r --'
14376 as_echo_n='print -rn --'
14377elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14378 as_echo='printf %s\n'
14379 as_echo_n='printf %s'
14380else
14381 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14382 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14383 as_echo_n='/usr/ucb/echo -n'
14384 else
14385 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14386 as_echo_n_body='eval
14387 arg=$1;
14388 case $arg in #(
14389 *"$as_nl"*)
14390 expr "X$arg" : "X\\(.*\\)$as_nl";
14391 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14392 esac;
14393 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14394 '
14395 export as_echo_n_body
14396 as_echo_n='sh -c $as_echo_n_body as_echo'
14397 fi
14398 export as_echo_body
14399 as_echo='sh -c $as_echo_body as_echo'
14400fi
14401
14402# The user is always right.
14403if test "${PATH_SEPARATOR+set}" != set; then
14404 PATH_SEPARATOR=:
14405 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14406 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14407 PATH_SEPARATOR=';'
14408 }
14409fi
14410
14411
14412# IFS
14413# We need space, tab and new line, in precisely that order. Quoting is
14414# there to prevent editors from complaining about space-tab.
14415# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14416# splitting by setting IFS to empty value.)
14417IFS=" "" $as_nl"
14418
14419# Find who we are. Look in the path if we contain no directory separator.
14420as_myself=
14421case $0 in #((
14422 *[\\/]* ) as_myself=$0 ;;
14423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424for as_dir in $PATH
14425do
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
14428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14429 done
14430IFS=$as_save_IFS
14431
14432 ;;
14433esac
14434# We did not find ourselves, most probably we were run as `sh COMMAND'
14435# in which case we are not to be found in the path.
14436if test "x$as_myself" = x; then
14437 as_myself=$0
14438fi
14439if test ! -f "$as_myself"; then
14440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14441 exit 1
14442fi
14443
14444# Unset variables that we do not need and which cause bugs (e.g. in
14445# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14446# suppresses any "Segmentation fault" message there. '((' could
14447# trigger a bug in pdksh 5.2.14.
14448for as_var in BASH_ENV ENV MAIL MAILPATH
14449do eval test x\${$as_var+set} = xset \
14450 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14451done
14452PS1='$ '
14453PS2='> '
14454PS4='+ '
14455
14456# NLS nuisances.
14457LC_ALL=C
14458export LC_ALL
14459LANGUAGE=C
14460export LANGUAGE
14461
14462# CDPATH.
14463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14464
14465
14466# as_fn_error STATUS ERROR [LINENO LOG_FD]
14467# ----------------------------------------
14468# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14469# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14470# script with STATUS, using 1 if that was 0.
14471as_fn_error ()
14472{
14473 as_status=$1; test $as_status -eq 0 && as_status=1
14474 if test "$4"; then
14475 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14477 fi
14478 $as_echo "$as_me: error: $2" >&2
14479 as_fn_exit $as_status
14480} # as_fn_error
14481
14482
14483# as_fn_set_status STATUS
14484# -----------------------
14485# Set $? to STATUS, without forking.
14486as_fn_set_status ()
14487{
14488 return $1
14489} # as_fn_set_status
14490
14491# as_fn_exit STATUS
14492# -----------------
14493# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14494as_fn_exit ()
14495{
14496 set +e
14497 as_fn_set_status $1
14498 exit $1
14499} # as_fn_exit
14500
14501# as_fn_unset VAR
14502# ---------------
14503# Portably unset VAR.
14504as_fn_unset ()
14505{
14506 { eval $1=; unset $1;}
14507}
14508as_unset=as_fn_unset
14509# as_fn_append VAR VALUE
14510# ----------------------
14511# Append the text in VALUE to the end of the definition contained in VAR. Take
14512# advantage of any shell optimizations that allow amortized linear growth over
14513# repeated appends, instead of the typical quadratic growth present in naive
14514# implementations.
14515if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14516 eval 'as_fn_append ()
14517 {
14518 eval $1+=\$2
14519 }'
14520else
14521 as_fn_append ()
14522 {
14523 eval $1=\$$1\$2
14524 }
14525fi # as_fn_append
14526
14527# as_fn_arith ARG...
14528# ------------------
14529# Perform arithmetic evaluation on the ARGs, and store the result in the
14530# global $as_val. Take advantage of shells that can avoid forks. The arguments
14531# must be portable across $(()) and expr.
14532if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14533 eval 'as_fn_arith ()
14534 {
14535 as_val=$(( $* ))
14536 }'
14537else
14538 as_fn_arith ()
14539 {
14540 as_val=`expr "$@" || test $? -eq 1`
14541 }
14542fi # as_fn_arith
14543
14544
14545if expr a : '\(a\)' >/dev/null 2>&1 &&
14546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14547 as_expr=expr
14548else
14549 as_expr=false
14550fi
14551
14552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14553 as_basename=basename
14554else
14555 as_basename=false
14556fi
14557
14558if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14559 as_dirname=dirname
14560else
14561 as_dirname=false
14562fi
14563
14564as_me=`$as_basename -- "$0" ||
14565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14566 X"$0" : 'X\(//\)$' \| \
14567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14568$as_echo X/"$0" |
14569 sed '/^.*\/\([^/][^/]*\)\/*$/{
14570 s//\1/
14571 q
14572 }
14573 /^X\/\(\/\/\)$/{
14574 s//\1/
14575 q
14576 }
14577 /^X\/\(\/\).*/{
14578 s//\1/
14579 q
14580 }
14581 s/.*/./; q'`
14582
14583# Avoid depending upon Character Ranges.
14584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14587as_cr_digits='0123456789'
14588as_cr_alnum=$as_cr_Letters$as_cr_digits
14589
14590ECHO_C= ECHO_N= ECHO_T=
14591case `echo -n x` in #(((((
14592-n*)
14593 case `echo 'xy\c'` in
14594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14595 xy) ECHO_C='\c';;
14596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14597 ECHO_T=' ';;
14598 esac;;
14599*)
14600 ECHO_N='-n';;
14601esac
14602
14603rm -f conf$$ conf$$.exe conf$$.file
14604if test -d conf$$.dir; then
14605 rm -f conf$$.dir/conf$$.file
14606else
14607 rm -f conf$$.dir
14608 mkdir conf$$.dir 2>/dev/null
14609fi
14610if (echo >conf$$.file) 2>/dev/null; then
14611 if ln -s conf$$.file conf$$ 2>/dev/null; then
14612 as_ln_s='ln -s'
14613 # ... but there are two gotchas:
14614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14616 # In both cases, we have to default to `cp -pR'.
14617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14618 as_ln_s='cp -pR'
14619 elif ln conf$$.file conf$$ 2>/dev/null; then
14620 as_ln_s=ln
14621 else
14622 as_ln_s='cp -pR'
14623 fi
14624else
14625 as_ln_s='cp -pR'
14626fi
14627rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14628rmdir conf$$.dir 2>/dev/null
14629
14630
14631# as_fn_mkdir_p
14632# -------------
14633# Create "$as_dir" as a directory, including parents if necessary.
14634as_fn_mkdir_p ()
14635{
14636
14637 case $as_dir in #(
14638 -*) as_dir=./$as_dir;;
14639 esac
14640 test -d "$as_dir" || eval $as_mkdir_p || {
14641 as_dirs=
14642 while :; do
14643 case $as_dir in #(
14644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14645 *) as_qdir=$as_dir;;
14646 esac
14647 as_dirs="'$as_qdir' $as_dirs"
14648 as_dir=`$as_dirname -- "$as_dir" ||
14649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14650 X"$as_dir" : 'X\(//\)[^/]' \| \
14651 X"$as_dir" : 'X\(//\)$' \| \
14652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14653$as_echo X"$as_dir" |
14654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14655 s//\1/
14656 q
14657 }
14658 /^X\(\/\/\)[^/].*/{
14659 s//\1/
14660 q
14661 }
14662 /^X\(\/\/\)$/{
14663 s//\1/
14664 q
14665 }
14666 /^X\(\/\).*/{
14667 s//\1/
14668 q
14669 }
14670 s/.*/./; q'`
14671 test -d "$as_dir" && break
14672 done
14673 test -z "$as_dirs" || eval "mkdir $as_dirs"
14674 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14675
14676
14677} # as_fn_mkdir_p
14678if mkdir -p . 2>/dev/null; then
14679 as_mkdir_p='mkdir -p "$as_dir"'
14680else
14681 test -d ./-p && rmdir ./-p
14682 as_mkdir_p=false
14683fi
14684
14685
14686# as_fn_executable_p FILE
14687# -----------------------
14688# Test if FILE is an executable regular file.
14689as_fn_executable_p ()
14690{
14691 test -f "$1" && test -x "$1"
14692} # as_fn_executable_p
14693as_test_x='test -x'
14694as_executable_p=as_fn_executable_p
14695
14696# Sed expression to map a string onto a valid CPP name.
14697as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14698
14699# Sed expression to map a string onto a valid variable name.
14700as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14701
14702
14703exec 6>&1
14704## ----------------------------------- ##
14705## Main body of $CONFIG_STATUS script. ##
14706## ----------------------------------- ##
14707_ASEOF
14708test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14709
14710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711# Save the log message, to keep $0 and so on meaningful, and to
14712# report actual input values of CONFIG_FILES etc. instead of their
14713# values after options handling.
14714ac_log="
14715This file was extended by package-unused $as_me version-unused, which was
14716generated by GNU Autoconf 2.69. Invocation command line was
14717
14718 CONFIG_FILES = $CONFIG_FILES
14719 CONFIG_HEADERS = $CONFIG_HEADERS
14720 CONFIG_LINKS = $CONFIG_LINKS
14721 CONFIG_COMMANDS = $CONFIG_COMMANDS
14722 $ $0 $@
14723
14724on `(hostname || uname -n) 2>/dev/null | sed 1q`
14725"
14726
14727_ACEOF
14728
14729case $ac_config_files in *"
14730"*) set x $ac_config_files; shift; ac_config_files=$*;;
14731esac
14732
14733case $ac_config_headers in *"
14734"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14735esac
14736
14737
14738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739# Files that config.status was made for.
14740config_files="$ac_config_files"
14741config_headers="$ac_config_headers"
14742config_commands="$ac_config_commands"
14743
14744_ACEOF
14745
14746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14747ac_cs_usage="\
14748\`$as_me' instantiates files and other configuration actions
14749from templates according to the current configuration. Unless the files
14750and actions are specified as TAGs, all are instantiated by default.
14751
14752Usage: $0 [OPTION]... [TAG]...
14753
14754 -h, --help print this help, then exit
14755 -V, --version print version number and configuration settings, then exit
14756 --config print configuration, then exit
14757 -q, --quiet, --silent
14758 do not print progress messages
14759 -d, --debug don't remove temporary files
14760 --recheck update $as_me by reconfiguring in the same conditions
14761 --file=FILE[:TEMPLATE]
14762 instantiate the configuration file FILE
14763 --header=FILE[:TEMPLATE]
14764 instantiate the configuration header FILE
14765
14766Configuration files:
14767$config_files
14768
14769Configuration headers:
14770$config_headers
14771
14772Configuration commands:
14773$config_commands
14774
14775Report bugs to the package provider."
14776
14777_ACEOF
14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14780ac_cs_version="\\
14781package-unused config.status version-unused
14782configured by $0, generated by GNU Autoconf 2.69,
14783 with options \\"\$ac_cs_config\\"
14784
14785Copyright (C) 2012 Free Software Foundation, Inc.
14786This config.status script is free software; the Free Software Foundation
14787gives unlimited permission to copy, distribute and modify it."
14788
14789ac_pwd='$ac_pwd'
14790srcdir='$srcdir'
14791INSTALL='$INSTALL'
14792MKDIR_P='$MKDIR_P'
14793AWK='$AWK'
14794test -n "\$AWK" || AWK=awk
14795_ACEOF
14796
14797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14798# The default lists apply if the user does not specify any file.
14799ac_need_defaults=:
14800while test $# != 0
14801do
14802 case $1 in
14803 --*=?*)
14804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14806 ac_shift=:
14807 ;;
14808 --*=)
14809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14810 ac_optarg=
14811 ac_shift=:
14812 ;;
14813 *)
14814 ac_option=$1
14815 ac_optarg=$2
14816 ac_shift=shift
14817 ;;
14818 esac
14819
14820 case $ac_option in
14821 # Handling of the options.
14822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14823 ac_cs_recheck=: ;;
14824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14825 $as_echo "$ac_cs_version"; exit ;;
14826 --config | --confi | --conf | --con | --co | --c )
14827 $as_echo "$ac_cs_config"; exit ;;
14828 --debug | --debu | --deb | --de | --d | -d )
14829 debug=: ;;
14830 --file | --fil | --fi | --f )
14831 $ac_shift
14832 case $ac_optarg in
14833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14834 '') as_fn_error $? "missing file argument" ;;
14835 esac
14836 as_fn_append CONFIG_FILES " '$ac_optarg'"
14837 ac_need_defaults=false;;
14838 --header | --heade | --head | --hea )
14839 $ac_shift
14840 case $ac_optarg in
14841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14842 esac
14843 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14844 ac_need_defaults=false;;
14845 --he | --h)
14846 # Conflict between --help and --header
14847 as_fn_error $? "ambiguous option: \`$1'
14848Try \`$0 --help' for more information.";;
14849 --help | --hel | -h )
14850 $as_echo "$ac_cs_usage"; exit ;;
14851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14853 ac_cs_silent=: ;;
14854
14855 # This is an error.
14856 -*) as_fn_error $? "unrecognized option: \`$1'
14857Try \`$0 --help' for more information." ;;
14858
14859 *) as_fn_append ac_config_targets " $1"
14860 ac_need_defaults=false ;;
14861
14862 esac
14863 shift
14864done
14865
14866ac_configure_extra_args=
14867
14868if $ac_cs_silent; then
14869 exec 6>/dev/null
14870 ac_configure_extra_args="$ac_configure_extra_args --silent"
14871fi
14872
14873_ACEOF
14874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875if \$ac_cs_recheck; then
14876 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14877 shift
14878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14879 CONFIG_SHELL='$SHELL'
14880 export CONFIG_SHELL
14881 exec "\$@"
14882fi
14883
14884_ACEOF
14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14886exec 5>>config.log
14887{
14888 echo
14889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14890## Running $as_me. ##
14891_ASBOX
14892 $as_echo "$ac_log"
14893} >&5
14894
14895_ACEOF
14896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897#
14898# INIT-COMMANDS
14899#
14900
14901srcdir="$srcdir"
14902host="$host"
14903target="$target"
14904with_multisubdir="$with_multisubdir"
14905with_multisrctop="$with_multisrctop"
14906with_target_subdir="$with_target_subdir"
14907ac_configure_args="${multilib_arg} ${ac_configure_args}"
14908multi_basedir="$multi_basedir"
14909CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14910CC="$CC"
14911CXX="$CXX"
14912GFORTRAN="$GFORTRAN"
14913GDC="$GDC"
14914
14915
14916# The HP-UX ksh and POSIX shell print the target directory to stdout
14917# if CDPATH is set.
14918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14919
14920sed_quote_subst='$sed_quote_subst'
14921double_quote_subst='$double_quote_subst'
14922delay_variable_subst='$delay_variable_subst'
14923macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14924macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14925enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14926enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14927pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14928enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14929SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14930ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14931host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14932host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14933host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14934build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14935build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14936build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14937SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14938Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14939GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14940EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14941FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14942LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14943NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14944LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14945max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14946ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14947exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14948lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14949lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14950lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14951reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14952reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14953OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14954deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14955file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14956AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14957AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14958STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14959RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14960old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14961old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14962old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14963lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14964CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14965CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14966compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14967GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14968lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14969lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14970lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14971lt_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"`'
14972objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14973MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14974lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14975lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14976lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14977lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14978lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14979need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14980DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14981NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14982LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14983OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14984OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14985libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14986shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14987extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14988archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14989enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14990export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14991whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14992compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14993old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14994old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14995archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14996archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14997module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14998module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14999with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15000allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15001no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15002hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15003hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15004hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15005hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15006hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15007hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15008hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15009hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15010inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15011link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15012fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15013always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15014export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15015exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15016include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15017prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15018file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15019variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15020need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15021need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15022version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15023runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15024shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15025shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15026libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15027library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15028soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15029install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15030postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15031postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15032finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15033finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15034hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15035sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15036sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15037hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15038enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15039enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15040enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15041old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15042striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15043
15044LTCC='$LTCC'
15045LTCFLAGS='$LTCFLAGS'
15046compiler='$compiler_DEFAULT'
15047
15048# A function that is used when there is no print builtin or printf.
15049func_fallback_echo ()
15050{
15051 eval 'cat <<_LTECHO_EOF
15052\$1
15053_LTECHO_EOF'
15054}
15055
15056# Quote evaled strings.
15057for var in SHELL \
15058ECHO \
15059SED \
15060GREP \
15061EGREP \
15062FGREP \
15063LD \
15064NM \
15065LN_S \
15066lt_SP2NL \
15067lt_NL2SP \
15068reload_flag \
15069OBJDUMP \
15070deplibs_check_method \
15071file_magic_cmd \
15072AR \
15073AR_FLAGS \
15074STRIP \
15075RANLIB \
15076CC \
15077CFLAGS \
15078compiler \
15079lt_cv_sys_global_symbol_pipe \
15080lt_cv_sys_global_symbol_to_cdecl \
15081lt_cv_sys_global_symbol_to_c_name_address \
15082lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15083lt_prog_compiler_no_builtin_flag \
15084lt_prog_compiler_wl \
15085lt_prog_compiler_pic \
15086lt_prog_compiler_static \
15087lt_cv_prog_compiler_c_o \
15088need_locks \
15089DSYMUTIL \
15090NMEDIT \
15091LIPO \
15092OTOOL \
15093OTOOL64 \
15094shrext_cmds \
15095export_dynamic_flag_spec \
15096whole_archive_flag_spec \
15097compiler_needs_object \
15098with_gnu_ld \
15099allow_undefined_flag \
15100no_undefined_flag \
15101hardcode_libdir_flag_spec \
15102hardcode_libdir_flag_spec_ld \
15103hardcode_libdir_separator \
15104fix_srcfile_path \
15105exclude_expsyms \
15106include_expsyms \
15107file_list_spec \
15108variables_saved_for_relink \
15109libname_spec \
15110library_names_spec \
15111soname_spec \
15112install_override_mode \
15113finish_eval \
15114old_striplib \
15115striplib; do
15116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15117 *[\\\\\\\`\\"\\\$]*)
15118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15119 ;;
15120 *)
15121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15122 ;;
15123 esac
15124done
15125
15126# Double-quote double-evaled strings.
15127for var in reload_cmds \
15128old_postinstall_cmds \
15129old_postuninstall_cmds \
15130old_archive_cmds \
15131extract_expsyms_cmds \
15132old_archive_from_new_cmds \
15133old_archive_from_expsyms_cmds \
15134archive_cmds \
15135archive_expsym_cmds \
15136module_cmds \
15137module_expsym_cmds \
15138export_symbols_cmds \
15139prelink_cmds \
15140postinstall_cmds \
15141postuninstall_cmds \
15142finish_cmds \
15143sys_lib_search_path_spec \
15144sys_lib_dlsearch_path_spec; do
15145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15146 *[\\\\\\\`\\"\\\$]*)
15147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15148 ;;
15149 *)
15150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15151 ;;
15152 esac
15153done
15154
15155ac_aux_dir='$ac_aux_dir'
15156xsi_shell='$xsi_shell'
15157lt_shell_append='$lt_shell_append'
15158
15159# See if we are running on zsh, and set the options which allow our
15160# commands through without removal of \ escapes INIT.
15161if test -n "\${ZSH_VERSION+set}" ; then
15162 setopt NO_GLOB_SUBST
15163fi
15164
15165
15166 PACKAGE='$PACKAGE'
15167 VERSION='$VERSION'
15168 TIMESTAMP='$TIMESTAMP'
15169 RM='$RM'
15170 ofile='$ofile'
15171
15172
15173
15174
15175GCC="$GCC"
15176CC="$CC"
15177acx_cv_header_stdint="$acx_cv_header_stdint"
15178acx_cv_type_int8_t="$acx_cv_type_int8_t"
15179acx_cv_type_int16_t="$acx_cv_type_int16_t"
15180acx_cv_type_int32_t="$acx_cv_type_int32_t"
15181acx_cv_type_int64_t="$acx_cv_type_int64_t"
15182acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15183ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15184ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15185ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15186ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15187ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15188ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15189ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15190ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15191
15192
15193# Variables needed in config.status (file generation) which aren't already
15194# passed by autoconf.
15195SUBDIRS="$SUBDIRS"
15196
15197
15198_ACEOF
15199
15200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15201
15202# Handling of arguments.
15203for ac_config_target in $ac_config_targets
15204do
15205 case $ac_config_target in
15206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15207 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15209 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15211 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15212 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15213 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15214
15215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15216 esac
15217done
15218
15219
15220# If the user did not use the arguments to specify the items to instantiate,
15221# then the envvar interface is used. Set only those that are not.
15222# We use the long form for the default assignment because of an extremely
15223# bizarre bug on SunOS 4.1.3.
15224if $ac_need_defaults; then
15225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15228fi
15229
15230# Have a temporary directory for convenience. Make it in the build tree
15231# simply because there is no reason against having it here, and in addition,
15232# creating and moving files from /tmp can sometimes cause problems.
15233# Hook for its removal unless debugging.
15234# Note that there is a small window in which the directory will not be cleaned:
15235# after its creation but before its name has been assigned to `$tmp'.
15236$debug ||
15237{
15238 tmp= ac_tmp=
15239 trap 'exit_status=$?
15240 : "${ac_tmp:=$tmp}"
15241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15242' 0
15243 trap 'as_fn_exit 1' 1 2 13 15
15244}
15245# Create a (secure) tmp directory for tmp files.
15246
15247{
15248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15249 test -d "$tmp"
15250} ||
15251{
15252 tmp=./conf$$-$RANDOM
15253 (umask 077 && mkdir "$tmp")
15254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15255ac_tmp=$tmp
15256
15257# Set up the scripts for CONFIG_FILES section.
15258# No need to generate them if there are no CONFIG_FILES.
15259# This happens for instance with `./config.status config.h'.
15260if test -n "$CONFIG_FILES"; then
15261
15262
15263ac_cr=`echo X | tr X '\015'`
15264# On cygwin, bash can eat \r inside `` if the user requested igncr.
15265# But we know of no other shell where ac_cr would be empty at this
15266# point, so we can use a bashism as a fallback.
15267if test "x$ac_cr" = x; then
15268 eval ac_cr=\$\'\\r\'
15269fi
15270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15272 ac_cs_awk_cr='\\r'
15273else
15274 ac_cs_awk_cr=$ac_cr
15275fi
15276
15277echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15278_ACEOF
15279
15280
15281{
15282 echo "cat >conf$$subs.awk <<_ACEOF" &&
15283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15284 echo "_ACEOF"
15285} >conf$$subs.sh ||
15286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15288ac_delim='%!_!# '
15289for ac_last_try in false false false false false :; do
15290 . ./conf$$subs.sh ||
15291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15292
15293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15294 if test $ac_delim_n = $ac_delim_num; then
15295 break
15296 elif $ac_last_try; then
15297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15298 else
15299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15300 fi
15301done
15302rm -f conf$$subs.sh
15303
15304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15306_ACEOF
15307sed -n '
15308h
15309s/^/S["/; s/!.*/"]=/
15310p
15311g
15312s/^[^!]*!//
15313:repl
15314t repl
15315s/'"$ac_delim"'$//
15316t delim
15317:nl
15318h
15319s/\(.\{148\}\)..*/\1/
15320t more1
15321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15322p
15323n
15324b repl
15325:more1
15326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15327p
15328g
15329s/.\{148\}//
15330t nl
15331:delim
15332h
15333s/\(.\{148\}\)..*/\1/
15334t more2
15335s/["\\]/\\&/g; s/^/"/; s/$/"/
15336p
15337b
15338:more2
15339s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15340p
15341g
15342s/.\{148\}//
15343t delim
15344' <conf$$subs.awk | sed '
15345/^[^""]/{
15346 N
15347 s/\n//
15348}
15349' >>$CONFIG_STATUS || ac_write_fail=1
15350rm -f conf$$subs.awk
15351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352_ACAWK
15353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15354 for (key in S) S_is_set[key] = 1
15355 FS = "\a"
15356
15357}
15358{
15359 line = $ 0
15360 nfields = split(line, field, "@")
15361 substed = 0
15362 len = length(field[1])
15363 for (i = 2; i < nfields; i++) {
15364 key = field[i]
15365 keylen = length(key)
15366 if (S_is_set[key]) {
15367 value = S[key]
15368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15369 len += length(value) + length(field[++i])
15370 substed = 1
15371 } else
15372 len += 1 + keylen
15373 }
15374
15375 print line
15376}
15377
15378_ACAWK
15379_ACEOF
15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15383else
15384 cat
15385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15387_ACEOF
15388
15389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15391# trailing colons and then remove the whole line if VPATH becomes empty
15392# (actually we leave an empty line to preserve line numbers).
15393if test "x$srcdir" = x.; then
15394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15395h
15396s///
15397s/^/:/
15398s/[ ]*$/:/
15399s/:\$(srcdir):/:/g
15400s/:\${srcdir}:/:/g
15401s/:@srcdir@:/:/g
15402s/^:*//
15403s/:*$//
15404x
15405s/\(=[ ]*\).*/\1/
15406G
15407s/\n//
15408s/^[^=]*=[ ]*$//
15409}'
15410fi
15411
15412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413fi # test -n "$CONFIG_FILES"
15414
15415# Set up the scripts for CONFIG_HEADERS section.
15416# No need to generate them if there are no CONFIG_HEADERS.
15417# This happens for instance with `./config.status Makefile'.
15418if test -n "$CONFIG_HEADERS"; then
15419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15420BEGIN {
15421_ACEOF
15422
15423# Transform confdefs.h into an awk script `defines.awk', embedded as
15424# here-document in config.status, that substitutes the proper values into
15425# config.h.in to produce config.h.
15426
15427# Create a delimiter string that does not exist in confdefs.h, to ease
15428# handling of long lines.
15429ac_delim='%!_!# '
15430for ac_last_try in false false :; do
15431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15432 if test -z "$ac_tt"; then
15433 break
15434 elif $ac_last_try; then
15435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15436 else
15437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15438 fi
15439done
15440
15441# For the awk script, D is an array of macro values keyed by name,
15442# likewise P contains macro parameters if any. Preserve backslash
15443# newline sequences.
15444
15445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15446sed -n '
15447s/.\{148\}/&'"$ac_delim"'/g
15448t rset
15449:rset
15450s/^[ ]*#[ ]*define[ ][ ]*/ /
15451t def
15452d
15453:def
15454s/\\$//
15455t bsnl
15456s/["\\]/\\&/g
15457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15458D["\1"]=" \3"/p
15459s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15460d
15461:bsnl
15462s/["\\]/\\&/g
15463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15464D["\1"]=" \3\\\\\\n"\\/p
15465t cont
15466s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15467t cont
15468d
15469:cont
15470n
15471s/.\{148\}/&'"$ac_delim"'/g
15472t clear
15473:clear
15474s/\\$//
15475t bsnlc
15476s/["\\]/\\&/g; s/^/"/; s/$/"/p
15477d
15478:bsnlc
15479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15480b cont
15481' <confdefs.h | sed '
15482s/'"$ac_delim"'/"\\\
15483"/g' >>$CONFIG_STATUS || ac_write_fail=1
15484
15485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15486 for (key in D) D_is_set[key] = 1
15487 FS = "\a"
15488}
15489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15490 line = \$ 0
15491 split(line, arg, " ")
15492 if (arg[1] == "#") {
15493 defundef = arg[2]
15494 mac1 = arg[3]
15495 } else {
15496 defundef = substr(arg[1], 2)
15497 mac1 = arg[2]
15498 }
15499 split(mac1, mac2, "(") #)
15500 macro = mac2[1]
15501 prefix = substr(line, 1, index(line, defundef) - 1)
15502 if (D_is_set[macro]) {
15503 # Preserve the white space surrounding the "#".
15504 print prefix "define", macro P[macro] D[macro]
15505 next
15506 } else {
15507 # Replace #undef with comments. This is necessary, for example,
15508 # in the case of _POSIX_SOURCE, which is predefined and required
15509 # on some systems where configure will not decide to define it.
15510 if (defundef == "undef") {
15511 print "/*", prefix defundef, macro, "*/"
15512 next
15513 }
15514 }
15515}
15516{ print }
15517_ACAWK
15518_ACEOF
15519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15521fi # test -n "$CONFIG_HEADERS"
15522
15523
15524eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15525shift
15526for ac_tag
15527do
15528 case $ac_tag in
15529 :[FHLC]) ac_mode=$ac_tag; continue;;
15530 esac
15531 case $ac_mode$ac_tag in
15532 :[FHL]*:*);;
15533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15534 :[FH]-) ac_tag=-:-;;
15535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15536 esac
15537 ac_save_IFS=$IFS
15538 IFS=:
15539 set x $ac_tag
15540 IFS=$ac_save_IFS
15541 shift
15542 ac_file=$1
15543 shift
15544
15545 case $ac_mode in
15546 :L) ac_source=$1;;
15547 :[FH])
15548 ac_file_inputs=
15549 for ac_f
15550 do
15551 case $ac_f in
15552 -) ac_f="$ac_tmp/stdin";;
15553 *) # Look for the file first in the build tree, then in the source tree
15554 # (if the path is not absolute). The absolute path cannot be DOS-style,
15555 # because $ac_f cannot contain `:'.
15556 test -f "$ac_f" ||
15557 case $ac_f in
15558 [\\/$]*) false;;
15559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15560 esac ||
15561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15562 esac
15563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15564 as_fn_append ac_file_inputs " '$ac_f'"
15565 done
15566
15567 # Let's still pretend it is `configure' which instantiates (i.e., don't
15568 # use $as_me), people would be surprised to read:
15569 # /* config.h. Generated by config.status. */
15570 configure_input='Generated from '`
15571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15572 `' by configure.'
15573 if test x"$ac_file" != x-; then
15574 configure_input="$ac_file. $configure_input"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15576$as_echo "$as_me: creating $ac_file" >&6;}
15577 fi
15578 # Neutralize special characters interpreted by sed in replacement strings.
15579 case $configure_input in #(
15580 *\&* | *\|* | *\\* )
15581 ac_sed_conf_input=`$as_echo "$configure_input" |
15582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15583 *) ac_sed_conf_input=$configure_input;;
15584 esac
15585
15586 case $ac_tag in
15587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15589 esac
15590 ;;
15591 esac
15592
15593 ac_dir=`$as_dirname -- "$ac_file" ||
15594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15595 X"$ac_file" : 'X\(//\)[^/]' \| \
15596 X"$ac_file" : 'X\(//\)$' \| \
15597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15598$as_echo X"$ac_file" |
15599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15600 s//\1/
15601 q
15602 }
15603 /^X\(\/\/\)[^/].*/{
15604 s//\1/
15605 q
15606 }
15607 /^X\(\/\/\)$/{
15608 s//\1/
15609 q
15610 }
15611 /^X\(\/\).*/{
15612 s//\1/
15613 q
15614 }
15615 s/.*/./; q'`
15616 as_dir="$ac_dir"; as_fn_mkdir_p
15617 ac_builddir=.
15618
15619case "$ac_dir" in
15620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15621*)
15622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15623 # A ".." for each directory in $ac_dir_suffix.
15624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15625 case $ac_top_builddir_sub in
15626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15628 esac ;;
15629esac
15630ac_abs_top_builddir=$ac_pwd
15631ac_abs_builddir=$ac_pwd$ac_dir_suffix
15632# for backward compatibility:
15633ac_top_builddir=$ac_top_build_prefix
15634
15635case $srcdir in
15636 .) # We are building in place.
15637 ac_srcdir=.
15638 ac_top_srcdir=$ac_top_builddir_sub
15639 ac_abs_top_srcdir=$ac_pwd ;;
15640 [\\/]* | ?:[\\/]* ) # Absolute name.
15641 ac_srcdir=$srcdir$ac_dir_suffix;
15642 ac_top_srcdir=$srcdir
15643 ac_abs_top_srcdir=$srcdir ;;
15644 *) # Relative name.
15645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15646 ac_top_srcdir=$ac_top_build_prefix$srcdir
15647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15648esac
15649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15650
15651
15652 case $ac_mode in
15653 :F)
15654 #
15655 # CONFIG_FILE
15656 #
15657
15658 case $INSTALL in
15659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15661 esac
15662 ac_MKDIR_P=$MKDIR_P
15663 case $MKDIR_P in
15664 [\\/$]* | ?:[\\/]* ) ;;
15665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15666 esac
15667_ACEOF
15668
15669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670# If the template does not know about datarootdir, expand it.
15671# FIXME: This hack should be removed a few years after 2.60.
15672ac_datarootdir_hack=; ac_datarootdir_seen=
15673ac_sed_dataroot='
15674/datarootdir/ {
15675 p
15676 q
15677}
15678/@datadir@/p
15679/@docdir@/p
15680/@infodir@/p
15681/@localedir@/p
15682/@mandir@/p'
15683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15684*datarootdir*) ac_datarootdir_seen=yes;;
15685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15688_ACEOF
15689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15690 ac_datarootdir_hack='
15691 s&@datadir@&$datadir&g
15692 s&@docdir@&$docdir&g
15693 s&@infodir@&$infodir&g
15694 s&@localedir@&$localedir&g
15695 s&@mandir@&$mandir&g
15696 s&\\\${datarootdir}&$datarootdir&g' ;;
15697esac
15698_ACEOF
15699
15700# Neutralize VPATH when `$srcdir' = `.'.
15701# Shell code in configure.ac might set extrasub.
15702# FIXME: do we really want to maintain this feature?
15703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704ac_sed_extra="$ac_vpsub
15705$extrasub
15706_ACEOF
15707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708:t
15709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15710s|@configure_input@|$ac_sed_conf_input|;t t
15711s&@top_builddir@&$ac_top_builddir_sub&;t t
15712s&@top_build_prefix@&$ac_top_build_prefix&;t t
15713s&@srcdir@&$ac_srcdir&;t t
15714s&@abs_srcdir@&$ac_abs_srcdir&;t t
15715s&@top_srcdir@&$ac_top_srcdir&;t t
15716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15717s&@builddir@&$ac_builddir&;t t
15718s&@abs_builddir@&$ac_abs_builddir&;t t
15719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15720s&@INSTALL@&$ac_INSTALL&;t t
15721s&@MKDIR_P@&$ac_MKDIR_P&;t t
15722$ac_datarootdir_hack
15723"
15724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15726
15727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15732which seems to be undefined. Please make sure it is defined" >&5
15733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15734which seems to be undefined. Please make sure it is defined" >&2;}
15735
15736 rm -f "$ac_tmp/stdin"
15737 case $ac_file in
15738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15740 esac \
15741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15742 ;;
15743 :H)
15744 #
15745 # CONFIG_HEADER
15746 #
15747 if test x"$ac_file" != x-; then
15748 {
15749 $as_echo "/* $configure_input */" \
15750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15751 } >"$ac_tmp/config.h" \
15752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15755$as_echo "$as_me: $ac_file is unchanged" >&6;}
15756 else
15757 rm -f "$ac_file"
15758 mv "$ac_tmp/config.h" "$ac_file" \
15759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15760 fi
15761 else
15762 $as_echo "/* $configure_input */" \
15763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15764 || as_fn_error $? "could not create -" "$LINENO" 5
15765 fi
15766# Compute "$ac_file"'s index in $config_headers.
15767_am_arg="$ac_file"
15768_am_stamp_count=1
15769for _am_header in $config_headers :; do
15770 case $_am_header in
15771 $_am_arg | $_am_arg:* )
15772 break ;;
15773 * )
15774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15775 esac
15776done
15777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15779 X"$_am_arg" : 'X\(//\)[^/]' \| \
15780 X"$_am_arg" : 'X\(//\)$' \| \
15781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15782$as_echo X"$_am_arg" |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15784 s//\1/
15785 q
15786 }
15787 /^X\(\/\/\)[^/].*/{
15788 s//\1/
15789 q
15790 }
15791 /^X\(\/\/\)$/{
15792 s//\1/
15793 q
15794 }
15795 /^X\(\/\).*/{
15796 s//\1/
15797 q
15798 }
15799 s/.*/./; q'`/stamp-h$_am_stamp_count
15800 ;;
15801
15802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15803$as_echo "$as_me: executing $ac_file commands" >&6;}
15804 ;;
15805 esac
15806
15807
15808 case $ac_file$ac_mode in
15809 "default-1":C)
15810# Only add multilib support code if we just rebuilt the top-level
15811# Makefile.
15812case " $CONFIG_FILES " in
15813 *" Makefile "*)
15814 ac_file=Makefile . ${multi_basedir}/config-ml.in
15815 ;;
15816esac ;;
15817 "libtool":C)
15818
15819 # See if we are running on zsh, and set the options which allow our
15820 # commands through without removal of \ escapes.
15821 if test -n "${ZSH_VERSION+set}" ; then
15822 setopt NO_GLOB_SUBST
15823 fi
15824
15825 cfgfile="${ofile}T"
15826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15827 $RM "$cfgfile"
15828
15829 cat <<_LT_EOF >> "$cfgfile"
15830#! $SHELL
15831
15832# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15833# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15834# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15835# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15836#
15837# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15838# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15839# Written by Gordon Matzigkeit, 1996
15840#
15841# This file is part of GNU Libtool.
15842#
15843# GNU Libtool is free software; you can redistribute it and/or
15844# modify it under the terms of the GNU General Public License as
15845# published by the Free Software Foundation; either version 2 of
15846# the License, or (at your option) any later version.
15847#
15848# As a special exception to the GNU General Public License,
15849# if you distribute this file as part of a program or library that
15850# is built using GNU Libtool, you may include this file under the
15851# same distribution terms that you use for the rest of that program.
15852#
15853# GNU Libtool is distributed in the hope that it will be useful,
15854# but WITHOUT ANY WARRANTY; without even the implied warranty of
15855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15856# GNU General Public License for more details.
15857#
15858# You should have received a copy of the GNU General Public License
15859# along with GNU Libtool; see the file COPYING. If not, a copy
15860# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15861# obtained by writing to the Free Software Foundation, Inc.,
15862# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15863
15864
15865# The names of the tagged configurations supported by this script.
15866available_tags=""
15867
15868# ### BEGIN LIBTOOL CONFIG
15869
15870# Which release of libtool.m4 was used?
15871macro_version=$macro_version
15872macro_revision=$macro_revision
15873
15874# Whether or not to build shared libraries.
15875build_libtool_libs=$enable_shared
15876
15877# Whether or not to build static libraries.
15878build_old_libs=$enable_static
15879
15880# What type of objects to build.
15881pic_mode=$pic_mode
15882
15883# Whether or not to optimize for fast installation.
15884fast_install=$enable_fast_install
15885
15886# Shell to use when invoking shell scripts.
15887SHELL=$lt_SHELL
15888
15889# An echo program that protects backslashes.
15890ECHO=$lt_ECHO
15891
15892# The host system.
15893host_alias=$host_alias
15894host=$host
15895host_os=$host_os
15896
15897# The build system.
15898build_alias=$build_alias
15899build=$build
15900build_os=$build_os
15901
15902# A sed program that does not truncate output.
15903SED=$lt_SED
15904
15905# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15906Xsed="\$SED -e 1s/^X//"
15907
15908# A grep program that handles long lines.
15909GREP=$lt_GREP
15910
15911# An ERE matcher.
15912EGREP=$lt_EGREP
15913
15914# A literal string matcher.
15915FGREP=$lt_FGREP
15916
15917# A BSD- or MS-compatible name lister.
15918NM=$lt_NM
15919
15920# Whether we need soft or hard links.
15921LN_S=$lt_LN_S
15922
15923# What is the maximum length of a command?
15924max_cmd_len=$max_cmd_len
15925
15926# Object file suffix (normally "o").
15927objext=$ac_objext
15928
15929# Executable file suffix (normally "").
15930exeext=$exeext
15931
15932# whether the shell understands "unset".
15933lt_unset=$lt_unset
15934
15935# turn spaces into newlines.
15936SP2NL=$lt_lt_SP2NL
15937
15938# turn newlines into spaces.
15939NL2SP=$lt_lt_NL2SP
15940
15941# An object symbol dumper.
15942OBJDUMP=$lt_OBJDUMP
15943
15944# Method to check whether dependent libraries are shared objects.
15945deplibs_check_method=$lt_deplibs_check_method
15946
15947# Command to use when deplibs_check_method == "file_magic".
15948file_magic_cmd=$lt_file_magic_cmd
15949
15950# The archiver.
15951AR=$lt_AR
15952AR_FLAGS=$lt_AR_FLAGS
15953
15954# A symbol stripping program.
15955STRIP=$lt_STRIP
15956
15957# Commands used to install an old-style archive.
15958RANLIB=$lt_RANLIB
15959old_postinstall_cmds=$lt_old_postinstall_cmds
15960old_postuninstall_cmds=$lt_old_postuninstall_cmds
15961
15962# Whether to use a lock for old archive extraction.
15963lock_old_archive_extraction=$lock_old_archive_extraction
15964
15965# A C compiler.
15966LTCC=$lt_CC
15967
15968# LTCC compiler flags.
15969LTCFLAGS=$lt_CFLAGS
15970
15971# Take the output of nm and produce a listing of raw symbols and C names.
15972global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15973
15974# Transform the output of nm in a proper C declaration.
15975global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15976
15977# Transform the output of nm in a C name address pair.
15978global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15979
15980# Transform the output of nm in a C name address pair when lib prefix is needed.
15981global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15982
15983# The name of the directory that contains temporary libtool files.
15984objdir=$objdir
15985
15986# Used to examine libraries when file_magic_cmd begins with "file".
15987MAGIC_CMD=$MAGIC_CMD
15988
15989# Must we lock files when doing compilation?
15990need_locks=$lt_need_locks
15991
15992# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15993DSYMUTIL=$lt_DSYMUTIL
15994
15995# Tool to change global to local symbols on Mac OS X.
15996NMEDIT=$lt_NMEDIT
15997
15998# Tool to manipulate fat objects and archives on Mac OS X.
15999LIPO=$lt_LIPO
16000
16001# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16002OTOOL=$lt_OTOOL
16003
16004# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16005OTOOL64=$lt_OTOOL64
16006
16007# Old archive suffix (normally "a").
16008libext=$libext
16009
16010# Shared library suffix (normally ".so").
16011shrext_cmds=$lt_shrext_cmds
16012
16013# The commands to extract the exported symbol list from a shared archive.
16014extract_expsyms_cmds=$lt_extract_expsyms_cmds
16015
16016# Variables whose values should be saved in libtool wrapper scripts and
16017# restored at link time.
16018variables_saved_for_relink=$lt_variables_saved_for_relink
16019
16020# Do we need the "lib" prefix for modules?
16021need_lib_prefix=$need_lib_prefix
16022
16023# Do we need a version for libraries?
16024need_version=$need_version
16025
16026# Library versioning type.
16027version_type=$version_type
16028
16029# Shared library runtime path variable.
16030runpath_var=$runpath_var
16031
16032# Shared library path variable.
16033shlibpath_var=$shlibpath_var
16034
16035# Is shlibpath searched before the hard-coded library search path?
16036shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16037
16038# Format of library name prefix.
16039libname_spec=$lt_libname_spec
16040
16041# List of archive names. First name is the real one, the rest are links.
16042# The last name is the one that the linker finds with -lNAME
16043library_names_spec=$lt_library_names_spec
16044
16045# The coded name of the library, if different from the real name.
16046soname_spec=$lt_soname_spec
16047
16048# Permission mode override for installation of shared libraries.
16049install_override_mode=$lt_install_override_mode
16050
16051# Command to use after installation of a shared archive.
16052postinstall_cmds=$lt_postinstall_cmds
16053
16054# Command to use after uninstallation of a shared archive.
16055postuninstall_cmds=$lt_postuninstall_cmds
16056
16057# Commands used to finish a libtool library installation in a directory.
16058finish_cmds=$lt_finish_cmds
16059
16060# As "finish_cmds", except a single script fragment to be evaled but
16061# not shown.
16062finish_eval=$lt_finish_eval
16063
16064# Whether we should hardcode library paths into libraries.
16065hardcode_into_libs=$hardcode_into_libs
16066
16067# Compile-time system search path for libraries.
16068sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16069
16070# Run-time system search path for libraries.
16071sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16072
16073# Whether dlopen is supported.
16074dlopen_support=$enable_dlopen
16075
16076# Whether dlopen of programs is supported.
16077dlopen_self=$enable_dlopen_self
16078
16079# Whether dlopen of statically linked programs is supported.
16080dlopen_self_static=$enable_dlopen_self_static
16081
16082# Commands to strip libraries.
16083old_striplib=$lt_old_striplib
16084striplib=$lt_striplib
16085
16086
16087# The linker used to build libraries.
16088LD=$lt_LD
16089
16090# How to create reloadable object files.
16091reload_flag=$lt_reload_flag
16092reload_cmds=$lt_reload_cmds
16093
16094# Commands used to build an old-style archive.
16095old_archive_cmds=$lt_old_archive_cmds
16096
16097# A language specific compiler.
16098CC=$lt_compiler
16099
16100# Is the compiler the GNU compiler?
16101with_gcc=$GCC
16102
16103# Compiler flag to turn off builtin functions.
16104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16105
16106# How to pass a linker flag through the compiler.
16107wl=$lt_lt_prog_compiler_wl
16108
16109# Additional compiler flags for building library objects.
16110pic_flag=$lt_lt_prog_compiler_pic
16111
16112# Compiler flag to prevent dynamic linking.
16113link_static_flag=$lt_lt_prog_compiler_static
16114
16115# Does compiler simultaneously support -c and -o options?
16116compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16117
16118# Whether or not to add -lc for building shared libraries.
16119build_libtool_need_lc=$archive_cmds_need_lc
16120
16121# Whether or not to disallow shared libs when runtime libs are static.
16122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16123
16124# Compiler flag to allow reflexive dlopens.
16125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16126
16127# Compiler flag to generate shared objects directly from archives.
16128whole_archive_flag_spec=$lt_whole_archive_flag_spec
16129
16130# Whether the compiler copes with passing no objects directly.
16131compiler_needs_object=$lt_compiler_needs_object
16132
16133# Create an old-style archive from a shared archive.
16134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16135
16136# Create a temporary old-style archive to link instead of a shared archive.
16137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16138
16139# Commands used to build a shared archive.
16140archive_cmds=$lt_archive_cmds
16141archive_expsym_cmds=$lt_archive_expsym_cmds
16142
16143# Commands used to build a loadable module if different from building
16144# a shared archive.
16145module_cmds=$lt_module_cmds
16146module_expsym_cmds=$lt_module_expsym_cmds
16147
16148# Whether we are building with GNU ld or not.
16149with_gnu_ld=$lt_with_gnu_ld
16150
16151# Flag that allows shared libraries with undefined symbols to be built.
16152allow_undefined_flag=$lt_allow_undefined_flag
16153
16154# Flag that enforces no undefined symbols.
16155no_undefined_flag=$lt_no_undefined_flag
16156
16157# Flag to hardcode \$libdir into a binary during linking.
16158# This must work even if \$libdir does not exist
16159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16160
16161# If ld is used when linking, flag to hardcode \$libdir into a binary
16162# during linking. This must work even if \$libdir does not exist.
16163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16164
16165# Whether we need a single "-rpath" flag with a separated argument.
16166hardcode_libdir_separator=$lt_hardcode_libdir_separator
16167
16168# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16169# DIR into the resulting binary.
16170hardcode_direct=$hardcode_direct
16171
16172# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16173# DIR into the resulting binary and the resulting library dependency is
16174# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16175# library is relocated.
16176hardcode_direct_absolute=$hardcode_direct_absolute
16177
16178# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16179# into the resulting binary.
16180hardcode_minus_L=$hardcode_minus_L
16181
16182# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16183# into the resulting binary.
16184hardcode_shlibpath_var=$hardcode_shlibpath_var
16185
16186# Set to "yes" if building a shared library automatically hardcodes DIR
16187# into the library and all subsequent libraries and executables linked
16188# against it.
16189hardcode_automatic=$hardcode_automatic
16190
16191# Set to yes if linker adds runtime paths of dependent libraries
16192# to runtime path list.
16193inherit_rpath=$inherit_rpath
16194
16195# Whether libtool must link a program against all its dependency libraries.
16196link_all_deplibs=$link_all_deplibs
16197
16198# Fix the shell variable \$srcfile for the compiler.
16199fix_srcfile_path=$lt_fix_srcfile_path
16200
16201# Set to "yes" if exported symbols are required.
16202always_export_symbols=$always_export_symbols
16203
16204# The commands to list exported symbols.
16205export_symbols_cmds=$lt_export_symbols_cmds
16206
16207# Symbols that should not be listed in the preloaded symbols.
16208exclude_expsyms=$lt_exclude_expsyms
16209
16210# Symbols that must always be exported.
16211include_expsyms=$lt_include_expsyms
16212
16213# Commands necessary for linking programs (against libraries) with templates.
16214prelink_cmds=$lt_prelink_cmds
16215
16216# Specify filename containing input files.
16217file_list_spec=$lt_file_list_spec
16218
16219# How to hardcode a shared library path into an executable.
16220hardcode_action=$hardcode_action
16221
16222# ### END LIBTOOL CONFIG
16223
16224_LT_EOF
16225
16226 case $host_os in
16227 aix3*)
16228 cat <<\_LT_EOF >> "$cfgfile"
16229# AIX sometimes has problems with the GCC collect2 program. For some
16230# reason, if we set the COLLECT_NAMES environment variable, the problems
16231# vanish in a puff of smoke.
16232if test "X${COLLECT_NAMES+set}" != Xset; then
16233 COLLECT_NAMES=
16234 export COLLECT_NAMES
16235fi
16236_LT_EOF
16237 ;;
16238 esac
16239
16240
16241ltmain="$ac_aux_dir/ltmain.sh"
16242
16243
16244 # We use sed instead of cat because bash on DJGPP gets confused if
16245 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16246 # text mode, it properly converts lines to CR/LF. This bash problem
16247 # is reportedly fixed, but why not run on old versions too?
16248 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16249 || (rm -f "$cfgfile"; exit 1)
16250
16251 case $xsi_shell in
16252 yes)
16253 cat << \_LT_EOF >> "$cfgfile"
16254
16255# func_dirname file append nondir_replacement
16256# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16257# otherwise set result to NONDIR_REPLACEMENT.
16258func_dirname ()
16259{
16260 case ${1} in
16261 */*) func_dirname_result="${1%/*}${2}" ;;
16262 * ) func_dirname_result="${3}" ;;
16263 esac
16264}
16265
16266# func_basename file
16267func_basename ()
16268{
16269 func_basename_result="${1##*/}"
16270}
16271
16272# func_dirname_and_basename file append nondir_replacement
16273# perform func_basename and func_dirname in a single function
16274# call:
16275# dirname: Compute the dirname of FILE. If nonempty,
16276# add APPEND to the result, otherwise set result
16277# to NONDIR_REPLACEMENT.
16278# value returned in "$func_dirname_result"
16279# basename: Compute filename of FILE.
16280# value retuned in "$func_basename_result"
16281# Implementation must be kept synchronized with func_dirname
16282# and func_basename. For efficiency, we do not delegate to
16283# those functions but instead duplicate the functionality here.
16284func_dirname_and_basename ()
16285{
16286 case ${1} in
16287 */*) func_dirname_result="${1%/*}${2}" ;;
16288 * ) func_dirname_result="${3}" ;;
16289 esac
16290 func_basename_result="${1##*/}"
16291}
16292
16293# func_stripname prefix suffix name
16294# strip PREFIX and SUFFIX off of NAME.
16295# PREFIX and SUFFIX must not contain globbing or regex special
16296# characters, hashes, percent signs, but SUFFIX may contain a leading
16297# dot (in which case that matches only a dot).
16298func_stripname ()
16299{
16300 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16301 # positional parameters, so assign one to ordinary parameter first.
16302 func_stripname_result=${3}
16303 func_stripname_result=${func_stripname_result#"${1}"}
16304 func_stripname_result=${func_stripname_result%"${2}"}
16305}
16306
16307# func_opt_split
16308func_opt_split ()
16309{
16310 func_opt_split_opt=${1%%=*}
16311 func_opt_split_arg=${1#*=}
16312}
16313
16314# func_lo2o object
16315func_lo2o ()
16316{
16317 case ${1} in
16318 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16319 *) func_lo2o_result=${1} ;;
16320 esac
16321}
16322
16323# func_xform libobj-or-source
16324func_xform ()
16325{
16326 func_xform_result=${1%.*}.lo
16327}
16328
16329# func_arith arithmetic-term...
16330func_arith ()
16331{
16332 func_arith_result=$(( $* ))
16333}
16334
16335# func_len string
16336# STRING may not start with a hyphen.
16337func_len ()
16338{
16339 func_len_result=${#1}
16340}
16341
16342_LT_EOF
16343 ;;
16344 *) # Bourne compatible functions.
16345 cat << \_LT_EOF >> "$cfgfile"
16346
16347# func_dirname file append nondir_replacement
16348# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16349# otherwise set result to NONDIR_REPLACEMENT.
16350func_dirname ()
16351{
16352 # Extract subdirectory from the argument.
16353 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16354 if test "X$func_dirname_result" = "X${1}"; then
16355 func_dirname_result="${3}"
16356 else
16357 func_dirname_result="$func_dirname_result${2}"
16358 fi
16359}
16360
16361# func_basename file
16362func_basename ()
16363{
16364 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16365}
16366
16367
16368# func_stripname prefix suffix name
16369# strip PREFIX and SUFFIX off of NAME.
16370# PREFIX and SUFFIX must not contain globbing or regex special
16371# characters, hashes, percent signs, but SUFFIX may contain a leading
16372# dot (in which case that matches only a dot).
16373# func_strip_suffix prefix name
16374func_stripname ()
16375{
16376 case ${2} in
16377 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16378 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16379 esac
16380}
16381
16382# sed scripts:
16383my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16384my_sed_long_arg='1s/^-[^=]*=//'
16385
16386# func_opt_split
16387func_opt_split ()
16388{
16389 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16390 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16391}
16392
16393# func_lo2o object
16394func_lo2o ()
16395{
16396 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16397}
16398
16399# func_xform libobj-or-source
16400func_xform ()
16401{
16402 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16403}
16404
16405# func_arith arithmetic-term...
16406func_arith ()
16407{
16408 func_arith_result=`expr "$@"`
16409}
16410
16411# func_len string
16412# STRING may not start with a hyphen.
16413func_len ()
16414{
16415 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16416}
16417
16418_LT_EOF
16419esac
16420
16421case $lt_shell_append in
16422 yes)
16423 cat << \_LT_EOF >> "$cfgfile"
16424
16425# func_append var value
16426# Append VALUE to the end of shell variable VAR.
16427func_append ()
16428{
16429 eval "$1+=\$2"
16430}
16431_LT_EOF
16432 ;;
16433 *)
16434 cat << \_LT_EOF >> "$cfgfile"
16435
16436# func_append var value
16437# Append VALUE to the end of shell variable VAR.
16438func_append ()
16439{
16440 eval "$1=\$$1\$2"
16441}
16442
16443_LT_EOF
16444 ;;
16445 esac
16446
16447
16448 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16449 || (rm -f "$cfgfile"; exit 1)
16450
16451 mv -f "$cfgfile" "$ofile" ||
16452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16453 chmod +x "$ofile"
16454
16455 ;;
16456 "gstdint.h":C)
16457if test "$GCC" = yes; then
16458 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16459else
16460 echo "/* generated for $CC */" > tmp-stdint.h
16461fi
16462
16463sed 's/^ *//' >> tmp-stdint.h <<EOF
16464
16465 #ifndef GCC_GENERATED_STDINT_H
16466 #define GCC_GENERATED_STDINT_H 1
16467
16468 #include <sys/types.h>
16469EOF
16470
16471if test "$acx_cv_header_stdint" != stdint.h; then
16472 echo "#include <stddef.h>" >> tmp-stdint.h
16473fi
16474if test "$acx_cv_header_stdint" != stddef.h; then
16475 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16476fi
16477
16478sed 's/^ *//' >> tmp-stdint.h <<EOF
16479 /* glibc uses these symbols as guards to prevent redefinitions. */
16480 #ifdef __int8_t_defined
16481 #define _INT8_T
16482 #define _INT16_T
16483 #define _INT32_T
16484 #endif
16485 #ifdef __uint32_t_defined
16486 #define _UINT32_T
16487 #endif
16488
16489EOF
16490
16491# ----------------- done header, emit basic int types -------------
16492if test "$acx_cv_header_stdint" = stddef.h; then
16493 sed 's/^ *//' >> tmp-stdint.h <<EOF
16494
16495 #ifndef _UINT8_T
16496 #define _UINT8_T
16497 #ifndef __uint8_t_defined
16498 #define __uint8_t_defined
16499 #ifndef uint8_t
16500 typedef unsigned $acx_cv_type_int8_t uint8_t;
16501 #endif
16502 #endif
16503 #endif
16504
16505 #ifndef _UINT16_T
16506 #define _UINT16_T
16507 #ifndef __uint16_t_defined
16508 #define __uint16_t_defined
16509 #ifndef uint16_t
16510 typedef unsigned $acx_cv_type_int16_t uint16_t;
16511 #endif
16512 #endif
16513 #endif
16514
16515 #ifndef _UINT32_T
16516 #define _UINT32_T
16517 #ifndef __uint32_t_defined
16518 #define __uint32_t_defined
16519 #ifndef uint32_t
16520 typedef unsigned $acx_cv_type_int32_t uint32_t;
16521 #endif
16522 #endif
16523 #endif
16524
16525 #ifndef _INT8_T
16526 #define _INT8_T
16527 #ifndef __int8_t_defined
16528 #define __int8_t_defined
16529 #ifndef int8_t
16530 typedef $acx_cv_type_int8_t int8_t;
16531 #endif
16532 #endif
16533 #endif
16534
16535 #ifndef _INT16_T
16536 #define _INT16_T
16537 #ifndef __int16_t_defined
16538 #define __int16_t_defined
16539 #ifndef int16_t
16540 typedef $acx_cv_type_int16_t int16_t;
16541 #endif
16542 #endif
16543 #endif
16544
16545 #ifndef _INT32_T
16546 #define _INT32_T
16547 #ifndef __int32_t_defined
16548 #define __int32_t_defined
16549 #ifndef int32_t
16550 typedef $acx_cv_type_int32_t int32_t;
16551 #endif
16552 #endif
16553 #endif
16554EOF
16555elif test "$ac_cv_type_u_int32_t" = yes; then
16556 sed 's/^ *//' >> tmp-stdint.h <<EOF
16557
16558 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16559 #ifndef _INT8_T
16560 #define _INT8_T
16561 #endif
16562 #ifndef _INT16_T
16563 #define _INT16_T
16564 #endif
16565 #ifndef _INT32_T
16566 #define _INT32_T
16567 #endif
16568
16569 #ifndef _UINT8_T
16570 #define _UINT8_T
16571 #ifndef __uint8_t_defined
16572 #define __uint8_t_defined
16573 #ifndef uint8_t
16574 typedef u_int8_t uint8_t;
16575 #endif
16576 #endif
16577 #endif
16578
16579 #ifndef _UINT16_T
16580 #define _UINT16_T
16581 #ifndef __uint16_t_defined
16582 #define __uint16_t_defined
16583 #ifndef uint16_t
16584 typedef u_int16_t uint16_t;
16585 #endif
16586 #endif
16587 #endif
16588
16589 #ifndef _UINT32_T
16590 #define _UINT32_T
16591 #ifndef __uint32_t_defined
16592 #define __uint32_t_defined
16593 #ifndef uint32_t
16594 typedef u_int32_t uint32_t;
16595 #endif
16596 #endif
16597 #endif
16598EOF
16599else
16600 sed 's/^ *//' >> tmp-stdint.h <<EOF
16601
16602 /* Some systems have guard macros to prevent redefinitions, define them. */
16603 #ifndef _INT8_T
16604 #define _INT8_T
16605 #endif
16606 #ifndef _INT16_T
16607 #define _INT16_T
16608 #endif
16609 #ifndef _INT32_T
16610 #define _INT32_T
16611 #endif
16612 #ifndef _UINT8_T
16613 #define _UINT8_T
16614 #endif
16615 #ifndef _UINT16_T
16616 #define _UINT16_T
16617 #endif
16618 #ifndef _UINT32_T
16619 #define _UINT32_T
16620 #endif
16621EOF
16622fi
16623
16624# ------------- done basic int types, emit int64_t types ------------
16625if test "$ac_cv_type_uint64_t" = yes; then
16626 sed 's/^ *//' >> tmp-stdint.h <<EOF
16627
16628 /* system headers have good uint64_t and int64_t */
16629 #ifndef _INT64_T
16630 #define _INT64_T
16631 #endif
16632 #ifndef _UINT64_T
16633 #define _UINT64_T
16634 #endif
16635EOF
16636elif test "$ac_cv_type_u_int64_t" = yes; then
16637 sed 's/^ *//' >> tmp-stdint.h <<EOF
16638
16639 /* system headers have an u_int64_t (and int64_t) */
16640 #ifndef _INT64_T
16641 #define _INT64_T
16642 #endif
16643 #ifndef _UINT64_T
16644 #define _UINT64_T
16645 #ifndef __uint64_t_defined
16646 #define __uint64_t_defined
16647 #ifndef uint64_t
16648 typedef u_int64_t uint64_t;
16649 #endif
16650 #endif
16651 #endif
16652EOF
16653elif test -n "$acx_cv_type_int64_t"; then
16654 sed 's/^ *//' >> tmp-stdint.h <<EOF
16655
16656 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16657 #ifndef _INT64_T
16658 #define _INT64_T
16659 #ifndef int64_t
16660 typedef $acx_cv_type_int64_t int64_t;
16661 #endif
16662 #endif
16663 #ifndef _UINT64_T
16664 #define _UINT64_T
16665 #ifndef __uint64_t_defined
16666 #define __uint64_t_defined
16667 #ifndef uint64_t
16668 typedef unsigned $acx_cv_type_int64_t uint64_t;
16669 #endif
16670 #endif
16671 #endif
16672EOF
16673else
16674 sed 's/^ *//' >> tmp-stdint.h <<EOF
16675
16676 /* some common heuristics for int64_t, using compiler-specific tests */
16677 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16678 #ifndef _INT64_T
16679 #define _INT64_T
16680 #ifndef __int64_t_defined
16681 #ifndef int64_t
16682 typedef long long int64_t;
16683 #endif
16684 #endif
16685 #endif
16686 #ifndef _UINT64_T
16687 #define _UINT64_T
16688 #ifndef uint64_t
16689 typedef unsigned long long uint64_t;
16690 #endif
16691 #endif
16692
16693 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16694 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16695 does not implement __extension__. But that compiler doesn't define
16696 __GNUC_MINOR__. */
16697 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16698 # define __extension__
16699 # endif
16700
16701 # ifndef _INT64_T
16702 # define _INT64_T
16703 # ifndef int64_t
16704 __extension__ typedef long long int64_t;
16705 # endif
16706 # endif
16707 # ifndef _UINT64_T
16708 # define _UINT64_T
16709 # ifndef uint64_t
16710 __extension__ typedef unsigned long long uint64_t;
16711 # endif
16712 # endif
16713
16714 #elif !defined __STRICT_ANSI__
16715 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16716
16717 # ifndef _INT64_T
16718 # define _INT64_T
16719 # ifndef int64_t
16720 typedef __int64 int64_t;
16721 # endif
16722 # endif
16723 # ifndef _UINT64_T
16724 # define _UINT64_T
16725 # ifndef uint64_t
16726 typedef unsigned __int64 uint64_t;
16727 # endif
16728 # endif
16729 # endif /* compiler */
16730
16731 #endif /* ANSI version */
16732EOF
16733fi
16734
16735# ------------- done int64_t types, emit intptr types ------------
16736if test "$ac_cv_type_uintptr_t" != yes; then
16737 sed 's/^ *//' >> tmp-stdint.h <<EOF
16738
16739 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16740 #ifndef __uintptr_t_defined
16741 #ifndef uintptr_t
16742 typedef u$acx_cv_type_intptr_t uintptr_t;
16743 #endif
16744 #endif
16745 #ifndef __intptr_t_defined
16746 #ifndef intptr_t
16747 typedef $acx_cv_type_intptr_t intptr_t;
16748 #endif
16749 #endif
16750EOF
16751fi
16752
16753# ------------- done intptr types, emit int_least types ------------
16754if test "$ac_cv_type_int_least32_t" != yes; then
16755 sed 's/^ *//' >> tmp-stdint.h <<EOF
16756
16757 /* Define int_least types */
16758 typedef int8_t int_least8_t;
16759 typedef int16_t int_least16_t;
16760 typedef int32_t int_least32_t;
16761 #ifdef _INT64_T
16762 typedef int64_t int_least64_t;
16763 #endif
16764
16765 typedef uint8_t uint_least8_t;
16766 typedef uint16_t uint_least16_t;
16767 typedef uint32_t uint_least32_t;
16768 #ifdef _UINT64_T
16769 typedef uint64_t uint_least64_t;
16770 #endif
16771EOF
16772fi
16773
16774# ------------- done intptr types, emit int_fast types ------------
16775if test "$ac_cv_type_int_fast32_t" != yes; then
16776 sed 's/^ *//' >> tmp-stdint.h <<EOF
16777
16778 /* Define int_fast types. short is often slow */
16779 typedef int8_t int_fast8_t;
16780 typedef int int_fast16_t;
16781 typedef int32_t int_fast32_t;
16782 #ifdef _INT64_T
16783 typedef int64_t int_fast64_t;
16784 #endif
16785
16786 typedef uint8_t uint_fast8_t;
16787 typedef unsigned int uint_fast16_t;
16788 typedef uint32_t uint_fast32_t;
16789 #ifdef _UINT64_T
16790 typedef uint64_t uint_fast64_t;
16791 #endif
16792EOF
16793fi
16794
16795if test "$ac_cv_type_uintmax_t" != yes; then
16796 sed 's/^ *//' >> tmp-stdint.h <<EOF
16797
16798 /* Define intmax based on what we found */
16799 #ifndef intmax_t
16800 #ifdef _INT64_T
16801 typedef int64_t intmax_t;
16802 #else
16803 typedef long intmax_t;
16804 #endif
16805 #endif
16806 #ifndef uintmax_t
16807 #ifdef _UINT64_T
16808 typedef uint64_t uintmax_t;
16809 #else
16810 typedef unsigned long uintmax_t;
16811 #endif
16812 #endif
16813EOF
16814fi
16815
16816sed 's/^ *//' >> tmp-stdint.h <<EOF
16817
16818 #endif /* GCC_GENERATED_STDINT_H */
16819EOF
16820
16821if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16822 rm -f tmp-stdint.h
16823else
16824 mv -f tmp-stdint.h gstdint.h
16825fi
16826
16827 ;;
16828 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
16829 "default":C) if test -n "$CONFIG_FILES"; then
16830 if test -n "${with_target_subdir}"; then
16831 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16832 # that multilib installs will end up installed in the correct place.
16833 # The testsuite needs it for multilib-aware ABI baseline files.
16834 # To work around this not being passed down from config-ml.in ->
16835 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16836 # append it here. Only modify Makefiles that have just been created.
16837 #
16838 # Also, get rid of this simulated-VPATH thing that automake does.
16839 cat > vpsed << \_EOF
16840 s!`test -f '$<' || echo '$(srcdir)/'`!!
16841_EOF
16842 for i in $SUBDIRS; do
16843 case $CONFIG_FILES in
16844 *${i}/Makefile*)
16845 #echo "Adding MULTISUBDIR to $i/Makefile"
16846 sed -f vpsed $i/Makefile > tmp
16847 grep '^MULTISUBDIR =' Makefile >> tmp
16848 mv tmp $i/Makefile
16849 ;;
16850 esac
16851 done
16852 rm vpsed
16853 fi
16854 fi
16855 ;;
16856
16857 esac
16858done # for ac_tag
16859
16860
16861as_fn_exit 0
16862_ACEOF
16863ac_clean_files=$ac_clean_files_save
16864
16865test $ac_write_fail = 0 ||
16866 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16867
16868
16869# configure is writing to config.log, and then calls config.status.
16870# config.status does its own redirection, appending to config.log.
16871# Unfortunately, on DOS this fails, as config.log is still kept open
16872# by configure, so config.status won't be able to write to it; its
16873# output is simply discarded. So we exec the FD to /dev/null,
16874# effectively closing config.log, so it can be properly (re)opened and
16875# appended to by config.status. When coming back to configure, we
16876# need to make the FD available again.
16877if test "$no_create" != yes; then
16878 ac_cs_success=:
16879 ac_config_status_args=
16880 test "$silent" = yes &&
16881 ac_config_status_args="$ac_config_status_args --quiet"
16882 exec 5>/dev/null
16883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16884 exec 5>>config.log
16885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16886 # would make configure fail if this is the last instruction.
16887 $ac_cs_success || as_fn_exit 1
16888fi
16889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16892fi
16893